/* * 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 CreateUserRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The email address of the user that you want to register. The email address serves as a uniquer identifier for * each user and cannot be changed after it's created. *

*/ private String emailAddress; /** *

* The option to indicate the type of user. Use one of the following options to specify this parameter: *

* */ private String type; /** *

* The first name of the user that you want to register. *

*/ private String firstName; /** *

* The last name of the user that you want to register. *

*/ 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. *

* */ private String apiAccess; /** *

* 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. *

*/ private String apiAccessPrincipalArn; /** *

* A token that ensures idempotency. This token expires in 10 minutes. *

*/ private String clientToken; /** *

* The email address of the user that you want to register. The email address serves as a uniquer identifier for * each user and cannot be changed after it's created. *

* * @param emailAddress * The email address of the user that you want to register. The email address serves as a uniquer identifier * for each user and cannot be changed after it's created. */ public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; } /** *

* The email address of the user that you want to register. The email address serves as a uniquer identifier for * each user and cannot be changed after it's created. *

* * @return The email address of the user that you want to register. The email address serves as a uniquer identifier * for each user and cannot be changed after it's created. */ public String getEmailAddress() { return this.emailAddress; } /** *

* The email address of the user that you want to register. The email address serves as a uniquer identifier for * each user and cannot be changed after it's created. *

* * @param emailAddress * The email address of the user that you want to register. The email address serves as a uniquer identifier * for each user and cannot be changed after it's created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserRequest withEmailAddress(String emailAddress) { setEmailAddress(emailAddress); return this; } /** *

* The option to indicate the type of user. Use one of the following options to specify this parameter: *

* * * @param type * The option to indicate the type of user. Use one of the following options to specify this parameter:

*