Class MigrationExchangeResponse.Builder

java.lang.Object
com.hubspot.slack.client.models.response.migration.MigrationExchangeResponse.Builder
Enclosing class:
MigrationExchangeResponse

@Generated(from="MigrationExchangeResponseIF", generator="Immutables") @NotThreadSafe public static final class MigrationExchangeResponse.Builder extends Object
Builds instances of type MigrationExchangeResponse. 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

      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.response.migration.MigrationExchangeResponseIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final MigrationExchangeResponse.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
    • setOk

      public final MigrationExchangeResponse.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 MigrationExchangeResponse.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 MigrationExchangeResponse.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
    • setTeamId

      public final MigrationExchangeResponse.Builder setTeamId(String teamId)
      Initializes the value for the teamId attribute.
      Parameters:
      teamId - The value for teamId
      Returns:
      this builder for use in a chained invocation
    • setEnterpriseId

      public final MigrationExchangeResponse.Builder setEnterpriseId(String enterpriseId)
      Initializes the value for the enterpriseId attribute.
      Parameters:
      enterpriseId - The value for enterpriseId
      Returns:
      this builder for use in a chained invocation
    • putUserIdMap

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

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

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

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

      public final MigrationExchangeResponse.Builder addInvalidUserIds(String element)
      Adds one element to invalidUserIds set.
      Parameters:
      element - A invalidUserIds element
      Returns:
      this builder for use in a chained invocation
    • addInvalidUserIds

      public final MigrationExchangeResponse.Builder addInvalidUserIds(String... elements)
      Adds elements to invalidUserIds set.
      Parameters:
      elements - An array of invalidUserIds elements
      Returns:
      this builder for use in a chained invocation
    • setInvalidUserIds

      public final MigrationExchangeResponse.Builder setInvalidUserIds(Iterable<String> elements)
      Sets or replaces all elements for invalidUserIds set.
      Parameters:
      elements - An iterable of invalidUserIds elements
      Returns:
      this builder for use in a chained invocation
    • addAllInvalidUserIds

      public final MigrationExchangeResponse.Builder addAllInvalidUserIds(Iterable<String> elements)
      Adds elements to invalidUserIds set.
      Parameters:
      elements - An iterable of invalidUserIds elements
      Returns:
      this builder for use in a chained invocation
    • build

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