Class EmojiListResponse.Builder
java.lang.Object
com.hubspot.slack.client.models.response.emoji.EmojiListResponse.Builder
- Enclosing class:
EmojiListResponse
@Generated(from="EmojiListResponseIF",
generator="Immutables")
@NotThreadSafe
public static final class EmojiListResponse.Builder
extends Object
Builds instances of type
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newEmojiListResponse.from(EmojiListResponseIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.emoji.EmojiListResponseIFinstance.from(SlackResponse instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.SlackResponseinstance.putAllEmoji(Map<String, ? extends String> entries) Put all mappings from the specified map as entries toemojimap.Put one entry to theemojimap.Put one entry to theemojimap.Sets or replaces all mappings from the specified map as entries for theemojimap.setOk(boolean ok) Initializes the value for theokattribute.setResponseMetadata(ResponseMetadata responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.setResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.SlackResponseinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.emoji.EmojiListResponseIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setOk
Initializes the value for theokattribute.- Parameters:
ok- The value for ok- Returns:
thisbuilder for use in a chained invocation
-
setResponseMetadata
public final EmojiListResponse.Builder setResponseMetadata(@Nullable ResponseMetadata responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.- Parameters:
responseMetadata- The value for responseMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setResponseMetadata
public final EmojiListResponse.Builder setResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.- Parameters:
responseMetadata- The value for responseMetadata- Returns:
thisbuilder for use in a chained invocation
-
putEmoji
Put one entry to theemojimap.- Parameters:
key- The key in the emoji mapvalue- The associated value in the emoji map- Returns:
thisbuilder for use in a chained invocation
-
putEmoji
Put one entry to theemojimap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
setEmoji
Sets or replaces all mappings from the specified map as entries for theemojimap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the emoji map- Returns:
thisbuilder for use in a chained invocation
-
putAllEmoji
Put all mappings from the specified map as entries toemojimap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the emoji map- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newEmojiListResponse.- Returns:
- An immutable instance of EmojiListResponse
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-