java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.flexpane.WorkObjectFlexpaneParams
All Implemented Interfaces:
WorkObjectFlexpaneParamsIF

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

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

  • Method Details

    • getTriggerId

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

      public FlexPaneMetadata getMetadata()
      Specified by:
      getMetadata in interface WorkObjectFlexpaneParamsIF
      Returns:
      The value of the metadata attribute
    • getIsUserAuthRequired

      public Optional<Boolean> getIsUserAuthRequired()
      Specified by:
      getIsUserAuthRequired in interface WorkObjectFlexpaneParamsIF
      Returns:
      The value of the isUserAuthRequired attribute
    • getUserAuthUrl

      public Optional<String> getUserAuthUrl()
      Specified by:
      getUserAuthUrl in interface WorkObjectFlexpaneParamsIF
      Returns:
      The value of the userAuthUrl attribute
    • getError

      public Optional<WorkObjectFlexpaneError> getError()
      Specified by:
      getError in interface WorkObjectFlexpaneParamsIF
      Returns:
      The value of the error attribute
    • withTriggerId

      public final WorkObjectFlexpaneParams 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
    • withMetadata

      public final WorkObjectFlexpaneParams withMetadata(FlexPaneMetadata value)
      Copy the current immutable object by setting a value for the metadata attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for metadata
      Returns:
      A modified copy or the this object
    • withIsUserAuthRequired

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

      public final WorkObjectFlexpaneParams withIsUserAuthRequired(Optional<Boolean> optional)
      Copy the current immutable object by setting an optional value for the isUserAuthRequired 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 isUserAuthRequired
      Returns:
      A modified copy or this if not changed
    • withUserAuthUrl

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

      public final WorkObjectFlexpaneParams withUserAuthUrl(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the userAuthUrl 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 userAuthUrl
      Returns:
      A modified copy or this if not changed
    • withError

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

      public final WorkObjectFlexpaneParams withError(Optional<? extends WorkObjectFlexpaneError> optional)
      Copy the current immutable object by setting an optional value for the error attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for error
      Returns:
      A modified copy or this if not changed
    • equals

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

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

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

      public static WorkObjectFlexpaneParams.Builder builder()
      Creates a builder for WorkObjectFlexpaneParams.
       WorkObjectFlexpaneParams.builder()
          .setTriggerId(String) // required triggerId
          .setMetadata(com.hubspot.slack.client.methods.params.chat.workobject.flexpane.FlexPaneMetadata) // required metadata
          .setIsUserAuthRequired(Optional<Boolean>) // optional isUserAuthRequired
          .setUserAuthUrl(Optional<String>) // optional userAuthUrl
          .setError(Optional<WorkObjectFlexpaneError>) // optional error
          .build();
       
      Returns:
      A new WorkObjectFlexpaneParams builder