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