Class ConversationMemberParams

java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationMemberParams
All Implemented Interfaces:
ConversationMemberParamsIF

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

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

  • Method Details

    • getCursor

      public Optional<String> getCursor()
      Specified by:
      getCursor in interface ConversationMemberParamsIF
      Returns:
      The value of the cursor attribute
    • getLimit

      public Optional<Integer> getLimit()
      Specified by:
      getLimit in interface ConversationMemberParamsIF
      Returns:
      The value of the limit attribute
    • getChannelId

      public String getChannelId()
      Specified by:
      getChannelId in interface ConversationMemberParamsIF
      Returns:
      The value of the channelId attribute
    • withCursor

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

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

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

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

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

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

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

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

      public static ConversationMemberParams.Builder builder()
      Creates a builder for ConversationMemberParams.
       ConversationMemberParams.builder()
          .setCursor(Optional<String>) // optional cursor
          .setLimit(Optional<Integer>) // optional limit
          .setChannelId(String) // required channelId
          .build();
       
      Returns:
      A new ConversationMemberParams builder