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