Package io.dialob.client.api
Class ImmutableFormDocument
- java.lang.Object
-
- io.dialob.client.api.ImmutableFormDocument
-
- All Implemented Interfaces:
DialobDocument,DialobDocument.FormDocument,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFormDocument extends Object implements DialobDocument.FormDocument
Immutable implementation ofDialobDocument.FormDocument.Use the builder to create immutable instances:
ImmutableFormDocument.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableFormDocument.BuilderBuilds instances of typeImmutableFormDocument.-
Nested classes/interfaces inherited from interface io.dialob.client.api.DialobDocument
DialobDocument.DocumentType, DialobDocument.FormDocument, DialobDocument.FormReleaseDocument, DialobDocument.FormReleaseValueDocument, DialobDocument.FormRevisionDocument, DialobDocument.FormRevisionEntryDocument
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableFormDocument.Builderbuilder()Creates a builder forImmutableFormDocument.static ImmutableFormDocumentcopyOf(DialobDocument.FormDocument instance)Creates an immutable copy of aDialobDocument.FormDocumentvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableFormDocumentthat have equal attribute values.LocalDateTimegetCreated()io.dialob.api.form.FormgetData()StringgetDescription()StringgetId()StringgetName()DialobDocument.DocumentTypegetType()LocalDateTimegetUpdated()StringgetVersion()inthashCode()Computes a hash code from attributes:id,version,description,created,data,updated,type,name.StringtoString()Prints the immutable valueFormDocumentwith attribute values.ImmutableFormDocumentwithCreated(LocalDateTime value)Copy the current immutable object by setting a value for thecreatedattribute.ImmutableFormDocumentwithData(io.dialob.api.form.Form value)Copy the current immutable object by setting a value for thedataattribute.ImmutableFormDocumentwithDescription(String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableFormDocumentwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableFormDocumentwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableFormDocumentwithType(DialobDocument.DocumentType value)Copy the current immutable object by setting a value for thetypeattribute.ImmutableFormDocumentwithUpdated(LocalDateTime value)Copy the current immutable object by setting a value for theupdatedattribute.ImmutableFormDocumentwithVersion(String value)Copy the current immutable object by setting a value for theversionattribute.
-
-
-
Method Detail
-
getId
@Nullable public String getId()
- Specified by:
getIdin interfaceDialobDocument- Returns:
- The value of the
idattribute
-
getVersion
@Nullable public String getVersion()
- Specified by:
getVersionin interfaceDialobDocument- Returns:
- The value of the
versionattribute
-
getDescription
@Nullable public String getDescription()
- Specified by:
getDescriptionin interfaceDialobDocument- Returns:
- The value of the
descriptionattribute
-
getCreated
public LocalDateTime getCreated()
- Specified by:
getCreatedin interfaceDialobDocument- Returns:
- The value of the
createdattribute
-
getData
public io.dialob.api.form.Form getData()
- Specified by:
getDatain interfaceDialobDocument.FormDocument- Returns:
- The value of the
dataattribute
-
getUpdated
public LocalDateTime getUpdated()
- Specified by:
getUpdatedin interfaceDialobDocument.FormDocument- Returns:
- The value of the
updatedattribute
-
getType
public DialobDocument.DocumentType getType()
- Specified by:
getTypein interfaceDialobDocument- Specified by:
getTypein interfaceDialobDocument.FormDocument- Returns:
- The value of the
typeattribute
-
getName
public String getName()
- Specified by:
getNamein interfaceDialobDocument- Specified by:
getNamein interfaceDialobDocument.FormDocument- Returns:
- The value of the
nameattribute
-
withId
public final ImmutableFormDocument withId(@Nullable String value)
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id (can benull)- Returns:
- A modified copy of the
thisobject
-
withVersion
public final ImmutableFormDocument withVersion(@Nullable String value)
Copy the current immutable object by setting a value for theversionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for version (can benull)- Returns:
- A modified copy of the
thisobject
-
withDescription
public final ImmutableFormDocument withDescription(@Nullable String value)
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description (can benull)- Returns:
- A modified copy of the
thisobject
-
withCreated
public final ImmutableFormDocument withCreated(LocalDateTime 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- Returns:
- A modified copy of the
thisobject
-
withData
public final ImmutableFormDocument withData(io.dialob.api.form.Form value)
Copy the current immutable object by setting a value for thedataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for data- Returns:
- A modified copy of the
thisobject
-
withUpdated
public final ImmutableFormDocument withUpdated(LocalDateTime value)
Copy the current immutable object by setting a value for theupdatedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for updated- Returns:
- A modified copy of the
thisobject
-
withType
public final ImmutableFormDocument withType(DialobDocument.DocumentType value)
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
withName
public final ImmutableFormDocument withName(String value)
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableFormDocumentthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,version,description,created,data,updated,type,name.
-
toString
public String toString()
Prints the immutable valueFormDocumentwith attribute values.
-
copyOf
public static ImmutableFormDocument copyOf(DialobDocument.FormDocument instance)
Creates an immutable copy of aDialobDocument.FormDocumentvalue. 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 FormDocument instance
-
builder
public static ImmutableFormDocument.Builder builder()
Creates a builder forImmutableFormDocument.ImmutableFormDocument.builder() .id(String | null) // nullableid.version(String | null) // nullableversion.description(String | null) // nullabledescription.created(java.time.LocalDateTime) // requiredcreated.data(io.dialob.api.form.Form) // requireddata.updated(java.time.LocalDateTime) // requiredupdated.type(io.dialob.client.api.DialobDocument.DocumentType) // optionaltype.name(String) // optionalname.build();- Returns:
- A new ImmutableFormDocument builder
-
-