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