/* * 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.quicksight.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 CreateAccountSubscriptionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The edition of Amazon QuickSight that you want your account to have. Currently, you can choose from
* ENTERPRISE
or ENTERPRISE_AND_Q
.
*
* If you choose ENTERPRISE_AND_Q
, the following parameters are required:
*
* FirstName
*
* LastName
*
* EmailAddress
*
* ContactNumber
*
* The method that you want to use to authenticate your Amazon QuickSight account. Currently, the valid values for
* this parameter are IAM_AND_QUICKSIGHT
, IAM_ONLY
, and ACTIVE_DIRECTORY
.
*
* If you choose ACTIVE_DIRECTORY
, provide an ActiveDirectoryName
and an
* AdminGroup
associated with your Active Directory.
*
* The Amazon Web Services account ID of the account that you're using to create your Amazon QuickSight account. *
*/ private String awsAccountId; /** *
* The name of your Amazon QuickSight account. This name is unique over all of Amazon Web Services, and it appears
* only when users sign in. You can't change AccountName
value after the Amazon QuickSight account is
* created.
*
* The email address that you want Amazon QuickSight to send notifications to regarding your Amazon QuickSight * account or Amazon QuickSight subscription. *
*/ private String notificationEmail; /** *
* The name of your Active Directory. This field is required if ACTIVE_DIRECTORY
is the selected
* authentication method of the new Amazon QuickSight account.
*
* The realm of the Active Directory that is associated with your Amazon QuickSight account. This field is required
* if ACTIVE_DIRECTORY
is the selected authentication method of the new Amazon QuickSight account.
*
* The ID of the Active Directory that is associated with your Amazon QuickSight account. *
*/ private String directoryId; /** *
* The admin group associated with your Active Directory. This field is required if ACTIVE_DIRECTORY
is
* the selected authentication method of the new Amazon QuickSight account. For more information about using Active
* Directory in Amazon QuickSight, see Using Active Directory with
* Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide.
*
* The author group associated with your Active Directory. For more information about using Active Directory in * Amazon QuickSight, see Using Active Directory with * Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. *
*/ private java.util.List* The reader group associated with your Active Direcrtory. For more information about using Active Directory in * Amazon QuickSight, see Using Active Directory with * Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. *
*/ private java.util.List
* The first name of the author of the Amazon QuickSight account to use for future communications. This field is
* required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
* The last name of the author of the Amazon QuickSight account to use for future communications. This field is
* required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
* The email address of the author of the Amazon QuickSight account to use for future communications. This field is
* required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
* A 10-digit phone number for the author of the Amazon QuickSight account to use for future communications. This
* field is required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
* The edition of Amazon QuickSight that you want your account to have. Currently, you can choose from
* ENTERPRISE
or ENTERPRISE_AND_Q
.
*
* If you choose ENTERPRISE_AND_Q
, the following parameters are required:
*
* FirstName
*
* LastName
*
* EmailAddress
*
* ContactNumber
*
ENTERPRISE
or ENTERPRISE_AND_Q
.
*
* If you choose ENTERPRISE_AND_Q
, the following parameters are required:
*
* FirstName
*
* LastName
*
* EmailAddress
*
* ContactNumber
*
* The edition of Amazon QuickSight that you want your account to have. Currently, you can choose from
* ENTERPRISE
or ENTERPRISE_AND_Q
.
*
* If you choose ENTERPRISE_AND_Q
, the following parameters are required:
*
* FirstName
*
* LastName
*
* EmailAddress
*
* ContactNumber
*
ENTERPRISE
or ENTERPRISE_AND_Q
.
*
* If you choose ENTERPRISE_AND_Q
, the following parameters are required:
*
* FirstName
*
* LastName
*
* EmailAddress
*
* ContactNumber
*
* The edition of Amazon QuickSight that you want your account to have. Currently, you can choose from
* ENTERPRISE
or ENTERPRISE_AND_Q
.
*
* If you choose ENTERPRISE_AND_Q
, the following parameters are required:
*
* FirstName
*
* LastName
*
* EmailAddress
*
* ContactNumber
*
ENTERPRISE
or ENTERPRISE_AND_Q
.
*
* If you choose ENTERPRISE_AND_Q
, the following parameters are required:
*
* FirstName
*
* LastName
*
* EmailAddress
*
* ContactNumber
*
* The edition of Amazon QuickSight that you want your account to have. Currently, you can choose from
* ENTERPRISE
or ENTERPRISE_AND_Q
.
*
* If you choose ENTERPRISE_AND_Q
, the following parameters are required:
*
* FirstName
*
* LastName
*
* EmailAddress
*
* ContactNumber
*
ENTERPRISE
or ENTERPRISE_AND_Q
.
*
* If you choose ENTERPRISE_AND_Q
, the following parameters are required:
*
* FirstName
*
* LastName
*
* EmailAddress
*
* ContactNumber
*
* The method that you want to use to authenticate your Amazon QuickSight account. Currently, the valid values for
* this parameter are IAM_AND_QUICKSIGHT
, IAM_ONLY
, and ACTIVE_DIRECTORY
.
*
* If you choose ACTIVE_DIRECTORY
, provide an ActiveDirectoryName
and an
* AdminGroup
associated with your Active Directory.
*
IAM_AND_QUICKSIGHT
, IAM_ONLY
, and
* ACTIVE_DIRECTORY
.
*
* If you choose ACTIVE_DIRECTORY
, provide an ActiveDirectoryName
and an
* AdminGroup
associated with your Active Directory.
* @see AuthenticationMethodOption
*/
public void setAuthenticationMethod(String authenticationMethod) {
this.authenticationMethod = authenticationMethod;
}
/**
*
* The method that you want to use to authenticate your Amazon QuickSight account. Currently, the valid values for
* this parameter are IAM_AND_QUICKSIGHT
, IAM_ONLY
, and ACTIVE_DIRECTORY
.
*
* If you choose ACTIVE_DIRECTORY
, provide an ActiveDirectoryName
and an
* AdminGroup
associated with your Active Directory.
*
IAM_AND_QUICKSIGHT
, IAM_ONLY
, and
* ACTIVE_DIRECTORY
.
*
* If you choose ACTIVE_DIRECTORY
, provide an ActiveDirectoryName
and an
* AdminGroup
associated with your Active Directory.
* @see AuthenticationMethodOption
*/
public String getAuthenticationMethod() {
return this.authenticationMethod;
}
/**
*
* The method that you want to use to authenticate your Amazon QuickSight account. Currently, the valid values for
* this parameter are IAM_AND_QUICKSIGHT
, IAM_ONLY
, and ACTIVE_DIRECTORY
.
*
* If you choose ACTIVE_DIRECTORY
, provide an ActiveDirectoryName
and an
* AdminGroup
associated with your Active Directory.
*
IAM_AND_QUICKSIGHT
, IAM_ONLY
, and
* ACTIVE_DIRECTORY
.
*
* If you choose ACTIVE_DIRECTORY
, provide an ActiveDirectoryName
and an
* AdminGroup
associated with your Active Directory.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AuthenticationMethodOption
*/
public CreateAccountSubscriptionRequest withAuthenticationMethod(String authenticationMethod) {
setAuthenticationMethod(authenticationMethod);
return this;
}
/**
*
* The method that you want to use to authenticate your Amazon QuickSight account. Currently, the valid values for
* this parameter are IAM_AND_QUICKSIGHT
, IAM_ONLY
, and ACTIVE_DIRECTORY
.
*
* If you choose ACTIVE_DIRECTORY
, provide an ActiveDirectoryName
and an
* AdminGroup
associated with your Active Directory.
*
IAM_AND_QUICKSIGHT
, IAM_ONLY
, and
* ACTIVE_DIRECTORY
.
*
* If you choose ACTIVE_DIRECTORY
, provide an ActiveDirectoryName
and an
* AdminGroup
associated with your Active Directory.
* @return Returns a reference to this object so that method calls can be chained together.
* @see AuthenticationMethodOption
*/
public CreateAccountSubscriptionRequest withAuthenticationMethod(AuthenticationMethodOption authenticationMethod) {
this.authenticationMethod = authenticationMethod.toString();
return this;
}
/**
*
* The Amazon Web Services account ID of the account that you're using to create your Amazon QuickSight account. *
* * @param awsAccountId * The Amazon Web Services account ID of the account that you're using to create your Amazon QuickSight * account. */ public void setAwsAccountId(String awsAccountId) { this.awsAccountId = awsAccountId; } /** ** The Amazon Web Services account ID of the account that you're using to create your Amazon QuickSight account. *
* * @return The Amazon Web Services account ID of the account that you're using to create your Amazon QuickSight * account. */ public String getAwsAccountId() { return this.awsAccountId; } /** ** The Amazon Web Services account ID of the account that you're using to create your Amazon QuickSight account. *
* * @param awsAccountId * The Amazon Web Services account ID of the account that you're using to create your Amazon QuickSight * account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAccountSubscriptionRequest withAwsAccountId(String awsAccountId) { setAwsAccountId(awsAccountId); return this; } /** *
* The name of your Amazon QuickSight account. This name is unique over all of Amazon Web Services, and it appears
* only when users sign in. You can't change AccountName
value after the Amazon QuickSight account is
* created.
*
AccountName
value after the Amazon
* QuickSight account is created.
*/
public void setAccountName(String accountName) {
this.accountName = accountName;
}
/**
*
* The name of your Amazon QuickSight account. This name is unique over all of Amazon Web Services, and it appears
* only when users sign in. You can't change AccountName
value after the Amazon QuickSight account is
* created.
*
AccountName
value after the Amazon
* QuickSight account is created.
*/
public String getAccountName() {
return this.accountName;
}
/**
*
* The name of your Amazon QuickSight account. This name is unique over all of Amazon Web Services, and it appears
* only when users sign in. You can't change AccountName
value after the Amazon QuickSight account is
* created.
*
AccountName
value after the Amazon
* QuickSight account is created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAccountSubscriptionRequest withAccountName(String accountName) {
setAccountName(accountName);
return this;
}
/**
* * The email address that you want Amazon QuickSight to send notifications to regarding your Amazon QuickSight * account or Amazon QuickSight subscription. *
* * @param notificationEmail * The email address that you want Amazon QuickSight to send notifications to regarding your Amazon * QuickSight account or Amazon QuickSight subscription. */ public void setNotificationEmail(String notificationEmail) { this.notificationEmail = notificationEmail; } /** ** The email address that you want Amazon QuickSight to send notifications to regarding your Amazon QuickSight * account or Amazon QuickSight subscription. *
* * @return The email address that you want Amazon QuickSight to send notifications to regarding your Amazon * QuickSight account or Amazon QuickSight subscription. */ public String getNotificationEmail() { return this.notificationEmail; } /** ** The email address that you want Amazon QuickSight to send notifications to regarding your Amazon QuickSight * account or Amazon QuickSight subscription. *
* * @param notificationEmail * The email address that you want Amazon QuickSight to send notifications to regarding your Amazon * QuickSight account or Amazon QuickSight subscription. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAccountSubscriptionRequest withNotificationEmail(String notificationEmail) { setNotificationEmail(notificationEmail); return this; } /** *
* The name of your Active Directory. This field is required if ACTIVE_DIRECTORY
is the selected
* authentication method of the new Amazon QuickSight account.
*
ACTIVE_DIRECTORY
is the selected
* authentication method of the new Amazon QuickSight account.
*/
public void setActiveDirectoryName(String activeDirectoryName) {
this.activeDirectoryName = activeDirectoryName;
}
/**
*
* The name of your Active Directory. This field is required if ACTIVE_DIRECTORY
is the selected
* authentication method of the new Amazon QuickSight account.
*
ACTIVE_DIRECTORY
is the
* selected authentication method of the new Amazon QuickSight account.
*/
public String getActiveDirectoryName() {
return this.activeDirectoryName;
}
/**
*
* The name of your Active Directory. This field is required if ACTIVE_DIRECTORY
is the selected
* authentication method of the new Amazon QuickSight account.
*
ACTIVE_DIRECTORY
is the selected
* authentication method of the new Amazon QuickSight account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAccountSubscriptionRequest withActiveDirectoryName(String activeDirectoryName) {
setActiveDirectoryName(activeDirectoryName);
return this;
}
/**
*
* The realm of the Active Directory that is associated with your Amazon QuickSight account. This field is required
* if ACTIVE_DIRECTORY
is the selected authentication method of the new Amazon QuickSight account.
*
ACTIVE_DIRECTORY
is the selected authentication method of the new Amazon
* QuickSight account.
*/
public void setRealm(String realm) {
this.realm = realm;
}
/**
*
* The realm of the Active Directory that is associated with your Amazon QuickSight account. This field is required
* if ACTIVE_DIRECTORY
is the selected authentication method of the new Amazon QuickSight account.
*
ACTIVE_DIRECTORY
is the selected authentication method of the new Amazon
* QuickSight account.
*/
public String getRealm() {
return this.realm;
}
/**
*
* The realm of the Active Directory that is associated with your Amazon QuickSight account. This field is required
* if ACTIVE_DIRECTORY
is the selected authentication method of the new Amazon QuickSight account.
*
ACTIVE_DIRECTORY
is the selected authentication method of the new Amazon
* QuickSight account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAccountSubscriptionRequest withRealm(String realm) {
setRealm(realm);
return this;
}
/**
* * The ID of the Active Directory that is associated with your Amazon QuickSight account. *
* * @param directoryId * The ID of the Active Directory that is associated with your Amazon QuickSight account. */ public void setDirectoryId(String directoryId) { this.directoryId = directoryId; } /** ** The ID of the Active Directory that is associated with your Amazon QuickSight account. *
* * @return The ID of the Active Directory that is associated with your Amazon QuickSight account. */ public String getDirectoryId() { return this.directoryId; } /** ** The ID of the Active Directory that is associated with your Amazon QuickSight account. *
* * @param directoryId * The ID of the Active Directory that is associated with your Amazon QuickSight account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAccountSubscriptionRequest withDirectoryId(String directoryId) { setDirectoryId(directoryId); return this; } /** *
* The admin group associated with your Active Directory. This field is required if ACTIVE_DIRECTORY
is
* the selected authentication method of the new Amazon QuickSight account. For more information about using Active
* Directory in Amazon QuickSight, see Using Active Directory with
* Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide.
*
ACTIVE_DIRECTORY
is the selected authentication method of the new Amazon QuickSight account.
* For more information about using Active Directory in Amazon QuickSight, see Using Active
* Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide.
*/
public java.util.List
* The admin group associated with your Active Directory. This field is required if ACTIVE_DIRECTORY
is
* the selected authentication method of the new Amazon QuickSight account. For more information about using Active
* Directory in Amazon QuickSight, see Using Active Directory with
* Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide.
*
ACTIVE_DIRECTORY
is the selected authentication method of the new Amazon QuickSight account.
* For more information about using Active Directory in Amazon QuickSight, see Using Active
* Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide.
*/
public void setAdminGroup(java.util.Collection
* The admin group associated with your Active Directory. This field is required if ACTIVE_DIRECTORY
is
* the selected authentication method of the new Amazon QuickSight account. For more information about using Active
* Directory in Amazon QuickSight, see Using Active Directory with
* Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAdminGroup(java.util.Collection)} or {@link #withAdminGroup(java.util.Collection)} if you want to * override the existing values. *
* * @param adminGroup * The admin group associated with your Active Directory. This field is required if *ACTIVE_DIRECTORY
is the selected authentication method of the new Amazon QuickSight account.
* For more information about using Active Directory in Amazon QuickSight, see Using Active
* Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAccountSubscriptionRequest withAdminGroup(String... adminGroup) {
if (this.adminGroup == null) {
setAdminGroup(new java.util.ArrayList
* The admin group associated with your Active Directory. This field is required if ACTIVE_DIRECTORY
is
* the selected authentication method of the new Amazon QuickSight account. For more information about using Active
* Directory in Amazon QuickSight, see Using Active Directory with
* Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide.
*
ACTIVE_DIRECTORY
is the selected authentication method of the new Amazon QuickSight account.
* For more information about using Active Directory in Amazon QuickSight, see Using Active
* Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAccountSubscriptionRequest withAdminGroup(java.util.Collection* The author group associated with your Active Directory. For more information about using Active Directory in * Amazon QuickSight, see Using Active Directory with * Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. *
* * @return The author group associated with your Active Directory. For more information about using Active Directory * in Amazon QuickSight, see Using Active * Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. */ public java.util.List* The author group associated with your Active Directory. For more information about using Active Directory in * Amazon QuickSight, see Using Active Directory with * Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. *
* * @param authorGroup * The author group associated with your Active Directory. For more information about using Active Directory * in Amazon QuickSight, see Using Active * Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. */ public void setAuthorGroup(java.util.Collection* The author group associated with your Active Directory. For more information about using Active Directory in * Amazon QuickSight, see Using Active Directory with * Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAuthorGroup(java.util.Collection)} or {@link #withAuthorGroup(java.util.Collection)} if you want to * override the existing values. *
* * @param authorGroup * The author group associated with your Active Directory. For more information about using Active Directory * in Amazon QuickSight, see Using Active * Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAccountSubscriptionRequest withAuthorGroup(String... authorGroup) { if (this.authorGroup == null) { setAuthorGroup(new java.util.ArrayList* The author group associated with your Active Directory. For more information about using Active Directory in * Amazon QuickSight, see Using Active Directory with * Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. *
* * @param authorGroup * The author group associated with your Active Directory. For more information about using Active Directory * in Amazon QuickSight, see Using Active * Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAccountSubscriptionRequest withAuthorGroup(java.util.Collection* The reader group associated with your Active Direcrtory. For more information about using Active Directory in * Amazon QuickSight, see Using Active Directory with * Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. *
* * @return The reader group associated with your Active Direcrtory. For more information about using Active * Directory in Amazon QuickSight, see Using Active * Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. */ public java.util.List* The reader group associated with your Active Direcrtory. For more information about using Active Directory in * Amazon QuickSight, see Using Active Directory with * Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. *
* * @param readerGroup * The reader group associated with your Active Direcrtory. For more information about using Active Directory * in Amazon QuickSight, see Using Active * Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. */ public void setReaderGroup(java.util.Collection* The reader group associated with your Active Direcrtory. For more information about using Active Directory in * Amazon QuickSight, see Using Active Directory with * Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReaderGroup(java.util.Collection)} or {@link #withReaderGroup(java.util.Collection)} if you want to * override the existing values. *
* * @param readerGroup * The reader group associated with your Active Direcrtory. For more information about using Active Directory * in Amazon QuickSight, see Using Active * Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAccountSubscriptionRequest withReaderGroup(String... readerGroup) { if (this.readerGroup == null) { setReaderGroup(new java.util.ArrayList* The reader group associated with your Active Direcrtory. For more information about using Active Directory in * Amazon QuickSight, see Using Active Directory with * Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. *
* * @param readerGroup * The reader group associated with your Active Direcrtory. For more information about using Active Directory * in Amazon QuickSight, see Using Active * Directory with Amazon QuickSight Enterprise Edition in the Amazon QuickSight User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAccountSubscriptionRequest withReaderGroup(java.util.Collection
* The first name of the author of the Amazon QuickSight account to use for future communications. This field is
* required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight
* account.
*/
public void setFirstName(String firstName) {
this.firstName = firstName;
}
/**
*
* The first name of the author of the Amazon QuickSight account to use for future communications. This field is
* required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight
* account.
*/
public String getFirstName() {
return this.firstName;
}
/**
*
* The first name of the author of the Amazon QuickSight account to use for future communications. This field is
* required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight
* account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAccountSubscriptionRequest withFirstName(String firstName) {
setFirstName(firstName);
return this;
}
/**
*
* The last name of the author of the Amazon QuickSight account to use for future communications. This field is
* required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight
* account.
*/
public void setLastName(String lastName) {
this.lastName = lastName;
}
/**
*
* The last name of the author of the Amazon QuickSight account to use for future communications. This field is
* required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight
* account.
*/
public String getLastName() {
return this.lastName;
}
/**
*
* The last name of the author of the Amazon QuickSight account to use for future communications. This field is
* required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight
* account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAccountSubscriptionRequest withLastName(String lastName) {
setLastName(lastName);
return this;
}
/**
*
* The email address of the author of the Amazon QuickSight account to use for future communications. This field is
* required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight
* account.
*/
public void setEmailAddress(String emailAddress) {
this.emailAddress = emailAddress;
}
/**
*
* The email address of the author of the Amazon QuickSight account to use for future communications. This field is
* required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight
* account.
*/
public String getEmailAddress() {
return this.emailAddress;
}
/**
*
* The email address of the author of the Amazon QuickSight account to use for future communications. This field is
* required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight
* account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAccountSubscriptionRequest withEmailAddress(String emailAddress) {
setEmailAddress(emailAddress);
return this;
}
/**
*
* A 10-digit phone number for the author of the Amazon QuickSight account to use for future communications. This
* field is required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
ENTERPPRISE_AND_Q
is the selected edition of the new Amazon
* QuickSight account.
*/
public void setContactNumber(String contactNumber) {
this.contactNumber = contactNumber;
}
/**
*
* A 10-digit phone number for the author of the Amazon QuickSight account to use for future communications. This
* field is required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
ENTERPPRISE_AND_Q
is the selected edition of the new Amazon
* QuickSight account.
*/
public String getContactNumber() {
return this.contactNumber;
}
/**
*
* A 10-digit phone number for the author of the Amazon QuickSight account to use for future communications. This
* field is required if ENTERPPRISE_AND_Q
is the selected edition of the new Amazon QuickSight account.
*
ENTERPPRISE_AND_Q
is the selected edition of the new Amazon
* QuickSight account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateAccountSubscriptionRequest withContactNumber(String contactNumber) {
setContactNumber(contactNumber);
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 (getEdition() != null)
sb.append("Edition: ").append(getEdition()).append(",");
if (getAuthenticationMethod() != null)
sb.append("AuthenticationMethod: ").append(getAuthenticationMethod()).append(",");
if (getAwsAccountId() != null)
sb.append("AwsAccountId: ").append(getAwsAccountId()).append(",");
if (getAccountName() != null)
sb.append("AccountName: ").append(getAccountName()).append(",");
if (getNotificationEmail() != null)
sb.append("NotificationEmail: ").append(getNotificationEmail()).append(",");
if (getActiveDirectoryName() != null)
sb.append("ActiveDirectoryName: ").append(getActiveDirectoryName()).append(",");
if (getRealm() != null)
sb.append("Realm: ").append(getRealm()).append(",");
if (getDirectoryId() != null)
sb.append("DirectoryId: ").append(getDirectoryId()).append(",");
if (getAdminGroup() != null)
sb.append("AdminGroup: ").append(getAdminGroup()).append(",");
if (getAuthorGroup() != null)
sb.append("AuthorGroup: ").append(getAuthorGroup()).append(",");
if (getReaderGroup() != null)
sb.append("ReaderGroup: ").append(getReaderGroup()).append(",");
if (getFirstName() != null)
sb.append("FirstName: ").append(getFirstName()).append(",");
if (getLastName() != null)
sb.append("LastName: ").append(getLastName()).append(",");
if (getEmailAddress() != null)
sb.append("EmailAddress: ").append(getEmailAddress()).append(",");
if (getContactNumber() != null)
sb.append("ContactNumber: ").append(getContactNumber());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateAccountSubscriptionRequest == false)
return false;
CreateAccountSubscriptionRequest other = (CreateAccountSubscriptionRequest) obj;
if (other.getEdition() == null ^ this.getEdition() == null)
return false;
if (other.getEdition() != null && other.getEdition().equals(this.getEdition()) == false)
return false;
if (other.getAuthenticationMethod() == null ^ this.getAuthenticationMethod() == null)
return false;
if (other.getAuthenticationMethod() != null && other.getAuthenticationMethod().equals(this.getAuthenticationMethod()) == false)
return false;
if (other.getAwsAccountId() == null ^ this.getAwsAccountId() == null)
return false;
if (other.getAwsAccountId() != null && other.getAwsAccountId().equals(this.getAwsAccountId()) == 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.getNotificationEmail() == null ^ this.getNotificationEmail() == null)
return false;
if (other.getNotificationEmail() != null && other.getNotificationEmail().equals(this.getNotificationEmail()) == false)
return false;
if (other.getActiveDirectoryName() == null ^ this.getActiveDirectoryName() == null)
return false;
if (other.getActiveDirectoryName() != null && other.getActiveDirectoryName().equals(this.getActiveDirectoryName()) == false)
return false;
if (other.getRealm() == null ^ this.getRealm() == null)
return false;
if (other.getRealm() != null && other.getRealm().equals(this.getRealm()) == false)
return false;
if (other.getDirectoryId() == null ^ this.getDirectoryId() == null)
return false;
if (other.getDirectoryId() != null && other.getDirectoryId().equals(this.getDirectoryId()) == false)
return false;
if (other.getAdminGroup() == null ^ this.getAdminGroup() == null)
return false;
if (other.getAdminGroup() != null && other.getAdminGroup().equals(this.getAdminGroup()) == false)
return false;
if (other.getAuthorGroup() == null ^ this.getAuthorGroup() == null)
return false;
if (other.getAuthorGroup() != null && other.getAuthorGroup().equals(this.getAuthorGroup()) == false)
return false;
if (other.getReaderGroup() == null ^ this.getReaderGroup() == null)
return false;
if (other.getReaderGroup() != null && other.getReaderGroup().equals(this.getReaderGroup()) == 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.getEmailAddress() == null ^ this.getEmailAddress() == null)
return false;
if (other.getEmailAddress() != null && other.getEmailAddress().equals(this.getEmailAddress()) == false)
return false;
if (other.getContactNumber() == null ^ this.getContactNumber() == null)
return false;
if (other.getContactNumber() != null && other.getContactNumber().equals(this.getContactNumber()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getEdition() == null) ? 0 : getEdition().hashCode());
hashCode = prime * hashCode + ((getAuthenticationMethod() == null) ? 0 : getAuthenticationMethod().hashCode());
hashCode = prime * hashCode + ((getAwsAccountId() == null) ? 0 : getAwsAccountId().hashCode());
hashCode = prime * hashCode + ((getAccountName() == null) ? 0 : getAccountName().hashCode());
hashCode = prime * hashCode + ((getNotificationEmail() == null) ? 0 : getNotificationEmail().hashCode());
hashCode = prime * hashCode + ((getActiveDirectoryName() == null) ? 0 : getActiveDirectoryName().hashCode());
hashCode = prime * hashCode + ((getRealm() == null) ? 0 : getRealm().hashCode());
hashCode = prime * hashCode + ((getDirectoryId() == null) ? 0 : getDirectoryId().hashCode());
hashCode = prime * hashCode + ((getAdminGroup() == null) ? 0 : getAdminGroup().hashCode());
hashCode = prime * hashCode + ((getAuthorGroup() == null) ? 0 : getAuthorGroup().hashCode());
hashCode = prime * hashCode + ((getReaderGroup() == null) ? 0 : getReaderGroup().hashCode());
hashCode = prime * hashCode + ((getFirstName() == null) ? 0 : getFirstName().hashCode());
hashCode = prime * hashCode + ((getLastName() == null) ? 0 : getLastName().hashCode());
hashCode = prime * hashCode + ((getEmailAddress() == null) ? 0 : getEmailAddress().hashCode());
hashCode = prime * hashCode + ((getContactNumber() == null) ? 0 : getContactNumber().hashCode());
return hashCode;
}
@Override
public CreateAccountSubscriptionRequest clone() {
return (CreateAccountSubscriptionRequest) super.clone();
}
}