Class BlockElementAction.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.BlockElementAction.Builder
- Enclosing class:
BlockElementAction
@Generated(from="BlockElementActionIF",
generator="Immutables")
@NotThreadSafe
public static final class BlockElementAction.Builder
extends Object
Builds instances of type
BlockElementAction.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newBlockElementAction.from(BlockElementActionIF instance) Fill a builder with attribute values from the providedBlockElementActionIFinstance.setActionId(String actionId) Initializes the value for theactionIdattribute.setActionTs(String actionTs) Initializes the optional valueactionTsto actionTs.setActionTs(Optional<String> actionTs) Initializes the optional valueactionTsto actionTs.setBlockId(String blockId) Initializes the value for theblockIdattribute.setElement(BlockElement element) Initializes the value for theelementattribute.setSelectedDate(LocalDate selectedDate) Initializes the optional valueselectedDateto selectedDate.setSelectedDate(Optional<? extends LocalDate> selectedDate) Initializes the optional valueselectedDateto selectedDate.setSelectedValue(String selectedValue) Initializes the optional valueselectedValueto selectedValue.setSelectedValue(Optional<String> selectedValue) Initializes the optional valueselectedValueto selectedValue.
-
Method Details
-
from
Fill a builder with attribute values from the providedBlockElementActionIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setBlockId
Initializes the value for theblockIdattribute.- Parameters:
blockId- The value for blockId- Returns:
thisbuilder for use in a chained invocation
-
setActionId
Initializes the value for theactionIdattribute.- Parameters:
actionId- The value for actionId- Returns:
thisbuilder for use in a chained invocation
-
setElement
Initializes the value for theelementattribute.- Parameters:
element- The value for element- Returns:
thisbuilder for use in a chained invocation
-
setSelectedValue
Initializes the optional valueselectedValueto selectedValue.- Parameters:
selectedValue- The value for selectedValue,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setSelectedValue
Initializes the optional valueselectedValueto selectedValue.- Parameters:
selectedValue- The value for selectedValue- Returns:
thisbuilder for use in a chained invocation
-
setSelectedDate
Initializes the optional valueselectedDateto selectedDate.- Parameters:
selectedDate- The value for selectedDate,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setSelectedDate
Initializes the optional valueselectedDateto selectedDate.- Parameters:
selectedDate- The value for selectedDate- Returns:
thisbuilder for use in a chained invocation
-
setActionTs
Initializes the optional valueactionTsto actionTs.- Parameters:
actionTs- The value for actionTs,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setActionTs
Initializes the optional valueactionTsto actionTs.- Parameters:
actionTs- The value for actionTs- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newBlockElementAction.- Returns:
- An immutable instance of BlockElementAction
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-