@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ConversationSelectMenuIF"}) @Immutable public final class ConversationSelectMenu extends Object implements ConversationSelectMenuIF
ConversationSelectMenuIF.
Use the builder to create immutable instances:
ConversationSelectMenu.builder().
Use the static factory method to create immutable instances:
ConversationSelectMenu.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ConversationSelectMenu.Builder
Builds instances of type
ConversationSelectMenu. |
TYPE| Modifier and Type | Method and Description |
|---|---|
static ConversationSelectMenu.Builder |
builder()
Creates a builder for
ConversationSelectMenu. |
static ConversationSelectMenu |
copyOf(ConversationSelectMenuIF instance)
Creates an immutable copy of a
ConversationSelectMenuIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ConversationSelectMenu that have equal attribute values. |
String |
getActionId() |
Optional<ConfirmationDialog> |
getConfirmationDialog() |
Optional<String> |
getInitialConversationId() |
Text |
getPlaceholder() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
type, placeholder, actionId, initialConversationId, confirmationDialog. |
static ConversationSelectMenu |
of(Text placeholder,
String actionId)
Construct a new immutable
ConversationSelectMenu instance. |
String |
toString()
Prints the immutable value
ConversationSelectMenu with attribute values. |
ConversationSelectMenu |
withActionId(String actionId)
Copy the current immutable object by setting a value for the
actionId attribute. |
ConversationSelectMenu |
withConfirmationDialog(ConfirmationDialog value)
Copy the current immutable object by setting a present value for the optional
confirmationDialog attribute. |
ConversationSelectMenu |
withConfirmationDialog(Optional<ConfirmationDialog> optional)
Copy the current immutable object by setting an optional value for the
confirmationDialog attribute. |
ConversationSelectMenu |
withInitialConversationId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
initialConversationId attribute. |
ConversationSelectMenu |
withInitialConversationId(String value)
Copy the current immutable object by setting a present value for the optional
initialConversationId attribute. |
ConversationSelectMenu |
withPlaceholder(Text placeholder)
Copy the current immutable object by setting a value for the
placeholder attribute. |
public String getType()
getType in interface BlockElementgetType in interface ConversationSelectMenuIFtype attributepublic Text getPlaceholder()
getPlaceholder in interface ConversationSelectMenuIFplaceholder attributepublic String getActionId()
getActionId in interface ConversationSelectMenuIFactionId attributepublic Optional<String> getInitialConversationId()
getInitialConversationId in interface ConversationSelectMenuIFinitialConversationId attributepublic Optional<ConfirmationDialog> getConfirmationDialog()
getConfirmationDialog in interface ConversationSelectMenuIFconfirmationDialog attributepublic final ConversationSelectMenu withPlaceholder(Text placeholder)
placeholder attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.placeholder - A new value for placeholderthis objectpublic final ConversationSelectMenu withActionId(String actionId)
actionId attribute.
An equals check used to prevent copying of the same value by returning this.actionId - A new value for actionIdthis objectpublic final ConversationSelectMenu withInitialConversationId(@Nullable String value)
initialConversationId attribute.value - The value for initialConversationId, null is accepted as java.util.Optional.empty()this objectpublic final ConversationSelectMenu withInitialConversationId(Optional<String> optional)
initialConversationId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for initialConversationIdthis objectpublic final ConversationSelectMenu withConfirmationDialog(@Nullable ConfirmationDialog value)
confirmationDialog attribute.value - The value for confirmationDialog, null is accepted as java.util.Optional.empty()this objectpublic final ConversationSelectMenu withConfirmationDialog(Optional<ConfirmationDialog> optional)
confirmationDialog 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 confirmationDialogthis objectpublic boolean equals(@Nullable Object another)
ConversationSelectMenu that have equal attribute values.public int hashCode()
type, placeholder, actionId, initialConversationId, confirmationDialog.public String toString()
ConversationSelectMenu with attribute values.public static ConversationSelectMenu of(Text placeholder, String actionId)
ConversationSelectMenu instance.placeholder - The value for the placeholder attributeactionId - The value for the actionId attributepublic static ConversationSelectMenu copyOf(ConversationSelectMenuIF instance)
ConversationSelectMenuIF 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 ConversationSelectMenu.Builder builder()
ConversationSelectMenu.Copyright © 2019. All rights reserved.