java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.entity.fullsizepreview.FullSizePreviewError
All Implemented Interfaces:
FullSizePreviewErrorIF

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

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

  • Method Details

    • getCode

      public FullSizePreviewErrorCode getCode()
      Specified by:
      getCode in interface FullSizePreviewErrorIF
      Returns:
      The value of the code attribute
    • getMessage

      public String getMessage()
      Specified by:
      getMessage in interface FullSizePreviewErrorIF
      Returns:
      The value of the message attribute
    • withCode

      public final FullSizePreviewError withCode(FullSizePreviewErrorCode value)
      Copy the current immutable object by setting a value for the code attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for code
      Returns:
      A modified copy or the this object
    • withMessage

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

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

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

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

      public static FullSizePreviewError.Builder builder()
      Creates a builder for FullSizePreviewError.
       FullSizePreviewError.builder()
          .setCode(com.hubspot.slack.client.methods.params.chat.workobject.entity.fullsizepreview.FullSizePreviewErrorCode) // required code
          .setMessage(String) // required message
          .build();
       
      Returns:
      A new FullSizePreviewError builder