/* * 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.chime.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The Amazon Chime account details. An AWS account can have multiple Amazon Chime accounts. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Account implements Serializable, Cloneable, StructuredPojo { /** ** The AWS account ID. *
*/ private String awsAccountId; /** ** The Amazon Chime account ID. *
*/ private String accountId; /** ** The Amazon Chime account name. *
*/ private String name; /** ** The Amazon Chime account type. For more information about different account types, see Managing Your Amazon Chime * Accounts in the Amazon Chime Administration Guide. *
*/ private String accountType; /** ** The Amazon Chime account creation timestamp, in ISO 8601 format. *
*/ private java.util.Date createdTimestamp; /** ** The default license for the Amazon Chime account. *
*/ private String defaultLicense; /** ** Supported licenses for the Amazon Chime account. *
*/ private java.util.List* The status of the account. *
*/ private String accountStatus; /** ** The sign-in delegate groups associated with the account. *
*/ private java.util.List* The AWS account ID. *
* * @param awsAccountId * The AWS account ID. */ public void setAwsAccountId(String awsAccountId) { this.awsAccountId = awsAccountId; } /** ** The AWS account ID. *
* * @return The AWS account ID. */ public String getAwsAccountId() { return this.awsAccountId; } /** ** The AWS account ID. *
* * @param awsAccountId * The AWS account ID. * @return Returns a reference to this object so that method calls can be chained together. */ public Account withAwsAccountId(String awsAccountId) { setAwsAccountId(awsAccountId); return this; } /** ** The Amazon Chime account ID. *
* * @param accountId * The Amazon Chime account ID. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** ** The Amazon Chime account ID. *
* * @return The Amazon Chime account ID. */ public String getAccountId() { return this.accountId; } /** ** The Amazon Chime account ID. *
* * @param accountId * The Amazon Chime account ID. * @return Returns a reference to this object so that method calls can be chained together. */ public Account withAccountId(String accountId) { setAccountId(accountId); return this; } /** ** The Amazon Chime account name. *
* * @param name * The Amazon Chime account name. */ public void setName(String name) { this.name = name; } /** ** The Amazon Chime account name. *
* * @return The Amazon Chime account name. */ public String getName() { return this.name; } /** ** The Amazon Chime account name. *
* * @param name * The Amazon Chime account name. * @return Returns a reference to this object so that method calls can be chained together. */ public Account withName(String name) { setName(name); return this; } /** ** The Amazon Chime account type. For more information about different account types, see Managing Your Amazon Chime * Accounts in the Amazon Chime Administration Guide. *
* * @param accountType * The Amazon Chime account type. For more information about different account types, see Managing Your Amazon Chime * Accounts in the Amazon Chime Administration Guide. * @see AccountType */ public void setAccountType(String accountType) { this.accountType = accountType; } /** ** The Amazon Chime account type. For more information about different account types, see Managing Your Amazon Chime * Accounts in the Amazon Chime Administration Guide. *
* * @return The Amazon Chime account type. For more information about different account types, see Managing Your Amazon Chime * Accounts in the Amazon Chime Administration Guide. * @see AccountType */ public String getAccountType() { return this.accountType; } /** ** The Amazon Chime account type. For more information about different account types, see Managing Your Amazon Chime * Accounts in the Amazon Chime Administration Guide. *
* * @param accountType * The Amazon Chime account type. For more information about different account types, see Managing Your Amazon Chime * Accounts in the Amazon Chime Administration Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see AccountType */ public Account withAccountType(String accountType) { setAccountType(accountType); return this; } /** ** The Amazon Chime account type. For more information about different account types, see Managing Your Amazon Chime * Accounts in the Amazon Chime Administration Guide. *
* * @param accountType * The Amazon Chime account type. For more information about different account types, see Managing Your Amazon Chime * Accounts in the Amazon Chime Administration Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see AccountType */ public Account withAccountType(AccountType accountType) { this.accountType = accountType.toString(); return this; } /** ** The Amazon Chime account creation timestamp, in ISO 8601 format. *
* * @param createdTimestamp * The Amazon Chime account creation timestamp, in ISO 8601 format. */ public void setCreatedTimestamp(java.util.Date createdTimestamp) { this.createdTimestamp = createdTimestamp; } /** ** The Amazon Chime account creation timestamp, in ISO 8601 format. *
* * @return The Amazon Chime account creation timestamp, in ISO 8601 format. */ public java.util.Date getCreatedTimestamp() { return this.createdTimestamp; } /** ** The Amazon Chime account creation timestamp, in ISO 8601 format. *
* * @param createdTimestamp * The Amazon Chime account creation timestamp, in ISO 8601 format. * @return Returns a reference to this object so that method calls can be chained together. */ public Account withCreatedTimestamp(java.util.Date createdTimestamp) { setCreatedTimestamp(createdTimestamp); return this; } /** ** The default license for the Amazon Chime account. *
* * @param defaultLicense * The default license for the Amazon Chime account. * @see License */ public void setDefaultLicense(String defaultLicense) { this.defaultLicense = defaultLicense; } /** ** The default license for the Amazon Chime account. *
* * @return The default license for the Amazon Chime account. * @see License */ public String getDefaultLicense() { return this.defaultLicense; } /** ** The default license for the Amazon Chime account. *
* * @param defaultLicense * The default license for the Amazon Chime account. * @return Returns a reference to this object so that method calls can be chained together. * @see License */ public Account withDefaultLicense(String defaultLicense) { setDefaultLicense(defaultLicense); return this; } /** ** The default license for the Amazon Chime account. *
* * @param defaultLicense * The default license for the Amazon Chime account. * @return Returns a reference to this object so that method calls can be chained together. * @see License */ public Account withDefaultLicense(License defaultLicense) { this.defaultLicense = defaultLicense.toString(); return this; } /** ** Supported licenses for the Amazon Chime account. *
* * @return Supported licenses for the Amazon Chime account. * @see License */ public java.util.List* Supported licenses for the Amazon Chime account. *
* * @param supportedLicenses * Supported licenses for the Amazon Chime account. * @see License */ public void setSupportedLicenses(java.util.Collection* Supported licenses for the Amazon Chime account. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedLicenses(java.util.Collection)} or {@link #withSupportedLicenses(java.util.Collection)} if * you want to override the existing values. *
* * @param supportedLicenses * Supported licenses for the Amazon Chime account. * @return Returns a reference to this object so that method calls can be chained together. * @see License */ public Account withSupportedLicenses(String... supportedLicenses) { if (this.supportedLicenses == null) { setSupportedLicenses(new java.util.ArrayList* Supported licenses for the Amazon Chime account. *
* * @param supportedLicenses * Supported licenses for the Amazon Chime account. * @return Returns a reference to this object so that method calls can be chained together. * @see License */ public Account withSupportedLicenses(java.util.Collection* Supported licenses for the Amazon Chime account. *
* * @param supportedLicenses * Supported licenses for the Amazon Chime account. * @return Returns a reference to this object so that method calls can be chained together. * @see License */ public Account withSupportedLicenses(License... supportedLicenses) { java.util.ArrayList* The status of the account. *
* * @param accountStatus * The status of the account. * @see AccountStatus */ public void setAccountStatus(String accountStatus) { this.accountStatus = accountStatus; } /** ** The status of the account. *
* * @return The status of the account. * @see AccountStatus */ public String getAccountStatus() { return this.accountStatus; } /** ** The status of the account. *
* * @param accountStatus * The status of the account. * @return Returns a reference to this object so that method calls can be chained together. * @see AccountStatus */ public Account withAccountStatus(String accountStatus) { setAccountStatus(accountStatus); return this; } /** ** The status of the account. *
* * @param accountStatus * The status of the account. * @return Returns a reference to this object so that method calls can be chained together. * @see AccountStatus */ public Account withAccountStatus(AccountStatus accountStatus) { this.accountStatus = accountStatus.toString(); return this; } /** ** The sign-in delegate groups associated with the account. *
* * @return The sign-in delegate groups associated with the account. */ public java.util.List* The sign-in delegate groups associated with the account. *
* * @param signinDelegateGroups * The sign-in delegate groups associated with the account. */ public void setSigninDelegateGroups(java.util.Collection* The sign-in delegate groups associated with the account. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSigninDelegateGroups(java.util.Collection)} or {@link #withSigninDelegateGroups(java.util.Collection)} * if you want to override the existing values. *
* * @param signinDelegateGroups * The sign-in delegate groups associated with the account. * @return Returns a reference to this object so that method calls can be chained together. */ public Account withSigninDelegateGroups(SigninDelegateGroup... signinDelegateGroups) { if (this.signinDelegateGroups == null) { setSigninDelegateGroups(new java.util.ArrayList* The sign-in delegate groups associated with the account. *
* * @param signinDelegateGroups * The sign-in delegate groups associated with the account. * @return Returns a reference to this object so that method calls can be chained together. */ public Account withSigninDelegateGroups(java.util.Collection