@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackFormOptionGroupIF"}) @Immutable public final class SlackFormOptionGroup extends Object implements SlackFormOptionGroupIF
SlackFormOptionGroupIF.
Use the builder to create immutable instances:
SlackFormOptionGroup.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackFormOptionGroup.Builder
Builds instances of type
SlackFormOptionGroup. |
| Modifier and Type | Method and Description |
|---|---|
static SlackFormOptionGroup.Builder |
builder()
Creates a builder for
SlackFormOptionGroup. |
static SlackFormOptionGroup |
copyOf(SlackFormOptionGroupIF instance)
Creates an immutable copy of a
SlackFormOptionGroupIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackFormOptionGroup that have equal attribute values. |
String |
getLabel() |
List<SlackFormOption> |
getOptions() |
int |
hashCode()
Computes a hash code from attributes:
label, options. |
String |
toString()
Prints the immutable value
SlackFormOptionGroup with attribute values. |
SlackFormOptionGroup |
withLabel(String label)
Copy the current immutable object by setting a value for the
label attribute. |
SlackFormOptionGroup |
withOptions(Iterable<? extends SlackFormOption> elements)
Copy the current immutable object with elements that replace the content of
options. |
SlackFormOptionGroup |
withOptions(SlackFormOption... elements)
Copy the current immutable object with elements that replace the content of
options. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitvalidatepublic String getLabel()
getLabel in interface SlackFormOptionGroupIFlabel attributepublic List<SlackFormOption> getOptions()
getOptions in interface SlackFormOptionGroupIFoptions attributepublic final SlackFormOptionGroup withLabel(String label)
label attribute.
An equals check used to prevent copying of the same value by returning this.label - A new value for labelthis objectpublic final SlackFormOptionGroup withOptions(SlackFormOption... elements)
options.elements - The elements to setthis objectpublic final SlackFormOptionGroup withOptions(Iterable<? extends SlackFormOption> elements)
options.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of options elements to setthis objectpublic boolean equals(@Nullable Object another)
SlackFormOptionGroup that have equal attribute values.public int hashCode()
label, options.public String toString()
SlackFormOptionGroup with attribute values.public static SlackFormOptionGroup copyOf(SlackFormOptionGroupIF instance)
SlackFormOptionGroupIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static SlackFormOptionGroup.Builder builder()
SlackFormOptionGroup.Copyright © 2019. All rights reserved.