@NotThreadSafe public static final class ChatPostMessageResponse.Builder extends Object
ChatPostMessageResponse.
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 |
|---|---|
ChatPostMessageResponse |
build()
Builds a new
ChatPostMessageResponse. |
ChatPostMessageResponse.Builder |
from(ChatPostMessageResponseIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.chat.ChatPostMessageResponseIF instance. |
ChatPostMessageResponse.Builder |
from(SlackResponse instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.response.SlackResponse instance. |
ChatPostMessageResponse.Builder |
putAllMessage(Map<String,? extends Object> message)
Put all mappings from the specified map as entries to
message map. |
ChatPostMessageResponse.Builder |
putMessage(Map.Entry<String,? extends Object> entry)
Put one entry to the
message map. |
ChatPostMessageResponse.Builder |
putMessage(String key,
Object value)
Put one entry to the
message map. |
ChatPostMessageResponse.Builder |
setChannel(String channel)
Initializes the value for the
channel attribute. |
ChatPostMessageResponse.Builder |
setMessage(Map<String,? extends Object> message)
Sets or replaces all mappings from the specified map as entries for the
message map. |
ChatPostMessageResponse.Builder |
setOk(boolean ok)
Initializes the value for the
ok attribute. |
ChatPostMessageResponse.Builder |
setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
ChatPostMessageResponse.Builder |
setResponseMetadata(ResponseMetadata responseMetadata)
Initializes the optional value
responseMetadata to responseMetadata. |
ChatPostMessageResponse.Builder |
setTs(String ts)
Initializes the value for the
ts attribute. |
public final ChatPostMessageResponse.Builder from(ChatPostMessageResponseIF instance)
com.hubspot.slack.client.models.response.chat.ChatPostMessageResponseIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChatPostMessageResponse.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 ChatPostMessageResponse.Builder setTs(String ts)
ts attribute.ts - The value for tsthis builder for use in a chained invocationpublic final ChatPostMessageResponse.Builder setChannel(String channel)
channel attribute.channel - The value for channelthis builder for use in a chained invocationpublic final ChatPostMessageResponse.Builder putMessage(String key, Object value)
message map.key - The key in the message mapvalue - The associated value in the message mapthis builder for use in a chained invocationpublic final ChatPostMessageResponse.Builder putMessage(Map.Entry<String,? extends Object> entry)
message map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ChatPostMessageResponse.Builder setMessage(Map<String,? extends Object> message)
message map. Nulls are not permittedmessage - The entries that will be added to the message mapthis builder for use in a chained invocationpublic final ChatPostMessageResponse.Builder putAllMessage(Map<String,? extends Object> message)
message map. Nulls are not permittedmessage - The entries that will be added to the message mapthis builder for use in a chained invocationpublic final ChatPostMessageResponse.Builder setOk(boolean ok)
ok attribute.ok - The value for okthis builder for use in a chained invocationpublic final ChatPostMessageResponse.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 ChatPostMessageResponse.Builder setResponseMetadata(Optional<ResponseMetadata> responseMetadata)
responseMetadata to responseMetadata.responseMetadata - The value for responseMetadatathis builder for use in a chained invocationpublic ChatPostMessageResponse build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ChatPostMessageResponse.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.