Class ModalViewResponse
java.lang.Object
com.hubspot.slack.client.models.response.views.ModalViewResponse
- All Implemented Interfaces:
ModalViewResponseIF,ViewResponseBase,ModalViewPayloadBase,ViewPayloadBase
@Generated(from="ModalViewResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ModalViewResponse
extends Object
implements ModalViewResponseIF
Immutable implementation of
ModalViewResponseIF.
Use the builder to create immutable instances:
ModalViewResponse.builder().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.views.ModalViewPayloadBase
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic ModalViewResponse.Builderbuilder()Creates a builder forModalViewResponse.static ModalViewResponsecopyOf(ModalViewResponseIF instance) Creates an immutable copy of aModalViewResponseIFvalue.booleanThis instance is equal to all instances ofModalViewResponsethat have equal attribute values.getAppId()getBotId()getHash()getTitle()getType()inthashCode()Computes a hash code from attributes:blocks,privateMetadata,callbackId,externalId,type,title,closeButtonText,submitButtonText,clearOnClose,notifyOnClose,appId,botId,currentViewId,rootViewId,teamId,stateValues,hash,previousViewId.toString()Prints the immutable valueModalViewResponsewith attribute values.final ModalViewResponseCopy the current immutable object by setting a value for theappIdattribute.final ModalViewResponsewithBlocks(Block... elements) Copy the current immutable object with elements that replace the content ofblocks.final ModalViewResponsewithBlocks(Iterable<? extends Block> elements) Copy the current immutable object with elements that replace the content ofblocks.final ModalViewResponseCopy the current immutable object by setting a value for thebotIdattribute.final ModalViewResponsewithCallbackId(String value) Copy the current immutable object by setting a present value for the optionalcallbackIdattribute.final ModalViewResponsewithCallbackId(Optional<String> optional) Copy the current immutable object by setting an optional value for thecallbackIdattribute.final ModalViewResponsewithClearOnClose(Boolean value) Copy the current immutable object by setting a present value for the optionalclearOnCloseattribute.final ModalViewResponsewithClearOnClose(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theclearOnCloseattribute.final ModalViewResponsewithCloseButtonText(Text value) Copy the current immutable object by setting a present value for the optionalcloseButtonTextattribute.final ModalViewResponsewithCloseButtonText(Optional<? extends Text> optional) Copy the current immutable object by setting an optional value for thecloseButtonTextattribute.final ModalViewResponsewithCurrentViewId(String value) Copy the current immutable object by setting a value for thecurrentViewIdattribute.final ModalViewResponsewithExternalId(String value) Copy the current immutable object by setting a present value for the optionalexternalIdattribute.final ModalViewResponsewithExternalId(Optional<String> optional) Copy the current immutable object by setting an optional value for theexternalIdattribute.final ModalViewResponseCopy the current immutable object by setting a value for thehashattribute.final ModalViewResponsewithNotifyOnClose(Boolean value) Copy the current immutable object by setting a present value for the optionalnotifyOnCloseattribute.final ModalViewResponsewithNotifyOnClose(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thenotifyOnCloseattribute.final ModalViewResponsewithPreviousViewId(String value) Copy the current immutable object by setting a present value for the optionalpreviousViewIdattribute.final ModalViewResponsewithPreviousViewId(Optional<String> optional) Copy the current immutable object by setting an optional value for thepreviousViewIdattribute.final ModalViewResponsewithPrivateMetadata(String value) Copy the current immutable object by setting a present value for the optionalprivateMetadataattribute.final ModalViewResponsewithPrivateMetadata(Optional<String> optional) Copy the current immutable object by setting an optional value for theprivateMetadataattribute.final ModalViewResponsewithRootViewId(String value) Copy the current immutable object by setting a value for therootViewIdattribute.final ModalViewResponsewithStateValues(StateBlock value) Copy the current immutable object by setting a value for thestateValuesattribute.final ModalViewResponsewithSubmitButtonText(Text value) Copy the current immutable object by setting a present value for the optionalsubmitButtonTextattribute.final ModalViewResponsewithSubmitButtonText(Optional<? extends Text> optional) Copy the current immutable object by setting an optional value for thesubmitButtonTextattribute.final ModalViewResponsewithTeamId(String value) Copy the current immutable object by setting a value for theteamIdattribute.final ModalViewResponseCopy the current immutable object by setting a value for thetitleattribute.
-
Method Details
-
getBlocks
- Specified by:
getBlocksin interfaceViewPayloadBase- Returns:
- The value of the
blocksattribute
-
getPrivateMetadata
- Specified by:
getPrivateMetadatain interfaceViewPayloadBase- Returns:
- The value of the
privateMetadataattribute
-
getCallbackId
- Specified by:
getCallbackIdin interfaceViewPayloadBase- Returns:
- The value of the
callbackIdattribute
-
getExternalId
- Specified by:
getExternalIdin interfaceViewPayloadBase- Returns:
- The value of the
externalIdattribute
-
getType
- Specified by:
getTypein interfaceModalViewPayloadBase- Specified by:
getTypein interfaceViewPayloadBase- Returns:
- The computed-at-construction value of the
typeattribute
-
getTitle
- Specified by:
getTitlein interfaceModalViewPayloadBase- Returns:
- The value of the
titleattribute
-
getCloseButtonText
- Specified by:
getCloseButtonTextin interfaceModalViewPayloadBase- Returns:
- The value of the
closeButtonTextattribute
-
getSubmitButtonText
- Specified by:
getSubmitButtonTextin interfaceModalViewPayloadBase- Returns:
- The value of the
submitButtonTextattribute
-
getClearOnClose
- Specified by:
getClearOnClosein interfaceModalViewPayloadBase- Returns:
- The value of the
clearOnCloseattribute
-
getNotifyOnClose
- Specified by:
getNotifyOnClosein interfaceModalViewPayloadBase- Returns:
- The value of the
notifyOnCloseattribute
-
getAppId
- Specified by:
getAppIdin interfaceViewResponseBase- Returns:
- The value of the
appIdattribute
-
getBotId
- Specified by:
getBotIdin interfaceViewResponseBase- Returns:
- The value of the
botIdattribute
-
getCurrentViewId
- Specified by:
getCurrentViewIdin interfaceViewResponseBase- Returns:
- The value of the
currentViewIdattribute
-
getRootViewId
- Specified by:
getRootViewIdin interfaceViewResponseBase- Returns:
- The value of the
rootViewIdattribute
-
getTeamId
- Specified by:
getTeamIdin interfaceViewResponseBase- Returns:
- The value of the
teamIdattribute
-
getStateValues
- Specified by:
getStateValuesin interfaceViewResponseBase- Returns:
- The value of the
stateValuesattribute
-
getHash
- Specified by:
getHashin interfaceViewResponseBase- Returns:
- The value of the
hashattribute
-
getPreviousViewId
- Specified by:
getPreviousViewIdin interfaceViewResponseBase- Returns:
- The value of the
previousViewIdattribute
-
withBlocks
Copy the current immutable object with elements that replace the content ofblocks.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withBlocks
Copy the current immutable object with elements that replace the content ofblocks. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of blocks elements to set- Returns:
- A modified copy or
thisif not changed
-
withPrivateMetadata
Copy the current immutable object by setting a present value for the optionalprivateMetadataattribute.- Parameters:
value- The value for privateMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withPrivateMetadata
Copy the current immutable object by setting an optional value for theprivateMetadataattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for privateMetadata- Returns:
- A modified copy or
thisif not changed
-
withCallbackId
Copy the current immutable object by setting a present value for the optionalcallbackIdattribute.- Parameters:
value- The value for callbackId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withCallbackId
Copy the current immutable object by setting an optional value for thecallbackIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for callbackId- Returns:
- A modified copy or
thisif not changed
-
withExternalId
Copy the current immutable object by setting a present value for the optionalexternalIdattribute.- Parameters:
value- The value for externalId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withExternalId
Copy the current immutable object by setting an optional value for theexternalIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for externalId- Returns:
- A modified copy or
thisif not changed
-
withTitle
Copy the current immutable object by setting a value for thetitleattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for title- Returns:
- A modified copy or the
thisobject
-
withCloseButtonText
Copy the current immutable object by setting a present value for the optionalcloseButtonTextattribute.- Parameters:
value- The value for closeButtonText,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withCloseButtonText
Copy the current immutable object by setting an optional value for thecloseButtonTextattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for closeButtonText- Returns:
- A modified copy or
thisif not changed
-
withSubmitButtonText
Copy the current immutable object by setting a present value for the optionalsubmitButtonTextattribute.- Parameters:
value- The value for submitButtonText,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withSubmitButtonText
Copy the current immutable object by setting an optional value for thesubmitButtonTextattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for submitButtonText- Returns:
- A modified copy or
thisif not changed
-
withClearOnClose
Copy the current immutable object by setting a present value for the optionalclearOnCloseattribute.- Parameters:
value- The value for clearOnClose,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withClearOnClose
Copy the current immutable object by setting an optional value for theclearOnCloseattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for clearOnClose- Returns:
- A modified copy or
thisif not changed
-
withNotifyOnClose
Copy the current immutable object by setting a present value for the optionalnotifyOnCloseattribute.- Parameters:
value- The value for notifyOnClose,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withNotifyOnClose
Copy the current immutable object by setting an optional value for thenotifyOnCloseattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for notifyOnClose- Returns:
- A modified copy or
thisif not changed
-
withAppId
Copy the current immutable object by setting a value for theappIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for appId- Returns:
- A modified copy or the
thisobject
-
withBotId
Copy the current immutable object by setting a value for thebotIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for botId- Returns:
- A modified copy or the
thisobject
-
withCurrentViewId
Copy the current immutable object by setting a value for thecurrentViewIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for currentViewId- Returns:
- A modified copy or the
thisobject
-
withRootViewId
Copy the current immutable object by setting a value for therootViewIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for rootViewId- Returns:
- A modified copy or the
thisobject
-
withTeamId
Copy the current immutable object by setting a value for theteamIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for teamId- Returns:
- A modified copy or the
thisobject
-
withStateValues
Copy the current immutable object by setting a value for thestateValuesattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for stateValues- Returns:
- A modified copy or the
thisobject
-
withHash
Copy the current immutable object by setting a value for thehashattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hash- Returns:
- A modified copy or the
thisobject
-
withPreviousViewId
Copy the current immutable object by setting a present value for the optionalpreviousViewIdattribute.- Parameters:
value- The value for previousViewId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withPreviousViewId
Copy the current immutable object by setting an optional value for thepreviousViewIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for previousViewId- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofModalViewResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:blocks,privateMetadata,callbackId,externalId,type,title,closeButtonText,submitButtonText,clearOnClose,notifyOnClose,appId,botId,currentViewId,rootViewId,teamId,stateValues,hash,previousViewId. -
toString
Prints the immutable valueModalViewResponsewith attribute values. -
copyOf
Creates an immutable copy of aModalViewResponseIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ModalViewResponse instance
-
builder
Creates a builder forModalViewResponse.ModalViewResponse.builder() .addBlocks|addAllBlocks(com.hubspot.slack.client.models.blocks.Block) //blockselements .setPrivateMetadata(Optional<String>) // optionalprivateMetadata.setCallbackId(Optional<String>) // optionalcallbackId.setExternalId(Optional<String>) // optionalexternalId.setTitle(com.hubspot.slack.client.models.blocks.objects.Text) // requiredtitle.setCloseButtonText(Optional<com.hubspot.slack.client.models.blocks.objects.Text>) // optionalcloseButtonText.setSubmitButtonText(Optional<com.hubspot.slack.client.models.blocks.objects.Text>) // optionalsubmitButtonText.setClearOnClose(Optional<Boolean>) // optionalclearOnClose.setNotifyOnClose(Optional<Boolean>) // optionalnotifyOnClose.setAppId(String) // requiredappId.setBotId(String) // requiredbotId.setCurrentViewId(String) // requiredcurrentViewId.setRootViewId(String) // requiredrootViewId.setTeamId(String) // requiredteamId.setStateValues(com.hubspot.slack.client.models.response.views.StateBlock) // requiredstateValues.setHash(String) // requiredhash.setPreviousViewId(Optional<String>) // optionalpreviousViewId.build();- Returns:
- A new ModalViewResponse builder
-