@NotThreadSafe public static final class ViewContainer.Builder extends Object
ViewContainer.
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 |
|---|---|
ViewContainer |
build()
Builds a new
ViewContainer. |
ViewContainer.Builder |
from(Container instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.interaction.Container instance. |
ViewContainer.Builder |
from(ViewContainerIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.interaction.ViewContainerIF instance. |
ViewContainer.Builder |
setType(ContainerType type)
Initializes the value for the
type attribute. |
ViewContainer.Builder |
setViewId(String viewId)
Initializes the value for the
viewId attribute. |
public final ViewContainer.Builder from(ViewContainerIF instance)
com.hubspot.slack.client.models.interaction.ViewContainerIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ViewContainer.Builder from(Container instance)
com.hubspot.slack.client.models.interaction.Container instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ViewContainer.Builder setViewId(String viewId)
viewId attribute.viewId - The value for viewIdthis builder for use in a chained invocationpublic final ViewContainer.Builder setType(ContainerType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic ViewContainer build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ViewContainer.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.