java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.actions.WorkObjectActionBlock
All Implemented Interfaces:
WorkObjectActionBlockIF

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

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

  • Method Details

    • getPrimaryActions

      public List<WorkObjectAction> getPrimaryActions()
      Specified by:
      getPrimaryActions in interface WorkObjectActionBlockIF
      Returns:
      The value of the primaryActions attribute
    • getOverflowActions

      public List<WorkObjectAction> getOverflowActions()
      Specified by:
      getOverflowActions in interface WorkObjectActionBlockIF
      Returns:
      The value of the overflowActions attribute
    • withPrimaryActions

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

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

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

      public final WorkObjectActionBlock withOverflowActions(Iterable<? extends WorkObjectAction> elements)
      Copy the current immutable object with elements that replace the content of overflowActions. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of overflowActions 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 WorkObjectActionBlock 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: primaryActions, overflowActions.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

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

      public static WorkObjectActionBlock.Builder builder()
      Creates a builder for WorkObjectActionBlock.
       WorkObjectActionBlock.builder()
          .addPrimaryActions|addAllPrimaryActions(WorkObjectAction) // primaryActions elements
          .addOverflowActions|addAllOverflowActions(WorkObjectAction) // overflowActions elements
          .build();
       
      Returns:
      A new WorkObjectActionBlock builder