Class SlackFormOption
java.lang.Object
com.hubspot.slack.client.models.dialog.form.elements.SlackFormOption
- All Implemented Interfaces:
HasLabel,SlackFormOptionIF
@Generated(from="SlackFormOptionIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackFormOption
extends Object
implements SlackFormOptionIF
Immutable implementation of
SlackFormOptionIF.
Use the builder to create immutable instances:
SlackFormOption.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SlackFormOption.Builderbuilder()Creates a builder forSlackFormOption.static SlackFormOptioncopyOf(SlackFormOptionIF instance) Creates an immutable copy of aSlackFormOptionIFvalue.booleanThis instance is equal to all instances ofSlackFormOptionthat have equal attribute values.getLabel()getValue()inthashCode()Computes a hash code from attributes:label,value.toString()Prints the immutable valueSlackFormOptionwith attribute values.final SlackFormOptionCopy the current immutable object by setting a value for thelabelattribute.final SlackFormOptionCopy the current immutable object by setting a value for thevalueattribute.Methods inherited from interface com.hubspot.slack.client.models.dialog.form.elements.SlackFormOptionIF
validate
-
Method Details
-
getLabel
-
getValue
- Specified by:
getValuein interfaceSlackFormOptionIF- Returns:
- The value of the
valueattribute
-
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
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSlackFormOptionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:label,value. -
toString
Prints the immutable valueSlackFormOptionwith attribute values. -
copyOf
Creates an immutable copy of aSlackFormOptionIFvalue. 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 SlackFormOption instance
-
builder
Creates a builder forSlackFormOption.SlackFormOption.builder() .setLabel(String) // requiredlabel.setValue(String) // requiredvalue.build();- Returns:
- A new SlackFormOption builder
-