@NotThreadSafe public static final class BlocksLoadOptionsResponse.Builder extends Object
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.
public final BlocksLoadOptionsResponse.Builder from(BlocksLoadOptionsResponseIF instance)
BlocksLoadOptionsResponseIF instance.
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.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final BlocksLoadOptionsResponse.Builder addOptions(Option element)
options list.element - A options elementthis builder for use in a chained invocationpublic final BlocksLoadOptionsResponse.Builder addOptions(Option... elements)
options list.elements - An array of options elementsthis builder for use in a chained invocationpublic final BlocksLoadOptionsResponse.Builder setOptions(Iterable<? extends Option> elements)
options list.elements - An iterable of options elementsthis builder for use in a chained invocationpublic final BlocksLoadOptionsResponse.Builder addAllOptions(Iterable<? extends Option> elements)
options list.elements - An iterable of options elementsthis builder for use in a chained invocationpublic final BlocksLoadOptionsResponse.Builder addOptionGroups(OptionGroup element)
optionGroups list.element - A optionGroups elementthis builder for use in a chained invocationpublic final BlocksLoadOptionsResponse.Builder addOptionGroups(OptionGroup... elements)
optionGroups list.elements - An array of optionGroups elementsthis builder for use in a chained invocationpublic final BlocksLoadOptionsResponse.Builder setOptionGroups(Iterable<? extends OptionGroup> elements)
optionGroups list.elements - An iterable of optionGroups elementsthis builder for use in a chained invocationpublic final BlocksLoadOptionsResponse.Builder addAllOptionGroups(Iterable<? extends OptionGroup> elements)
optionGroups list.elements - An iterable of optionGroups elementsthis builder for use in a chained invocationpublic BlocksLoadOptionsResponse build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
BlocksLoadOptionsResponse.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.