@NotThreadSafe public static final class MessageContainer.Builder extends Object
MessageContainer.
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 |
|---|---|
MessageContainer |
build()
Builds a new
MessageContainer. |
MessageContainer.Builder |
from(Container instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.interaction.Container instance. |
MessageContainer.Builder |
from(MessageContainerIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.interaction.MessageContainerIF instance. |
MessageContainer.Builder |
setChannelId(String channelId)
Initializes the value for the
channelId attribute. |
MessageContainer.Builder |
setEphemeral(boolean ephemeral)
Initializes the value for the
ephemeral attribute. |
MessageContainer.Builder |
setMessageTs(String messageTs)
Initializes the value for the
messageTs attribute. |
MessageContainer.Builder |
setType(ContainerType type)
Initializes the value for the
type attribute. |
public final MessageContainer.Builder from(MessageContainerIF instance)
com.hubspot.slack.client.models.interaction.MessageContainerIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final MessageContainer.Builder from(Container instance)
com.hubspot.slack.client.models.interaction.Container instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final MessageContainer.Builder setMessageTs(String messageTs)
messageTs attribute.messageTs - The value for messageTsthis builder for use in a chained invocationpublic final MessageContainer.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic final MessageContainer.Builder setEphemeral(boolean ephemeral)
ephemeral attribute.ephemeral - The value for ephemeralthis builder for use in a chained invocationpublic final MessageContainer.Builder setType(ContainerType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic MessageContainer build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
MessageContainer.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.