Class UpdateViewParams

java.lang.Object
com.hubspot.slack.client.methods.params.views.UpdateViewParams
All Implemented Interfaces:
UpdateViewParamsIF

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

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

  • Method Details

    • getView

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

      public Optional<String> getExternalId()
      Specified by:
      getExternalId in interface UpdateViewParamsIF
      Returns:
      The value of the externalId attribute
    • getHash

      public Optional<String> getHash()
      Specified by:
      getHash in interface UpdateViewParamsIF
      Returns:
      The value of the hash attribute
    • getViewId

      public Optional<String> getViewId()
      Specified by:
      getViewId in interface UpdateViewParamsIF
      Returns:
      The value of the viewId attribute
    • withView

      public final UpdateViewParams 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
    • withExternalId

      public final UpdateViewParams withExternalId(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional externalId attribute.
      Parameters:
      value - The value for externalId, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withExternalId

      public final UpdateViewParams withExternalId(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the externalId attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for externalId
      Returns:
      A modified copy or this if not changed
    • withHash

      public final UpdateViewParams withHash(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional hash attribute.
      Parameters:
      value - The value for hash, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withHash

      public final UpdateViewParams withHash(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the hash attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for hash
      Returns:
      A modified copy or this if not changed
    • withViewId

      public final UpdateViewParams withViewId(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional viewId attribute.
      Parameters:
      value - The value for viewId, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withViewId

      public final UpdateViewParams withViewId(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the viewId attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for viewId
      Returns:
      A modified copy or this if not changed
    • equals

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

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

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

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

      public static UpdateViewParams.Builder builder()
      Creates a builder for UpdateViewParams.
       UpdateViewParams.builder()
          .setView(com.hubspot.slack.client.models.views.ModalViewPayload) // required view
          .setExternalId(Optional<String>) // optional externalId
          .setHash(Optional<String>) // optional hash
          .setViewId(Optional<String>) // optional viewId
          .build();
       
      Returns:
      A new UpdateViewParams builder