@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","TopLevelMessageInteractionResponseIF"}) @Immutable public final class TopLevelMessageInteractionResponse extends Object implements TopLevelMessageInteractionResponseIF
TopLevelMessageInteractionResponseIF.
Use the builder to create immutable instances:
TopLevelMessageInteractionResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
TopLevelMessageInteractionResponse.Builder
Builds instances of type
TopLevelMessageInteractionResponse. |
| Modifier and Type | Method and Description |
|---|---|
static TopLevelMessageInteractionResponse.Builder |
builder()
Creates a builder for
TopLevelMessageInteractionResponse. |
static TopLevelMessageInteractionResponse |
copyOf(TopLevelMessageInteractionResponseIF instance)
Creates an immutable copy of a
TopLevelMessageInteractionResponseIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
TopLevelMessageInteractionResponse that have equal attribute values. |
List<Attachment> |
getAttachments() |
boolean |
getDeleteOriginal() |
boolean |
getReplaceOriginal() |
TopLevelMessageResponseType |
getResponseType() |
Optional<String> |
getText() |
int |
hashCode()
Computes a hash code from attributes:
responseType, replaceOriginal, deleteOriginal, text, attachments. |
String |
toString()
Prints the immutable value
TopLevelMessageInteractionResponse with attribute values. |
TopLevelMessageInteractionResponse |
withAttachments(Attachment... elements)
Copy the current immutable object with elements that replace the content of
attachments. |
TopLevelMessageInteractionResponse |
withAttachments(Iterable<? extends Attachment> elements)
Copy the current immutable object with elements that replace the content of
attachments. |
TopLevelMessageInteractionResponse |
withDeleteOriginal(boolean deleteOriginal)
Copy the current immutable object by setting a value for the
deleteOriginal attribute. |
TopLevelMessageInteractionResponse |
withReplaceOriginal(boolean replaceOriginal)
Copy the current immutable object by setting a value for the
replaceOriginal attribute. |
TopLevelMessageInteractionResponse |
withResponseType(TopLevelMessageResponseType responseType)
Copy the current immutable object by setting a value for the
responseType attribute. |
TopLevelMessageInteractionResponse |
withText(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
text attribute. |
TopLevelMessageInteractionResponse |
withText(String value)
Copy the current immutable object by setting a present value for the optional
text attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckpublic TopLevelMessageResponseType getResponseType()
getResponseType in interface TopLevelMessageInteractionResponseIFresponseType attributepublic boolean getReplaceOriginal()
getReplaceOriginal in interface TopLevelMessageInteractionResponseIFreplaceOriginal attributepublic boolean getDeleteOriginal()
getDeleteOriginal in interface TopLevelMessageInteractionResponseIFdeleteOriginal attributepublic Optional<String> getText()
getText in interface TopLevelMessageInteractionResponseIFtext attributepublic List<Attachment> getAttachments()
getAttachments in interface TopLevelMessageInteractionResponseIFattachments attributepublic final TopLevelMessageInteractionResponse withResponseType(TopLevelMessageResponseType responseType)
responseType attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.responseType - A new value for responseTypethis objectpublic final TopLevelMessageInteractionResponse withReplaceOriginal(boolean replaceOriginal)
replaceOriginal attribute.
A value equality check is used to prevent copying of the same value by returning this.replaceOriginal - A new value for replaceOriginalthis objectpublic final TopLevelMessageInteractionResponse withDeleteOriginal(boolean deleteOriginal)
deleteOriginal attribute.
A value equality check is used to prevent copying of the same value by returning this.deleteOriginal - A new value for deleteOriginalthis objectpublic final TopLevelMessageInteractionResponse withText(@Nullable String value)
text attribute.value - The value for text, null is accepted as java.util.Optional.empty()this objectpublic final TopLevelMessageInteractionResponse withText(Optional<String> optional)
text attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for textthis objectpublic final TopLevelMessageInteractionResponse withAttachments(Attachment... elements)
attachments.elements - The elements to setthis objectpublic final TopLevelMessageInteractionResponse withAttachments(Iterable<? extends Attachment> elements)
attachments.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of attachments elements to setthis objectpublic boolean equals(@Nullable Object another)
TopLevelMessageInteractionResponse that have equal attribute values.public int hashCode()
responseType, replaceOriginal, deleteOriginal, text, attachments.public String toString()
TopLevelMessageInteractionResponse with attribute values.public static TopLevelMessageInteractionResponse copyOf(TopLevelMessageInteractionResponseIF instance)
TopLevelMessageInteractionResponseIF 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 TopLevelMessageInteractionResponse.Builder builder()
TopLevelMessageInteractionResponse.Copyright © 2019. All rights reserved.