Package io.dialob.api.questionnaire
Class ImmutableQuestionnaireMetadata
- java.lang.Object
-
- io.dialob.api.questionnaire.Questionnaire.Metadata
-
- io.dialob.api.questionnaire.ImmutableQuestionnaireMetadata
-
- All Implemented Interfaces:
Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableQuestionnaireMetadata extends Questionnaire.Metadata
Immutable implementation ofQuestionnaire.Metadata.Use the builder to create immutable instances:
ImmutableQuestionnaireMetadata.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableQuestionnaireMetadata.BuilderBuilds instances of typeImmutableQuestionnaireMetadata.-
Nested classes/interfaces inherited from class io.dialob.api.questionnaire.Questionnaire.Metadata
Questionnaire.Metadata.Reason, Questionnaire.Metadata.Status
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableQuestionnaireMetadata.Builderbuilder()Creates a builder forImmutableQuestionnaireMetadata.static ImmutableQuestionnaireMetadatacopyOf(Questionnaire.Metadata instance)Creates an immutable copy of aQuestionnaire.Metadatavalue.booleanequals(Object another)This instance is equal to all instances ofImmutableQuestionnaireMetadatathat have equal attribute values.Map<String,Object>getAdditionalProperties()DategetCompleted()DategetCreated()StringgetCreator()userId of one who created questionnaireStringgetFormId()StringgetFormName()StringgetFormRev()StringgetLabel()StringgetLanguage()DategetLastAnswer()DategetOpened()StringgetOwner()userId of document ownerQuestionnaire.Metadata.ReasongetReason()Completion reason, null if normally completed.Questionnaire.Metadata.StatusgetStatus()StringgetSubmitUrl()StringgetTenantId()inthashCode()Computes a hash code from attributes:formId,formName,status,formRev,tenantId,created,lastAnswer,opened,completed,label,submitUrl,reason,language,owner,creator,additionalProperties.StringtoString()Prints the immutable valueMetadatawith attribute values.ImmutableQuestionnaireMetadatawithAdditionalProperties(Map<String,? extends Object> entries)Copy the current immutable object by replacing theadditionalPropertiesmap with the specified map.ImmutableQuestionnaireMetadatawithCompleted(Date value)Copy the current immutable object by setting a value for thecompletedattribute.ImmutableQuestionnaireMetadatawithCreated(Date value)Copy the current immutable object by setting a value for thecreatedattribute.ImmutableQuestionnaireMetadatawithCreator(String value)Copy the current immutable object by setting a value for thecreatorattribute.ImmutableQuestionnaireMetadatawithFormId(String value)Copy the current immutable object by setting a value for theformIdattribute.ImmutableQuestionnaireMetadatawithFormName(String value)Copy the current immutable object by setting a value for theformNameattribute.ImmutableQuestionnaireMetadatawithFormRev(String value)Copy the current immutable object by setting a value for theformRevattribute.ImmutableQuestionnaireMetadatawithLabel(String value)Copy the current immutable object by setting a value for thelabelattribute.ImmutableQuestionnaireMetadatawithLanguage(String value)Copy the current immutable object by setting a value for thelanguageattribute.ImmutableQuestionnaireMetadatawithLastAnswer(Date value)Copy the current immutable object by setting a value for thelastAnswerattribute.ImmutableQuestionnaireMetadatawithOpened(Date value)Copy the current immutable object by setting a value for theopenedattribute.ImmutableQuestionnaireMetadatawithOwner(String value)Copy the current immutable object by setting a value for theownerattribute.ImmutableQuestionnaireMetadatawithReason(Questionnaire.Metadata.Reason value)Copy the current immutable object by setting a value for thereasonattribute.ImmutableQuestionnaireMetadatawithStatus(Questionnaire.Metadata.Status value)Copy the current immutable object by setting a value for thestatusattribute.ImmutableQuestionnaireMetadatawithSubmitUrl(String value)Copy the current immutable object by setting a value for thesubmitUrlattribute.ImmutableQuestionnaireMetadatawithTenantId(String value)Copy the current immutable object by setting a value for thetenantIdattribute.
-
-
-
Method Detail
-
getFormId
public String getFormId()
- Specified by:
getFormIdin classQuestionnaire.Metadata- Returns:
- The value of the
formIdattribute
-
getFormName
public String getFormName()
- Specified by:
getFormNamein classQuestionnaire.Metadata- Returns:
- The value of the
formNameattribute
-
getStatus
public Questionnaire.Metadata.Status getStatus()
- Overrides:
getStatusin classQuestionnaire.Metadata- Returns:
- The value of the
statusattribute
-
getFormRev
public String getFormRev()
- Specified by:
getFormRevin classQuestionnaire.Metadata- Returns:
- The value of the
formRevattribute
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin classQuestionnaire.Metadata- Returns:
- The value of the
tenantIdattribute
-
getCreated
public Date getCreated()
- Specified by:
getCreatedin classQuestionnaire.Metadata- Returns:
- The value of the
createdattribute
-
getLastAnswer
public Date getLastAnswer()
- Specified by:
getLastAnswerin classQuestionnaire.Metadata- Returns:
- The value of the
lastAnswerattribute
-
getOpened
public Date getOpened()
- Specified by:
getOpenedin classQuestionnaire.Metadata- Returns:
- The value of the
openedattribute
-
getCompleted
public Date getCompleted()
- Specified by:
getCompletedin classQuestionnaire.Metadata- Returns:
- The value of the
completedattribute
-
getLabel
public String getLabel()
- Specified by:
getLabelin classQuestionnaire.Metadata- Returns:
- The value of the
labelattribute
-
getSubmitUrl
public String getSubmitUrl()
- Specified by:
getSubmitUrlin classQuestionnaire.Metadata- Returns:
- The value of the
submitUrlattribute
-
getReason
public Questionnaire.Metadata.Reason getReason()
Completion reason, null if normally completed.- Specified by:
getReasonin classQuestionnaire.Metadata
-
getLanguage
public String getLanguage()
- Specified by:
getLanguagein classQuestionnaire.Metadata- Returns:
- The value of the
languageattribute
-
getOwner
public String getOwner()
userId of document owner- Specified by:
getOwnerin classQuestionnaire.Metadata
-
getCreator
public String getCreator()
userId of one who created questionnaire- Specified by:
getCreatorin classQuestionnaire.Metadata
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
- Specified by:
getAdditionalPropertiesin classQuestionnaire.Metadata- Returns:
- The value of the
additionalPropertiesattribute
-
withFormId
public final ImmutableQuestionnaireMetadata withFormId(String value)
Copy the current immutable object by setting a value for theformIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for formId (can benull)- Returns:
- A modified copy of the
thisobject
-
withFormName
public final ImmutableQuestionnaireMetadata withFormName(String value)
Copy the current immutable object by setting a value for theformNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for formName (can benull)- Returns:
- A modified copy of the
thisobject
-
withStatus
public final ImmutableQuestionnaireMetadata withStatus(Questionnaire.Metadata.Status value)
Copy the current immutable object by setting a value for thestatusattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for status- Returns:
- A modified copy of the
thisobject
-
withFormRev
public final ImmutableQuestionnaireMetadata withFormRev(String value)
Copy the current immutable object by setting a value for theformRevattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for formRev (can benull)- Returns:
- A modified copy of the
thisobject
-
withTenantId
public final ImmutableQuestionnaireMetadata withTenantId(String value)
Copy the current immutable object by setting a value for thetenantIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tenantId (can benull)- Returns:
- A modified copy of the
thisobject
-
withCreated
public final ImmutableQuestionnaireMetadata withCreated(Date value)
Copy the current immutable object by setting a value for thecreatedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for created (can benull)- Returns:
- A modified copy of the
thisobject
-
withLastAnswer
public final ImmutableQuestionnaireMetadata withLastAnswer(Date value)
Copy the current immutable object by setting a value for thelastAnswerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for lastAnswer (can benull)- Returns:
- A modified copy of the
thisobject
-
withOpened
public final ImmutableQuestionnaireMetadata withOpened(Date value)
Copy the current immutable object by setting a value for theopenedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for opened (can benull)- Returns:
- A modified copy of the
thisobject
-
withCompleted
public final ImmutableQuestionnaireMetadata withCompleted(Date value)
Copy the current immutable object by setting a value for thecompletedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for completed (can benull)- Returns:
- A modified copy of the
thisobject
-
withLabel
public final ImmutableQuestionnaireMetadata withLabel(String value)
Copy the current immutable object by setting a value for thelabelattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for label (can benull)- Returns:
- A modified copy of the
thisobject
-
withSubmitUrl
public final ImmutableQuestionnaireMetadata withSubmitUrl(String value)
Copy the current immutable object by setting a value for thesubmitUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for submitUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withReason
public final ImmutableQuestionnaireMetadata withReason(Questionnaire.Metadata.Reason value)
Copy the current immutable object by setting a value for thereasonattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for reason (can benull)- Returns:
- A modified copy of the
thisobject
-
withLanguage
public final ImmutableQuestionnaireMetadata withLanguage(String value)
Copy the current immutable object by setting a value for thelanguageattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for language (can benull)- Returns:
- A modified copy of the
thisobject
-
withOwner
public final ImmutableQuestionnaireMetadata withOwner(String value)
Copy the current immutable object by setting a value for theownerattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for owner (can benull)- Returns:
- A modified copy of the
thisobject
-
withCreator
public final ImmutableQuestionnaireMetadata withCreator(String value)
Copy the current immutable object by setting a value for thecreatorattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for creator (can benull)- Returns:
- A modified copy of the
thisobject
-
withAdditionalProperties
public final ImmutableQuestionnaireMetadata withAdditionalProperties(Map<String,? extends Object> entries)
Copy the current immutable object by replacing theadditionalPropertiesmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the additionalProperties map- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableQuestionnaireMetadatathat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:formId,formName,status,formRev,tenantId,created,lastAnswer,opened,completed,label,submitUrl,reason,language,owner,creator,additionalProperties.
-
toString
public String toString()
Prints the immutable valueMetadatawith attribute values.
-
copyOf
public static ImmutableQuestionnaireMetadata copyOf(Questionnaire.Metadata instance)
Creates an immutable copy of aQuestionnaire.Metadatavalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable Metadata instance
-
builder
public static ImmutableQuestionnaireMetadata.Builder builder()
Creates a builder forImmutableQuestionnaireMetadata.ImmutableQuestionnaireMetadata.builder() .formId(String | null) // nullableformId.formName(String | null) // nullableformName.status(io.dialob.api.questionnaire.Questionnaire.Metadata.Status) // optionalstatus.formRev(String | null) // nullableformRev.tenantId(String | null) // nullabletenantId.created(Date | null) // nullablecreated.lastAnswer(Date | null) // nullablelastAnswer.opened(Date | null) // nullableopened.completed(Date | null) // nullablecompleted.label(String | null) // nullablelabel.submitUrl(String | null) // nullablesubmitUrl.reason(io.dialob.api.questionnaire.Questionnaire.Metadata.Reason | null) // nullablereason.language(String | null) // nullablelanguage.owner(String | null) // nullableowner.creator(String | null) // nullablecreator.putAdditionalProperties|putAllAdditionalProperties(String => Object) //additionalPropertiesmappings .build();- Returns:
- A new ImmutableQuestionnaireMetadata builder
-
-