Class BlockElementAction
java.lang.Object
com.hubspot.slack.client.models.interaction.BlockElementAction
- All Implemented Interfaces:
BlockElementActionIF
@Generated(from="BlockElementActionIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class BlockElementAction
extends Object
implements BlockElementActionIF
Immutable implementation of
BlockElementActionIF.
Use the builder to create immutable instances:
BlockElementAction.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockElementAction.Builderbuilder()Creates a builder forBlockElementAction.static BlockElementActioncopyOf(BlockElementActionIF instance) Creates an immutable copy of aBlockElementActionIFvalue.booleanThis instance is equal to all instances ofBlockElementActionthat have equal attribute values.inthashCode()Computes a hash code from attributes:blockId,actionId,element,selectedValue,selectedDate,actionTs.toString()Prints the immutable valueBlockElementActionwith attribute values.final BlockElementActionwithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final BlockElementActionwithActionTs(String value) Copy the current immutable object by setting a present value for the optionalactionTsattribute.final BlockElementActionwithActionTs(Optional<String> optional) Copy the current immutable object by setting an optional value for theactionTsattribute.final BlockElementActionwithBlockId(String value) Copy the current immutable object by setting a value for theblockIdattribute.final BlockElementActionwithElement(BlockElement value) Copy the current immutable object by setting a value for theelementattribute.final BlockElementActionwithSelectedDate(LocalDate value) Copy the current immutable object by setting a present value for the optionalselectedDateattribute.final BlockElementActionwithSelectedDate(Optional<? extends LocalDate> optional) Copy the current immutable object by setting an optional value for theselectedDateattribute.final BlockElementActionwithSelectedValue(String value) Copy the current immutable object by setting a present value for the optionalselectedValueattribute.final BlockElementActionwithSelectedValue(Optional<String> optional) Copy the current immutable object by setting an optional value for theselectedValueattribute.
-
Method Details
-
getBlockId
- Specified by:
getBlockIdin interfaceBlockElementActionIF- Returns:
- The value of the
blockIdattribute
-
getActionId
- Specified by:
getActionIdin interfaceBlockElementActionIF- Returns:
- The value of the
actionIdattribute
-
getElement
- Specified by:
getElementin interfaceBlockElementActionIF- Returns:
- The value of the
elementattribute
-
getSelectedValue
- Specified by:
getSelectedValuein interfaceBlockElementActionIF- Returns:
- The value of the
selectedValueattribute
-
getSelectedDate
- Specified by:
getSelectedDatein interfaceBlockElementActionIF- Returns:
- The value of the
selectedDateattribute
-
getActionTs
- Specified by:
getActionTsin interfaceBlockElementActionIF- Returns:
- The value of the
actionTsattribute
-
withBlockId
Copy the current immutable object by setting a value for theblockIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for blockId- Returns:
- A modified copy or the
thisobject
-
withActionId
Copy the current immutable object by setting a value for theactionIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for actionId- Returns:
- A modified copy or the
thisobject
-
withElement
Copy the current immutable object by setting a value for theelementattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for element- Returns:
- A modified copy or the
thisobject
-
withSelectedValue
Copy the current immutable object by setting a present value for the optionalselectedValueattribute.- Parameters:
value- The value for selectedValue,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withSelectedValue
Copy the current immutable object by setting an optional value for theselectedValueattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for selectedValue- Returns:
- A modified copy or
thisif not changed
-
withSelectedDate
Copy the current immutable object by setting a present value for the optionalselectedDateattribute.- Parameters:
value- The value for selectedDate,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withSelectedDate
Copy the current immutable object by setting an optional value for theselectedDateattribute. 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 selectedDate- Returns:
- A modified copy or
thisif not changed
-
withActionTs
Copy the current immutable object by setting a present value for the optionalactionTsattribute.- Parameters:
value- The value for actionTs,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withActionTs
Copy the current immutable object by setting an optional value for theactionTsattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for actionTs- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofBlockElementActionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:blockId,actionId,element,selectedValue,selectedDate,actionTs. -
toString
Prints the immutable valueBlockElementActionwith attribute values. -
copyOf
Creates an immutable copy of aBlockElementActionIFvalue. 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 BlockElementAction instance
-
builder
Creates a builder forBlockElementAction.BlockElementAction.builder() .setBlockId(String) // requiredblockId.setActionId(String) // requiredactionId.setElement(com.hubspot.slack.client.models.blocks.elements.BlockElement) // requiredelement.setSelectedValue(Optional<String>) // optionalselectedValue.setSelectedDate(Optional<java.time.LocalDate>) // optionalselectedDate.setActionTs(Optional<String>) // optionalactionTs.build();- Returns:
- A new BlockElementAction builder
-