@NotThreadSafe public static final class HomeTabViewResponse.Builder extends Object
HomeTabViewResponse.
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 |
|---|---|
HomeTabViewResponse.Builder |
addAllBlocks(Iterable<? extends Block> elements)
Adds elements to
blocks list. |
HomeTabViewResponse.Builder |
addBlocks(Block... elements)
Adds elements to
blocks list. |
HomeTabViewResponse.Builder |
addBlocks(Block element)
Adds one element to
blocks list. |
HomeTabViewResponse |
build()
Builds a new
HomeTabViewResponse. |
HomeTabViewResponse.Builder |
from(HomeTabViewResponseIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.views.HomeTabViewResponseIF instance. |
HomeTabViewResponse.Builder |
from(ViewPayloadBase instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.views.ViewPayloadBase instance. |
HomeTabViewResponse.Builder |
from(ViewResponseBase instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.views.ViewResponseBase instance. |
HomeTabViewResponse.Builder |
setAppId(String appId)
Initializes the value for the
appId attribute. |
HomeTabViewResponse.Builder |
setBlocks(Iterable<? extends Block> elements)
Sets or replaces all elements for
blocks list. |
HomeTabViewResponse.Builder |
setBotId(String botId)
Initializes the value for the
botId attribute. |
HomeTabViewResponse.Builder |
setCallbackId(Optional<String> callbackId)
Initializes the optional value
callbackId to callbackId. |
HomeTabViewResponse.Builder |
setCallbackId(String callbackId)
Initializes the optional value
callbackId to callbackId. |
HomeTabViewResponse.Builder |
setCurrentViewId(String currentViewId)
Initializes the value for the
currentViewId attribute. |
HomeTabViewResponse.Builder |
setExternalId(Optional<String> externalId)
Initializes the optional value
externalId to externalId. |
HomeTabViewResponse.Builder |
setExternalId(String externalId)
Initializes the optional value
externalId to externalId. |
HomeTabViewResponse.Builder |
setHash(String hash)
Initializes the value for the
hash attribute. |
HomeTabViewResponse.Builder |
setPreviousViewId(Optional<String> previousViewId)
Initializes the optional value
previousViewId to previousViewId. |
HomeTabViewResponse.Builder |
setPreviousViewId(String previousViewId)
Initializes the optional value
previousViewId to previousViewId. |
HomeTabViewResponse.Builder |
setPrivateMetadata(Optional<String> privateMetadata)
Initializes the optional value
privateMetadata to privateMetadata. |
HomeTabViewResponse.Builder |
setPrivateMetadata(String privateMetadata)
Initializes the optional value
privateMetadata to privateMetadata. |
HomeTabViewResponse.Builder |
setRootViewId(String rootViewId)
Initializes the value for the
rootViewId attribute. |
HomeTabViewResponse.Builder |
setStateValues(StateBlock stateValues)
Initializes the value for the
stateValues attribute. |
HomeTabViewResponse.Builder |
setTeamId(String teamId)
Initializes the value for the
teamId attribute. |
public final HomeTabViewResponse.Builder from(ViewPayloadBase instance)
com.hubspot.slack.client.models.views.ViewPayloadBase instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder from(ViewResponseBase instance)
com.hubspot.slack.client.models.response.views.ViewResponseBase instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder from(HomeTabViewResponseIF instance)
com.hubspot.slack.client.models.response.views.HomeTabViewResponseIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder addBlocks(Block element)
blocks list.element - A blocks elementthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder addBlocks(Block... elements)
blocks list.elements - An array of blocks elementsthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder setBlocks(Iterable<? extends Block> elements)
blocks list.elements - An iterable of blocks elementsthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder addAllBlocks(Iterable<? extends Block> elements)
blocks list.elements - An iterable of blocks elementsthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder setPrivateMetadata(@Nullable String privateMetadata)
privateMetadata to privateMetadata.privateMetadata - The value for privateMetadata, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final HomeTabViewResponse.Builder setPrivateMetadata(Optional<String> privateMetadata)
privateMetadata to privateMetadata.privateMetadata - The value for privateMetadatathis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder setCallbackId(@Nullable String callbackId)
callbackId to callbackId.callbackId - The value for callbackId, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final HomeTabViewResponse.Builder setCallbackId(Optional<String> callbackId)
callbackId to callbackId.callbackId - The value for callbackIdthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder setExternalId(@Nullable String externalId)
externalId to externalId.externalId - The value for externalId, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final HomeTabViewResponse.Builder setExternalId(Optional<String> externalId)
externalId to externalId.externalId - The value for externalIdthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder setAppId(String appId)
appId attribute.appId - The value for appIdthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder setBotId(String botId)
botId attribute.botId - The value for botIdthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder setCurrentViewId(String currentViewId)
currentViewId attribute.currentViewId - The value for currentViewIdthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder setRootViewId(String rootViewId)
rootViewId attribute.rootViewId - The value for rootViewIdthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder setTeamId(String teamId)
teamId attribute.teamId - The value for teamIdthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder setStateValues(StateBlock stateValues)
stateValues attribute.stateValues - The value for stateValuesthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder setHash(String hash)
hash attribute.hash - The value for hashthis builder for use in a chained invocationpublic final HomeTabViewResponse.Builder setPreviousViewId(@Nullable String previousViewId)
previousViewId to previousViewId.previousViewId - The value for previousViewId, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final HomeTabViewResponse.Builder setPreviousViewId(Optional<String> previousViewId)
previousViewId to previousViewId.previousViewId - The value for previousViewIdthis builder for use in a chained invocationpublic HomeTabViewResponse build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
HomeTabViewResponse.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.