Class ViewMultiUsersSelect

java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewMultiUsersSelect
All Implemented Interfaces:
ViewInput, ViewMultiUsersSelectIF

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

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

  • Method Details

    • getType

      public ViewInputType getType()
      Specified by:
      getType in interface ViewInput
      Returns:
      The value of the type attribute
    • getSelectedUsers

      public List<String> getSelectedUsers()
      Specified by:
      getSelectedUsers in interface ViewMultiUsersSelectIF
      Returns:
      The value of the selectedUsers attribute
    • withType

      public final ViewMultiUsersSelect withType(ViewInputType value)
      Copy the current immutable object by setting a value for the type attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for type
      Returns:
      A modified copy or the this object
    • withSelectedUsers

      public final ViewMultiUsersSelect withSelectedUsers(String... elements)
      Copy the current immutable object with elements that replace the content of selectedUsers.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withSelectedUsers

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

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

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

      public static ViewMultiUsersSelect.Builder builder()
      Creates a builder for ViewMultiUsersSelect.
       ViewMultiUsersSelect.builder()
          .setType(com.hubspot.slack.client.models.interaction.views.ViewInputType) // required type
          .addSelectedUsers|addAllSelectedUsers(String) // selectedUsers elements
          .build();
       
      Returns:
      A new ViewMultiUsersSelect builder