Package io.dialob.client.api
Class ImmutableDeleteStoreEntity
- java.lang.Object
-
- io.dialob.client.api.ImmutableDeleteStoreEntity
-
- All Implemented Interfaces:
DialobStore.DeleteStoreEntity,DialobStore.StoreCommand,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDeleteStoreEntity extends Object implements DialobStore.DeleteStoreEntity
Immutable implementation ofDialobStore.DeleteStoreEntity.Use the builder to create immutable instances:
ImmutableDeleteStoreEntity.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableDeleteStoreEntity.BuilderBuilds instances of typeImmutableDeleteStoreEntity.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableDeleteStoreEntity.Builderbuilder()Creates a builder forImmutableDeleteStoreEntity.static ImmutableDeleteStoreEntitycopyOf(DialobStore.DeleteStoreEntity instance)Creates an immutable copy of aDialobStore.DeleteStoreEntityvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableDeleteStoreEntitythat have equal attribute values.DialobDocument.DocumentTypegetBodyType()StringgetId()StringgetVersion()inthashCode()Computes a hash code from attributes:bodyType,id,version.StringtoString()Prints the immutable valueDeleteStoreEntitywith attribute values.ImmutableDeleteStoreEntitywithBodyType(DialobDocument.DocumentType value)Copy the current immutable object by setting a value for thebodyTypeattribute.ImmutableDeleteStoreEntitywithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableDeleteStoreEntitywithVersion(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.DeleteStoreEntity- Returns:
- The value of the
idattribute
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceDialobStore.DeleteStoreEntity- Returns:
- The value of the
versionattribute
-
withBodyType
public final ImmutableDeleteStoreEntity 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 ImmutableDeleteStoreEntity 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 ImmutableDeleteStoreEntity 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
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableDeleteStoreEntitythat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:bodyType,id,version.
-
toString
public String toString()
Prints the immutable valueDeleteStoreEntitywith attribute values.
-
copyOf
public static ImmutableDeleteStoreEntity copyOf(DialobStore.DeleteStoreEntity instance)
Creates an immutable copy of aDialobStore.DeleteStoreEntityvalue. 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 DeleteStoreEntity instance
-
builder
public static ImmutableDeleteStoreEntity.Builder builder()
Creates a builder forImmutableDeleteStoreEntity.ImmutableDeleteStoreEntity.builder() .bodyType(io.dialob.client.api.DialobDocument.DocumentType) // requiredbodyType.id(String) // requiredid.version(String) // requiredversion.build();- Returns:
- A new ImmutableDeleteStoreEntity builder
-
-