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