@NotThreadSafe public static final class PlainTextInput.Builder extends Object
PlainTextInput.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
PlainTextInput |
build()
Builds a new
PlainTextInput. |
PlainTextInput.Builder |
from(PlainTextInputIF instance)
Fill a builder with attribute values from the provided
PlainTextInputIF instance. |
PlainTextInput.Builder |
setActionId(String actionId)
Initializes the value for the
actionId attribute. |
PlainTextInput.Builder |
setInitialValue(Optional<String> initialValue)
Initializes the optional value
initialValue to initialValue. |
PlainTextInput.Builder |
setInitialValue(String initialValue)
Initializes the optional value
initialValue to initialValue. |
PlainTextInput.Builder |
setMaxLength(Integer maxLength)
Initializes the optional value
maxLength to maxLength. |
PlainTextInput.Builder |
setMaxLength(Optional<Integer> maxLength)
Initializes the optional value
maxLength to maxLength. |
PlainTextInput.Builder |
setMinLength(Integer minLength)
Initializes the optional value
minLength to minLength. |
PlainTextInput.Builder |
setMinLength(Optional<Integer> minLength)
Initializes the optional value
minLength to minLength. |
PlainTextInput.Builder |
setMultiline(Boolean multiline)
Initializes the optional value
multiline to multiline. |
PlainTextInput.Builder |
setMultiline(Optional<Boolean> multiline)
Initializes the optional value
multiline to multiline. |
PlainTextInput.Builder |
setPlaceholder(Optional<Text> placeholder)
Initializes the optional value
placeholder to placeholder. |
PlainTextInput.Builder |
setPlaceholder(Text placeholder)
Initializes the optional value
placeholder to placeholder. |
public final PlainTextInput.Builder from(PlainTextInputIF instance)
PlainTextInputIF instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final PlainTextInput.Builder setActionId(String actionId)
actionId attribute.actionId - The value for actionIdthis builder for use in a chained invocationpublic final PlainTextInput.Builder setPlaceholder(@Nullable Text placeholder)
placeholder to placeholder.placeholder - The value for placeholder, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final PlainTextInput.Builder setPlaceholder(Optional<Text> placeholder)
placeholder to placeholder.placeholder - The value for placeholderthis builder for use in a chained invocationpublic final PlainTextInput.Builder setInitialValue(@Nullable String initialValue)
initialValue to initialValue.initialValue - The value for initialValue, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final PlainTextInput.Builder setInitialValue(Optional<String> initialValue)
initialValue to initialValue.initialValue - The value for initialValuethis builder for use in a chained invocationpublic final PlainTextInput.Builder setMultiline(@Nullable Boolean multiline)
multiline to multiline.multiline - The value for multiline, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final PlainTextInput.Builder setMultiline(Optional<Boolean> multiline)
multiline to multiline.multiline - The value for multilinethis builder for use in a chained invocationpublic final PlainTextInput.Builder setMinLength(@Nullable Integer minLength)
minLength to minLength.minLength - The value for minLength, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final PlainTextInput.Builder setMinLength(Optional<Integer> minLength)
minLength to minLength.minLength - The value for minLengththis builder for use in a chained invocationpublic final PlainTextInput.Builder setMaxLength(@Nullable Integer maxLength)
maxLength to maxLength.maxLength - The value for maxLength, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final PlainTextInput.Builder setMaxLength(Optional<Integer> maxLength)
maxLength to maxLength.maxLength - The value for maxLengththis builder for use in a chained invocationpublic PlainTextInput build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
PlainTextInput.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.