@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractSlackFormSelectElement"}) @Immutable public final class SlackFormSelectElement extends AbstractSlackFormSelectElement
AbstractSlackFormSelectElement.
Use the builder to create immutable instances:
SlackFormSelectElement.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackFormSelectElement.Builder
Builds instances of type
SlackFormSelectElement. |
| Modifier and Type | Method and Description |
|---|---|
static SlackFormSelectElement.Builder |
builder()
Creates a builder for
SlackFormSelectElement. |
static SlackFormSelectElement |
copyOf(AbstractSlackFormSelectElement instance)
Creates an immutable copy of a
AbstractSlackFormSelectElement value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackFormSelectElement that have equal attribute values. |
SlackDataSource |
getDataSource() |
String |
getLabel() |
Optional<Integer> |
getMinQueryLength() |
String |
getName() |
List<SlackFormOptionGroup> |
getOptionGroups() |
List<SlackFormOption> |
getOptions() |
Optional<String> |
getPlaceholder() |
List<SlackFormOption> |
getSelectedOptions() |
SlackFormElementTypes |
getType() |
Optional<String> |
getValue() |
int |
hashCode()
Computes a hash code from attributes:
type, dataSource, options, optionGroups, value, selectedOptions, minQueryLength, name, label, placeholder, optional. |
Optional<Boolean> |
isOptional() |
String |
toString()
Prints the immutable value
SlackFormSelectElement with attribute values. |
SlackFormSelectElement |
withDataSource(SlackDataSource dataSource)
Copy the current immutable object by setting a value for the
dataSource attribute. |
SlackFormSelectElement |
withLabel(String label)
Copy the current immutable object by setting a value for the
label attribute. |
SlackFormSelectElement |
withMinQueryLength(Integer value)
Copy the current immutable object by setting a present value for the optional
minQueryLength attribute. |
SlackFormSelectElement |
withMinQueryLength(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
minQueryLength attribute. |
SlackFormSelectElement |
withName(String name)
Copy the current immutable object by setting a value for the
name attribute. |
SlackFormSelectElement |
withOptional(Boolean value)
Copy the current immutable object by setting a present value for the optional
optional attribute. |
SlackFormSelectElement |
withOptional(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
optional attribute. |
SlackFormSelectElement |
withOptionGroups(Iterable<? extends SlackFormOptionGroup> elements)
Copy the current immutable object with elements that replace the content of
optionGroups. |
SlackFormSelectElement |
withOptionGroups(SlackFormOptionGroup... elements)
Copy the current immutable object with elements that replace the content of
optionGroups. |
SlackFormSelectElement |
withOptions(Iterable<? extends SlackFormOption> elements)
Copy the current immutable object with elements that replace the content of
options. |
SlackFormSelectElement |
withOptions(SlackFormOption... elements)
Copy the current immutable object with elements that replace the content of
options. |
SlackFormSelectElement |
withPlaceholder(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
placeholder attribute. |
SlackFormSelectElement |
withPlaceholder(String value)
Copy the current immutable object by setting a present value for the optional
placeholder attribute. |
SlackFormSelectElement |
withSelectedOptions(Iterable<? extends SlackFormOption> elements)
Copy the current immutable object with elements that replace the content of
selectedOptions. |
SlackFormSelectElement |
withSelectedOptions(SlackFormOption... elements)
Copy the current immutable object with elements that replace the content of
selectedOptions. |
SlackFormSelectElement |
withType(SlackFormElementTypes type)
Copy the current immutable object by setting a value for the
type attribute. |
SlackFormSelectElement |
withValue(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
value attribute. |
SlackFormSelectElement |
withValue(String value)
Copy the current immutable object by setting a present value for the optional
value attribute. |
validatevalidateBaseElementPropertiespublic SlackFormElementTypes getType()
getType in class AbstractSlackFormSelectElementtype attributepublic SlackDataSource getDataSource()
getDataSource in class AbstractSlackFormSelectElementdataSource attributepublic List<SlackFormOption> getOptions()
getOptions in class AbstractSlackFormSelectElementoptions attributepublic List<SlackFormOptionGroup> getOptionGroups()
getOptionGroups in class AbstractSlackFormSelectElementoptionGroups attributepublic Optional<String> getValue()
getValue in class AbstractSlackFormSelectElementvalue attributepublic List<SlackFormOption> getSelectedOptions()
getSelectedOptions in class AbstractSlackFormSelectElementselectedOptions attributepublic Optional<Integer> getMinQueryLength()
getMinQueryLength in class AbstractSlackFormSelectElementminQueryLength attributepublic String getName()
getName in class SlackDialogFormElementname attributepublic String getLabel()
getLabel in class SlackDialogFormElementlabel attributepublic Optional<String> getPlaceholder()
getPlaceholder in class SlackDialogFormElementplaceholder attributepublic Optional<Boolean> isOptional()
isOptional in class SlackDialogFormElementoptional attributepublic final SlackFormSelectElement withType(SlackFormElementTypes type)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.type - A new value for typethis objectpublic final SlackFormSelectElement withDataSource(SlackDataSource dataSource)
dataSource attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.dataSource - A new value for dataSourcethis objectpublic final SlackFormSelectElement withOptions(SlackFormOption... elements)
options.elements - The elements to setthis objectpublic final SlackFormSelectElement withOptions(Iterable<? extends SlackFormOption> 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 SlackFormSelectElement withOptionGroups(SlackFormOptionGroup... elements)
optionGroups.elements - The elements to setthis objectpublic final SlackFormSelectElement withOptionGroups(Iterable<? extends SlackFormOptionGroup> 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 SlackFormSelectElement withValue(@Nullable String value)
value attribute.value - The value for value, null is accepted as java.util.Optional.empty()this objectpublic final SlackFormSelectElement withValue(Optional<String> optional)
value attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for valuethis objectpublic final SlackFormSelectElement withSelectedOptions(SlackFormOption... elements)
selectedOptions.elements - The elements to setthis objectpublic final SlackFormSelectElement withSelectedOptions(Iterable<? extends SlackFormOption> elements)
selectedOptions.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of selectedOptions elements to setthis objectpublic final SlackFormSelectElement withMinQueryLength(@Nullable Integer value)
minQueryLength attribute.value - The value for minQueryLength, null is accepted as java.util.Optional.empty()this objectpublic final SlackFormSelectElement 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 SlackFormSelectElement withName(String name)
name attribute.
An equals check used to prevent copying of the same value by returning this.name - A new value for namethis objectpublic final SlackFormSelectElement withLabel(String label)
label attribute.
An equals check used to prevent copying of the same value by returning this.label - A new value for labelthis objectpublic final SlackFormSelectElement withPlaceholder(@Nullable String value)
placeholder attribute.value - The value for placeholder, null is accepted as java.util.Optional.empty()this objectpublic final SlackFormSelectElement withPlaceholder(Optional<String> optional)
placeholder attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for placeholderthis objectpublic final SlackFormSelectElement withOptional(@Nullable Boolean value)
optional attribute.value - The value for optional, null is accepted as java.util.Optional.empty()this objectpublic final SlackFormSelectElement withOptional(Optional<Boolean> optional)
optional attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for optionalthis objectpublic boolean equals(@Nullable Object another)
SlackFormSelectElement that have equal attribute values.public int hashCode()
type, dataSource, options, optionGroups, value, selectedOptions, minQueryLength, name, label, placeholder, optional.public String toString()
SlackFormSelectElement with attribute values.public static SlackFormSelectElement copyOf(AbstractSlackFormSelectElement instance)
AbstractSlackFormSelectElement 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 SlackFormSelectElement.Builder builder()
SlackFormSelectElement.Copyright © 2019. All rights reserved.