Class ChatGetPermalinkParams.Builder

java.lang.Object
com.hubspot.slack.client.methods.params.chat.ChatGetPermalinkParams.Builder
Enclosing class:
ChatGetPermalinkParams

@Generated(from="ChatGetPermalinkParamsIF", generator="Immutables") @NotThreadSafe public static final class ChatGetPermalinkParams.Builder extends Object
Builds instances of type ChatGetPermalinkParams. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      public final ChatGetPermalinkParams.Builder from(HasChannel instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.interceptor.HasChannel instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.params.chat.ChatGetPermalinkParamsIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setChannelId

      public final ChatGetPermalinkParams.Builder setChannelId(String channelId)
      Initializes the value for the channelId attribute.
      Parameters:
      channelId - The value for channelId
      Returns:
      this builder for use in a chained invocation
    • setMessageTs

      public final ChatGetPermalinkParams.Builder setMessageTs(String messageTs)
      Initializes the value for the messageTs attribute.
      Parameters:
      messageTs - The value for messageTs
      Returns:
      this builder for use in a chained invocation
    • build

      public ChatGetPermalinkParams build()
      Returns:
      An immutable instance of ChatGetPermalinkParams
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing