Class ChatGetPermalinkParams

java.lang.Object
com.hubspot.slack.client.methods.params.chat.ChatGetPermalinkParams
All Implemented Interfaces:
HasChannel, ChatGetPermalinkParamsIF

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

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

  • Method Details

    • getChannelId

      public String getChannelId()
      Specified by:
      getChannelId in interface ChatGetPermalinkParamsIF
      Specified by:
      getChannelId in interface HasChannel
      Returns:
      The value of the channelId attribute
    • getMessageTs

      public String getMessageTs()
      Specified by:
      getMessageTs in interface ChatGetPermalinkParamsIF
      Returns:
      The value of the messageTs attribute
    • withChannelId

      public final ChatGetPermalinkParams 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
    • withMessageTs

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

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

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

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

      public static ChatGetPermalinkParams.Builder builder()
      Creates a builder for ChatGetPermalinkParams.
       ChatGetPermalinkParams.builder()
          .setChannelId(String) // required channelId
          .setMessageTs(String) // required messageTs
          .build();
       
      Returns:
      A new ChatGetPermalinkParams builder