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 ofForm.Metadata.Use the builder to create immutable instances:
ImmutableFormMetadata.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableFormMetadata.BuilderBuilds instances of typeImmutableFormMetadata.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableFormMetadata.Builderbuilder()Creates a builder forImmutableFormMetadata.static ImmutableFormMetadatacopyOf(Form.Metadata instance)Creates an immutable copy of aForm.Metadatavalue.booleanequals(Object another)This instance is equal to all instances ofImmutableFormMetadatathat have equal attribute values.Map<String,Object>getAdditionalProperties()DategetCreated()StringgetCreator()StringgetDefaultSubmitUrl()StringgetLabel()Set<String>getLabels()Set<String>getLanguages()DategetLastSaved()StringgetSavedBy()StringgetTenantId()BooleangetValid()inthashCode()Computes a hash code from attributes:label,created,lastSaved,valid,creator,tenantId,savedBy,labels,defaultSubmitUrl,languages,additionalProperties.StringtoString()Prints the immutable valueMetadatawith attribute values.ImmutableFormMetadatawithAdditionalProperties(Map<String,? extends Object> entries)Copy the current immutable object by replacing theadditionalPropertiesmap with the specified map.ImmutableFormMetadatawithCreated(Date value)Copy the current immutable object by setting a value for thecreatedattribute.ImmutableFormMetadatawithCreator(String value)Copy the current immutable object by setting a value for thecreatorattribute.ImmutableFormMetadatawithDefaultSubmitUrl(String value)Copy the current immutable object by setting a value for thedefaultSubmitUrlattribute.ImmutableFormMetadatawithLabel(String value)Copy the current immutable object by setting a value for thelabelattribute.ImmutableFormMetadatawithLabels(Iterable<String> elements)Copy the current immutable object with elements that replace the content oflabels.ImmutableFormMetadatawithLabels(String... elements)Copy the current immutable object with elements that replace the content oflabels.ImmutableFormMetadatawithLanguages(Iterable<String> elements)Copy the current immutable object with elements that replace the content oflanguages.ImmutableFormMetadatawithLanguages(String... elements)Copy the current immutable object with elements that replace the content oflanguages.ImmutableFormMetadatawithLastSaved(Date value)Copy the current immutable object by setting a value for thelastSavedattribute.ImmutableFormMetadatawithSavedBy(String value)Copy the current immutable object by setting a value for thesavedByattribute.ImmutableFormMetadatawithTenantId(String value)Copy the current immutable object by setting a value for thetenantIdattribute.ImmutableFormMetadatawithValid(Boolean value)Copy the current immutable object by setting a value for thevalidattribute.
-
-
-
Method Detail
-
getLabel
public String getLabel()
- Specified by:
getLabelin interfaceForm.Metadata- Returns:
- The value of the
labelattribute
-
getCreated
public Date getCreated()
- Specified by:
getCreatedin interfaceForm.Metadata- Returns:
- The value of the
createdattribute
-
getLastSaved
public Date getLastSaved()
- Specified by:
getLastSavedin interfaceForm.Metadata- Returns:
- The value of the
lastSavedattribute
-
getValid
public Boolean getValid()
- Specified by:
getValidin interfaceForm.Metadata- Returns:
- The value of the
validattribute
-
getCreator
public String getCreator()
- Specified by:
getCreatorin interfaceForm.Metadata- Returns:
- The value of the
creatorattribute
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceForm.Metadata- Returns:
- The value of the
tenantIdattribute
-
getSavedBy
public String getSavedBy()
- Specified by:
getSavedByin interfaceForm.Metadata- Returns:
- The value of the
savedByattribute
-
getLabels
public Set<String> getLabels()
- Specified by:
getLabelsin interfaceForm.Metadata- Returns:
- The value of the
labelsattribute
-
getDefaultSubmitUrl
public String getDefaultSubmitUrl()
- Specified by:
getDefaultSubmitUrlin interfaceForm.Metadata- Returns:
- The value of the
defaultSubmitUrlattribute
-
getLanguages
public Set<String> getLanguages()
- Specified by:
getLanguagesin interfaceForm.Metadata- Returns:
- The value of the
languagesattribute
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
- Specified by:
getAdditionalPropertiesin interfaceForm.Metadata- Returns:
- The value of the
additionalPropertiesattribute
-
withLabel
public final ImmutableFormMetadata 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
-
withCreated
public final ImmutableFormMetadata 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
-
withLastSaved
public final ImmutableFormMetadata withLastSaved(Date value)
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
public final ImmutableFormMetadata withValid(Boolean value)
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
public final ImmutableFormMetadata 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
-
withTenantId
public final ImmutableFormMetadata 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
-
withSavedBy
public final ImmutableFormMetadata withSavedBy(String value)
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
public final ImmutableFormMetadata withLabels(String... elements)
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
public final ImmutableFormMetadata withLabels(Iterable<String> elements)
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
public final ImmutableFormMetadata withDefaultSubmitUrl(String value)
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
public final ImmutableFormMetadata withLanguages(String... elements)
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
public final ImmutableFormMetadata withLanguages(Iterable<String> elements)
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
public final ImmutableFormMetadata 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 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
public String toString()
Prints the immutable valueMetadatawith attribute values.
-
copyOf
public static ImmutableFormMetadata copyOf(Form.Metadata instance)
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
public static ImmutableFormMetadata.Builder 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
-
-