Class OptionsList
java.lang.Object
com.hubspot.slack.client.models.interaction.OptionsList
- All Implemented Interfaces:
OptionsListIF
@Generated(from="OptionsListIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class OptionsList
extends Object
implements OptionsListIF
Immutable implementation of
OptionsListIF.
Use the builder to create immutable instances:
OptionsList.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic OptionsList.Builderbuilder()Creates a builder forOptionsList.static OptionsListcopyOf(OptionsListIF instance) Creates an immutable copy of aOptionsListIFvalue.booleanThis instance is equal to all instances ofOptionsListthat have equal attribute values.inthashCode()Computes a hash code from attributes:options.toString()Prints the immutable valueOptionsListwith attribute values.final OptionsListwithOptions(Option... elements) Copy the current immutable object with elements that replace the content ofoptions.final OptionsListwithOptions(Iterable<? extends Option> elements) Copy the current immutable object with elements that replace the content ofoptions.
-
Method Details
-
getOptions
- Specified by:
getOptionsin interfaceOptionsListIF- Returns:
- The value of the
optionsattribute
-
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 ofOptionsListthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:options. -
toString
Prints the immutable valueOptionsListwith attribute values. -
copyOf
Creates an immutable copy of aOptionsListIFvalue. 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 OptionsList instance
-
builder
Creates a builder forOptionsList.OptionsList.builder() .addOptions|addAllOptions(com.hubspot.slack.client.models.actions.Option) //optionselements .build();- Returns:
- A new OptionsList builder
-