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 Details

    • from

      public final EmojiListResponse.Builder from(SlackResponse instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.response.SlackResponse instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final EmojiListResponse.Builder from(EmojiListResponseIF instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.response.emoji.EmojiListResponseIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setOk

      public final EmojiListResponse.Builder setOk(boolean ok)
      Initializes the value for the ok attribute.
      Parameters:
      ok - The value for ok
      Returns:
      this builder for use in a chained invocation
    • setResponseMetadata

      public final EmojiListResponse.Builder setResponseMetadata(@Nullable ResponseMetadata responseMetadata)
      Initializes the optional value responseMetadata to responseMetadata.
      Parameters:
      responseMetadata - The value for responseMetadata, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setResponseMetadata

      public final EmojiListResponse.Builder setResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata)
      Initializes the optional value responseMetadata to responseMetadata.
      Parameters:
      responseMetadata - The value for responseMetadata
      Returns:
      this builder for use in a chained invocation
    • putEmoji

      public final EmojiListResponse.Builder putEmoji(String key, String value)
      Put one entry to the emoji map.
      Parameters:
      key - The key in the emoji map
      value - The associated value in the emoji map
      Returns:
      this builder for use in a chained invocation
    • putEmoji

      public final EmojiListResponse.Builder putEmoji(Map.Entry<String,? extends String> entry)
      Put one entry to the emoji map. Nulls are not permitted
      Parameters:
      entry - The key and value entry
      Returns:
      this builder for use in a chained invocation
    • setEmoji

      public final EmojiListResponse.Builder setEmoji(Map<String,? extends String> entries)
      Sets or replaces all mappings from the specified map as entries for the emoji map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the emoji map
      Returns:
      this builder for use in a chained invocation
    • putAllEmoji

      public final EmojiListResponse.Builder putAllEmoji(Map<String,? extends String> entries)
      Put all mappings from the specified map as entries to emoji map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the emoji map
      Returns:
      this builder for use in a chained invocation
    • build

      public EmojiListResponse build()
      Builds a new EmojiListResponse.
      Returns:
      An immutable instance of EmojiListResponse
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing