Class MigrationExchangeResponse
java.lang.Object
com.hubspot.slack.client.models.response.migration.MigrationExchangeResponse
- All Implemented Interfaces:
MigrationExchangeResponseIF,SlackResponse
@Generated(from="MigrationExchangeResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class MigrationExchangeResponse
extends Object
implements MigrationExchangeResponseIF
Immutable implementation of
MigrationExchangeResponseIF.
Use the builder to create immutable instances:
MigrationExchangeResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeMigrationExchangeResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forMigrationExchangeResponse.static MigrationExchangeResponsecopyOf(MigrationExchangeResponseIF instance) Creates an immutable copy of aMigrationExchangeResponseIFvalue.booleanThis instance is equal to all instances ofMigrationExchangeResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:ok,responseMetadata,teamId,enterpriseId,userIdMap,invalidUserIds.booleanisOk()toString()Prints the immutable valueMigrationExchangeResponsewith attribute values.withEnterpriseId(String value) Copy the current immutable object by setting a value for theenterpriseIdattribute.withInvalidUserIds(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofinvalidUserIds.withInvalidUserIds(String... elements) Copy the current immutable object with elements that replace the content ofinvalidUserIds.withOk(boolean value) Copy the current immutable object by setting a value for theokattribute.Copy the current immutable object by setting a present value for the optionalresponseMetadataattribute.withResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute.withTeamId(String value) Copy the current immutable object by setting a value for theteamIdattribute.withUserIdMap(Map<String, ? extends String> entries) Copy the current immutable object by replacing theuserIdMapmap with the specified map.
-
Method Details
-
isOk
public boolean isOk()- Specified by:
isOkin interfaceSlackResponse- Returns:
- The value of the
okattribute
-
getResponseMetadata
- Specified by:
getResponseMetadatain interfaceSlackResponse- Returns:
- The value of the
responseMetadataattribute
-
getTeamId
- Specified by:
getTeamIdin interfaceMigrationExchangeResponseIF- Returns:
- The value of the
teamIdattribute
-
getEnterpriseId
- Specified by:
getEnterpriseIdin interfaceMigrationExchangeResponseIF- Returns:
- The value of the
enterpriseIdattribute
-
getUserIdMap
- Specified by:
getUserIdMapin interfaceMigrationExchangeResponseIF- Returns:
- The value of the
userIdMapattribute
-
getInvalidUserIds
- Specified by:
getInvalidUserIdsin interfaceMigrationExchangeResponseIF- Returns:
- The value of the
invalidUserIdsattribute
-
withOk
Copy the current immutable object by setting a value for theokattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ok- Returns:
- A modified copy or the
thisobject
-
withResponseMetadata
Copy the current immutable object by setting a present value for the optionalresponseMetadataattribute.- Parameters:
value- The value for responseMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withResponseMetadata
public final MigrationExchangeResponse withResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for responseMetadata- Returns:
- A modified copy or
thisif not changed
-
withTeamId
Copy the current immutable object by setting a value for theteamIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for teamId- Returns:
- A modified copy or the
thisobject
-
withEnterpriseId
Copy the current immutable object by setting a value for theenterpriseIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for enterpriseId- Returns:
- A modified copy or the
thisobject
-
withUserIdMap
Copy the current immutable object by replacing theuserIdMapmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to replace the userIdMap map- Returns:
- A modified copy or
thisif not changed
-
withInvalidUserIds
Copy the current immutable object with elements that replace the content ofinvalidUserIds.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withInvalidUserIds
Copy the current immutable object with elements that replace the content ofinvalidUserIds. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of invalidUserIds elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofMigrationExchangeResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,teamId,enterpriseId,userIdMap,invalidUserIds. -
toString
Prints the immutable valueMigrationExchangeResponsewith attribute values. -
copyOf
Creates an immutable copy of aMigrationExchangeResponseIFvalue. 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 MigrationExchangeResponse instance
-
builder
Creates a builder forMigrationExchangeResponse.MigrationExchangeResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.setTeamId(String) // requiredteamId.setEnterpriseId(String) // requiredenterpriseId.putUserIdMap|putAllUserIdMap(String => String) //userIdMapmappings .addInvalidUserIds|addAllInvalidUserIds(String) //invalidUserIdselements .build();- Returns:
- A new MigrationExchangeResponse builder
-