Package io.dialob.client.api
Class ImmutableFormReleaseDocument
- java.lang.Object
-
- io.dialob.client.api.ImmutableFormReleaseDocument
-
- All Implemented Interfaces:
DialobDocument,DialobDocument.FormReleaseDocument,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFormReleaseDocument extends Object implements DialobDocument.FormReleaseDocument
Immutable implementation ofDialobDocument.FormReleaseDocument.Use the builder to create immutable instances:
ImmutableFormReleaseDocument.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableFormReleaseDocument.BuilderBuilds instances of typeImmutableFormReleaseDocument.-
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 ImmutableFormReleaseDocument.Builderbuilder()Creates a builder forImmutableFormReleaseDocument.static ImmutableFormReleaseDocumentcopyOf(DialobDocument.FormReleaseDocument instance)Creates an immutable copy of aDialobDocument.FormReleaseDocumentvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableFormReleaseDocumentthat have equal attribute values.LocalDateTimegetCreated()StringgetDescription()StringgetId()StringgetName()DialobDocument.DocumentTypegetType()com.google.common.collect.ImmutableList<DialobDocument.FormReleaseValueDocument>getValues()StringgetVersion()inthashCode()Computes a hash code from attributes:id,version,description,name,created,values,type.StringtoString()Prints the immutable valueFormReleaseDocumentwith attribute values.ImmutableFormReleaseDocumentwithCreated(LocalDateTime value)Copy the current immutable object by setting a value for thecreatedattribute.ImmutableFormReleaseDocumentwithDescription(String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableFormReleaseDocumentwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableFormReleaseDocumentwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableFormReleaseDocumentwithType(DialobDocument.DocumentType value)Copy the current immutable object by setting a value for thetypeattribute.ImmutableFormReleaseDocumentwithValues(DialobDocument.FormReleaseValueDocument... elements)Copy the current immutable object with elements that replace the content ofvalues.ImmutableFormReleaseDocumentwithValues(Iterable<? extends DialobDocument.FormReleaseValueDocument> elements)Copy the current immutable object with elements that replace the content ofvalues.ImmutableFormReleaseDocumentwithVersion(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- Specified by:
getCreatedin interfaceDialobDocument.FormReleaseDocument- Returns:
- The value of the
createdattribute
-
getValues
public com.google.common.collect.ImmutableList<DialobDocument.FormReleaseValueDocument> getValues()
- Specified by:
getValuesin interfaceDialobDocument.FormReleaseDocument- Returns:
- The value of the
valuesattribute
-
getType
public DialobDocument.DocumentType getType()
- Specified by:
getTypein interfaceDialobDocument- Specified by:
getTypein interfaceDialobDocument.FormReleaseDocument- Returns:
- The value of the
typeattribute
-
withId
public final ImmutableFormReleaseDocument 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 ImmutableFormReleaseDocument 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 ImmutableFormReleaseDocument 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 ImmutableFormReleaseDocument 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 ImmutableFormReleaseDocument 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
-
withValues
public final ImmutableFormReleaseDocument withValues(DialobDocument.FormReleaseValueDocument... elements)
Copy the current immutable object with elements that replace the content ofvalues.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withValues
public final ImmutableFormReleaseDocument withValues(Iterable<? extends DialobDocument.FormReleaseValueDocument> elements)
Copy the current immutable object with elements that replace the content ofvalues. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of values elements to set- Returns:
- A modified copy of
thisobject
-
withType
public final ImmutableFormReleaseDocument 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 ofImmutableFormReleaseDocumentthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,version,description,name,created,values,type.
-
toString
public String toString()
Prints the immutable valueFormReleaseDocumentwith attribute values.
-
copyOf
public static ImmutableFormReleaseDocument copyOf(DialobDocument.FormReleaseDocument instance)
Creates an immutable copy of aDialobDocument.FormReleaseDocumentvalue. 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 FormReleaseDocument instance
-
builder
public static ImmutableFormReleaseDocument.Builder builder()
Creates a builder forImmutableFormReleaseDocument.ImmutableFormReleaseDocument.builder() .id(String | null) // nullableid.version(String | null) // nullableversion.description(String | null) // nullabledescription.name(String) // requiredname.created(java.time.LocalDateTime) // requiredcreated.addValues|addAllValues(io.dialob.client.api.DialobDocument.FormReleaseValueDocument) //valueselements .type(io.dialob.client.api.DialobDocument.DocumentType) // optionaltype.build();- Returns:
- A new ImmutableFormReleaseDocument builder
-
-