@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ModalViewResponseIF"}) @Immutable public final class ModalViewResponse extends Object implements ModalViewResponseIF
ModalViewResponseIF.
Use the builder to create immutable instances:
ModalViewResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ModalViewResponse.Builder
Builds instances of type
ModalViewResponse. |
TYPE| Modifier and Type | Method and Description |
|---|---|
static ModalViewResponse.Builder |
builder()
Creates a builder for
ModalViewResponse. |
static ModalViewResponse |
copyOf(ModalViewResponseIF instance)
Creates an immutable copy of a
ModalViewResponseIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ModalViewResponse that have equal attribute values. |
String |
getAppId() |
List<Block> |
getBlocks() |
String |
getBotId() |
Optional<String> |
getCallbackId() |
Optional<Boolean> |
getClearOnClose() |
Optional<Text> |
getCloseButtonText() |
String |
getCurrentViewId() |
Optional<String> |
getExternalId() |
String |
getHash() |
Optional<Boolean> |
getNotifyOnClose() |
Optional<String> |
getPreviousViewId() |
Optional<String> |
getPrivateMetadata() |
String |
getRootViewId() |
StateBlock |
getStateValues() |
Optional<Text> |
getSubmitButtonText() |
String |
getTeamId() |
Text |
getTitle() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
type, title, closeButtonText, submitButtonText, clearOnClose, notifyOnClose, blocks, privateMetadata, callbackId, externalId, appId, botId, currentViewId, rootViewId, teamId, stateValues, hash, previousViewId. |
String |
toString()
Prints the immutable value
ModalViewResponse with attribute values. |
ModalViewResponse |
withAppId(String appId)
Copy the current immutable object by setting a value for the
appId attribute. |
ModalViewResponse |
withBlocks(Block... elements)
Copy the current immutable object with elements that replace the content of
blocks. |
ModalViewResponse |
withBlocks(Iterable<? extends Block> elements)
Copy the current immutable object with elements that replace the content of
blocks. |
ModalViewResponse |
withBotId(String botId)
Copy the current immutable object by setting a value for the
botId attribute. |
ModalViewResponse |
withCallbackId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
callbackId attribute. |
ModalViewResponse |
withCallbackId(String value)
Copy the current immutable object by setting a present value for the optional
callbackId attribute. |
ModalViewResponse |
withClearOnClose(Boolean value)
Copy the current immutable object by setting a present value for the optional
clearOnClose attribute. |
ModalViewResponse |
withClearOnClose(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
clearOnClose attribute. |
ModalViewResponse |
withCloseButtonText(Optional<Text> optional)
Copy the current immutable object by setting an optional value for the
closeButtonText attribute. |
ModalViewResponse |
withCloseButtonText(Text value)
Copy the current immutable object by setting a present value for the optional
closeButtonText attribute. |
ModalViewResponse |
withCurrentViewId(String currentViewId)
Copy the current immutable object by setting a value for the
currentViewId attribute. |
ModalViewResponse |
withExternalId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
externalId attribute. |
ModalViewResponse |
withExternalId(String value)
Copy the current immutable object by setting a present value for the optional
externalId attribute. |
ModalViewResponse |
withHash(String hash)
Copy the current immutable object by setting a value for the
hash attribute. |
ModalViewResponse |
withNotifyOnClose(Boolean value)
Copy the current immutable object by setting a present value for the optional
notifyOnClose attribute. |
ModalViewResponse |
withNotifyOnClose(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
notifyOnClose attribute. |
ModalViewResponse |
withPreviousViewId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
previousViewId attribute. |
ModalViewResponse |
withPreviousViewId(String value)
Copy the current immutable object by setting a present value for the optional
previousViewId attribute. |
ModalViewResponse |
withPrivateMetadata(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
privateMetadata attribute. |
ModalViewResponse |
withPrivateMetadata(String value)
Copy the current immutable object by setting a present value for the optional
privateMetadata attribute. |
ModalViewResponse |
withRootViewId(String rootViewId)
Copy the current immutable object by setting a value for the
rootViewId attribute. |
ModalViewResponse |
withStateValues(StateBlock stateValues)
Copy the current immutable object by setting a value for the
stateValues attribute. |
ModalViewResponse |
withSubmitButtonText(Optional<Text> optional)
Copy the current immutable object by setting an optional value for the
submitButtonText attribute. |
ModalViewResponse |
withSubmitButtonText(Text value)
Copy the current immutable object by setting a present value for the optional
submitButtonText attribute. |
ModalViewResponse |
withTeamId(String teamId)
Copy the current immutable object by setting a value for the
teamId attribute. |
ModalViewResponse |
withTitle(Text title)
Copy the current immutable object by setting a value for the
title attribute. |
public String getType()
getType in interface ModalViewPayloadBasegetType in interface ViewPayloadBasetype attributepublic Text getTitle()
getTitle in interface ModalViewPayloadBasetitle attributepublic Optional<Text> getCloseButtonText()
getCloseButtonText in interface ModalViewPayloadBasecloseButtonText attributepublic Optional<Text> getSubmitButtonText()
getSubmitButtonText in interface ModalViewPayloadBasesubmitButtonText attributepublic Optional<Boolean> getClearOnClose()
getClearOnClose in interface ModalViewPayloadBaseclearOnClose attributepublic Optional<Boolean> getNotifyOnClose()
getNotifyOnClose in interface ModalViewPayloadBasenotifyOnClose attributepublic List<Block> getBlocks()
getBlocks in interface ViewPayloadBaseblocks attributepublic Optional<String> getPrivateMetadata()
getPrivateMetadata in interface ViewPayloadBaseprivateMetadata attributepublic Optional<String> getCallbackId()
getCallbackId in interface ViewPayloadBasecallbackId attributepublic Optional<String> getExternalId()
getExternalId in interface ViewPayloadBaseexternalId attributepublic String getAppId()
getAppId in interface ViewResponseBaseappId attributepublic String getBotId()
getBotId in interface ViewResponseBasebotId attributepublic String getCurrentViewId()
getCurrentViewId in interface ViewResponseBasecurrentViewId attributepublic String getRootViewId()
getRootViewId in interface ViewResponseBaserootViewId attributepublic String getTeamId()
getTeamId in interface ViewResponseBaseteamId attributepublic StateBlock getStateValues()
getStateValues in interface ViewResponseBasestateValues attributepublic String getHash()
getHash in interface ViewResponseBasehash attributepublic Optional<String> getPreviousViewId()
getPreviousViewId in interface ViewResponseBasepreviousViewId attributepublic final ModalViewResponse withTitle(Text title)
title attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.title - A new value for titlethis objectpublic final ModalViewResponse withCloseButtonText(@Nullable Text value)
closeButtonText attribute.value - The value for closeButtonText, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewResponse withCloseButtonText(Optional<Text> optional)
closeButtonText attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for closeButtonTextthis objectpublic final ModalViewResponse withSubmitButtonText(@Nullable Text value)
submitButtonText attribute.value - The value for submitButtonText, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewResponse withSubmitButtonText(Optional<Text> optional)
submitButtonText attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for submitButtonTextthis objectpublic final ModalViewResponse withClearOnClose(@Nullable Boolean value)
clearOnClose attribute.value - The value for clearOnClose, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewResponse withClearOnClose(Optional<Boolean> optional)
clearOnClose attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for clearOnClosethis objectpublic final ModalViewResponse withNotifyOnClose(@Nullable Boolean value)
notifyOnClose attribute.value - The value for notifyOnClose, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewResponse withNotifyOnClose(Optional<Boolean> optional)
notifyOnClose attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for notifyOnClosethis objectpublic final ModalViewResponse withBlocks(Block... elements)
blocks.elements - The elements to setthis objectpublic final ModalViewResponse withBlocks(Iterable<? extends Block> elements)
blocks.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of blocks elements to setthis objectpublic final ModalViewResponse withPrivateMetadata(@Nullable String value)
privateMetadata attribute.value - The value for privateMetadata, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewResponse withPrivateMetadata(Optional<String> optional)
privateMetadata attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for privateMetadatathis objectpublic final ModalViewResponse withCallbackId(@Nullable String value)
callbackId attribute.value - The value for callbackId, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewResponse withCallbackId(Optional<String> optional)
callbackId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for callbackIdthis objectpublic final ModalViewResponse withExternalId(@Nullable String value)
externalId attribute.value - The value for externalId, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewResponse withExternalId(Optional<String> optional)
externalId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for externalIdthis objectpublic final ModalViewResponse withAppId(String appId)
appId attribute.
An equals check used to prevent copying of the same value by returning this.appId - A new value for appIdthis objectpublic final ModalViewResponse withBotId(String botId)
botId attribute.
An equals check used to prevent copying of the same value by returning this.botId - A new value for botIdthis objectpublic final ModalViewResponse withCurrentViewId(String currentViewId)
currentViewId attribute.
An equals check used to prevent copying of the same value by returning this.currentViewId - A new value for currentViewIdthis objectpublic final ModalViewResponse withRootViewId(String rootViewId)
rootViewId attribute.
An equals check used to prevent copying of the same value by returning this.rootViewId - A new value for rootViewIdthis objectpublic final ModalViewResponse withTeamId(String teamId)
teamId attribute.
An equals check used to prevent copying of the same value by returning this.teamId - A new value for teamIdthis objectpublic final ModalViewResponse withStateValues(StateBlock stateValues)
stateValues attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.stateValues - A new value for stateValuesthis objectpublic final ModalViewResponse withHash(String hash)
hash attribute.
An equals check used to prevent copying of the same value by returning this.hash - A new value for hashthis objectpublic final ModalViewResponse withPreviousViewId(@Nullable String value)
previousViewId attribute.value - The value for previousViewId, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewResponse withPreviousViewId(Optional<String> optional)
previousViewId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for previousViewIdthis objectpublic boolean equals(@Nullable Object another)
ModalViewResponse that have equal attribute values.public int hashCode()
type, title, closeButtonText, submitButtonText, clearOnClose, notifyOnClose, blocks, privateMetadata, callbackId, externalId, appId, botId, currentViewId, rootViewId, teamId, stateValues, hash, previousViewId.public String toString()
ModalViewResponse with attribute values.public static ModalViewResponse copyOf(ModalViewResponseIF instance)
ModalViewResponseIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ModalViewResponse.Builder builder()
ModalViewResponse.Copyright © 2020. All rights reserved.