/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.finspacedata.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateUserRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The unique identifier for the user account to update. *
*/ private String userId; /** ** The option to indicate the type of user. *
*
* SUPER_USER
– A user with permission to all the functionality and data in FinSpace.
*
* APP_USER
– A user with specific permissions in FinSpace. The users are assigned permissions by
* adding them to a permission group.
*
* The first name of the user. *
*/ private String firstName; /** ** The last name of the user. *
*/ private String lastName; /** *
* The option to indicate whether the user can use the GetProgrammaticAccessCredentials
API to obtain
* credentials that can then be used to access other FinSpace Data API operations.
*
* ENABLED
– The user has permissions to use the APIs.
*
* DISABLED
– The user does not have permissions to use any APIs.
*
* The ARN identifier of an AWS user or role that is allowed to call the
* GetProgrammaticAccessCredentials
API to obtain a credentials token for a specific FinSpace user.
* This must be an IAM role within your FinSpace account.
*
* A token that ensures idempotency. This token expires in 10 minutes. *
*/ private String clientToken; /** ** The unique identifier for the user account to update. *
* * @param userId * The unique identifier for the user account to update. */ public void setUserId(String userId) { this.userId = userId; } /** ** The unique identifier for the user account to update. *
* * @return The unique identifier for the user account to update. */ public String getUserId() { return this.userId; } /** ** The unique identifier for the user account to update. *
* * @param userId * The unique identifier for the user account to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateUserRequest withUserId(String userId) { setUserId(userId); return this; } /** ** The option to indicate the type of user. *
*
* SUPER_USER
– A user with permission to all the functionality and data in FinSpace.
*
* APP_USER
– A user with specific permissions in FinSpace. The users are assigned permissions by
* adding them to a permission group.
*
* SUPER_USER
– A user with permission to all the functionality and data in FinSpace.
*
* APP_USER
– A user with specific permissions in FinSpace. The users are assigned permissions
* by adding them to a permission group.
*
* The option to indicate the type of user. *
*
* SUPER_USER
– A user with permission to all the functionality and data in FinSpace.
*
* APP_USER
– A user with specific permissions in FinSpace. The users are assigned permissions by
* adding them to a permission group.
*
* SUPER_USER
– A user with permission to all the functionality and data in FinSpace.
*
* APP_USER
– A user with specific permissions in FinSpace. The users are assigned permissions
* by adding them to a permission group.
*
* The option to indicate the type of user. *
*
* SUPER_USER
– A user with permission to all the functionality and data in FinSpace.
*
* APP_USER
– A user with specific permissions in FinSpace. The users are assigned permissions by
* adding them to a permission group.
*
* SUPER_USER
– A user with permission to all the functionality and data in FinSpace.
*
* APP_USER
– A user with specific permissions in FinSpace. The users are assigned permissions
* by adding them to a permission group.
*
* The option to indicate the type of user. *
*
* SUPER_USER
– A user with permission to all the functionality and data in FinSpace.
*
* APP_USER
– A user with specific permissions in FinSpace. The users are assigned permissions by
* adding them to a permission group.
*
* SUPER_USER
– A user with permission to all the functionality and data in FinSpace.
*
* APP_USER
– A user with specific permissions in FinSpace. The users are assigned permissions
* by adding them to a permission group.
*
* The first name of the user. *
* * @param firstName * The first name of the user. */ public void setFirstName(String firstName) { this.firstName = firstName; } /** ** The first name of the user. *
* * @return The first name of the user. */ public String getFirstName() { return this.firstName; } /** ** The first name of the user. *
* * @param firstName * The first name of the user. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateUserRequest withFirstName(String firstName) { setFirstName(firstName); return this; } /** ** The last name of the user. *
* * @param lastName * The last name of the user. */ public void setLastName(String lastName) { this.lastName = lastName; } /** ** The last name of the user. *
* * @return The last name of the user. */ public String getLastName() { return this.lastName; } /** ** The last name of the user. *
* * @param lastName * The last name of the user. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateUserRequest withLastName(String lastName) { setLastName(lastName); return this; } /** *
* The option to indicate whether the user can use the GetProgrammaticAccessCredentials
API to obtain
* credentials that can then be used to access other FinSpace Data API operations.
*
* ENABLED
– The user has permissions to use the APIs.
*
* DISABLED
– The user does not have permissions to use any APIs.
*
GetProgrammaticAccessCredentials
API to
* obtain credentials that can then be used to access other FinSpace Data API operations.
*
* ENABLED
– The user has permissions to use the APIs.
*
* DISABLED
– The user does not have permissions to use any APIs.
*
* The option to indicate whether the user can use the GetProgrammaticAccessCredentials
API to obtain
* credentials that can then be used to access other FinSpace Data API operations.
*
* ENABLED
– The user has permissions to use the APIs.
*
* DISABLED
– The user does not have permissions to use any APIs.
*
GetProgrammaticAccessCredentials
API to
* obtain credentials that can then be used to access other FinSpace Data API operations.
*
* ENABLED
– The user has permissions to use the APIs.
*
* DISABLED
– The user does not have permissions to use any APIs.
*
* The option to indicate whether the user can use the GetProgrammaticAccessCredentials
API to obtain
* credentials that can then be used to access other FinSpace Data API operations.
*
* ENABLED
– The user has permissions to use the APIs.
*
* DISABLED
– The user does not have permissions to use any APIs.
*
GetProgrammaticAccessCredentials
API to
* obtain credentials that can then be used to access other FinSpace Data API operations.
*
* ENABLED
– The user has permissions to use the APIs.
*
* DISABLED
– The user does not have permissions to use any APIs.
*
* The option to indicate whether the user can use the GetProgrammaticAccessCredentials
API to obtain
* credentials that can then be used to access other FinSpace Data API operations.
*
* ENABLED
– The user has permissions to use the APIs.
*
* DISABLED
– The user does not have permissions to use any APIs.
*
GetProgrammaticAccessCredentials
API to
* obtain credentials that can then be used to access other FinSpace Data API operations.
*
* ENABLED
– The user has permissions to use the APIs.
*
* DISABLED
– The user does not have permissions to use any APIs.
*
* The ARN identifier of an AWS user or role that is allowed to call the
* GetProgrammaticAccessCredentials
API to obtain a credentials token for a specific FinSpace user.
* This must be an IAM role within your FinSpace account.
*
GetProgrammaticAccessCredentials
API to obtain a credentials token for a specific FinSpace
* user. This must be an IAM role within your FinSpace account.
*/
public void setApiAccessPrincipalArn(String apiAccessPrincipalArn) {
this.apiAccessPrincipalArn = apiAccessPrincipalArn;
}
/**
*
* The ARN identifier of an AWS user or role that is allowed to call the
* GetProgrammaticAccessCredentials
API to obtain a credentials token for a specific FinSpace user.
* This must be an IAM role within your FinSpace account.
*
GetProgrammaticAccessCredentials
API to obtain a credentials token for a specific FinSpace
* user. This must be an IAM role within your FinSpace account.
*/
public String getApiAccessPrincipalArn() {
return this.apiAccessPrincipalArn;
}
/**
*
* The ARN identifier of an AWS user or role that is allowed to call the
* GetProgrammaticAccessCredentials
API to obtain a credentials token for a specific FinSpace user.
* This must be an IAM role within your FinSpace account.
*
GetProgrammaticAccessCredentials
API to obtain a credentials token for a specific FinSpace
* user. This must be an IAM role within your FinSpace account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateUserRequest withApiAccessPrincipalArn(String apiAccessPrincipalArn) {
setApiAccessPrincipalArn(apiAccessPrincipalArn);
return this;
}
/**
* * A token that ensures idempotency. This token expires in 10 minutes. *
* * @param clientToken * A token that ensures idempotency. This token expires in 10 minutes. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** A token that ensures idempotency. This token expires in 10 minutes. *
* * @return A token that ensures idempotency. This token expires in 10 minutes. */ public String getClientToken() { return this.clientToken; } /** ** A token that ensures idempotency. This token expires in 10 minutes. *
* * @param clientToken * A token that ensures idempotency. This token expires in 10 minutes. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateUserRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getUserId() != null) sb.append("UserId: ").append(getUserId()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getFirstName() != null) sb.append("FirstName: ").append("***Sensitive Data Redacted***").append(","); if (getLastName() != null) sb.append("LastName: ").append("***Sensitive Data Redacted***").append(","); if (getApiAccess() != null) sb.append("ApiAccess: ").append(getApiAccess()).append(","); if (getApiAccessPrincipalArn() != null) sb.append("ApiAccessPrincipalArn: ").append(getApiAccessPrincipalArn()).append(","); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateUserRequest == false) return false; UpdateUserRequest other = (UpdateUserRequest) obj; if (other.getUserId() == null ^ this.getUserId() == null) return false; if (other.getUserId() != null && other.getUserId().equals(this.getUserId()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getFirstName() == null ^ this.getFirstName() == null) return false; if (other.getFirstName() != null && other.getFirstName().equals(this.getFirstName()) == false) return false; if (other.getLastName() == null ^ this.getLastName() == null) return false; if (other.getLastName() != null && other.getLastName().equals(this.getLastName()) == false) return false; if (other.getApiAccess() == null ^ this.getApiAccess() == null) return false; if (other.getApiAccess() != null && other.getApiAccess().equals(this.getApiAccess()) == false) return false; if (other.getApiAccessPrincipalArn() == null ^ this.getApiAccessPrincipalArn() == null) return false; if (other.getApiAccessPrincipalArn() != null && other.getApiAccessPrincipalArn().equals(this.getApiAccessPrincipalArn()) == false) return false; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUserId() == null) ? 0 : getUserId().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getFirstName() == null) ? 0 : getFirstName().hashCode()); hashCode = prime * hashCode + ((getLastName() == null) ? 0 : getLastName().hashCode()); hashCode = prime * hashCode + ((getApiAccess() == null) ? 0 : getApiAccess().hashCode()); hashCode = prime * hashCode + ((getApiAccessPrincipalArn() == null) ? 0 : getApiAccessPrincipalArn().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); return hashCode; } @Override public UpdateUserRequest clone() { return (UpdateUserRequest) super.clone(); } }