Class MigrationExchangeParams
java.lang.Object
com.hubspot.slack.client.methods.params.migration.MigrationExchangeParams
- All Implemented Interfaces:
MigrationExchangeParamsIF
@Generated(from="MigrationExchangeParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class MigrationExchangeParams
extends Object
implements MigrationExchangeParamsIF
Immutable implementation of
MigrationExchangeParamsIF.
Use the builder to create immutable instances:
MigrationExchangeParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeMigrationExchangeParams. -
Field Summary
Fields inherited from interface com.hubspot.slack.client.methods.params.migration.MigrationExchangeParamsIF
COMMA_JOINER -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forMigrationExchangeParams.static MigrationExchangeParamscopyOf(MigrationExchangeParamsIF instance) Creates an immutable copy of aMigrationExchangeParamsIFvalue.booleanThis instance is equal to all instances ofMigrationExchangeParamsthat have equal attribute values.getToOld()inthashCode()Computes a hash code from attributes:teamId,toOld,userIds.toString()Prints the immutable valueMigrationExchangeParamswith attribute values.final MigrationExchangeParamswithTeamId(String value) Copy the current immutable object by setting a present value for the optionalteamIdattribute.final MigrationExchangeParamswithTeamId(Optional<String> optional) Copy the current immutable object by setting an optional value for theteamIdattribute.final MigrationExchangeParamsCopy the current immutable object by setting a present value for the optionaltoOldattribute.final MigrationExchangeParamsCopy the current immutable object by setting an optional value for thetoOldattribute.final MigrationExchangeParamswithUserIds(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofuserIds.final MigrationExchangeParamswithUserIds(String... elements) Copy the current immutable object with elements that replace the content ofuserIds.Methods inherited from interface com.hubspot.slack.client.methods.params.migration.MigrationExchangeParamsIF
getUserIdsString
-
Method Details
-
getTeamId
- Specified by:
getTeamIdin interfaceMigrationExchangeParamsIF- Returns:
- The value of the
teamIdattribute
-
getToOld
- Specified by:
getToOldin interfaceMigrationExchangeParamsIF- Returns:
- The value of the
toOldattribute
-
getUserIds
- Specified by:
getUserIdsin interfaceMigrationExchangeParamsIF- Returns:
- The value of the
userIdsattribute
-
withTeamId
Copy the current immutable object by setting a present value for the optionalteamIdattribute.- Parameters:
value- The value for teamId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withTeamId
Copy the current immutable object by setting an optional value for theteamIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for teamId- Returns:
- A modified copy or
thisif not changed
-
withToOld
Copy the current immutable object by setting a present value for the optionaltoOldattribute.- Parameters:
value- The value for toOld,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withToOld
Copy the current immutable object by setting an optional value for thetoOldattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for toOld- Returns:
- A modified copy or
thisif not changed
-
withUserIds
Copy the current immutable object with elements that replace the content ofuserIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withUserIds
Copy the current immutable object with elements that replace the content ofuserIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of userIds elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofMigrationExchangeParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:teamId,toOld,userIds. -
toString
Prints the immutable valueMigrationExchangeParamswith attribute values. -
copyOf
Creates an immutable copy of aMigrationExchangeParamsIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable MigrationExchangeParams instance
-
builder
Creates a builder forMigrationExchangeParams.MigrationExchangeParams.builder() .setTeamId(Optional<String>) // optionalteamId.setToOld(Optional<Boolean>) // optionaltoOld.addUserIds|addAllUserIds(String) //userIdselements .build();- Returns:
- A new MigrationExchangeParams builder
-