@NotThreadSafe public static final class ChatPostEphemeralMessageResponse.Builder extends Object
ChatPostEphemeralMessageResponse.
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 |
|---|---|
ChatPostEphemeralMessageResponse |
build()
Builds a new
ChatPostEphemeralMessageResponse. |
ChatPostEphemeralMessageResponse.Builder |
from(ChatPostEphemeralMessageResponseIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.chat.ChatPostEphemeralMessageResponseIF instance. |
ChatPostEphemeralMessageResponse.Builder |
from(SlackResponse instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.SlackResponse instance. |
ChatPostEphemeralMessageResponse.Builder |
setMessageTs(String messageTs)
Initializes the value for the
messageTs attribute. |
ChatPostEphemeralMessageResponse.Builder |
setOk(boolean ok)
Initializes the value for the
ok attribute. |
ChatPostEphemeralMessageResponse.Builder |
setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
ChatPostEphemeralMessageResponse.Builder |
setResponseMetadata(ResponseMetadata responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
public final ChatPostEphemeralMessageResponse.Builder from(SlackResponse instance)
com.hubspot.slack.client.models.response.SlackResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageResponse.Builder from(ChatPostEphemeralMessageResponseIF instance)
com.hubspot.slack.client.models.response.chat.ChatPostEphemeralMessageResponseIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageResponse.Builder setMessageTs(String messageTs)
messageTs attribute.messageTs - The value for messageTsthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageResponse.Builder setOk(boolean ok)
ok attribute.ok - The value for okthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageResponse.Builder setResponseMetadata(@Nullable ResponseMetadata responseMetadata)
responseMetadata to responseMetadata.responseMetadata - The value for responseMetadata, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChatPostEphemeralMessageResponse.Builder setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
responseMetadata to responseMetadata.responseMetadata - The value for responseMetadatathis builder for use in a chained invocationpublic ChatPostEphemeralMessageResponse build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ChatPostEphemeralMessageResponse.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.