@NotThreadSafe public static final class ChatDeleteParams.Builder extends Object
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.
| Modifier and Type | Method and Description |
|---|---|
ChatDeleteParams |
build()
Builds a new
ChatDeleteParams. |
ChatDeleteParams.Builder |
from(AbstractChatDeleteParams instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.params.chat.AbstractChatDeleteParams instance. |
ChatDeleteParams.Builder |
from(HasChannel instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.interceptor.HasChannel instance. |
ChatDeleteParams.Builder |
setAsUser(boolean asUser)
Initializes the value for the
asUser attribute. |
ChatDeleteParams.Builder |
setChannelId(String channelId)
Initializes the value for the
channelId attribute. |
ChatDeleteParams.Builder |
setMessageToDeleteTs(String messageToDeleteTs)
Initializes the value for the
messageToDeleteTs attribute. |
public final ChatDeleteParams.Builder from(AbstractChatDeleteParams instance)
com.hubspot.slack.client.methods.params.chat.AbstractChatDeleteParams instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChatDeleteParams.Builder from(HasChannel instance)
com.hubspot.slack.client.methods.interceptor.HasChannel instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChatDeleteParams.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic final ChatDeleteParams.Builder setMessageToDeleteTs(String messageToDeleteTs)
messageToDeleteTs attribute.messageToDeleteTs - The value for messageToDeleteTsthis builder for use in a chained invocationpublic final ChatDeleteParams.Builder setAsUser(boolean asUser)
asUser attribute.
If not set, this attribute will have a default value as returned by the initializer of asUser.
asUser - The value for asUserthis builder for use in a chained invocationpublic ChatDeleteParams build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ChatDeleteParams.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.