Class OpenViewParams

java.lang.Object
com.hubspot.slack.client.methods.params.views.OpenViewParams
All Implemented Interfaces:
OpenViewParamsIF

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

Use the builder to create immutable instances: OpenViewParams.builder(). Use the static factory method to create immutable instances: OpenViewParams.of().

  • Method Details

    • getTriggerId

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

      public ModalViewPayload getView()
      Specified by:
      getView in interface OpenViewParamsIF
      Returns:
      The value of the view attribute
    • withTriggerId

      public final OpenViewParams 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
    • withView

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

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

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

      public static OpenViewParams of(String triggerId, ModalViewPayload view)
      Construct a new immutable OpenViewParams instance.
      Parameters:
      triggerId - The value for the triggerId attribute
      view - The value for the view attribute
      Returns:
      An immutable OpenViewParams instance
    • copyOf

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

      public static OpenViewParams.Builder builder()
      Creates a builder for OpenViewParams.
       OpenViewParams.builder()
          .setTriggerId(String) // required triggerId
          .setView(com.hubspot.slack.client.models.views.ModalViewPayload) // required view
          .build();
       
      Returns:
      A new OpenViewParams builder