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 Details

    • from

      public final ViewCheckboxes.Builder from(ViewCheckboxesIF instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.interaction.views.ViewCheckboxesIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ViewCheckboxes.Builder from(ViewInput instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.interaction.views.ViewInput instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setType

      public final ViewCheckboxes.Builder setType(ViewInputType type)
      Initializes the value for the type attribute.
      Parameters:
      type - The value for type
      Returns:
      this builder for use in a chained invocation
    • setStringValue

      public final ViewCheckboxes.Builder setStringValue(@Nullable String stringValue)
      Initializes the optional value stringValue to stringValue.
      Parameters:
      stringValue - The value for stringValue, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setStringValue

      public final ViewCheckboxes.Builder setStringValue(Optional<String> stringValue)
      Initializes the optional value stringValue to stringValue.
      Parameters:
      stringValue - The value for stringValue
      Returns:
      this builder for use in a chained invocation
    • addSelectedOptions

      public final ViewCheckboxes.Builder addSelectedOptions(Option element)
      Adds one element to selectedOptions list.
      Parameters:
      element - A selectedOptions element
      Returns:
      this builder for use in a chained invocation
    • addSelectedOptions

      public final ViewCheckboxes.Builder addSelectedOptions(Option... elements)
      Adds elements to selectedOptions list.
      Parameters:
      elements - An array of selectedOptions elements
      Returns:
      this builder for use in a chained invocation
    • setSelectedOptions

      public final ViewCheckboxes.Builder setSelectedOptions(Iterable<? extends Option> elements)
      Sets or replaces all elements for selectedOptions list.
      Parameters:
      elements - An iterable of selectedOptions elements
      Returns:
      this builder for use in a chained invocation
    • addAllSelectedOptions

      public final ViewCheckboxes.Builder addAllSelectedOptions(Iterable<? extends Option> elements)
      Adds elements to selectedOptions list.
      Parameters:
      elements - An iterable of selectedOptions elements
      Returns:
      this builder for use in a chained invocation
    • build

      public ViewCheckboxes build()
      Builds a new ViewCheckboxes.
      Returns:
      An immutable instance of ViewCheckboxes
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing