Class ConversationOpenParams

java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationOpenParams
All Implemented Interfaces:
ConversationOpenParamsIF

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

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

  • Method Details

    • getChannelId

      public Optional<String> getChannelId()
      Specified by:
      getChannelId in interface ConversationOpenParamsIF
      Returns:
      The value of the channelId attribute
    • getUsers

      public List<String> getUsers()
      Specified by:
      getUsers in interface ConversationOpenParamsIF
      Returns:
      The value of the users attribute
    • getReturnIm

      public boolean getReturnIm()
      Specified by:
      getReturnIm in interface ConversationOpenParamsIF
      Returns:
      The value of the returnIm attribute
    • withChannelId

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

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

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

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

      public final ConversationOpenParams withReturnIm(boolean value)
      Copy the current immutable object by setting a value for the returnIm attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for returnIm
      Returns:
      A modified copy or the this object
    • equals

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

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

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

      public static ConversationOpenParams.Builder builder()
      Creates a builder for ConversationOpenParams.
       ConversationOpenParams.builder()
          .setChannelId(Optional<String>) // optional channelId
          .addUsers|addAllUsers(String) // users elements
          .setReturnIm(boolean) // optional returnIm
          .build();
       
      Returns:
      A new ConversationOpenParams builder