Class ConversationsInfoParams

java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationsInfoParams
All Implemented Interfaces:
ConversationsInfoParamsIF

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

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

  • Method Details

    • getConversationId

      public String getConversationId()
      Specified by:
      getConversationId in interface ConversationsInfoParamsIF
      Returns:
      The value of the conversationId attribute
    • getIncludeLocale

      public Optional<Boolean> getIncludeLocale()
      Specified by:
      getIncludeLocale in interface ConversationsInfoParamsIF
      Returns:
      The value of the includeLocale attribute
    • getIncludeNumMembers

      public Optional<Boolean> getIncludeNumMembers()
      Specified by:
      getIncludeNumMembers in interface ConversationsInfoParamsIF
      Returns:
      The value of the includeNumMembers attribute
    • withConversationId

      public final ConversationsInfoParams withConversationId(String value)
      Copy the current immutable object by setting a value for the conversationId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for conversationId
      Returns:
      A modified copy or the this object
    • withIncludeLocale

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

      public final ConversationsInfoParams withIncludeLocale(Optional<Boolean> optional)
      Copy the current immutable object by setting an optional value for the includeLocale 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 includeLocale
      Returns:
      A modified copy or this if not changed
    • withIncludeNumMembers

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

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

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

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

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

      public static ConversationsInfoParams.Builder builder()
      Creates a builder for ConversationsInfoParams.
       ConversationsInfoParams.builder()
          .setConversationId(String) // required conversationId
          .setIncludeLocale(Optional<Boolean>) // optional includeLocale
          .setIncludeNumMembers(Optional<Boolean>) // optional includeNumMembers
          .build();
       
      Returns:
      A new ConversationsInfoParams builder