Package io.dialob.client.api
Class ImmutableFormRevisionEntryDocument
- java.lang.Object
-
- io.dialob.client.api.ImmutableFormRevisionEntryDocument
-
- All Implemented Interfaces:
DialobDocument.FormRevisionEntryDocument,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFormRevisionEntryDocument extends Object implements DialobDocument.FormRevisionEntryDocument
Immutable implementation ofDialobDocument.FormRevisionEntryDocument.Use the builder to create immutable instances:
ImmutableFormRevisionEntryDocument.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableFormRevisionEntryDocument.BuilderBuilds instances of typeImmutableFormRevisionEntryDocument.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableFormRevisionEntryDocument.Builderbuilder()Creates a builder forImmutableFormRevisionEntryDocument.static ImmutableFormRevisionEntryDocumentcopyOf(DialobDocument.FormRevisionEntryDocument instance)Creates an immutable copy of aDialobDocument.FormRevisionEntryDocumentvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableFormRevisionEntryDocumentthat have equal attribute values.LocalDateTimegetCreated()StringgetDescription()StringgetFormId()StringgetId()StringgetRevisionName()LocalDateTimegetUpdated()inthashCode()Computes a hash code from attributes:id,revisionName,formId,created,updated,description.StringtoString()Prints the immutable valueFormRevisionEntryDocumentwith attribute values.ImmutableFormRevisionEntryDocumentwithCreated(LocalDateTime value)Copy the current immutable object by setting a value for thecreatedattribute.ImmutableFormRevisionEntryDocumentwithDescription(String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableFormRevisionEntryDocumentwithFormId(String value)Copy the current immutable object by setting a value for theformIdattribute.ImmutableFormRevisionEntryDocumentwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableFormRevisionEntryDocumentwithRevisionName(String value)Copy the current immutable object by setting a value for therevisionNameattribute.ImmutableFormRevisionEntryDocumentwithUpdated(LocalDateTime value)Copy the current immutable object by setting a value for theupdatedattribute.
-
-
-
Method Detail
-
getId
@Nullable public String getId()
- Specified by:
getIdin interfaceDialobDocument.FormRevisionEntryDocument- Returns:
- The value of the
idattribute
-
getRevisionName
public String getRevisionName()
- Specified by:
getRevisionNamein interfaceDialobDocument.FormRevisionEntryDocument- Returns:
- The value of the
revisionNameattribute
-
getFormId
public String getFormId()
- Specified by:
getFormIdin interfaceDialobDocument.FormRevisionEntryDocument- Returns:
- The value of the
formIdattribute
-
getCreated
public LocalDateTime getCreated()
- Specified by:
getCreatedin interfaceDialobDocument.FormRevisionEntryDocument- Returns:
- The value of the
createdattribute
-
getUpdated
public LocalDateTime getUpdated()
- Specified by:
getUpdatedin interfaceDialobDocument.FormRevisionEntryDocument- Returns:
- The value of the
updatedattribute
-
getDescription
@Nullable public String getDescription()
- Specified by:
getDescriptionin interfaceDialobDocument.FormRevisionEntryDocument- Returns:
- The value of the
descriptionattribute
-
withId
public final ImmutableFormRevisionEntryDocument 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
-
withRevisionName
public final ImmutableFormRevisionEntryDocument withRevisionName(String value)
Copy the current immutable object by setting a value for therevisionNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for revisionName- Returns:
- A modified copy of the
thisobject
-
withFormId
public final ImmutableFormRevisionEntryDocument 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- Returns:
- A modified copy of the
thisobject
-
withCreated
public final ImmutableFormRevisionEntryDocument 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
-
withUpdated
public final ImmutableFormRevisionEntryDocument 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
-
withDescription
public final ImmutableFormRevisionEntryDocument 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
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableFormRevisionEntryDocumentthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,revisionName,formId,created,updated,description.
-
toString
public String toString()
Prints the immutable valueFormRevisionEntryDocumentwith attribute values.
-
copyOf
public static ImmutableFormRevisionEntryDocument copyOf(DialobDocument.FormRevisionEntryDocument instance)
Creates an immutable copy of aDialobDocument.FormRevisionEntryDocumentvalue. 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 FormRevisionEntryDocument instance
-
builder
public static ImmutableFormRevisionEntryDocument.Builder builder()
Creates a builder forImmutableFormRevisionEntryDocument.ImmutableFormRevisionEntryDocument.builder() .id(String | null) // nullableid.revisionName(String) // requiredrevisionName.formId(String) // requiredformId.created(java.time.LocalDateTime) // requiredcreated.updated(java.time.LocalDateTime) // requiredupdated.description(String | null) // nullabledescription.build();- Returns:
- A new ImmutableFormRevisionEntryDocument builder
-
-