Class OptionsList

java.lang.Object
com.hubspot.slack.client.models.interaction.OptionsList
All Implemented Interfaces:
OptionsListIF

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

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

  • Method Details

    • getOptions

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

      public final OptionsList 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 OptionsList 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
    • equals

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

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

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

      public static OptionsList.Builder builder()
      Creates a builder for OptionsList.
       OptionsList.builder()
          .addOptions|addAllOptions(com.hubspot.slack.client.models.actions.Option) // options elements
          .build();
       
      Returns:
      A new OptionsList builder