Class ViewConversationsSelect

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

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

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

  • Method Details

    • getType

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

      public Optional<String> getSelectedConversation()
      Specified by:
      getSelectedConversation in interface ViewConversationsSelectIF
      Returns:
      The value of the selectedConversation attribute
    • withType

      public final ViewConversationsSelect 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
    • withSelectedConversation

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

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

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

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

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

      public static ViewConversationsSelect.Builder builder()
      Creates a builder for ViewConversationsSelect.
       ViewConversationsSelect.builder()
          .setType(com.hubspot.slack.client.models.interaction.views.ViewInputType) // required type
          .setSelectedConversation(Optional<String>) // optional selectedConversation
          .build();
       
      Returns:
      A new ViewConversationsSelect builder