All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.organizations.model.CreateAccountRequest Maven / Gradle / Ivy

/*
 * Copyright 2012-2017 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.organizations.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 CreateAccountRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The email address of the owner to assign to the new member account. This email address must not already be * associated with another AWS account. *

*/ private String email; /** *

* The friendly name of the member account. *

*/ private String accountName; /** *

* (Optional) *

*

* The name of an IAM role that Organizations automatically preconfigures in the new member account. This role * trusts the master account, allowing users in the master account to assume the role, as permitted by the master * account administrator. The role has administrator permissions in the new member account. *

*

* If you do not specify this parameter, the role name defaults to OrganizationAccountAccessRole. *

*

* For more information about how to use this role to access the member account, see Accessing and Administering the Member Accounts in Your Organization in the AWS Organizations User * Guide, and steps 2 and 3 in Tutorial: Delegate * Access Across AWS Accounts Using IAM Roles in the IAM User Guide. *

*

* The regex pattern that is used to validate this parameter is a * string of characters that can consist of uppercase letters, lowercase letters, digits with no spaces, and any of * the following characters: =,.@- *

*/ private String roleName; /** *

* If set to ALLOW, the new account enables IAM users to access account billing information if * they have the required permissions. If set to DENY, then only the root user of the new account can * access account billing information. For more information, see Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost Management User * Guide. *

*

* If you do not specify this parameter, the value defaults to ALLOW, and IAM users and roles with the required * permissions can access billing information for the new account. *

*/ private String iamUserAccessToBilling; /** *

* The email address of the owner to assign to the new member account. This email address must not already be * associated with another AWS account. *

* * @param email * The email address of the owner to assign to the new member account. This email address must not already be * associated with another AWS account. */ public void setEmail(String email) { this.email = email; } /** *

* The email address of the owner to assign to the new member account. This email address must not already be * associated with another AWS account. *

* * @return The email address of the owner to assign to the new member account. This email address must not already * be associated with another AWS account. */ public String getEmail() { return this.email; } /** *

* The email address of the owner to assign to the new member account. This email address must not already be * associated with another AWS account. *

* * @param email * The email address of the owner to assign to the new member account. This email address must not already be * associated with another AWS account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAccountRequest withEmail(String email) { setEmail(email); return this; } /** *

* The friendly name of the member account. *

* * @param accountName * The friendly name of the member account. */ public void setAccountName(String accountName) { this.accountName = accountName; } /** *

* The friendly name of the member account. *

* * @return The friendly name of the member account. */ public String getAccountName() { return this.accountName; } /** *

* The friendly name of the member account. *

* * @param accountName * The friendly name of the member account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAccountRequest withAccountName(String accountName) { setAccountName(accountName); return this; } /** *

* (Optional) *

*

* The name of an IAM role that Organizations automatically preconfigures in the new member account. This role * trusts the master account, allowing users in the master account to assume the role, as permitted by the master * account administrator. The role has administrator permissions in the new member account. *

*

* If you do not specify this parameter, the role name defaults to OrganizationAccountAccessRole. *

*

* For more information about how to use this role to access the member account, see Accessing and Administering the Member Accounts in Your Organization in the AWS Organizations User * Guide, and steps 2 and 3 in Tutorial: Delegate * Access Across AWS Accounts Using IAM Roles in the IAM User Guide. *

*

* The regex pattern that is used to validate this parameter is a * string of characters that can consist of uppercase letters, lowercase letters, digits with no spaces, and any of * the following characters: =,.@- *

* * @param roleName * (Optional)

*

* The name of an IAM role that Organizations automatically preconfigures in the new member account. This * role trusts the master account, allowing users in the master account to assume the role, as permitted by * the master account administrator. The role has administrator permissions in the new member account. *

*

* If you do not specify this parameter, the role name defaults to OrganizationAccountAccessRole * . *

*

* For more information about how to use this role to access the member account, see Accessing and Administering the Member Accounts in Your Organization in the AWS Organizations User * Guide, and steps 2 and 3 in Tutorial: * Delegate Access Across AWS Accounts Using IAM Roles in the IAM User Guide. *

*

* The regex pattern that is used to validate this parameter is * a string of characters that can consist of uppercase letters, lowercase letters, digits with no spaces, * and any of the following characters: =,.@- */ public void setRoleName(String roleName) { this.roleName = roleName; } /** *

* (Optional) *

*

* The name of an IAM role that Organizations automatically preconfigures in the new member account. This role * trusts the master account, allowing users in the master account to assume the role, as permitted by the master * account administrator. The role has administrator permissions in the new member account. *

*

* If you do not specify this parameter, the role name defaults to OrganizationAccountAccessRole. *

*

* For more information about how to use this role to access the member account, see Accessing and Administering the Member Accounts in Your Organization in the AWS Organizations User * Guide, and steps 2 and 3 in Tutorial: Delegate * Access Across AWS Accounts Using IAM Roles in the IAM User Guide. *

*

* The regex pattern that is used to validate this parameter is a * string of characters that can consist of uppercase letters, lowercase letters, digits with no spaces, and any of * the following characters: =,.@- *

* * @return (Optional)

*

* The name of an IAM role that Organizations automatically preconfigures in the new member account. This * role trusts the master account, allowing users in the master account to assume the role, as permitted by * the master account administrator. The role has administrator permissions in the new member account. *

*

* If you do not specify this parameter, the role name defaults to * OrganizationAccountAccessRole. *

*

* For more information about how to use this role to access the member account, see Accessing and Administering the Member Accounts in Your Organization in the AWS Organizations * User Guide, and steps 2 and 3 in Tutorial: * Delegate Access Across AWS Accounts Using IAM Roles in the IAM User Guide. *

*

* The regex pattern that is used to validate this parameter * is a string of characters that can consist of uppercase letters, lowercase letters, digits with no * spaces, and any of the following characters: =,.@- */ public String getRoleName() { return this.roleName; } /** *

* (Optional) *

*

* The name of an IAM role that Organizations automatically preconfigures in the new member account. This role * trusts the master account, allowing users in the master account to assume the role, as permitted by the master * account administrator. The role has administrator permissions in the new member account. *

*

* If you do not specify this parameter, the role name defaults to OrganizationAccountAccessRole. *

*

* For more information about how to use this role to access the member account, see Accessing and Administering the Member Accounts in Your Organization in the AWS Organizations User * Guide, and steps 2 and 3 in Tutorial: Delegate * Access Across AWS Accounts Using IAM Roles in the IAM User Guide. *

*

* The regex pattern that is used to validate this parameter is a * string of characters that can consist of uppercase letters, lowercase letters, digits with no spaces, and any of * the following characters: =,.@- *

* * @param roleName * (Optional)

*

* The name of an IAM role that Organizations automatically preconfigures in the new member account. This * role trusts the master account, allowing users in the master account to assume the role, as permitted by * the master account administrator. The role has administrator permissions in the new member account. *

*

* If you do not specify this parameter, the role name defaults to OrganizationAccountAccessRole * . *

*

* For more information about how to use this role to access the member account, see Accessing and Administering the Member Accounts in Your Organization in the AWS Organizations User * Guide, and steps 2 and 3 in Tutorial: * Delegate Access Across AWS Accounts Using IAM Roles in the IAM User Guide. *

*

* The regex pattern that is used to validate this parameter is * a string of characters that can consist of uppercase letters, lowercase letters, digits with no spaces, * and any of the following characters: =,.@- * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAccountRequest withRoleName(String roleName) { setRoleName(roleName); return this; } /** *

* If set to ALLOW, the new account enables IAM users to access account billing information if * they have the required permissions. If set to DENY, then only the root user of the new account can * access account billing information. For more information, see Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost Management User * Guide. *

*

* If you do not specify this parameter, the value defaults to ALLOW, and IAM users and roles with the required * permissions can access billing information for the new account. *

* * @param iamUserAccessToBilling * If set to ALLOW, the new account enables IAM users to access account billing information * if they have the required permissions. If set to DENY, then only the root user of the * new account can access account billing information. For more information, see Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost * Management User Guide.

*

* If you do not specify this parameter, the value defaults to ALLOW, and IAM users and roles with the * required permissions can access billing information for the new account. * @see IAMUserAccessToBilling */ public void setIamUserAccessToBilling(String iamUserAccessToBilling) { this.iamUserAccessToBilling = iamUserAccessToBilling; } /** *

* If set to ALLOW, the new account enables IAM users to access account billing information if * they have the required permissions. If set to DENY, then only the root user of the new account can * access account billing information. For more information, see Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost Management User * Guide. *

*

* If you do not specify this parameter, the value defaults to ALLOW, and IAM users and roles with the required * permissions can access billing information for the new account. *

* * @return If set to ALLOW, the new account enables IAM users to access account billing information * if they have the required permissions. If set to DENY, then only the root user of the * new account can access account billing information. For more information, see Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost * Management User Guide.

*

* If you do not specify this parameter, the value defaults to ALLOW, and IAM users and roles with the * required permissions can access billing information for the new account. * @see IAMUserAccessToBilling */ public String getIamUserAccessToBilling() { return this.iamUserAccessToBilling; } /** *

* If set to ALLOW, the new account enables IAM users to access account billing information if * they have the required permissions. If set to DENY, then only the root user of the new account can * access account billing information. For more information, see Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost Management User * Guide. *

*

* If you do not specify this parameter, the value defaults to ALLOW, and IAM users and roles with the required * permissions can access billing information for the new account. *

* * @param iamUserAccessToBilling * If set to ALLOW, the new account enables IAM users to access account billing information * if they have the required permissions. If set to DENY, then only the root user of the * new account can access account billing information. For more information, see Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost * Management User Guide.

*

* If you do not specify this parameter, the value defaults to ALLOW, and IAM users and roles with the * required permissions can access billing information for the new account. * @return Returns a reference to this object so that method calls can be chained together. * @see IAMUserAccessToBilling */ public CreateAccountRequest withIamUserAccessToBilling(String iamUserAccessToBilling) { setIamUserAccessToBilling(iamUserAccessToBilling); return this; } /** *

* If set to ALLOW, the new account enables IAM users to access account billing information if * they have the required permissions. If set to DENY, then only the root user of the new account can * access account billing information. For more information, see Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost Management User * Guide. *

*

* If you do not specify this parameter, the value defaults to ALLOW, and IAM users and roles with the required * permissions can access billing information for the new account. *

* * @param iamUserAccessToBilling * If set to ALLOW, the new account enables IAM users to access account billing information * if they have the required permissions. If set to DENY, then only the root user of the * new account can access account billing information. For more information, see Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost * Management User Guide.

*

* If you do not specify this parameter, the value defaults to ALLOW, and IAM users and roles with the * required permissions can access billing information for the new account. * @see IAMUserAccessToBilling */ public void setIamUserAccessToBilling(IAMUserAccessToBilling iamUserAccessToBilling) { withIamUserAccessToBilling(iamUserAccessToBilling); } /** *

* If set to ALLOW, the new account enables IAM users to access account billing information if * they have the required permissions. If set to DENY, then only the root user of the new account can * access account billing information. For more information, see Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost Management User * Guide. *

*

* If you do not specify this parameter, the value defaults to ALLOW, and IAM users and roles with the required * permissions can access billing information for the new account. *

* * @param iamUserAccessToBilling * If set to ALLOW, the new account enables IAM users to access account billing information * if they have the required permissions. If set to DENY, then only the root user of the * new account can access account billing information. For more information, see Activating Access to the Billing and Cost Management Console in the AWS Billing and Cost * Management User Guide.

*

* If you do not specify this parameter, the value defaults to ALLOW, and IAM users and roles with the * required permissions can access billing information for the new account. * @return Returns a reference to this object so that method calls can be chained together. * @see IAMUserAccessToBilling */ public CreateAccountRequest withIamUserAccessToBilling(IAMUserAccessToBilling iamUserAccessToBilling) { this.iamUserAccessToBilling = iamUserAccessToBilling.toString(); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getEmail() != null) sb.append("Email: ").append(getEmail()).append(","); if (getAccountName() != null) sb.append("AccountName: ").append(getAccountName()).append(","); if (getRoleName() != null) sb.append("RoleName: ").append(getRoleName()).append(","); if (getIamUserAccessToBilling() != null) sb.append("IamUserAccessToBilling: ").append(getIamUserAccessToBilling()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateAccountRequest == false) return false; CreateAccountRequest other = (CreateAccountRequest) obj; if (other.getEmail() == null ^ this.getEmail() == null) return false; if (other.getEmail() != null && other.getEmail().equals(this.getEmail()) == false) return false; if (other.getAccountName() == null ^ this.getAccountName() == null) return false; if (other.getAccountName() != null && other.getAccountName().equals(this.getAccountName()) == false) return false; if (other.getRoleName() == null ^ this.getRoleName() == null) return false; if (other.getRoleName() != null && other.getRoleName().equals(this.getRoleName()) == false) return false; if (other.getIamUserAccessToBilling() == null ^ this.getIamUserAccessToBilling() == null) return false; if (other.getIamUserAccessToBilling() != null && other.getIamUserAccessToBilling().equals(this.getIamUserAccessToBilling()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEmail() == null) ? 0 : getEmail().hashCode()); hashCode = prime * hashCode + ((getAccountName() == null) ? 0 : getAccountName().hashCode()); hashCode = prime * hashCode + ((getRoleName() == null) ? 0 : getRoleName().hashCode()); hashCode = prime * hashCode + ((getIamUserAccessToBilling() == null) ? 0 : getIamUserAccessToBilling().hashCode()); return hashCode; } @Override public CreateAccountRequest clone() { return (CreateAccountRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy