@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractSlackFormTextElement"}) @Immutable public final class SlackFormTextElement extends AbstractSlackFormTextElement
AbstractSlackFormTextElement.
Use the builder to create immutable instances:
SlackFormTextElement.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackFormTextElement.Builder
Builds instances of type
SlackFormTextElement. |
| Modifier and Type | Method and Description |
|---|---|
static SlackFormTextElement.Builder |
builder()
Creates a builder for
SlackFormTextElement. |
static SlackFormTextElement |
copyOf(AbstractSlackFormTextElement instance)
Creates an immutable copy of a
AbstractSlackFormTextElement value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackFormTextElement that have equal attribute values. |
Optional<String> |
getHint() |
String |
getLabel() |
int |
getMaxLength() |
int |
getMinLength() |
String |
getName() |
Optional<String> |
getPlaceholder() |
Optional<SlackFormElementSubtypes> |
getSubtype() |
SlackFormElementTypes |
getType() |
Optional<String> |
getValue() |
int |
hashCode()
Computes a hash code from attributes:
type, subtype, hint, minLength, maxLength, value, name, label, placeholder, optional. |
Optional<Boolean> |
isOptional() |
String |
toString()
Prints the immutable value
SlackFormTextElement with attribute values. |
SlackFormTextElement |
withHint(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
hint attribute. |
SlackFormTextElement |
withHint(String value)
Copy the current immutable object by setting a present value for the optional
hint attribute. |
SlackFormTextElement |
withLabel(String label)
Copy the current immutable object by setting a value for the
label attribute. |
SlackFormTextElement |
withMaxLength(int maxLength)
Copy the current immutable object by setting a value for the
maxLength attribute. |
SlackFormTextElement |
withMinLength(int minLength)
Copy the current immutable object by setting a value for the
minLength attribute. |
SlackFormTextElement |
withName(String name)
Copy the current immutable object by setting a value for the
name attribute. |
SlackFormTextElement |
withOptional(Boolean value)
Copy the current immutable object by setting a present value for the optional
optional attribute. |
SlackFormTextElement |
withOptional(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
optional attribute. |
SlackFormTextElement |
withPlaceholder(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
placeholder attribute. |
SlackFormTextElement |
withPlaceholder(String value)
Copy the current immutable object by setting a present value for the optional
placeholder attribute. |
SlackFormTextElement |
withSubtype(Optional<SlackFormElementSubtypes> optional)
Copy the current immutable object by setting an optional value for the
subtype attribute. |
SlackFormTextElement |
withSubtype(SlackFormElementSubtypes value)
Copy the current immutable object by setting a present value for the optional
subtype attribute. |
SlackFormTextElement |
withType(SlackFormElementTypes type)
Copy the current immutable object by setting a value for the
type attribute. |
SlackFormTextElement |
withValue(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
value attribute. |
SlackFormTextElement |
withValue(String value)
Copy the current immutable object by setting a present value for the optional
value attribute. |
validatevalidateBaseTextElementPropsvalidateBaseElementPropertiespublic SlackFormElementTypes getType()
getType in class AbstractSlackFormTextElementtype attributepublic Optional<SlackFormElementSubtypes> getSubtype()
getSubtype in class AbstractSlackDialogFormTextElementsubtype attributepublic Optional<String> getHint()
getHint in class AbstractSlackDialogFormTextElementhint attributepublic int getMinLength()
getMinLength in class AbstractSlackDialogFormTextElementminLength attributepublic int getMaxLength()
getMaxLength in class AbstractSlackDialogFormTextElementmaxLength attributepublic Optional<String> getValue()
getValue in class AbstractSlackDialogFormTextElementvalue 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 SlackFormTextElement 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 SlackFormTextElement withSubtype(@Nullable SlackFormElementSubtypes value)
subtype attribute.value - The value for subtype, null is accepted as java.util.Optional.empty()this objectpublic final SlackFormTextElement withSubtype(Optional<SlackFormElementSubtypes> optional)
subtype attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for subtypethis objectpublic final SlackFormTextElement withHint(@Nullable String value)
hint attribute.value - The value for hint, null is accepted as java.util.Optional.empty()this objectpublic final SlackFormTextElement withHint(Optional<String> optional)
hint attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for hintthis objectpublic final SlackFormTextElement withMinLength(int minLength)
minLength attribute.
A value equality check is used to prevent copying of the same value by returning this.minLength - A new value for minLengththis objectpublic final SlackFormTextElement withMaxLength(int maxLength)
maxLength attribute.
A value equality check is used to prevent copying of the same value by returning this.maxLength - A new value for maxLengththis objectpublic final SlackFormTextElement withValue(@Nullable String value)
value attribute.value - The value for value, null is accepted as java.util.Optional.empty()this objectpublic final SlackFormTextElement 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 SlackFormTextElement 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 SlackFormTextElement 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 SlackFormTextElement withPlaceholder(@Nullable String value)
placeholder attribute.value - The value for placeholder, null is accepted as java.util.Optional.empty()this objectpublic final SlackFormTextElement 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 SlackFormTextElement withOptional(@Nullable Boolean value)
optional attribute.value - The value for optional, null is accepted as java.util.Optional.empty()this objectpublic final SlackFormTextElement 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)
SlackFormTextElement that have equal attribute values.public int hashCode()
type, subtype, hint, minLength, maxLength, value, name, label, placeholder, optional.public String toString()
SlackFormTextElement with attribute values.public static SlackFormTextElement copyOf(AbstractSlackFormTextElement instance)
AbstractSlackFormTextElement 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 SlackFormTextElement.Builder builder()
SlackFormTextElement.Copyright © 2019. All rights reserved.