@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ActionIF"}) @Immutable public final class Action extends Object implements ActionIF
ActionIF.
Use the builder to create immutable instances:
Action.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
Action.Builder
Builds instances of type
Action. |
| Modifier and Type | Method and Description |
|---|---|
static Action.Builder |
builder()
Creates a builder for
Action. |
static Action |
copyOf(ActionIF instance)
Creates an immutable copy of a
ActionIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
Action that have equal attribute values. |
Optional<ButtonStyle> |
getButtonStyle() |
Optional<Confirm> |
getConfirm() |
Optional<SlackDataSource> |
getDataSource() |
Optional<Integer> |
getMinQueryLength() |
Optional<String> |
getName() |
List<Option> |
getOptions() |
Optional<String> |
getRawStyle() |
List<Option> |
getSelectedOptions() |
Optional<String> |
getText() |
ActionType |
getType() |
Optional<String> |
getUrl() |
Optional<String> |
getValue() |
int |
hashCode()
Computes a hash code from attributes:
name, type, text, value, confirm, url, rawStyle, buttonStyle, options, selectedOptions, dataSource, minQueryLength. |
String |
toString()
Prints the immutable value
Action with attribute values. |
Action |
withConfirm(Confirm value)
Copy the current immutable object by setting a present value for the optional
confirm attribute. |
Action |
withConfirm(Optional<Confirm> optional)
Copy the current immutable object by setting an optional value for the
confirm attribute. |
Action |
withDataSource(Optional<SlackDataSource> optional)
Copy the current immutable object by setting an optional value for the
dataSource attribute. |
Action |
withDataSource(SlackDataSource value)
Copy the current immutable object by setting a present value for the optional
dataSource attribute. |
Action |
withMinQueryLength(Integer value)
Copy the current immutable object by setting a present value for the optional
minQueryLength attribute. |
Action |
withMinQueryLength(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
minQueryLength attribute. |
Action |
withName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
name attribute. |
Action |
withName(String value)
Copy the current immutable object by setting a present value for the optional
name attribute. |
Action |
withOptions(Iterable<? extends Option> elements)
Copy the current immutable object with elements that replace the content of
options. |
Action |
withOptions(Option... elements)
Copy the current immutable object with elements that replace the content of
options. |
Action |
withRawStyle(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
rawStyle attribute. |
Action |
withRawStyle(String value)
Copy the current immutable object by setting a present value for the optional
rawStyle attribute. |
Action |
withSelectedOptions(Iterable<? extends Option> elements)
Copy the current immutable object with elements that replace the content of
selectedOptions. |
Action |
withSelectedOptions(Option... elements)
Copy the current immutable object with elements that replace the content of
selectedOptions. |
Action |
withText(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
text attribute. |
Action |
withText(String value)
Copy the current immutable object by setting a present value for the optional
text attribute. |
Action |
withType(ActionType type)
Copy the current immutable object by setting a value for the
type attribute. |
Action |
withUrl(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
url attribute. |
Action |
withUrl(String value)
Copy the current immutable object by setting a present value for the optional
url attribute. |
Action |
withValue(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
value attribute. |
Action |
withValue(String value)
Copy the current immutable object by setting a present value for the optional
value attribute. |
public ActionType getType()
public Optional<Confirm> getConfirm()
getConfirm in interface ActionIFconfirm attributepublic Optional<String> getRawStyle()
getRawStyle in interface ActionIFrawStyle attributepublic Optional<ButtonStyle> getButtonStyle()
getButtonStyle in interface ActionIFbuttonStyle attributepublic List<Option> getOptions()
getOptions in interface ActionIFoptions attributepublic List<Option> getSelectedOptions()
getSelectedOptions in interface ActionIFselectedOptions attributepublic Optional<SlackDataSource> getDataSource()
getDataSource in interface ActionIFdataSource attributepublic Optional<Integer> getMinQueryLength()
getMinQueryLength in interface ActionIFminQueryLength attributepublic final Action withName(@Nullable String value)
name attribute.value - The value for name, null is accepted as java.util.Optional.empty()this objectpublic final Action withName(Optional<String> optional)
name attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for namethis objectpublic final Action withType(ActionType 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 Action withText(@Nullable String value)
text attribute.value - The value for text, null is accepted as java.util.Optional.empty()this objectpublic final Action withText(Optional<String> optional)
text attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for textthis objectpublic final Action withValue(@Nullable String value)
value attribute.value - The value for value, null is accepted as java.util.Optional.empty()this objectpublic final Action 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 Action withConfirm(@Nullable Confirm value)
confirm attribute.value - The value for confirm, null is accepted as java.util.Optional.empty()this objectpublic final Action withConfirm(Optional<Confirm> optional)
confirm 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 confirmthis objectpublic final Action withUrl(@Nullable String value)
url attribute.value - The value for url, null is accepted as java.util.Optional.empty()this objectpublic final Action withUrl(Optional<String> optional)
url attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for urlthis objectpublic final Action withRawStyle(@Nullable String value)
rawStyle attribute.value - The value for rawStyle, null is accepted as java.util.Optional.empty()this objectpublic final Action withRawStyle(Optional<String> optional)
rawStyle attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for rawStylethis objectpublic final Action withOptions(Option... elements)
options.elements - The elements to setthis objectpublic final Action 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 Action withSelectedOptions(Option... elements)
selectedOptions.elements - The elements to setthis objectpublic final Action withSelectedOptions(Iterable<? extends Option> 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 Action withDataSource(@Nullable SlackDataSource value)
dataSource attribute.value - The value for dataSource, null is accepted as java.util.Optional.empty()this objectpublic final Action withDataSource(Optional<SlackDataSource> optional)
dataSource attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for dataSourcethis objectpublic final Action withMinQueryLength(@Nullable Integer value)
minQueryLength attribute.value - The value for minQueryLength, null is accepted as java.util.Optional.empty()this objectpublic final Action 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 boolean equals(@Nullable Object another)
Action that have equal attribute values.public int hashCode()
name, type, text, value, confirm, url, rawStyle, buttonStyle, options, selectedOptions, dataSource, minQueryLength.public String toString()
Action with attribute values.public static Action copyOf(ActionIF instance)
ActionIF 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 Action.Builder builder()
Action.Copyright © 2019. All rights reserved.