Class Confirm.Builder

java.lang.Object
com.hubspot.slack.client.models.actions.Confirm.Builder
Enclosing class:
Confirm

@Generated(from="ConfirmIF", generator="Immutables") @NotThreadSafe public static final class Confirm.Builder extends Object
Builds instances of type Confirm. 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 Confirm.Builder from(ConfirmIF instance)
      Fill a builder with attribute values from the provided ConfirmIF instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setTitle

      public final Confirm.Builder setTitle(String title)
      Initializes the value for the title attribute.
      Parameters:
      title - The value for title
      Returns:
      this builder for use in a chained invocation
    • setText

      public final Confirm.Builder setText(String text)
      Initializes the value for the text attribute.
      Parameters:
      text - The value for text
      Returns:
      this builder for use in a chained invocation
    • setOkText

      public final Confirm.Builder setOkText(String okText)
      Initializes the value for the okText attribute.
      Parameters:
      okText - The value for okText
      Returns:
      this builder for use in a chained invocation
    • setDismissText

      public final Confirm.Builder setDismissText(String dismissText)
      Initializes the value for the dismissText attribute.
      Parameters:
      dismissText - The value for dismissText
      Returns:
      this builder for use in a chained invocation
    • build

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