@NotThreadSafe public static final class Actions.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
Actions.Builder |
addAllElements(Iterable<? extends BlockElement> elements)
Adds elements to
elements list. |
Actions.Builder |
addElements(BlockElement... elements)
Adds elements to
elements list. |
Actions.Builder |
addElements(BlockElement element)
Adds one element to
elements list. |
Actions |
build()
Builds a new
Actions. |
Actions.Builder |
from(ActionsIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.blocks.ActionsIF instance. |
Actions.Builder |
from(Block instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.blocks.Block instance. |
Actions.Builder |
setBlockId(Optional<String> blockId)
Initializes the optional value
blockId to blockId. |
Actions.Builder |
setBlockId(String blockId)
Initializes the optional value
blockId to blockId. |
Actions.Builder |
setElements(Iterable<? extends BlockElement> elements)
Sets or replaces all elements for
elements list. |
public final Actions.Builder from(Block instance)
com.hubspot.slack.client.models.blocks.Block instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Actions.Builder from(ActionsIF instance)
com.hubspot.slack.client.models.blocks.ActionsIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Actions.Builder addElements(BlockElement element)
elements list.element - A elements elementthis builder for use in a chained invocationpublic final Actions.Builder addElements(BlockElement... elements)
elements list.elements - An array of elements elementsthis builder for use in a chained invocationpublic final Actions.Builder setElements(Iterable<? extends BlockElement> elements)
elements list.elements - An iterable of elements elementsthis builder for use in a chained invocationpublic final Actions.Builder addAllElements(Iterable<? extends BlockElement> elements)
elements list.elements - An iterable of elements elementsthis builder for use in a chained invocationpublic final Actions.Builder setBlockId(@Nullable String blockId)
blockId to blockId.blockId - The value for blockId, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final Actions.Builder setBlockId(Optional<String> blockId)
blockId to blockId.blockId - The value for blockIdthis builder for use in a chained invocationCopyright © 2019. All rights reserved.