@NotThreadSafe public static final class ViewPlainTextInput.Builder extends Object
ViewPlainTextInput.
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 |
|---|---|
ViewPlainTextInput |
build()
Builds a new
ViewPlainTextInput. |
ViewPlainTextInput.Builder |
from(ViewInput instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.interaction.views.ViewInput instance. |
ViewPlainTextInput.Builder |
from(ViewPlainTextInputIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.interaction.views.ViewPlainTextInputIF instance. |
ViewPlainTextInput.Builder |
setType(ViewInputType type)
Initializes the value for the
type attribute. |
ViewPlainTextInput.Builder |
setValue(Optional<String> value)
Initializes the optional value
value to value. |
ViewPlainTextInput.Builder |
setValue(String value)
Initializes the optional value
value to value. |
public final ViewPlainTextInput.Builder from(ViewPlainTextInputIF instance)
com.hubspot.slack.client.models.interaction.views.ViewPlainTextInputIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ViewPlainTextInput.Builder from(ViewInput instance)
com.hubspot.slack.client.models.interaction.views.ViewInput instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ViewPlainTextInput.Builder setValue(@Nullable String value)
value to value.value - The value for value, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ViewPlainTextInput.Builder setValue(Optional<String> value)
value to value.value - The value for valuethis builder for use in a chained invocationpublic final ViewPlainTextInput.Builder setType(ViewInputType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic ViewPlainTextInput build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ViewPlainTextInput.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.