Package io.dialob.client.api
Class ImmutableComposerReleaseState
- java.lang.Object
-
- io.dialob.client.api.ImmutableComposerReleaseState
-
- All Implemented Interfaces:
DialobComposer.ComposerReleaseState,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableComposerReleaseState extends Object implements DialobComposer.ComposerReleaseState
Immutable implementation ofDialobComposer.ComposerReleaseState.Use the builder to create immutable instances:
ImmutableComposerReleaseState.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableComposerReleaseState.BuilderBuilds instances of typeImmutableComposerReleaseState.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableComposerReleaseState.Builderbuilder()Creates a builder forImmutableComposerReleaseState.static ImmutableComposerReleaseStatecopyOf(DialobComposer.ComposerReleaseState instance)Creates an immutable copy of aDialobComposer.ComposerReleaseStatevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableComposerReleaseStatethat have equal attribute values.StringgetContent()StringgetDescription()StringgetHash()StringgetId()StringgetName()inthashCode()Computes a hash code from attributes:id,name,description,hash,content.StringtoString()Prints the immutable valueComposerReleaseStatewith attribute values.ImmutableComposerReleaseStatewithContent(String value)Copy the current immutable object by setting a value for thecontentattribute.ImmutableComposerReleaseStatewithDescription(String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableComposerReleaseStatewithHash(String value)Copy the current immutable object by setting a value for thehashattribute.ImmutableComposerReleaseStatewithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableComposerReleaseStatewithName(String value)Copy the current immutable object by setting a value for thenameattribute.
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceDialobComposer.ComposerReleaseState- Returns:
- The value of the
idattribute
-
getName
public String getName()
- Specified by:
getNamein interfaceDialobComposer.ComposerReleaseState- Returns:
- The value of the
nameattribute
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceDialobComposer.ComposerReleaseState- Returns:
- The value of the
descriptionattribute
-
getHash
public String getHash()
- Specified by:
getHashin interfaceDialobComposer.ComposerReleaseState- Returns:
- The value of the
hashattribute
-
getContent
public String getContent()
- Specified by:
getContentin interfaceDialobComposer.ComposerReleaseState- Returns:
- The value of the
contentattribute
-
withId
public final ImmutableComposerReleaseState withId(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- Returns:
- A modified copy of the
thisobject
-
withName
public final ImmutableComposerReleaseState 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
-
withDescription
public final ImmutableComposerReleaseState withDescription(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- Returns:
- A modified copy of the
thisobject
-
withHash
public final ImmutableComposerReleaseState 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
-
withContent
public final ImmutableComposerReleaseState withContent(String value)
Copy the current immutable object by setting a value for thecontentattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for content- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableComposerReleaseStatethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,name,description,hash,content.
-
toString
public String toString()
Prints the immutable valueComposerReleaseStatewith attribute values.
-
copyOf
public static ImmutableComposerReleaseState copyOf(DialobComposer.ComposerReleaseState instance)
Creates an immutable copy of aDialobComposer.ComposerReleaseStatevalue. 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 ComposerReleaseState instance
-
builder
public static ImmutableComposerReleaseState.Builder builder()
Creates a builder forImmutableComposerReleaseState.ImmutableComposerReleaseState.builder() .id(String) // requiredid.name(String) // requiredname.description(String) // requireddescription.hash(String) // requiredhash.content(String) // requiredcontent.build();- Returns:
- A new ImmutableComposerReleaseState builder
-
-