Class MigrationExchangeParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.migration.MigrationExchangeParams.Builder
- Enclosing class:
MigrationExchangeParams
@Generated(from="MigrationExchangeParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class MigrationExchangeParams.Builder
extends Object
Builds instances of type
MigrationExchangeParams.
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 TypeMethodDescriptionaddAllUserIds(Iterable<String> elements) Adds elements touserIdsset.addUserIds(String element) Adds one element touserIdsset.addUserIds(String... elements) Adds elements touserIdsset.build()Builds a newMigrationExchangeParams.from(MigrationExchangeParamsIF instance) Fill a builder with attribute values from the providedMigrationExchangeParamsIFinstance.Initializes the optional valueteamIdto teamId.Initializes the optional valueteamIdto teamId.Initializes the optional valuetoOldto toOld.Initializes the optional valuetoOldto toOld.setUserIds(Iterable<String> elements) Sets or replaces all elements foruserIdsset.
-
Method Details
-
from
Fill a builder with attribute values from the providedMigrationExchangeParamsIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setTeamId
Initializes the optional valueteamIdto teamId.- Parameters:
teamId- The value for teamId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setTeamId
Initializes the optional valueteamIdto teamId.- Parameters:
teamId- The value for teamId- Returns:
thisbuilder for use in a chained invocation
-
setToOld
Initializes the optional valuetoOldto toOld.- Parameters:
toOld- The value for toOld,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setToOld
Initializes the optional valuetoOldto toOld.- Parameters:
toOld- The value for toOld- Returns:
thisbuilder for use in a chained invocation
-
addUserIds
Adds one element touserIdsset.- Parameters:
element- A userIds element- Returns:
thisbuilder for use in a chained invocation
-
addUserIds
Adds elements touserIdsset.- Parameters:
elements- An array of userIds elements- Returns:
thisbuilder for use in a chained invocation
-
setUserIds
Sets or replaces all elements foruserIdsset.- Parameters:
elements- An iterable of userIds elements- Returns:
thisbuilder for use in a chained invocation
-
addAllUserIds
Adds elements touserIdsset.- Parameters:
elements- An iterable of userIds elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newMigrationExchangeParams.- Returns:
- An immutable instance of MigrationExchangeParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-