Class PlainTextInput.Builder
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.PlainTextInput.Builder
- Enclosing class:
PlainTextInput
@Generated(from="PlainTextInputIF",
generator="Immutables")
@NotThreadSafe
public static final class PlainTextInput.Builder
extends Object
Builds instances of type
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newPlainTextInput.final PlainTextInput.Builderfrom(HasActionId instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.elements.HasActionIdinstance.final PlainTextInput.Builderfrom(PlainTextInputIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.elements.PlainTextInputIFinstance.final PlainTextInput.BuildersetActionId(String actionId) Initializes the value for theactionIdattribute.final PlainTextInput.BuildersetInitialValue(String initialValue) Initializes the optional valueinitialValueto initialValue.final PlainTextInput.BuildersetInitialValue(Optional<String> initialValue) Initializes the optional valueinitialValueto initialValue.final PlainTextInput.BuildersetMaxLength(Integer maxLength) Initializes the optional valuemaxLengthto maxLength.final PlainTextInput.BuildersetMaxLength(Optional<Integer> maxLength) Initializes the optional valuemaxLengthto maxLength.final PlainTextInput.BuildersetMinLength(Integer minLength) Initializes the optional valueminLengthto minLength.final PlainTextInput.BuildersetMinLength(Optional<Integer> minLength) Initializes the optional valueminLengthto minLength.final PlainTextInput.BuildersetMultiline(Boolean multiline) Initializes the optional valuemultilineto multiline.final PlainTextInput.BuildersetMultiline(Optional<Boolean> multiline) Initializes the optional valuemultilineto multiline.final PlainTextInput.BuildersetPlaceholder(Text placeholder) Initializes the optional valueplaceholderto placeholder.final PlainTextInput.BuildersetPlaceholder(Optional<? extends Text> placeholder) Initializes the optional valueplaceholderto placeholder.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.elements.HasActionIdinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.elements.PlainTextInputIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setActionId
Initializes the value for theactionIdattribute.- Parameters:
actionId- The value for actionId- Returns:
thisbuilder for use in a chained invocation
-
setPlaceholder
Initializes the optional valueplaceholderto placeholder.- Parameters:
placeholder- The value for placeholder,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setPlaceholder
Initializes the optional valueplaceholderto placeholder.- Parameters:
placeholder- The value for placeholder- Returns:
thisbuilder for use in a chained invocation
-
setInitialValue
Initializes the optional valueinitialValueto initialValue.- Parameters:
initialValue- The value for initialValue,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setInitialValue
Initializes the optional valueinitialValueto initialValue.- Parameters:
initialValue- The value for initialValue- Returns:
thisbuilder for use in a chained invocation
-
setMultiline
Initializes the optional valuemultilineto multiline.- Parameters:
multiline- The value for multiline,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setMultiline
Initializes the optional valuemultilineto multiline.- Parameters:
multiline- The value for multiline- Returns:
thisbuilder for use in a chained invocation
-
setMinLength
Initializes the optional valueminLengthto minLength.- Parameters:
minLength- The value for minLength,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setMinLength
Initializes the optional valueminLengthto minLength.- Parameters:
minLength- The value for minLength- Returns:
thisbuilder for use in a chained invocation
-
setMaxLength
Initializes the optional valuemaxLengthto maxLength.- Parameters:
maxLength- The value for maxLength,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setMaxLength
Initializes the optional valuemaxLengthto maxLength.- Parameters:
maxLength- The value for maxLength- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newPlainTextInput.- Returns:
- An immutable instance of PlainTextInput
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-