Class ViewCheckboxes.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewCheckboxes.Builder
- Enclosing class:
ViewCheckboxes
@Generated(from="ViewCheckboxesIF",
generator="Immutables")
@NotThreadSafe
public static final class ViewCheckboxes.Builder
extends Object
Builds instances of type
ViewCheckboxes.
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 TypeMethodDescriptionfinal ViewCheckboxes.BuilderaddAllSelectedOptions(Iterable<? extends Option> elements) Adds elements toselectedOptionslist.final ViewCheckboxes.BuilderaddSelectedOptions(Option element) Adds one element toselectedOptionslist.final ViewCheckboxes.BuilderaddSelectedOptions(Option... elements) Adds elements toselectedOptionslist.build()Builds a newViewCheckboxes.final ViewCheckboxes.Builderfrom(ViewCheckboxesIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewCheckboxesIFinstance.final ViewCheckboxes.BuilderFill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewInputinstance.final ViewCheckboxes.BuildersetSelectedOptions(Iterable<? extends Option> elements) Sets or replaces all elements forselectedOptionslist.final ViewCheckboxes.BuildersetStringValue(String stringValue) Initializes the optional valuestringValueto stringValue.final ViewCheckboxes.BuildersetStringValue(Optional<String> stringValue) Initializes the optional valuestringValueto stringValue.final ViewCheckboxes.BuildersetType(ViewInputType type) Initializes the value for thetypeattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewCheckboxesIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.views.ViewInputinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setType
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
setStringValue
Initializes the optional valuestringValueto stringValue.- Parameters:
stringValue- The value for stringValue,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setStringValue
Initializes the optional valuestringValueto stringValue.- Parameters:
stringValue- The value for stringValue- Returns:
thisbuilder for use in a chained invocation
-
addSelectedOptions
Adds one element toselectedOptionslist.- Parameters:
element- A selectedOptions element- Returns:
thisbuilder for use in a chained invocation
-
addSelectedOptions
Adds elements toselectedOptionslist.- Parameters:
elements- An array of selectedOptions elements- Returns:
thisbuilder for use in a chained invocation
-
setSelectedOptions
Sets or replaces all elements forselectedOptionslist.- Parameters:
elements- An iterable of selectedOptions elements- Returns:
thisbuilder for use in a chained invocation
-
addAllSelectedOptions
Adds elements toselectedOptionslist.- Parameters:
elements- An iterable of selectedOptions elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newViewCheckboxes.- Returns:
- An immutable instance of ViewCheckboxes
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-