@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","StaticMultiSelectMenuIF"}) @Immutable public final class StaticMultiSelectMenu extends Object implements StaticMultiSelectMenuIF
StaticMultiSelectMenuIF.
Use the builder to create immutable instances:
StaticMultiSelectMenu.builder().
Use the static factory method to create immutable instances:
StaticMultiSelectMenu.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
StaticMultiSelectMenu.Builder
Builds instances of type
StaticMultiSelectMenu. |
TYPE| Modifier and Type | Method and Description |
|---|---|
static StaticMultiSelectMenu.Builder |
builder()
Creates a builder for
StaticMultiSelectMenu. |
static StaticMultiSelectMenu |
copyOf(StaticMultiSelectMenuIF instance)
Creates an immutable copy of a
StaticMultiSelectMenuIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
StaticMultiSelectMenu that have equal attribute values. |
String |
getActionId() |
Optional<ConfirmationDialog> |
getConfirmationDialog() |
List<OptionOrOptionGroup> |
getInitialOptions() |
List<OptionGroup> |
getOptionGroups() |
List<Option> |
getOptions() |
Text |
getPlaceholder() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
type, placeholder, actionId, options, optionGroups, initialOptions, confirmationDialog. |
static StaticMultiSelectMenu |
of(Text placeholder,
String actionId,
Iterable<? extends Option> options)
Construct a new immutable
StaticMultiSelectMenu instance. |
static StaticMultiSelectMenu |
of(Text placeholder,
String actionId,
List<Option> options)
Construct a new immutable
StaticMultiSelectMenu instance. |
String |
toString()
Prints the immutable value
StaticMultiSelectMenu with attribute values. |
StaticMultiSelectMenu |
withActionId(String actionId)
Copy the current immutable object by setting a value for the
actionId attribute. |
StaticMultiSelectMenu |
withConfirmationDialog(ConfirmationDialog value)
Copy the current immutable object by setting a present value for the optional
confirmationDialog attribute. |
StaticMultiSelectMenu |
withConfirmationDialog(Optional<ConfirmationDialog> optional)
Copy the current immutable object by setting an optional value for the
confirmationDialog attribute. |
StaticMultiSelectMenu |
withInitialOptions(Iterable<? extends OptionOrOptionGroup> elements)
Copy the current immutable object with elements that replace the content of
initialOptions. |
StaticMultiSelectMenu |
withInitialOptions(OptionOrOptionGroup... elements)
Copy the current immutable object with elements that replace the content of
initialOptions. |
StaticMultiSelectMenu |
withOptionGroups(Iterable<? extends OptionGroup> elements)
Copy the current immutable object with elements that replace the content of
optionGroups. |
StaticMultiSelectMenu |
withOptionGroups(OptionGroup... elements)
Copy the current immutable object with elements that replace the content of
optionGroups. |
StaticMultiSelectMenu |
withOptions(Iterable<? extends Option> elements)
Copy the current immutable object with elements that replace the content of
options. |
StaticMultiSelectMenu |
withOptions(Option... elements)
Copy the current immutable object with elements that replace the content of
options. |
StaticMultiSelectMenu |
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 StaticMultiSelectMenuIFtype attributepublic Text getPlaceholder()
getPlaceholder in interface StaticMultiSelectMenuIFplaceholder attributepublic String getActionId()
getActionId in interface StaticMultiSelectMenuIFactionId attributepublic List<Option> getOptions()
getOptions in interface StaticMultiSelectMenuIFoptions attributepublic List<OptionGroup> getOptionGroups()
getOptionGroups in interface StaticMultiSelectMenuIFoptionGroups attributepublic List<OptionOrOptionGroup> getInitialOptions()
getInitialOptions in interface StaticMultiSelectMenuIFinitialOptions attributepublic Optional<ConfirmationDialog> getConfirmationDialog()
getConfirmationDialog in interface StaticMultiSelectMenuIFconfirmationDialog attributepublic final StaticMultiSelectMenu 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 StaticMultiSelectMenu 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 StaticMultiSelectMenu withOptions(Option... elements)
options.elements - The elements to setthis objectpublic final StaticMultiSelectMenu withOptions(Iterable<? extends Option> elements)
options.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of options elements to setthis objectpublic final StaticMultiSelectMenu withOptionGroups(OptionGroup... elements)
optionGroups.elements - The elements to setthis objectpublic final StaticMultiSelectMenu withOptionGroups(Iterable<? extends OptionGroup> elements)
optionGroups.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of optionGroups elements to setthis objectpublic final StaticMultiSelectMenu withInitialOptions(OptionOrOptionGroup... elements)
initialOptions.elements - The elements to setthis objectpublic final StaticMultiSelectMenu withInitialOptions(Iterable<? extends OptionOrOptionGroup> elements)
initialOptions.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of initialOptions elements to setthis objectpublic final StaticMultiSelectMenu withConfirmationDialog(@Nullable ConfirmationDialog value)
confirmationDialog attribute.value - The value for confirmationDialog, null is accepted as java.util.Optional.empty()this objectpublic final StaticMultiSelectMenu 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)
StaticMultiSelectMenu that have equal attribute values.public int hashCode()
type, placeholder, actionId, options, optionGroups, initialOptions, confirmationDialog.public String toString()
StaticMultiSelectMenu with attribute values.public static StaticMultiSelectMenu of(Text placeholder, String actionId, List<Option> options)
StaticMultiSelectMenu instance.placeholder - The value for the placeholder attributeactionId - The value for the actionId attributeoptions - The value for the options attributepublic static StaticMultiSelectMenu of(Text placeholder, String actionId, Iterable<? extends Option> options)
StaticMultiSelectMenu instance.placeholder - The value for the placeholder attributeactionId - The value for the actionId attributeoptions - The value for the options attributepublic static StaticMultiSelectMenu copyOf(StaticMultiSelectMenuIF instance)
StaticMultiSelectMenuIF 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 StaticMultiSelectMenu.Builder builder()
StaticMultiSelectMenu.Copyright © 2019. All rights reserved.