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 Summary
Modifier and TypeMethodDescriptionaddAllInvalidUserIds(Iterable<String> elements) Adds elements toinvalidUserIdsset.addInvalidUserIds(String element) Adds one element toinvalidUserIdsset.addInvalidUserIds(String... elements) Adds elements toinvalidUserIdsset.build()Builds a newMigrationExchangeResponse.from(MigrationExchangeResponseIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.migration.MigrationExchangeResponseIFinstance.from(SlackResponse instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.SlackResponseinstance.putAllUserIdMap(Map<String, ? extends String> entries) Put all mappings from the specified map as entries touserIdMapmap.putUserIdMap(String key, String value) Put one entry to theuserIdMapmap.putUserIdMap(Map.Entry<String, ? extends String> entry) Put one entry to theuserIdMapmap.setEnterpriseId(String enterpriseId) Initializes the value for theenterpriseIdattribute.setInvalidUserIds(Iterable<String> elements) Sets or replaces all elements forinvalidUserIdsset.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.Initializes the value for theteamIdattribute.setUserIdMap(Map<String, ? extends String> entries) Sets or replaces all mappings from the specified map as entries for theuserIdMapmap.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.migration.MigrationExchangeResponseIFinstance.- 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.SlackResponseinstance.- 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 MigrationExchangeResponse.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 MigrationExchangeResponse.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
-
setTeamId
Initializes the value for theteamIdattribute.- Parameters:
teamId- The value for teamId- Returns:
thisbuilder for use in a chained invocation
-
setEnterpriseId
Initializes the value for theenterpriseIdattribute.- Parameters:
enterpriseId- The value for enterpriseId- Returns:
thisbuilder for use in a chained invocation
-
putUserIdMap
Put one entry to theuserIdMapmap.- Parameters:
key- The key in the userIdMap mapvalue- The associated value in the userIdMap map- Returns:
thisbuilder for use in a chained invocation
-
putUserIdMap
public final MigrationExchangeResponse.Builder putUserIdMap(Map.Entry<String, ? extends String> entry) Put one entry to theuserIdMapmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
setUserIdMap
Sets or replaces all mappings from the specified map as entries for theuserIdMapmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the userIdMap map- Returns:
thisbuilder 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 touserIdMapmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the userIdMap map- Returns:
thisbuilder for use in a chained invocation
-
addInvalidUserIds
Adds one element toinvalidUserIdsset.- Parameters:
element- A invalidUserIds element- Returns:
thisbuilder for use in a chained invocation
-
addInvalidUserIds
Adds elements toinvalidUserIdsset.- Parameters:
elements- An array of invalidUserIds elements- Returns:
thisbuilder for use in a chained invocation
-
setInvalidUserIds
Sets or replaces all elements forinvalidUserIdsset.- Parameters:
elements- An iterable of invalidUserIds elements- Returns:
thisbuilder for use in a chained invocation
-
addAllInvalidUserIds
Adds elements toinvalidUserIdsset.- Parameters:
elements- An iterable of invalidUserIds elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newMigrationExchangeResponse.- Returns:
- An immutable instance of MigrationExchangeResponse
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-