java.lang.Object
com.hubspot.slack.client.models.actions.Confirm
All Implemented Interfaces:
ConfirmIF

@Generated(from="ConfirmIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class Confirm extends Object implements ConfirmIF
Immutable implementation of ConfirmIF.

Use the builder to create immutable instances: Confirm.builder().

  • Method Details

    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface ConfirmIF
      Returns:
      The value of the title attribute
    • getText

      public String getText()
      Specified by:
      getText in interface ConfirmIF
      Returns:
      The value of the text attribute
    • getOkText

      public String getOkText()
      Specified by:
      getOkText in interface ConfirmIF
      Returns:
      The value of the okText attribute
    • getDismissText

      public String getDismissText()
      Specified by:
      getDismissText in interface ConfirmIF
      Returns:
      The value of the dismissText attribute
    • withTitle

      public final Confirm withTitle(String value)
      Copy the current immutable object by setting a value for the title attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for title
      Returns:
      A modified copy or the this object
    • withText

      public final Confirm withText(String value)
      Copy the current immutable object by setting a value for the text attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for text
      Returns:
      A modified copy or the this object
    • withOkText

      public final Confirm withOkText(String value)
      Copy the current immutable object by setting a value for the okText attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for okText
      Returns:
      A modified copy or the this object
    • withDismissText

      public final Confirm withDismissText(String value)
      Copy the current immutable object by setting a value for the dismissText attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for dismissText
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of Confirm that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: title, text, okText, dismissText.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value Confirm with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static Confirm copyOf(ConfirmIF instance)
      Creates an immutable copy of a ConfirmIF value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable Confirm instance
    • builder

      public static Confirm.Builder builder()
      Creates a builder for Confirm.
       Confirm.builder()
          .setTitle(String) // required title
          .setText(String) // required text
          .setOkText(String) // required okText
          .setDismissText(String) // required dismissText
          .build();
       
      Returns:
      A new Confirm builder