Class BlocksLoadOptionsResponse

java.lang.Object
com.hubspot.slack.client.models.interaction.BlocksLoadOptionsResponse
All Implemented Interfaces:
BaseSlackOptionsResponse, BlocksLoadOptionsResponseIF

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

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

  • Method Details

    • getOptions

      public List<Option> getOptions()
      Specified by:
      getOptions in interface BlocksLoadOptionsResponseIF
      Returns:
      The value of the options attribute
    • getOptionGroups

      public List<OptionGroup> getOptionGroups()
      Specified by:
      getOptionGroups in interface BlocksLoadOptionsResponseIF
      Returns:
      The value of the optionGroups attribute
    • withOptions

      public final BlocksLoadOptionsResponse withOptions(Option... elements)
      Copy the current immutable object with elements that replace the content of options.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withOptions

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

      public final BlocksLoadOptionsResponse withOptionGroups(OptionGroup... elements)
      Copy the current immutable object with elements that replace the content of optionGroups.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withOptionGroups

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

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

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

      public static BlocksLoadOptionsResponse.Builder builder()
      Creates a builder for BlocksLoadOptionsResponse.
       BlocksLoadOptionsResponse.builder()
          .addOptions|addAllOptions(com.hubspot.slack.client.models.blocks.objects.Option) // options elements
          .addOptionGroups|addAllOptionGroups(com.hubspot.slack.client.models.blocks.objects.OptionGroup) // optionGroups elements
          .build();
       
      Returns:
      A new BlocksLoadOptionsResponse builder