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 of
Questionnaire.Metadata.
Use the builder to create immutable instances:
ImmutableQuestionnaireMetadata.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableQuestionnaireMetadata.Nested classes/interfaces inherited from class io.dialob.api.questionnaire.Questionnaire.Metadata
Questionnaire.Metadata.Reason, Questionnaire.Metadata.Status -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableQuestionnaireMetadata.copyOf(Questionnaire.Metadata instance) Creates an immutable copy of aQuestionnaire.Metadatavalue.booleanThis instance is equal to all instances ofImmutableQuestionnaireMetadatathat have equal attribute values.userId of one who created questionnairegetLabel()getOwner()userId of document ownerCompletion reason, null if normally completed.inthashCode()Computes a hash code from attributes:formId,formName,status,formRev,tenantId,created,lastAnswer,opened,completed,label,submitUrl,reason,language,owner,creator,additionalProperties.toString()Prints the immutable valueMetadatawith attribute values.withAdditionalProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing theadditionalPropertiesmap with the specified map.withCompleted(Date value) Copy the current immutable object by setting a value for thecompletedattribute.withCreated(Date value) Copy the current immutable object by setting a value for thecreatedattribute.withCreator(String value) Copy the current immutable object by setting a value for thecreatorattribute.withFormId(String value) Copy the current immutable object by setting a value for theformIdattribute.withFormName(String value) Copy the current immutable object by setting a value for theformNameattribute.withFormRev(String value) Copy the current immutable object by setting a value for theformRevattribute.Copy the current immutable object by setting a value for thelabelattribute.withLanguage(String value) Copy the current immutable object by setting a value for thelanguageattribute.withLastAnswer(Date value) Copy the current immutable object by setting a value for thelastAnswerattribute.withOpened(Date value) Copy the current immutable object by setting a value for theopenedattribute.Copy the current immutable object by setting a value for theownerattribute.Copy the current immutable object by setting a value for thereasonattribute.Copy the current immutable object by setting a value for thestatusattribute.withSubmitUrl(String value) Copy the current immutable object by setting a value for thesubmitUrlattribute.withTenantId(String value) Copy the current immutable object by setting a value for thetenantIdattribute.
-
Method Details
-
getFormId
- Specified by:
getFormIdin classQuestionnaire.Metadata- Returns:
- The value of the
formIdattribute
-
getFormName
- Specified by:
getFormNamein classQuestionnaire.Metadata- Returns:
- The value of the
formNameattribute
-
getStatus
- Overrides:
getStatusin classQuestionnaire.Metadata- Returns:
- The value of the
statusattribute
-
getFormRev
- Specified by:
getFormRevin classQuestionnaire.Metadata- Returns:
- The value of the
formRevattribute
-
getTenantId
- Specified by:
getTenantIdin classQuestionnaire.Metadata- Returns:
- The value of the
tenantIdattribute
-
getCreated
- Specified by:
getCreatedin classQuestionnaire.Metadata- Returns:
- The value of the
createdattribute
-
getLastAnswer
- Specified by:
getLastAnswerin classQuestionnaire.Metadata- Returns:
- The value of the
lastAnswerattribute
-
getOpened
- Specified by:
getOpenedin classQuestionnaire.Metadata- Returns:
- The value of the
openedattribute
-
getCompleted
- Specified by:
getCompletedin classQuestionnaire.Metadata- Returns:
- The value of the
completedattribute
-
getLabel
- Specified by:
getLabelin classQuestionnaire.Metadata- Returns:
- The value of the
labelattribute
-
getSubmitUrl
- Specified by:
getSubmitUrlin classQuestionnaire.Metadata- Returns:
- The value of the
submitUrlattribute
-
getReason
Completion reason, null if normally completed.- Specified by:
getReasonin classQuestionnaire.Metadata
-
getLanguage
- Specified by:
getLanguagein classQuestionnaire.Metadata- Returns:
- The value of the
languageattribute
-
getOwner
userId of document owner- Specified by:
getOwnerin classQuestionnaire.Metadata
-
getCreator
userId of one who created questionnaire- Specified by:
getCreatorin classQuestionnaire.Metadata
-
getAdditionalProperties
- Specified by:
getAdditionalPropertiesin classQuestionnaire.Metadata- Returns:
- The value of the
additionalPropertiesattribute
-
withFormId
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Prints the immutable valueMetadatawith attribute values. -
copyOf
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
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
-