Package io.dialob.client.api
Class ImmutableCreate
- java.lang.Object
-
- io.dialob.client.api.ImmutableCreate
-
- All Implemented Interfaces:
DialobComposer.Create,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCreate extends Object implements DialobComposer.Create
Immutable implementation ofDialobComposer.Create.Use the builder to create immutable instances:
ImmutableCreate.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCreate.BuilderBuilds instances of typeImmutableCreate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCreate.Builderbuilder()Creates a builder forImmutableCreate.static ImmutableCreatecopyOf(DialobComposer.Create instance)Creates an immutable copy of aDialobComposer.Createvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCreatethat have equal attribute values.io.dialob.api.form.FormgetBody()inthashCode()Computes a hash code from attributes:body.StringtoString()Prints the immutable valueCreatewith attribute values.ImmutableCreatewithBody(io.dialob.api.form.Form value)Copy the current immutable object by setting a value for thebodyattribute.
-
-
-
Method Detail
-
getBody
public io.dialob.api.form.Form getBody()
- Specified by:
getBodyin interfaceDialobComposer.Create- Returns:
- The value of the
bodyattribute
-
withBody
public final ImmutableCreate withBody(io.dialob.api.form.Form value)
Copy the current immutable object by setting a value for thebodyattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for body- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableCreatethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:body.
-
toString
public String toString()
Prints the immutable valueCreatewith attribute values.
-
copyOf
public static ImmutableCreate copyOf(DialobComposer.Create instance)
Creates an immutable copy of aDialobComposer.Createvalue. 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 Create instance
-
builder
public static ImmutableCreate.Builder builder()
Creates a builder forImmutableCreate.ImmutableCreate.builder() .body(io.dialob.api.form.Form) // requiredbody.build();- Returns:
- A new ImmutableCreate builder
-
-