@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractSlackFormTextareaElement"}) @Immutable public final class SlackFormTextareaElement extends AbstractSlackFormTextareaElement
AbstractSlackFormTextareaElement.
Use the builder to create immutable instances:
SlackFormTextareaElement.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackFormTextareaElement.Builder
Builds instances of type
SlackFormTextareaElement. |
| Modifier and Type | Method and Description |
|---|---|
static SlackFormTextareaElement.Builder |
builder()
Creates a builder for
SlackFormTextareaElement. |
static SlackFormTextareaElement |
copyOf(AbstractSlackFormTextareaElement instance)
Creates an immutable copy of a
AbstractSlackFormTextareaElement value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackFormTextareaElement 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
SlackFormTextareaElement with attribute values. |
SlackFormTextareaElement |
withHint(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
hint attribute. |
SlackFormTextareaElement |
withHint(String value)
Copy the current immutable object by setting a present value for the optional
hint attribute. |
SlackFormTextareaElement |
withLabel(String label)
Copy the current immutable object by setting a value for the
label attribute. |
SlackFormTextareaElement |
withMaxLength(int maxLength)
Copy the current immutable object by setting a value for the
maxLength attribute. |
SlackFormTextareaElement |
withMinLength(int minLength)
Copy the current immutable object by setting a value for the
minLength attribute. |
SlackFormTextareaElement |
withName(String name)
Copy the current immutable object by setting a value for the
name attribute. |
SlackFormTextareaElement |
withOptional(Boolean value)
Copy the current immutable object by setting a present value for the optional
optional attribute. |
SlackFormTextareaElement |
withOptional(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
optional attribute. |
SlackFormTextareaElement |
withPlaceholder(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
placeholder attribute. |
SlackFormTextareaElement |
withPlaceholder(String value)
Copy the current immutable object by setting a present value for the optional
placeholder attribute. |
SlackFormTextareaElement |
withSubtype(Optional<SlackFormElementSubtypes> optional)
Copy the current immutable object by setting an optional value for the
subtype attribute. |
SlackFormTextareaElement |
withSubtype(SlackFormElementSubtypes value)
Copy the current immutable object by setting a present value for the optional
subtype attribute. |
SlackFormTextareaElement |
withType(SlackFormElementTypes type)
Copy the current immutable object by setting a value for the
type attribute. |
SlackFormTextareaElement |
withValue(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
value attribute. |
SlackFormTextareaElement |
withValue(String value)
Copy the current immutable object by setting a present value for the optional
value attribute. |
validatevalidateBaseTextElementPropsvalidateBaseElementPropertiespublic SlackFormElementTypes getType()
getType in class AbstractSlackFormTextareaElementtype 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 SlackFormTextareaElement 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 SlackFormTextareaElement withSubtype(@Nullable SlackFormElementSubtypes value)
subtype attribute.value - The value for subtype, null is accepted as java.util.Optional.empty()this objectpublic final SlackFormTextareaElement 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 SlackFormTextareaElement withHint(@Nullable String value)
hint attribute.value - The value for hint, null is accepted as java.util.Optional.empty()this objectpublic final SlackFormTextareaElement 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 SlackFormTextareaElement 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 SlackFormTextareaElement 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 SlackFormTextareaElement withValue(@Nullable String value)
value attribute.value - The value for value, null is accepted as java.util.Optional.empty()this objectpublic final SlackFormTextareaElement 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 SlackFormTextareaElement 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 SlackFormTextareaElement 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 SlackFormTextareaElement withPlaceholder(@Nullable String value)
placeholder attribute.value - The value for placeholder, null is accepted as java.util.Optional.empty()this objectpublic final SlackFormTextareaElement 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 SlackFormTextareaElement withOptional(@Nullable Boolean value)
optional attribute.value - The value for optional, null is accepted as java.util.Optional.empty()this objectpublic final SlackFormTextareaElement 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)
SlackFormTextareaElement that have equal attribute values.public int hashCode()
type, subtype, hint, minLength, maxLength, value, name, label, placeholder, optional.public String toString()
SlackFormTextareaElement with attribute values.public static SlackFormTextareaElement copyOf(AbstractSlackFormTextareaElement instance)
AbstractSlackFormTextareaElement 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 SlackFormTextareaElement.Builder builder()
SlackFormTextareaElement.Copyright © 2019. All rights reserved.