Package io.dialob.client.api
Class ImmutableUpdateStoreEntity
- java.lang.Object
-
- io.dialob.client.api.ImmutableUpdateStoreEntity
-
- All Implemented Interfaces:
DialobStore.StoreCommand,DialobStore.UpdateStoreEntity,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableUpdateStoreEntity extends Object implements DialobStore.UpdateStoreEntity
Immutable implementation ofDialobStore.UpdateStoreEntity.Use the builder to create immutable instances:
ImmutableUpdateStoreEntity.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableUpdateStoreEntity.BuilderBuilds instances of typeImmutableUpdateStoreEntity.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableUpdateStoreEntity.Builderbuilder()Creates a builder forImmutableUpdateStoreEntity.static ImmutableUpdateStoreEntitycopyOf(DialobStore.UpdateStoreEntity instance)Creates an immutable copy of aDialobStore.UpdateStoreEntityvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableUpdateStoreEntitythat have equal attribute values.StringgetBody()DialobDocument.DocumentTypegetBodyType()StringgetId()StringgetVersion()inthashCode()Computes a hash code from attributes:bodyType,id,version,body.StringtoString()Prints the immutable valueUpdateStoreEntitywith attribute values.ImmutableUpdateStoreEntitywithBody(String value)Copy the current immutable object by setting a value for thebodyattribute.ImmutableUpdateStoreEntitywithBodyType(DialobDocument.DocumentType value)Copy the current immutable object by setting a value for thebodyTypeattribute.ImmutableUpdateStoreEntitywithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableUpdateStoreEntitywithVersion(String value)Copy the current immutable object by setting a value for theversionattribute.
-
-
-
Method Detail
-
getBodyType
public DialobDocument.DocumentType getBodyType()
- Specified by:
getBodyTypein interfaceDialobStore.StoreCommand- Returns:
- The value of the
bodyTypeattribute
-
getId
public String getId()
- Specified by:
getIdin interfaceDialobStore.UpdateStoreEntity- Returns:
- The value of the
idattribute
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceDialobStore.UpdateStoreEntity- Returns:
- The value of the
versionattribute
-
getBody
public String getBody()
- Specified by:
getBodyin interfaceDialobStore.UpdateStoreEntity- Returns:
- The value of the
bodyattribute
-
withBodyType
public final ImmutableUpdateStoreEntity 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
-
withId
public final ImmutableUpdateStoreEntity 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
-
withVersion
public final ImmutableUpdateStoreEntity withVersion(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- Returns:
- A modified copy of the
thisobject
-
withBody
public final ImmutableUpdateStoreEntity withBody(String value)
Copy the current immutable object by setting a value for thebodyattribute. An equals check 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 ofImmutableUpdateStoreEntitythat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:bodyType,id,version,body.
-
toString
public String toString()
Prints the immutable valueUpdateStoreEntitywith attribute values.
-
copyOf
public static ImmutableUpdateStoreEntity copyOf(DialobStore.UpdateStoreEntity instance)
Creates an immutable copy of aDialobStore.UpdateStoreEntityvalue. 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 UpdateStoreEntity instance
-
builder
public static ImmutableUpdateStoreEntity.Builder builder()
Creates a builder forImmutableUpdateStoreEntity.ImmutableUpdateStoreEntity.builder() .bodyType(io.dialob.client.api.DialobDocument.DocumentType) // requiredbodyType.id(String) // requiredid.version(String) // requiredversion.body(String) // requiredbody.build();- Returns:
- A new ImmutableUpdateStoreEntity builder
-
-