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