Class ChatDeleteParams.Builder

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

@Generated(from="AbstractChatDeleteParams", generator="Immutables") @NotThreadSafe public static final class ChatDeleteParams.Builder extends Object
Builds instances of type ChatDeleteParams. 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 ChatDeleteParams.Builder from(AbstractChatDeleteParams instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.params.chat.AbstractChatDeleteParams instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ChatDeleteParams.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
    • setChannelId

      public final ChatDeleteParams.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
    • setMessageToDeleteTs

      public final ChatDeleteParams.Builder setMessageToDeleteTs(String messageToDeleteTs)
      Initializes the value for the messageToDeleteTs attribute.
      Parameters:
      messageToDeleteTs - The value for messageToDeleteTs
      Returns:
      this builder for use in a chained invocation
    • setAsUser

      public final ChatDeleteParams.Builder setAsUser(boolean asUser)
      Initializes the value for the asUser attribute.

      If not set, this attribute will have a default value as returned by the initializer of asUser.

      Parameters:
      asUser - The value for asUser
      Returns:
      this builder for use in a chained invocation
    • build

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