Class PlainTextInput
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.PlainTextInput
- All Implemented Interfaces:
BlockElement,HasActionId,PlainTextInputIF
@Generated(from="PlainTextInputIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class PlainTextInput
extends Object
implements PlainTextInputIF
Immutable implementation of
PlainTextInputIF.
Use the builder to create immutable instances:
PlainTextInput.builder().
Use the static factory method to create immutable instances:
PlainTextInput.of().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.PlainTextInputIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic PlainTextInput.Builderbuilder()Creates a builder forPlainTextInput.static PlainTextInputcopyOf(PlainTextInputIF instance) Creates an immutable copy of aPlainTextInputIFvalue.booleanThis instance is equal to all instances ofPlainTextInputthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,actionId,placeholder,initialValue,multiline,minLength,maxLength.static PlainTextInputConstruct a new immutablePlainTextInputinstance.toString()Prints the immutable valuePlainTextInputwith attribute values.final PlainTextInputwithActionId(String value) Copy the current immutable object by setting a value for theactionIdattribute.final PlainTextInputwithInitialValue(String value) Copy the current immutable object by setting a present value for the optionalinitialValueattribute.final PlainTextInputwithInitialValue(Optional<String> optional) Copy the current immutable object by setting an optional value for theinitialValueattribute.final PlainTextInputwithMaxLength(Integer value) Copy the current immutable object by setting a present value for the optionalmaxLengthattribute.final PlainTextInputwithMaxLength(Optional<Integer> optional) Copy the current immutable object by setting an optional value for themaxLengthattribute.final PlainTextInputwithMinLength(Integer value) Copy the current immutable object by setting a present value for the optionalminLengthattribute.final PlainTextInputwithMinLength(Optional<Integer> optional) Copy the current immutable object by setting an optional value for theminLengthattribute.final PlainTextInputwithMultiline(Boolean value) Copy the current immutable object by setting a present value for the optionalmultilineattribute.final PlainTextInputwithMultiline(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for themultilineattribute.final PlainTextInputwithPlaceholder(Text value) Copy the current immutable object by setting a present value for the optionalplaceholderattribute.final PlainTextInputwithPlaceholder(Optional<? extends Text> optional) Copy the current immutable object by setting an optional value for theplaceholderattribute.Methods inherited from interface com.hubspot.slack.client.models.blocks.elements.PlainTextInputIF
validate
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfacePlainTextInputIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getActionId
- Specified by:
getActionIdin interfaceHasActionId- Specified by:
getActionIdin interfacePlainTextInputIF- Returns:
- The value of the
actionIdattribute
-
getPlaceholder
- Specified by:
getPlaceholderin interfacePlainTextInputIF- Returns:
- The value of the
placeholderattribute
-
getInitialValue
- Specified by:
getInitialValuein interfacePlainTextInputIF- Returns:
- The value of the
initialValueattribute
-
isMultiline
- Specified by:
isMultilinein interfacePlainTextInputIF- Returns:
- The value of the
multilineattribute
-
getMinLength
- Specified by:
getMinLengthin interfacePlainTextInputIF- Returns:
- The value of the
minLengthattribute
-
getMaxLength
- Specified by:
getMaxLengthin interfacePlainTextInputIF- Returns:
- The value of the
maxLengthattribute
-
withActionId
Copy the current immutable object by setting a value for theactionIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for actionId- Returns:
- A modified copy or the
thisobject
-
withPlaceholder
Copy the current immutable object by setting a present value for the optionalplaceholderattribute.- Parameters:
value- The value for placeholder,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withPlaceholder
Copy the current immutable object by setting an optional value for theplaceholderattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for placeholder- Returns:
- A modified copy or
thisif not changed
-
withInitialValue
Copy the current immutable object by setting a present value for the optionalinitialValueattribute.- Parameters:
value- The value for initialValue,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withInitialValue
Copy the current immutable object by setting an optional value for theinitialValueattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for initialValue- Returns:
- A modified copy or
thisif not changed
-
withMultiline
Copy the current immutable object by setting a present value for the optionalmultilineattribute.- Parameters:
value- The value for multiline,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withMultiline
Copy the current immutable object by setting an optional value for themultilineattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for multiline- Returns:
- A modified copy or
thisif not changed
-
withMinLength
Copy the current immutable object by setting a present value for the optionalminLengthattribute.- Parameters:
value- The value for minLength,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withMinLength
Copy the current immutable object by setting an optional value for theminLengthattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for minLength- Returns:
- A modified copy or
thisif not changed
-
withMaxLength
Copy the current immutable object by setting a present value for the optionalmaxLengthattribute.- Parameters:
value- The value for maxLength,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withMaxLength
Copy the current immutable object by setting an optional value for themaxLengthattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for maxLength- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofPlainTextInputthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,actionId,placeholder,initialValue,multiline,minLength,maxLength. -
toString
Prints the immutable valuePlainTextInputwith attribute values. -
of
Construct a new immutablePlainTextInputinstance.- Parameters:
actionId- The value for theactionIdattribute- Returns:
- An immutable PlainTextInput instance
-
copyOf
Creates an immutable copy of aPlainTextInputIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable PlainTextInput instance
-
builder
Creates a builder forPlainTextInput.PlainTextInput.builder() .setActionId(String) // requiredactionId.setPlaceholder(Optional<com.hubspot.slack.client.models.blocks.objects.Text>) // optionalplaceholder.setInitialValue(Optional<String>) // optionalinitialValue.setMultiline(Optional<Boolean>) // optionalmultiline.setMinLength(Optional<Integer>) // optionalminLength.setMaxLength(Optional<Integer>) // optionalmaxLength.build();- Returns:
- A new PlainTextInput builder
-