Package io.dialob.client.api
Class ImmutableFormRevisionDocument
- java.lang.Object
-
- io.dialob.client.api.ImmutableFormRevisionDocument
-
- All Implemented Interfaces:
DialobDocument,DialobDocument.FormRevisionDocument,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFormRevisionDocument extends Object implements DialobDocument.FormRevisionDocument
Immutable implementation ofDialobDocument.FormRevisionDocument.Use the builder to create immutable instances:
ImmutableFormRevisionDocument.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableFormRevisionDocument.BuilderBuilds instances of typeImmutableFormRevisionDocument.-
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 ImmutableFormRevisionDocument.Builderbuilder()Creates a builder forImmutableFormRevisionDocument.static ImmutableFormRevisionDocumentcopyOf(DialobDocument.FormRevisionDocument instance)Creates an immutable copy of aDialobDocument.FormRevisionDocumentvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableFormRevisionDocumentthat have equal attribute values.LocalDateTimegetCreated()StringgetDescription()com.google.common.collect.ImmutableList<DialobDocument.FormRevisionEntryDocument>getEntries()StringgetHead()StringgetId()StringgetName()DialobDocument.DocumentTypegetType()LocalDateTimegetUpdated()StringgetVersion()inthashCode()Computes a hash code from attributes:id,version,description,name,created,head,updated,entries,type.StringtoString()Prints the immutable valueFormRevisionDocumentwith attribute values.ImmutableFormRevisionDocumentwithCreated(LocalDateTime value)Copy the current immutable object by setting a value for thecreatedattribute.ImmutableFormRevisionDocumentwithDescription(String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableFormRevisionDocumentwithEntries(DialobDocument.FormRevisionEntryDocument... elements)Copy the current immutable object with elements that replace the content ofentries.ImmutableFormRevisionDocumentwithEntries(Iterable<? extends DialobDocument.FormRevisionEntryDocument> elements)Copy the current immutable object with elements that replace the content ofentries.ImmutableFormRevisionDocumentwithHead(String value)Copy the current immutable object by setting a value for theheadattribute.ImmutableFormRevisionDocumentwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableFormRevisionDocumentwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableFormRevisionDocumentwithType(DialobDocument.DocumentType value)Copy the current immutable object by setting a value for thetypeattribute.ImmutableFormRevisionDocumentwithUpdated(LocalDateTime value)Copy the current immutable object by setting a value for theupdatedattribute.ImmutableFormRevisionDocumentwithVersion(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
-
getName
public String getName()
- Specified by:
getNamein interfaceDialobDocument- Returns:
- The value of the
nameattribute
-
getCreated
public LocalDateTime getCreated()
- Specified by:
getCreatedin interfaceDialobDocument- Returns:
- The value of the
createdattribute
-
getHead
public String getHead()
- Specified by:
getHeadin interfaceDialobDocument.FormRevisionDocument- Returns:
- The value of the
headattribute
-
getUpdated
public LocalDateTime getUpdated()
- Specified by:
getUpdatedin interfaceDialobDocument.FormRevisionDocument- Returns:
- The value of the
updatedattribute
-
getEntries
public com.google.common.collect.ImmutableList<DialobDocument.FormRevisionEntryDocument> getEntries()
- Specified by:
getEntriesin interfaceDialobDocument.FormRevisionDocument- Returns:
- The value of the
entriesattribute
-
getType
public DialobDocument.DocumentType getType()
- Specified by:
getTypein interfaceDialobDocument- Specified by:
getTypein interfaceDialobDocument.FormRevisionDocument- Returns:
- The value of the
typeattribute
-
withId
public final ImmutableFormRevisionDocument 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 ImmutableFormRevisionDocument 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 ImmutableFormRevisionDocument 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
-
withName
public final ImmutableFormRevisionDocument 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
-
withCreated
public final ImmutableFormRevisionDocument 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
-
withHead
public final ImmutableFormRevisionDocument withHead(String value)
Copy the current immutable object by setting a value for theheadattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for head- Returns:
- A modified copy of the
thisobject
-
withUpdated
public final ImmutableFormRevisionDocument 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
-
withEntries
public final ImmutableFormRevisionDocument withEntries(DialobDocument.FormRevisionEntryDocument... elements)
Copy the current immutable object with elements that replace the content ofentries.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withEntries
public final ImmutableFormRevisionDocument withEntries(Iterable<? extends DialobDocument.FormRevisionEntryDocument> elements)
Copy the current immutable object with elements that replace the content ofentries. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of entries elements to set- Returns:
- A modified copy of
thisobject
-
withType
public final ImmutableFormRevisionDocument 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
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableFormRevisionDocumentthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,version,description,name,created,head,updated,entries,type.
-
toString
public String toString()
Prints the immutable valueFormRevisionDocumentwith attribute values.
-
copyOf
public static ImmutableFormRevisionDocument copyOf(DialobDocument.FormRevisionDocument instance)
Creates an immutable copy of aDialobDocument.FormRevisionDocumentvalue. 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 FormRevisionDocument instance
-
builder
public static ImmutableFormRevisionDocument.Builder builder()
Creates a builder forImmutableFormRevisionDocument.ImmutableFormRevisionDocument.builder() .id(String | null) // nullableid.version(String | null) // nullableversion.description(String | null) // nullabledescription.name(String) // requiredname.created(java.time.LocalDateTime) // requiredcreated.head(String) // requiredhead.updated(java.time.LocalDateTime) // requiredupdated.addEntries|addAllEntries(io.dialob.client.api.DialobDocument.FormRevisionEntryDocument) //entrieselements .type(io.dialob.client.api.DialobDocument.DocumentType) // optionaltype.build();- Returns:
- A new ImmutableFormRevisionDocument builder
-
-