Class DialogOpenParams

java.lang.Object
com.hubspot.slack.client.methods.params.dialog.DialogOpenParams
All Implemented Interfaces:
DialogOpenParamsIF

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

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

  • Method Details

    • getTriggerId

      public String getTriggerId()
      Specified by:
      getTriggerId in interface DialogOpenParamsIF
      Returns:
      The value of the triggerId attribute
    • getDialog

      public SlackDialog getDialog()
      Specified by:
      getDialog in interface DialogOpenParamsIF
      Returns:
      The value of the dialog attribute
    • withTriggerId

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

      public final DialogOpenParams withDialog(SlackDialog value)
      Copy the current immutable object by setting a value for the dialog attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for dialog
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of DialogOpenParams 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: triggerId, dialog.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static DialogOpenParams copyOf(DialogOpenParamsIF instance)
      Creates an immutable copy of a DialogOpenParamsIF 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 DialogOpenParams instance
    • builder

      public static DialogOpenParams.Builder builder()
      Creates a builder for DialogOpenParams.
       DialogOpenParams.builder()
          .setTriggerId(String) // required triggerId
          .setDialog(com.hubspot.slack.client.models.dialog.SlackDialog) // required dialog
          .build();
       
      Returns:
      A new DialogOpenParams builder