Class BlocksLoadOptionsResponse.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.BlocksLoadOptionsResponse.Builder
- Enclosing class:
BlocksLoadOptionsResponse
@Generated(from="BlocksLoadOptionsResponseIF",
generator="Immutables")
@NotThreadSafe
public static final class BlocksLoadOptionsResponse.Builder
extends Object
Builds instances of type
BlocksLoadOptionsResponse.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllOptionGroups(Iterable<? extends OptionGroup> elements) Adds elements tooptionGroupslist.addAllOptions(Iterable<? extends Option> elements) Adds elements tooptionslist.addOptionGroups(OptionGroup element) Adds one element tooptionGroupslist.addOptionGroups(OptionGroup... elements) Adds elements tooptionGroupslist.addOptions(Option element) Adds one element tooptionslist.addOptions(Option... elements) Adds elements tooptionslist.build()Builds a newBlocksLoadOptionsResponse.from(BlocksLoadOptionsResponseIF instance) Fill a builder with attribute values from the providedBlocksLoadOptionsResponseIFinstance.setOptionGroups(Iterable<? extends OptionGroup> elements) Sets or replaces all elements foroptionGroupslist.setOptions(Iterable<? extends Option> elements) Sets or replaces all elements foroptionslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedBlocksLoadOptionsResponseIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addOptions
Adds one element tooptionslist.- Parameters:
element- A options element- Returns:
thisbuilder for use in a chained invocation
-
addOptions
Adds elements tooptionslist.- Parameters:
elements- An array of options elements- Returns:
thisbuilder for use in a chained invocation
-
setOptions
Sets or replaces all elements foroptionslist.- Parameters:
elements- An iterable of options elements- Returns:
thisbuilder for use in a chained invocation
-
addAllOptions
Adds elements tooptionslist.- Parameters:
elements- An iterable of options elements- Returns:
thisbuilder for use in a chained invocation
-
addOptionGroups
Adds one element tooptionGroupslist.- Parameters:
element- A optionGroups element- Returns:
thisbuilder for use in a chained invocation
-
addOptionGroups
Adds elements tooptionGroupslist.- Parameters:
elements- An array of optionGroups elements- Returns:
thisbuilder for use in a chained invocation
-
setOptionGroups
public final BlocksLoadOptionsResponse.Builder setOptionGroups(Iterable<? extends OptionGroup> elements) Sets or replaces all elements foroptionGroupslist.- Parameters:
elements- An iterable of optionGroups elements- Returns:
thisbuilder for use in a chained invocation
-
addAllOptionGroups
public final BlocksLoadOptionsResponse.Builder addAllOptionGroups(Iterable<? extends OptionGroup> elements) Adds elements tooptionGroupslist.- Parameters:
elements- An iterable of optionGroups elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newBlocksLoadOptionsResponse.- Returns:
- An immutable instance of BlocksLoadOptionsResponse
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-