@NotThreadSafe public static final class BlockElementAction.Builder extends Object
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.
| Modifier and Type | Method and Description |
|---|---|
BlockElementAction |
build()
Builds a new
BlockElementAction. |
BlockElementAction.Builder |
from(BlockElementActionIF instance)
Fill a builder with attribute values from the provided
BlockElementActionIF instance. |
BlockElementAction.Builder |
setActionId(String actionId)
Initializes the value for the
actionId attribute. |
BlockElementAction.Builder |
setActionTs(Optional<String> actionTs)
Initializes the optional value
actionTs to actionTs. |
BlockElementAction.Builder |
setActionTs(String actionTs)
Initializes the optional value
actionTs to actionTs. |
BlockElementAction.Builder |
setBlockId(String blockId)
Initializes the value for the
blockId attribute. |
BlockElementAction.Builder |
setElement(BlockElement element)
Initializes the value for the
element attribute. |
BlockElementAction.Builder |
setSelectedDate(LocalDate selectedDate)
Initializes the optional value
selectedDate to selectedDate. |
BlockElementAction.Builder |
setSelectedDate(Optional<LocalDate> selectedDate)
Initializes the optional value
selectedDate to selectedDate. |
BlockElementAction.Builder |
setSelectedValue(Optional<String> selectedValue)
Initializes the optional value
selectedValue to selectedValue. |
BlockElementAction.Builder |
setSelectedValue(String selectedValue)
Initializes the optional value
selectedValue to selectedValue. |
public final BlockElementAction.Builder from(BlockElementActionIF instance)
BlockElementActionIF instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final BlockElementAction.Builder setBlockId(String blockId)
blockId attribute.blockId - The value for blockIdthis builder for use in a chained invocationpublic final BlockElementAction.Builder setActionId(String actionId)
actionId attribute.actionId - The value for actionIdthis builder for use in a chained invocationpublic final BlockElementAction.Builder setElement(BlockElement element)
element attribute.element - The value for elementthis builder for use in a chained invocationpublic final BlockElementAction.Builder setSelectedValue(@Nullable String selectedValue)
selectedValue to selectedValue.selectedValue - The value for selectedValue, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final BlockElementAction.Builder setSelectedValue(Optional<String> selectedValue)
selectedValue to selectedValue.selectedValue - The value for selectedValuethis builder for use in a chained invocationpublic final BlockElementAction.Builder setSelectedDate(@Nullable LocalDate selectedDate)
selectedDate to selectedDate.selectedDate - The value for selectedDate, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final BlockElementAction.Builder setSelectedDate(Optional<LocalDate> selectedDate)
selectedDate to selectedDate.selectedDate - The value for selectedDatethis builder for use in a chained invocationpublic final BlockElementAction.Builder setActionTs(@Nullable String actionTs)
actionTs to actionTs.actionTs - The value for actionTs, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final BlockElementAction.Builder setActionTs(Optional<String> actionTs)
actionTs to actionTs.actionTs - The value for actionTsthis builder for use in a chained invocationpublic BlockElementAction build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
BlockElementAction.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.