Package io.dialob.api.form
Class ImmutableFormMetadata
java.lang.Object
io.dialob.api.form.ImmutableFormMetadata
- All Implemented Interfaces:
Form.Metadata,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableFormMetadata
extends Object
implements Form.Metadata
Immutable implementation of
Form.Metadata.
Use the builder to create immutable instances:
ImmutableFormMetadata.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFormMetadata. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFormMetadata.static ImmutableFormMetadatacopyOf(Form.Metadata instance) Creates an immutable copy of aForm.Metadatavalue.booleanThis instance is equal to all instances ofImmutableFormMetadatathat have equal attribute values.getLabel()getValid()inthashCode()Computes a hash code from attributes:label,created,lastSaved,valid,creator,tenantId,savedBy,labels,defaultSubmitUrl,languages,additionalProperties.toString()Prints the immutable valueMetadatawith attribute values.final ImmutableFormMetadatawithAdditionalProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing theadditionalPropertiesmap with the specified map.final ImmutableFormMetadatawithCreated(Date value) Copy the current immutable object by setting a value for thecreatedattribute.final ImmutableFormMetadatawithCreator(String value) Copy the current immutable object by setting a value for thecreatorattribute.final ImmutableFormMetadatawithDefaultSubmitUrl(String value) Copy the current immutable object by setting a value for thedefaultSubmitUrlattribute.final ImmutableFormMetadataCopy the current immutable object by setting a value for thelabelattribute.final ImmutableFormMetadatawithLabels(Iterable<String> elements) Copy the current immutable object with elements that replace the content oflabels.final ImmutableFormMetadatawithLabels(String... elements) Copy the current immutable object with elements that replace the content oflabels.final ImmutableFormMetadatawithLanguages(Iterable<String> elements) Copy the current immutable object with elements that replace the content oflanguages.final ImmutableFormMetadatawithLanguages(String... elements) Copy the current immutable object with elements that replace the content oflanguages.final ImmutableFormMetadatawithLastSaved(Date value) Copy the current immutable object by setting a value for thelastSavedattribute.final ImmutableFormMetadatawithSavedBy(String value) Copy the current immutable object by setting a value for thesavedByattribute.final ImmutableFormMetadatawithTenantId(String value) Copy the current immutable object by setting a value for thetenantIdattribute.final ImmutableFormMetadataCopy the current immutable object by setting a value for thevalidattribute.
-
Method Details
-
getLabel
- Specified by:
getLabelin interfaceForm.Metadata- Returns:
- The value of the
labelattribute
-
getCreated
- Specified by:
getCreatedin interfaceForm.Metadata- Returns:
- The value of the
createdattribute
-
getLastSaved
- Specified by:
getLastSavedin interfaceForm.Metadata- Returns:
- The value of the
lastSavedattribute
-
getValid
- Specified by:
getValidin interfaceForm.Metadata- Returns:
- The value of the
validattribute
-
getCreator
- Specified by:
getCreatorin interfaceForm.Metadata- Returns:
- The value of the
creatorattribute
-
getTenantId
- Specified by:
getTenantIdin interfaceForm.Metadata- Returns:
- The value of the
tenantIdattribute
-
getSavedBy
- Specified by:
getSavedByin interfaceForm.Metadata- Returns:
- The value of the
savedByattribute
-
getLabels
- Specified by:
getLabelsin interfaceForm.Metadata- Returns:
- The value of the
labelsattribute
-
getDefaultSubmitUrl
- Specified by:
getDefaultSubmitUrlin interfaceForm.Metadata- Returns:
- The value of the
defaultSubmitUrlattribute
-
getLanguages
- Specified by:
getLanguagesin interfaceForm.Metadata- Returns:
- The value of the
languagesattribute
-
getAdditionalProperties
- Specified by:
getAdditionalPropertiesin interfaceForm.Metadata- Returns:
- The value of the
additionalPropertiesattribute
-
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
-
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
-
withLastSaved
Copy the current immutable object by setting a value for thelastSavedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for lastSaved (can benull)- Returns:
- A modified copy of the
thisobject
-
withValid
Copy the current immutable object by setting a value for thevalidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for valid (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
-
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
-
withSavedBy
Copy the current immutable object by setting a value for thesavedByattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for savedBy (can benull)- Returns:
- A modified copy of the
thisobject
-
withLabels
Copy the current immutable object with elements that replace the content oflabels.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withLabels
Copy the current immutable object with elements that replace the content oflabels. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of labels elements to set- Returns:
- A modified copy of
thisobject
-
withDefaultSubmitUrl
Copy the current immutable object by setting a value for thedefaultSubmitUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for defaultSubmitUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withLanguages
Copy the current immutable object with elements that replace the content oflanguages.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withLanguages
Copy the current immutable object with elements that replace the content oflanguages. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of languages elements to set- Returns:
- A modified copy of
thisobject
-
withAdditionalProperties
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 ofImmutableFormMetadatathat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:label,created,lastSaved,valid,creator,tenantId,savedBy,labels,defaultSubmitUrl,languages,additionalProperties. -
toString
Prints the immutable valueMetadatawith attribute values. -
copyOf
Creates an immutable copy of aForm.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 forImmutableFormMetadata.ImmutableFormMetadata.builder() .label(String | null) // nullablelabel.created(Date | null) // nullablecreated.lastSaved(Date | null) // nullablelastSaved.valid(Boolean | null) // nullablevalid.creator(String | null) // nullablecreator.tenantId(String | null) // nullabletenantId.savedBy(String | null) // nullablesavedBy.addLabels|addAllLabels(String) //labelselements .defaultSubmitUrl(String | null) // nullabledefaultSubmitUrl.addLanguages|addAllLanguages(String) //languageselements .putAdditionalProperties|putAllAdditionalProperties(String => Object) //additionalPropertiesmappings .build();- Returns:
- A new ImmutableFormMetadata builder
-