Package io.dialob.client.api
Class ImmutableFormReleaseValueDocument
- java.lang.Object
-
- io.dialob.client.api.ImmutableFormReleaseValueDocument
-
- All Implemented Interfaces:
DialobDocument.FormReleaseValueDocument,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFormReleaseValueDocument extends Object implements DialobDocument.FormReleaseValueDocument
Immutable implementation ofDialobDocument.FormReleaseValueDocument.Use the builder to create immutable instances:
ImmutableFormReleaseValueDocument.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableFormReleaseValueDocument.BuilderBuilds instances of typeImmutableFormReleaseValueDocument.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableFormReleaseValueDocument.Builderbuilder()Creates a builder forImmutableFormReleaseValueDocument.static ImmutableFormReleaseValueDocumentcopyOf(DialobDocument.FormReleaseValueDocument instance)Creates an immutable copy of aDialobDocument.FormReleaseValueDocumentvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableFormReleaseValueDocumentthat have equal attribute values.DialobDocument.DocumentTypegetBodyType()StringgetCommands()StringgetDescription()StringgetHash()inthashCode()Computes a hash code from attributes:hash,bodyType,description,commands.StringtoString()Prints the immutable valueFormReleaseValueDocumentwith attribute values.ImmutableFormReleaseValueDocumentwithBodyType(DialobDocument.DocumentType value)Copy the current immutable object by setting a value for thebodyTypeattribute.ImmutableFormReleaseValueDocumentwithCommands(String value)Copy the current immutable object by setting a value for thecommandsattribute.ImmutableFormReleaseValueDocumentwithDescription(String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableFormReleaseValueDocumentwithHash(String value)Copy the current immutable object by setting a value for thehashattribute.
-
-
-
Method Detail
-
getHash
public String getHash()
- Specified by:
getHashin interfaceDialobDocument.FormReleaseValueDocument- Returns:
- The value of the
hashattribute
-
getBodyType
public DialobDocument.DocumentType getBodyType()
- Specified by:
getBodyTypein interfaceDialobDocument.FormReleaseValueDocument- Returns:
- The value of the
bodyTypeattribute
-
getDescription
@Nullable public String getDescription()
- Specified by:
getDescriptionin interfaceDialobDocument.FormReleaseValueDocument- Returns:
- The value of the
descriptionattribute
-
getCommands
public String getCommands()
- Specified by:
getCommandsin interfaceDialobDocument.FormReleaseValueDocument- Returns:
- The value of the
commandsattribute
-
withHash
public final ImmutableFormReleaseValueDocument withHash(String value)
Copy the current immutable object by setting a value for thehashattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hash- Returns:
- A modified copy of the
thisobject
-
withBodyType
public final ImmutableFormReleaseValueDocument withBodyType(DialobDocument.DocumentType value)
Copy the current immutable object by setting a value for thebodyTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for bodyType- Returns:
- A modified copy of the
thisobject
-
withDescription
public final ImmutableFormReleaseValueDocument 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
-
withCommands
public final ImmutableFormReleaseValueDocument withCommands(String value)
Copy the current immutable object by setting a value for thecommandsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for commands- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableFormReleaseValueDocumentthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:hash,bodyType,description,commands.
-
toString
public String toString()
Prints the immutable valueFormReleaseValueDocumentwith attribute values.
-
copyOf
public static ImmutableFormReleaseValueDocument copyOf(DialobDocument.FormReleaseValueDocument instance)
Creates an immutable copy of aDialobDocument.FormReleaseValueDocumentvalue. 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 FormReleaseValueDocument instance
-
builder
public static ImmutableFormReleaseValueDocument.Builder builder()
Creates a builder forImmutableFormReleaseValueDocument.ImmutableFormReleaseValueDocument.builder() .hash(String) // requiredhash.bodyType(io.dialob.client.api.DialobDocument.DocumentType) // requiredbodyType.description(String | null) // nullabledescription.commands(String) // requiredcommands.build();- Returns:
- A new ImmutableFormReleaseValueDocument builder
-
-