Package io.dialob.client.api
Class ImmutableCreateComposerRelease
- java.lang.Object
-
- io.dialob.client.api.ImmutableCreateComposerRelease
-
- All Implemented Interfaces:
DialobComposer.CreateComposerRelease,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCreateComposerRelease extends Object implements DialobComposer.CreateComposerRelease
Immutable implementation ofDialobComposer.CreateComposerRelease.Use the builder to create immutable instances:
ImmutableCreateComposerRelease.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCreateComposerRelease.BuilderBuilds instances of typeImmutableCreateComposerRelease.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCreateComposerRelease.Builderbuilder()Creates a builder forImmutableCreateComposerRelease.static ImmutableCreateComposerReleasecopyOf(DialobComposer.CreateComposerRelease instance)Creates an immutable copy of aDialobComposer.CreateComposerReleasevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCreateComposerReleasethat have equal attribute values.StringgetDescription()StringgetName()inthashCode()Computes a hash code from attributes:name,description.StringtoString()Prints the immutable valueCreateComposerReleasewith attribute values.ImmutableCreateComposerReleasewithDescription(String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableCreateComposerReleasewithName(String value)Copy the current immutable object by setting a value for thenameattribute.
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceDialobComposer.CreateComposerRelease- Returns:
- The value of the
nameattribute
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceDialobComposer.CreateComposerRelease- Returns:
- The value of the
descriptionattribute
-
withName
public final ImmutableCreateComposerRelease 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 ImmutableCreateComposerRelease 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
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableCreateComposerReleasethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,description.
-
toString
public String toString()
Prints the immutable valueCreateComposerReleasewith attribute values.
-
copyOf
public static ImmutableCreateComposerRelease copyOf(DialobComposer.CreateComposerRelease instance)
Creates an immutable copy of aDialobComposer.CreateComposerReleasevalue. 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 CreateComposerRelease instance
-
builder
public static ImmutableCreateComposerRelease.Builder builder()
Creates a builder forImmutableCreateComposerRelease.ImmutableCreateComposerRelease.builder() .name(String) // requiredname.description(String) // requireddescription.build();- Returns:
- A new ImmutableCreateComposerRelease builder
-
-