Class SlackFormTextareaElement
java.lang.Object
com.hubspot.slack.client.models.dialog.form.elements.SlackDialogFormElement
com.hubspot.slack.client.models.dialog.form.elements.AbstractSlackDialogFormTextElement
com.hubspot.slack.client.models.dialog.form.elements.AbstractSlackFormTextareaElement
com.hubspot.slack.client.models.dialog.form.elements.SlackFormTextareaElement
- All Implemented Interfaces:
HasLabel
@Generated(from="AbstractSlackFormTextareaElement",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackFormTextareaElement
extends AbstractSlackFormTextareaElement
Immutable implementation of
AbstractSlackFormTextareaElement.
Use the builder to create immutable instances:
SlackFormTextareaElement.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackFormTextareaElement. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSlackFormTextareaElement.static SlackFormTextareaElementcopyOf(AbstractSlackFormTextareaElement instance) Creates an immutable copy of aAbstractSlackFormTextareaElementvalue.booleanThis instance is equal to all instances ofSlackFormTextareaElementthat have equal attribute values.getHint()getLabel()intintgetName()getType()getValue()inthashCode()Computes a hash code from attributes:label,name,placeholder,optional,subtype,hint,minLength,maxLength,value,type.toString()Prints the immutable valueSlackFormTextareaElementwith attribute values.final SlackFormTextareaElementCopy the current immutable object by setting a present value for the optionalhintattribute.final SlackFormTextareaElementCopy the current immutable object by setting an optional value for thehintattribute.final SlackFormTextareaElementCopy the current immutable object by setting a value for thelabelattribute.final SlackFormTextareaElementwithMaxLength(int value) Copy the current immutable object by setting a value for themaxLengthattribute.final SlackFormTextareaElementwithMinLength(int value) Copy the current immutable object by setting a value for theminLengthattribute.final SlackFormTextareaElementCopy the current immutable object by setting a value for thenameattribute.final SlackFormTextareaElementwithOptional(Boolean value) Copy the current immutable object by setting a present value for the optionaloptionalattribute.final SlackFormTextareaElementwithOptional(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theoptionalattribute.final SlackFormTextareaElementwithPlaceholder(String value) Copy the current immutable object by setting a present value for the optionalplaceholderattribute.final SlackFormTextareaElementwithPlaceholder(Optional<String> optional) Copy the current immutable object by setting an optional value for theplaceholderattribute.final SlackFormTextareaElementCopy the current immutable object by setting a present value for the optionalsubtypeattribute.final SlackFormTextareaElementwithSubtype(Optional<? extends SlackFormElementSubtypes> optional) Copy the current immutable object by setting an optional value for thesubtypeattribute.final SlackFormTextareaElementwithType(SlackFormElementTypes value) Copy the current immutable object by setting a value for thetypeattribute.final SlackFormTextareaElementCopy the current immutable object by setting a present value for the optionalvalueattribute.final SlackFormTextareaElementCopy the current immutable object by setting an optional value for thevalueattribute.Methods inherited from class com.hubspot.slack.client.models.dialog.form.elements.AbstractSlackFormTextareaElement
validate
-
Method Details
-
getLabel
- Returns:
- The value of the
labelattribute
-
getName
- Specified by:
getNamein classSlackDialogFormElement- Returns:
- The value of the
nameattribute
-
getPlaceholder
- Specified by:
getPlaceholderin classSlackDialogFormElement- Returns:
- The value of the
placeholderattribute
-
isOptional
- Specified by:
isOptionalin classSlackDialogFormElement- Returns:
- The value of the
optionalattribute
-
getSubtype
- Specified by:
getSubtypein classAbstractSlackDialogFormTextElement- Returns:
- The value of the
subtypeattribute
-
getHint
- Specified by:
getHintin classAbstractSlackDialogFormTextElement- Returns:
- The value of the
hintattribute
-
getMinLength
public int getMinLength()- Overrides:
getMinLengthin classAbstractSlackDialogFormTextElement- Returns:
- The value of the
minLengthattribute
-
getMaxLength
public int getMaxLength()- Overrides:
getMaxLengthin classAbstractSlackDialogFormTextElement- Returns:
- The value of the
maxLengthattribute
-
getValue
- Specified by:
getValuein classAbstractSlackDialogFormTextElement- Returns:
- The value of the
valueattribute
-
getType
- Overrides:
getTypein classAbstractSlackFormTextareaElement- Returns:
- The value of the
typeattribute
-
withLabel
Copy the current immutable object by setting a value for thelabelattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for label- Returns:
- A modified copy or the
thisobject
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- 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. An equality check is used on inner 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
-
withOptional
Copy the current immutable object by setting a present value for the optionaloptionalattribute.- Parameters:
value- The value for optional,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withOptional
Copy the current immutable object by setting an optional value for theoptionalattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for optional- Returns:
- A modified copy or
thisif not changed
-
withSubtype
Copy the current immutable object by setting a present value for the optionalsubtypeattribute.- Parameters:
value- The value for subtype,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withSubtype
public final SlackFormTextareaElement withSubtype(Optional<? extends SlackFormElementSubtypes> optional) Copy the current immutable object by setting an optional value for thesubtypeattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for subtype- Returns:
- A modified copy or
thisif not changed
-
withHint
Copy the current immutable object by setting a present value for the optionalhintattribute.- Parameters:
value- The value for hint,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withHint
Copy the current immutable object by setting an optional value for thehintattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for hint- Returns:
- A modified copy or
thisif not changed
-
withMinLength
Copy the current immutable object by setting a value for theminLengthattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for minLength- Returns:
- A modified copy or the
thisobject
-
withMaxLength
Copy the current immutable object by setting a value for themaxLengthattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for maxLength- Returns:
- A modified copy or the
thisobject
-
withValue
Copy the current immutable object by setting a present value for the optionalvalueattribute.- Parameters:
value- The value for value,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withValue
Copy the current immutable object by setting an optional value for thevalueattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for value- Returns:
- A modified copy or
thisif not changed
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSlackFormTextareaElementthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:label,name,placeholder,optional,subtype,hint,minLength,maxLength,value,type. -
toString
Prints the immutable valueSlackFormTextareaElementwith attribute values. -
copyOf
Creates an immutable copy of aAbstractSlackFormTextareaElementvalue. 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 SlackFormTextareaElement instance
-
builder
Creates a builder forSlackFormTextareaElement.SlackFormTextareaElement.builder() .setLabel(String) // requiredlabel.setName(String) // requiredname.setPlaceholder(Optional<String>) // optionalplaceholder.setOptional(Optional<Boolean>) // optionaloptional.setSubtype(Optional<com.hubspot.slack.client.models.dialog.form.SlackFormElementSubtypes>) // optionalsubtype.setHint(Optional<String>) // optionalhint.setMinLength(int) // optionalminLength.setMaxLength(int) // optionalmaxLength.setValue(Optional<String>) // optionalvalue.setType(com.hubspot.slack.client.models.dialog.form.SlackFormElementTypes) // optionaltype.build();- Returns:
- A new SlackFormTextareaElement builder
-