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