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

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

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

  • Method Details

    • getStatus

      public WorkObjectFlexpaneErrorStatus getStatus()
      Specified by:
      getStatus in interface WorkObjectFlexpaneErrorIF
      Returns:
      The value of the status attribute
    • getCustomTitle

      public Optional<String> getCustomTitle()
      Specified by:
      getCustomTitle in interface WorkObjectFlexpaneErrorIF
      Returns:
      The value of the customTitle attribute
    • getCustomMessage

      public Optional<String> getCustomMessage()
      Specified by:
      getCustomMessage in interface WorkObjectFlexpaneErrorIF
      Returns:
      The value of the customMessage attribute
    • getMessageFormat

      public MessageFormat getMessageFormat()
      Specified by:
      getMessageFormat in interface WorkObjectFlexpaneErrorIF
      Returns:
      The value of the messageFormat attribute
    • getActions

      public List<WorkObjectAction> getActions()
      Specified by:
      getActions in interface WorkObjectFlexpaneErrorIF
      Returns:
      The value of the actions attribute
    • withStatus

      public final WorkObjectFlexpaneError withStatus(WorkObjectFlexpaneErrorStatus value)
      Copy the current immutable object by setting a value for the status attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for status
      Returns:
      A modified copy or the this object
    • withCustomTitle

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

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

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

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

      public final WorkObjectFlexpaneError withMessageFormat(MessageFormat value)
      Copy the current immutable object by setting a value for the messageFormat attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for messageFormat
      Returns:
      A modified copy or the this object
    • withActions

      public final WorkObjectFlexpaneError withActions(WorkObjectAction... elements)
      Copy the current immutable object with elements that replace the content of actions.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withActions

      public final WorkObjectFlexpaneError withActions(Iterable<? extends WorkObjectAction> elements)
      Copy the current immutable object with elements that replace the content of actions. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of actions elements to set
      Returns:
      A modified copy or this if not changed
    • equals

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

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

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

      public static WorkObjectFlexpaneError.Builder builder()
      Creates a builder for WorkObjectFlexpaneError.
       WorkObjectFlexpaneError.builder()
          .setStatus(com.hubspot.slack.client.methods.params.chat.workobject.flexpane.WorkObjectFlexpaneErrorStatus) // required status
          .setCustomTitle(Optional<String>) // optional customTitle
          .setCustomMessage(Optional<String>) // optional customMessage
          .setMessageFormat(com.hubspot.slack.client.methods.params.chat.workobject.flexpane.MessageFormat) // required messageFormat
          .addActions|addAllActions(com.hubspot.slack.client.methods.params.chat.workobject.actions.WorkObjectAction) // actions elements
          .build();
       
      Returns:
      A new WorkObjectFlexpaneError builder