Class BlocksLoadOptionsResponse
java.lang.Object
com.hubspot.slack.client.models.interaction.BlocksLoadOptionsResponse
- All Implemented Interfaces:
BaseSlackOptionsResponse,BlocksLoadOptionsResponseIF
@Generated(from="BlocksLoadOptionsResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class BlocksLoadOptionsResponse
extends Object
implements BlocksLoadOptionsResponseIF
Immutable implementation of
BlocksLoadOptionsResponseIF.
Use the builder to create immutable instances:
BlocksLoadOptionsResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeBlocksLoadOptionsResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forBlocksLoadOptionsResponse.static BlocksLoadOptionsResponsecopyOf(BlocksLoadOptionsResponseIF instance) Creates an immutable copy of aBlocksLoadOptionsResponseIFvalue.booleanThis instance is equal to all instances ofBlocksLoadOptionsResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:options,optionGroups.toString()Prints the immutable valueBlocksLoadOptionsResponsewith attribute values.withOptionGroups(OptionGroup... elements) Copy the current immutable object with elements that replace the content ofoptionGroups.withOptionGroups(Iterable<? extends OptionGroup> elements) Copy the current immutable object with elements that replace the content ofoptionGroups.withOptions(Option... elements) Copy the current immutable object with elements that replace the content ofoptions.withOptions(Iterable<? extends Option> elements) Copy the current immutable object with elements that replace the content ofoptions.Methods inherited from interface com.hubspot.slack.client.models.interaction.BlocksLoadOptionsResponseIF
validate
-
Method Details
-
getOptions
- Specified by:
getOptionsin interfaceBlocksLoadOptionsResponseIF- Returns:
- The value of the
optionsattribute
-
getOptionGroups
- Specified by:
getOptionGroupsin interfaceBlocksLoadOptionsResponseIF- Returns:
- The value of the
optionGroupsattribute
-
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
-
withOptionGroups
Copy the current immutable object with elements that replace the content ofoptionGroups.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withOptionGroups
Copy the current immutable object with elements that replace the content ofoptionGroups. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of optionGroups elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofBlocksLoadOptionsResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:options,optionGroups. -
toString
Prints the immutable valueBlocksLoadOptionsResponsewith attribute values. -
copyOf
Creates an immutable copy of aBlocksLoadOptionsResponseIFvalue. 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 BlocksLoadOptionsResponse instance
-
builder
Creates a builder forBlocksLoadOptionsResponse.BlocksLoadOptionsResponse.builder() .addOptions|addAllOptions(com.hubspot.slack.client.models.blocks.objects.Option) //optionselements .addOptionGroups|addAllOptionGroups(com.hubspot.slack.client.models.blocks.objects.OptionGroup) //optionGroupselements .build();- Returns:
- A new BlocksLoadOptionsResponse builder
-