Class SlackFormOptionGroup
java.lang.Object
com.hubspot.slack.client.models.dialog.form.elements.SlackFormOptionGroup
- All Implemented Interfaces:
HasLabel,HasOptions,SlackFormOptionGroupIF
@Generated(from="SlackFormOptionGroupIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackFormOptionGroup
extends Object
implements SlackFormOptionGroupIF
Immutable implementation of
SlackFormOptionGroupIF.
Use the builder to create immutable instances:
SlackFormOptionGroup.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSlackFormOptionGroup. -
Method Summary
Modifier and TypeMethodDescriptionstatic SlackFormOptionGroup.Builderbuilder()Creates a builder forSlackFormOptionGroup.static SlackFormOptionGroupcopyOf(SlackFormOptionGroupIF instance) Creates an immutable copy of aSlackFormOptionGroupIFvalue.booleanThis instance is equal to all instances ofSlackFormOptionGroupthat have equal attribute values.getLabel()inthashCode()Computes a hash code from attributes:label,options.toString()Prints the immutable valueSlackFormOptionGroupwith attribute values.final SlackFormOptionGroupCopy the current immutable object by setting a value for thelabelattribute.final SlackFormOptionGroupwithOptions(SlackFormOption... elements) Copy the current immutable object with elements that replace the content ofoptions.final SlackFormOptionGroupwithOptions(Iterable<? extends SlackFormOption> elements) Copy the current immutable object with elements that replace the content ofoptions.Methods inherited from interface com.hubspot.slack.client.models.dialog.form.elements.SlackFormOptionGroupIF
validate
-
Method Details
-
getLabel
-
getOptions
- Specified by:
getOptionsin interfaceHasOptions- Returns:
- The value of the
optionsattribute
-
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
-
withOptions
Copy the current immutable object with elements that replace the content ofoptions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withOptions
Copy the current immutable object with elements that replace the content ofoptions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of options elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofSlackFormOptionGroupthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:label,options. -
toString
Prints the immutable valueSlackFormOptionGroupwith attribute values. -
copyOf
Creates an immutable copy of aSlackFormOptionGroupIFvalue. 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 SlackFormOptionGroup instance
-
builder
Creates a builder forSlackFormOptionGroup.SlackFormOptionGroup.builder() .setLabel(String) // requiredlabel.addOptions|addAllOptions(SlackFormOption) //optionselements .build();- Returns:
- A new SlackFormOptionGroup builder
-