@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","PlainTextInputIF"}) @Immutable public final class PlainTextInput extends Object implements PlainTextInputIF
PlainTextInputIF.
Use the builder to create immutable instances:
PlainTextInput.builder().
Use the static factory method to create immutable instances:
PlainTextInput.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
PlainTextInput.Builder
Builds instances of type
PlainTextInput. |
TYPE| Modifier and Type | Method and Description |
|---|---|
static PlainTextInput.Builder |
builder()
Creates a builder for
PlainTextInput. |
static PlainTextInput |
copyOf(PlainTextInputIF instance)
Creates an immutable copy of a
PlainTextInputIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
PlainTextInput that have equal attribute values. |
String |
getActionId() |
Optional<String> |
getInitialValue() |
Optional<Integer> |
getMaxLength() |
Optional<Integer> |
getMinLength() |
Optional<Text> |
getPlaceholder() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
type, actionId, placeholder, initialValue, multiline, minLength, maxLength. |
Optional<Boolean> |
isMultiline() |
static PlainTextInput |
of(String actionId)
Construct a new immutable
PlainTextInput instance. |
String |
toString()
Prints the immutable value
PlainTextInput with attribute values. |
PlainTextInput |
withActionId(String actionId)
Copy the current immutable object by setting a value for the
actionId attribute. |
PlainTextInput |
withInitialValue(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
initialValue attribute. |
PlainTextInput |
withInitialValue(String value)
Copy the current immutable object by setting a present value for the optional
initialValue attribute. |
PlainTextInput |
withMaxLength(Integer value)
Copy the current immutable object by setting a present value for the optional
maxLength attribute. |
PlainTextInput |
withMaxLength(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
maxLength attribute. |
PlainTextInput |
withMinLength(Integer value)
Copy the current immutable object by setting a present value for the optional
minLength attribute. |
PlainTextInput |
withMinLength(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for the
minLength attribute. |
PlainTextInput |
withMultiline(Boolean value)
Copy the current immutable object by setting a present value for the optional
multiline attribute. |
PlainTextInput |
withMultiline(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
multiline attribute. |
PlainTextInput |
withPlaceholder(Optional<Text> optional)
Copy the current immutable object by setting an optional value for the
placeholder attribute. |
PlainTextInput |
withPlaceholder(Text value)
Copy the current immutable object by setting a present value for the optional
placeholder attribute. |
public String getType()
getType in interface BlockElementgetType in interface PlainTextInputIFtype attributepublic String getActionId()
getActionId in interface PlainTextInputIFactionId attributepublic Optional<Text> getPlaceholder()
getPlaceholder in interface PlainTextInputIFplaceholder attributepublic Optional<String> getInitialValue()
getInitialValue in interface PlainTextInputIFinitialValue attributepublic Optional<Boolean> isMultiline()
isMultiline in interface PlainTextInputIFmultiline attributepublic Optional<Integer> getMinLength()
getMinLength in interface PlainTextInputIFminLength attributepublic Optional<Integer> getMaxLength()
getMaxLength in interface PlainTextInputIFmaxLength attributepublic final PlainTextInput 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 PlainTextInput withPlaceholder(@Nullable Text value)
placeholder attribute.value - The value for placeholder, null is accepted as java.util.Optional.empty()this objectpublic final PlainTextInput withPlaceholder(Optional<Text> optional)
placeholder 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 placeholderthis objectpublic final PlainTextInput withInitialValue(@Nullable String value)
initialValue attribute.value - The value for initialValue, null is accepted as java.util.Optional.empty()this objectpublic final PlainTextInput withInitialValue(Optional<String> optional)
initialValue attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for initialValuethis objectpublic final PlainTextInput withMultiline(@Nullable Boolean value)
multiline attribute.value - The value for multiline, null is accepted as java.util.Optional.empty()this objectpublic final PlainTextInput withMultiline(Optional<Boolean> optional)
multiline attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for multilinethis objectpublic final PlainTextInput withMinLength(@Nullable Integer value)
minLength attribute.value - The value for minLength, null is accepted as java.util.Optional.empty()this objectpublic final PlainTextInput withMinLength(Optional<Integer> optional)
minLength attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for minLengththis objectpublic final PlainTextInput withMaxLength(@Nullable Integer value)
maxLength attribute.value - The value for maxLength, null is accepted as java.util.Optional.empty()this objectpublic final PlainTextInput withMaxLength(Optional<Integer> optional)
maxLength attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for maxLengththis objectpublic boolean equals(@Nullable Object another)
PlainTextInput that have equal attribute values.public int hashCode()
type, actionId, placeholder, initialValue, multiline, minLength, maxLength.public String toString()
PlainTextInput with attribute values.public static PlainTextInput of(String actionId)
PlainTextInput instance.actionId - The value for the actionId attributepublic static PlainTextInput copyOf(PlainTextInputIF instance)
PlainTextInputIF 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 PlainTextInput.Builder builder()
PlainTextInput.Copyright © 2019. All rights reserved.