@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ModalViewPayloadIF"}) @Immutable public final class ModalViewPayload extends Object implements ModalViewPayloadIF
ModalViewPayloadIF.
Use the builder to create immutable instances:
ModalViewPayload.builder().
Use the static factory method to create immutable instances:
ModalViewPayload.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ModalViewPayload.Builder
Builds instances of type
ModalViewPayload. |
TYPE| Modifier and Type | Method and Description |
|---|---|
static ModalViewPayload.Builder |
builder()
Creates a builder for
ModalViewPayload. |
static ModalViewPayload |
copyOf(ModalViewPayloadIF instance)
Creates an immutable copy of a
ModalViewPayloadIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ModalViewPayload that have equal attribute values. |
List<Block> |
getBlocks() |
Optional<String> |
getCallbackId() |
Optional<Boolean> |
getClearOnClose() |
Optional<Text> |
getCloseButtonText() |
Optional<String> |
getExternalId() |
Optional<Boolean> |
getNotifyOnClose() |
Optional<String> |
getPrivateMetadata() |
Optional<Text> |
getSubmitButtonText() |
Text |
getTitle() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
title, blocks, type, closeButtonText, submitButtonText, clearOnClose, notifyOnClose, privateMetadata, callbackId, externalId. |
static ModalViewPayload |
of(Text title,
Iterable<? extends Block> blocks)
Construct a new immutable
ModalViewPayload instance. |
static ModalViewPayload |
of(Text title,
List<Block> blocks)
Construct a new immutable
ModalViewPayload instance. |
String |
toString()
Prints the immutable value
ModalViewPayload with attribute values. |
ModalViewPayload |
withBlocks(Block... elements)
Copy the current immutable object with elements that replace the content of
blocks. |
ModalViewPayload |
withBlocks(Iterable<? extends Block> elements)
Copy the current immutable object with elements that replace the content of
blocks. |
ModalViewPayload |
withCallbackId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
callbackId attribute. |
ModalViewPayload |
withCallbackId(String value)
Copy the current immutable object by setting a present value for the optional
callbackId attribute. |
ModalViewPayload |
withClearOnClose(Boolean value)
Copy the current immutable object by setting a present value for the optional
clearOnClose attribute. |
ModalViewPayload |
withClearOnClose(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
clearOnClose attribute. |
ModalViewPayload |
withCloseButtonText(Optional<Text> optional)
Copy the current immutable object by setting an optional value for the
closeButtonText attribute. |
ModalViewPayload |
withCloseButtonText(Text value)
Copy the current immutable object by setting a present value for the optional
closeButtonText attribute. |
ModalViewPayload |
withExternalId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
externalId attribute. |
ModalViewPayload |
withExternalId(String value)
Copy the current immutable object by setting a present value for the optional
externalId attribute. |
ModalViewPayload |
withNotifyOnClose(Boolean value)
Copy the current immutable object by setting a present value for the optional
notifyOnClose attribute. |
ModalViewPayload |
withNotifyOnClose(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
notifyOnClose attribute. |
ModalViewPayload |
withPrivateMetadata(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
privateMetadata attribute. |
ModalViewPayload |
withPrivateMetadata(String value)
Copy the current immutable object by setting a present value for the optional
privateMetadata attribute. |
ModalViewPayload |
withSubmitButtonText(Optional<Text> optional)
Copy the current immutable object by setting an optional value for the
submitButtonText attribute. |
ModalViewPayload |
withSubmitButtonText(Text value)
Copy the current immutable object by setting a present value for the optional
submitButtonText attribute. |
ModalViewPayload |
withTitle(Text title)
Copy the current immutable object by setting a value for the
title attribute. |
public Text getTitle()
getTitle in interface ModalViewPayloadBasegetTitle in interface ModalViewPayloadIFtitle attributepublic List<Block> getBlocks()
getBlocks in interface ModalViewPayloadIFgetBlocks in interface ViewPayloadBaseblocks attributepublic String getType()
getType in interface ModalViewPayloadBasegetType in interface ViewPayloadBasetype 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 Optional<String> getPrivateMetadata()
getPrivateMetadata in interface ViewPayloadBaseprivateMetadata attributepublic Optional<String> getCallbackId()
getCallbackId in interface ViewPayloadBasecallbackId attributepublic Optional<String> getExternalId()
getExternalId in interface ViewPayloadBaseexternalId attributepublic final ModalViewPayload 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 ModalViewPayload withBlocks(Block... elements)
blocks.elements - The elements to setthis objectpublic final ModalViewPayload 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 ModalViewPayload withCloseButtonText(@Nullable Text value)
closeButtonText attribute.value - The value for closeButtonText, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewPayload 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 ModalViewPayload withSubmitButtonText(@Nullable Text value)
submitButtonText attribute.value - The value for submitButtonText, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewPayload 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 ModalViewPayload withClearOnClose(@Nullable Boolean value)
clearOnClose attribute.value - The value for clearOnClose, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewPayload 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 ModalViewPayload withNotifyOnClose(@Nullable Boolean value)
notifyOnClose attribute.value - The value for notifyOnClose, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewPayload 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 ModalViewPayload withPrivateMetadata(@Nullable String value)
privateMetadata attribute.value - The value for privateMetadata, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewPayload 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 ModalViewPayload withCallbackId(@Nullable String value)
callbackId attribute.value - The value for callbackId, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewPayload 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 ModalViewPayload withExternalId(@Nullable String value)
externalId attribute.value - The value for externalId, null is accepted as java.util.Optional.empty()this objectpublic final ModalViewPayload 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 boolean equals(@Nullable Object another)
ModalViewPayload that have equal attribute values.public int hashCode()
title, blocks, type, closeButtonText, submitButtonText, clearOnClose, notifyOnClose, privateMetadata, callbackId, externalId.public String toString()
ModalViewPayload with attribute values.public static ModalViewPayload of(Text title, List<Block> blocks)
ModalViewPayload instance.title - The value for the title attributeblocks - The value for the blocks attributepublic static ModalViewPayload of(Text title, Iterable<? extends Block> blocks)
ModalViewPayload instance.title - The value for the title attributeblocks - The value for the blocks attributepublic static ModalViewPayload copyOf(ModalViewPayloadIF instance)
ModalViewPayloadIF 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 ModalViewPayload.Builder builder()
ModalViewPayload.Copyright © 2020. All rights reserved.