Class StateActionValue
java.lang.Object
com.hubspot.slack.client.models.response.views.StateActionValue
- All Implemented Interfaces:
StateActionValueIF
@Generated(from="StateActionValueIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class StateActionValue
extends Object
implements StateActionValueIF
Immutable implementation of
StateActionValueIF.
Use the builder to create immutable instances:
StateActionValue.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StateActionValue.Builderbuilder()Creates a builder forStateActionValue.static StateActionValuecopyOf(StateActionValueIF instance) Creates an immutable copy of aStateActionValueIFvalue.booleanThis instance is equal to all instances ofStateActionValuethat have equal attribute values.inthashCode()Computes a hash code from attributes:blockElementType,blockElementValue.toString()Prints the immutable valueStateActionValuewith attribute values.final StateActionValuewithBlockElementType(String value) Copy the current immutable object by setting a value for theblockElementTypeattribute.final StateActionValuewithBlockElementValue(Object value) Copy the current immutable object by setting a present value for the optionalblockElementValueattribute.final StateActionValuewithBlockElementValue(Optional<? extends Object> optional) Copy the current immutable object by setting an optional value for theblockElementValueattribute.
-
Method Details
-
getBlockElementType
- Specified by:
getBlockElementTypein interfaceStateActionValueIF- Returns:
- The value of the
blockElementTypeattribute
-
getBlockElementValue
- Specified by:
getBlockElementValuein interfaceStateActionValueIF- Returns:
- The value of the
blockElementValueattribute
-
withBlockElementType
Copy the current immutable object by setting a value for theblockElementTypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for blockElementType- Returns:
- A modified copy or the
thisobject
-
withBlockElementValue
Copy the current immutable object by setting a present value for the optionalblockElementValueattribute.- Parameters:
value- The value for blockElementValue,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withBlockElementValue
Copy the current immutable object by setting an optional value for theblockElementValueattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for blockElementValue- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofStateActionValuethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:blockElementType,blockElementValue. -
toString
Prints the immutable valueStateActionValuewith attribute values. -
copyOf
Creates an immutable copy of aStateActionValueIFvalue. 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 StateActionValue instance
-
builder
Creates a builder forStateActionValue.StateActionValue.builder() .setBlockElementType(String) // requiredblockElementType.setBlockElementValue(Optional<Object>) // optionalblockElementValue.build();- Returns:
- A new StateActionValue builder
-