Class ModalViewResponse.Builder
java.lang.Object
com.hubspot.slack.client.models.response.views.ModalViewResponse.Builder
- Enclosing class:
ModalViewResponse
@Generated(from="ModalViewResponseIF",
generator="Immutables")
@NotThreadSafe
public static final class ModalViewResponse.Builder
extends Object
Builds instances of type
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.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllBlocks(Iterable<? extends Block> elements) Adds elements toblockslist.Adds one element toblockslist.Adds elements toblockslist.build()Builds a newModalViewResponse.from(ModalViewResponseIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.views.ModalViewResponseIFinstance.from(ViewResponseBase instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.views.ViewResponseBaseinstance.from(ModalViewPayloadBase instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.views.ModalViewPayloadBaseinstance.from(ViewPayloadBase instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.views.ViewPayloadBaseinstance.Initializes the value for theappIdattribute.Sets or replaces all elements forblockslist.Initializes the value for thebotIdattribute.setCallbackId(String callbackId) Initializes the optional valuecallbackIdto callbackId.setCallbackId(Optional<String> callbackId) Initializes the optional valuecallbackIdto callbackId.setClearOnClose(Boolean clearOnClose) Initializes the optional valueclearOnCloseto clearOnClose.setClearOnClose(Optional<Boolean> clearOnClose) Initializes the optional valueclearOnCloseto clearOnClose.setCloseButtonText(Text closeButtonText) Initializes the optional valuecloseButtonTextto closeButtonText.setCloseButtonText(Optional<? extends Text> closeButtonText) Initializes the optional valuecloseButtonTextto closeButtonText.setCurrentViewId(String currentViewId) Initializes the value for thecurrentViewIdattribute.setExternalId(String externalId) Initializes the optional valueexternalIdto externalId.setExternalId(Optional<String> externalId) Initializes the optional valueexternalIdto externalId.Initializes the value for thehashattribute.setNotifyOnClose(Boolean notifyOnClose) Initializes the optional valuenotifyOnCloseto notifyOnClose.setNotifyOnClose(Optional<Boolean> notifyOnClose) Initializes the optional valuenotifyOnCloseto notifyOnClose.setPreviousViewId(String previousViewId) Initializes the optional valuepreviousViewIdto previousViewId.setPreviousViewId(Optional<String> previousViewId) Initializes the optional valuepreviousViewIdto previousViewId.setPrivateMetadata(String privateMetadata) Initializes the optional valueprivateMetadatato privateMetadata.setPrivateMetadata(Optional<String> privateMetadata) Initializes the optional valueprivateMetadatato privateMetadata.setRootViewId(String rootViewId) Initializes the value for therootViewIdattribute.setStateValues(StateBlock stateValues) Initializes the value for thestateValuesattribute.setSubmitButtonText(Text submitButtonText) Initializes the optional valuesubmitButtonTextto submitButtonText.setSubmitButtonText(Optional<? extends Text> submitButtonText) Initializes the optional valuesubmitButtonTextto submitButtonText.Initializes the value for theteamIdattribute.Initializes the value for thetitleattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.views.ModalViewPayloadBaseinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.views.ViewPayloadBaseinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.views.ModalViewResponseIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.views.ViewResponseBaseinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addBlocks
Adds one element toblockslist.- Parameters:
element- A blocks element- Returns:
thisbuilder for use in a chained invocation
-
addBlocks
Adds elements toblockslist.- Parameters:
elements- An array of blocks elements- Returns:
thisbuilder for use in a chained invocation
-
setBlocks
Sets or replaces all elements forblockslist.- Parameters:
elements- An iterable of blocks elements- Returns:
thisbuilder for use in a chained invocation
-
addAllBlocks
Adds elements toblockslist.- Parameters:
elements- An iterable of blocks elements- Returns:
thisbuilder for use in a chained invocation
-
setPrivateMetadata
Initializes the optional valueprivateMetadatato privateMetadata.- Parameters:
privateMetadata- The value for privateMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setPrivateMetadata
Initializes the optional valueprivateMetadatato privateMetadata.- Parameters:
privateMetadata- The value for privateMetadata- Returns:
thisbuilder for use in a chained invocation
-
setCallbackId
Initializes the optional valuecallbackIdto callbackId.- Parameters:
callbackId- The value for callbackId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setCallbackId
Initializes the optional valuecallbackIdto callbackId.- Parameters:
callbackId- The value for callbackId- Returns:
thisbuilder for use in a chained invocation
-
setExternalId
Initializes the optional valueexternalIdto externalId.- Parameters:
externalId- The value for externalId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setExternalId
Initializes the optional valueexternalIdto externalId.- Parameters:
externalId- The value for externalId- Returns:
thisbuilder for use in a chained invocation
-
setTitle
Initializes the value for thetitleattribute.- Parameters:
title- The value for title- Returns:
thisbuilder for use in a chained invocation
-
setCloseButtonText
Initializes the optional valuecloseButtonTextto closeButtonText.- Parameters:
closeButtonText- The value for closeButtonText,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setCloseButtonText
Initializes the optional valuecloseButtonTextto closeButtonText.- Parameters:
closeButtonText- The value for closeButtonText- Returns:
thisbuilder for use in a chained invocation
-
setSubmitButtonText
Initializes the optional valuesubmitButtonTextto submitButtonText.- Parameters:
submitButtonText- The value for submitButtonText,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setSubmitButtonText
public final ModalViewResponse.Builder setSubmitButtonText(Optional<? extends Text> submitButtonText) Initializes the optional valuesubmitButtonTextto submitButtonText.- Parameters:
submitButtonText- The value for submitButtonText- Returns:
thisbuilder for use in a chained invocation
-
setClearOnClose
Initializes the optional valueclearOnCloseto clearOnClose.- Parameters:
clearOnClose- The value for clearOnClose,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setClearOnClose
Initializes the optional valueclearOnCloseto clearOnClose.- Parameters:
clearOnClose- The value for clearOnClose- Returns:
thisbuilder for use in a chained invocation
-
setNotifyOnClose
Initializes the optional valuenotifyOnCloseto notifyOnClose.- Parameters:
notifyOnClose- The value for notifyOnClose,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setNotifyOnClose
Initializes the optional valuenotifyOnCloseto notifyOnClose.- Parameters:
notifyOnClose- The value for notifyOnClose- Returns:
thisbuilder for use in a chained invocation
-
setAppId
Initializes the value for theappIdattribute.- Parameters:
appId- The value for appId- Returns:
thisbuilder for use in a chained invocation
-
setBotId
Initializes the value for thebotIdattribute.- Parameters:
botId- The value for botId- Returns:
thisbuilder for use in a chained invocation
-
setCurrentViewId
Initializes the value for thecurrentViewIdattribute.- Parameters:
currentViewId- The value for currentViewId- Returns:
thisbuilder for use in a chained invocation
-
setRootViewId
Initializes the value for therootViewIdattribute.- Parameters:
rootViewId- The value for rootViewId- Returns:
thisbuilder for use in a chained invocation
-
setTeamId
Initializes the value for theteamIdattribute.- Parameters:
teamId- The value for teamId- Returns:
thisbuilder for use in a chained invocation
-
setStateValues
Initializes the value for thestateValuesattribute.- Parameters:
stateValues- The value for stateValues- Returns:
thisbuilder for use in a chained invocation
-
setHash
Initializes the value for thehashattribute.- Parameters:
hash- The value for hash- Returns:
thisbuilder for use in a chained invocation
-
setPreviousViewId
Initializes the optional valuepreviousViewIdto previousViewId.- Parameters:
previousViewId- The value for previousViewId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setPreviousViewId
Initializes the optional valuepreviousViewIdto previousViewId.- Parameters:
previousViewId- The value for previousViewId- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newModalViewResponse.- Returns:
- An immutable instance of ModalViewResponse
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-