/* * 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.identitymanagement.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 UpdateAccountPasswordPolicyRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The minimum number of characters allowed in an IAM user password. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of 6
.
*
* Specifies whether IAM user passwords must contain at least one of the following non-alphanumeric characters: *
** ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one symbol character.
*
* Specifies whether IAM user passwords must contain at least one numeric character (0 to 9). *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one numeric character.
*
* Specifies whether IAM user passwords must contain at least one uppercase character from the ISO basic Latin * alphabet (A to Z). *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one uppercase character.
*
* Specifies whether IAM user passwords must contain at least one lowercase character from the ISO basic Latin * alphabet (a to z). *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one lowercase character.
*
* Allows all IAM users in your account to use the Amazon Web Services Management Console to change their own * passwords. For more information, see Permitting IAM users to change their own passwords in the IAM User Guide. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that IAM users in the account do not automatically have permissions to change their own password.
*
* The number of days that an IAM user password is valid. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of 0
.
* The result is that IAM user passwords never expire.
*
* Specifies the number of previous passwords that IAM users are prevented from reusing. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of 0
.
* The result is that IAM users are not prevented from reusing previous passwords.
*
* Prevents IAM users who are accessing the account via the Amazon Web Services Management Console from setting a * new console password after their password has expired. The IAM user cannot access the console until an * administrator resets the password. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that IAM users can change their passwords after they expire and continue to sign in as the user.
*
* In the Amazon Web Services Management Console, the custom password policy option Allow users to change their
* own password gives IAM users permissions to iam:ChangePassword
for only their user and to the
* iam:GetAccountPasswordPolicy
action. This option does not attach a permissions policy to each user,
* rather the permissions are applied at the account-level for all users by IAM. IAM users with
* iam:ChangePassword
permission and active access keys can reset their own expired console password
* using the CLI or API.
*
* The minimum number of characters allowed in an IAM user password. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of 6
.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* 6
.
*/
public void setMinimumPasswordLength(Integer minimumPasswordLength) {
this.minimumPasswordLength = minimumPasswordLength;
}
/**
*
* The minimum number of characters allowed in an IAM user password. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of 6
.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* 6
.
*/
public Integer getMinimumPasswordLength() {
return this.minimumPasswordLength;
}
/**
*
* The minimum number of characters allowed in an IAM user password. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of 6
.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* 6
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAccountPasswordPolicyRequest withMinimumPasswordLength(Integer minimumPasswordLength) {
setMinimumPasswordLength(minimumPasswordLength);
return this;
}
/**
*
* Specifies whether IAM user passwords must contain at least one of the following non-alphanumeric characters: *
** ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one symbol character.
*
* ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' *
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one symbol character.
*/
public void setRequireSymbols(Boolean requireSymbols) {
this.requireSymbols = requireSymbols;
}
/**
*
* Specifies whether IAM user passwords must contain at least one of the following non-alphanumeric characters: *
** ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one symbol character.
*
* ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' *
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one symbol character.
*/
public Boolean getRequireSymbols() {
return this.requireSymbols;
}
/**
*
* Specifies whether IAM user passwords must contain at least one of the following non-alphanumeric characters: *
** ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one symbol character.
*
* ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' *
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one symbol character.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAccountPasswordPolicyRequest withRequireSymbols(Boolean requireSymbols) {
setRequireSymbols(requireSymbols);
return this;
}
/**
*
* Specifies whether IAM user passwords must contain at least one of the following non-alphanumeric characters: *
** ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one symbol character.
*
* ! @ # $ % ^ & * ( ) _ + - = [ ] { } | ' *
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one symbol character.
*/
public Boolean isRequireSymbols() {
return this.requireSymbols;
}
/**
*
* Specifies whether IAM user passwords must contain at least one numeric character (0 to 9). *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one numeric character.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one numeric character.
*/
public void setRequireNumbers(Boolean requireNumbers) {
this.requireNumbers = requireNumbers;
}
/**
*
* Specifies whether IAM user passwords must contain at least one numeric character (0 to 9). *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one numeric character.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one numeric character.
*/
public Boolean getRequireNumbers() {
return this.requireNumbers;
}
/**
*
* Specifies whether IAM user passwords must contain at least one numeric character (0 to 9). *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one numeric character.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one numeric character.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAccountPasswordPolicyRequest withRequireNumbers(Boolean requireNumbers) {
setRequireNumbers(requireNumbers);
return this;
}
/**
*
* Specifies whether IAM user passwords must contain at least one numeric character (0 to 9). *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one numeric character.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one numeric character.
*/
public Boolean isRequireNumbers() {
return this.requireNumbers;
}
/**
*
* Specifies whether IAM user passwords must contain at least one uppercase character from the ISO basic Latin * alphabet (A to Z). *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one uppercase character.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one uppercase character.
*/
public void setRequireUppercaseCharacters(Boolean requireUppercaseCharacters) {
this.requireUppercaseCharacters = requireUppercaseCharacters;
}
/**
*
* Specifies whether IAM user passwords must contain at least one uppercase character from the ISO basic Latin * alphabet (A to Z). *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one uppercase character.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one uppercase character.
*/
public Boolean getRequireUppercaseCharacters() {
return this.requireUppercaseCharacters;
}
/**
*
* Specifies whether IAM user passwords must contain at least one uppercase character from the ISO basic Latin * alphabet (A to Z). *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one uppercase character.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one uppercase character.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAccountPasswordPolicyRequest withRequireUppercaseCharacters(Boolean requireUppercaseCharacters) {
setRequireUppercaseCharacters(requireUppercaseCharacters);
return this;
}
/**
*
* Specifies whether IAM user passwords must contain at least one uppercase character from the ISO basic Latin * alphabet (A to Z). *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one uppercase character.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one uppercase character.
*/
public Boolean isRequireUppercaseCharacters() {
return this.requireUppercaseCharacters;
}
/**
*
* Specifies whether IAM user passwords must contain at least one lowercase character from the ISO basic Latin * alphabet (a to z). *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one lowercase character.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one lowercase character.
*/
public void setRequireLowercaseCharacters(Boolean requireLowercaseCharacters) {
this.requireLowercaseCharacters = requireLowercaseCharacters;
}
/**
*
* Specifies whether IAM user passwords must contain at least one lowercase character from the ISO basic Latin * alphabet (a to z). *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one lowercase character.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one lowercase character.
*/
public Boolean getRequireLowercaseCharacters() {
return this.requireLowercaseCharacters;
}
/**
*
* Specifies whether IAM user passwords must contain at least one lowercase character from the ISO basic Latin * alphabet (a to z). *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one lowercase character.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one lowercase character.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAccountPasswordPolicyRequest withRequireLowercaseCharacters(Boolean requireLowercaseCharacters) {
setRequireLowercaseCharacters(requireLowercaseCharacters);
return this;
}
/**
*
* Specifies whether IAM user passwords must contain at least one lowercase character from the ISO basic Latin * alphabet (a to z). *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that passwords do not require at least one lowercase character.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that passwords do not require at least one lowercase character.
*/
public Boolean isRequireLowercaseCharacters() {
return this.requireLowercaseCharacters;
}
/**
*
* Allows all IAM users in your account to use the Amazon Web Services Management Console to change their own * passwords. For more information, see Permitting IAM users to change their own passwords in the IAM User Guide. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that IAM users in the account do not automatically have permissions to change their own password.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that IAM users in the account do not automatically have permissions to
* change their own password.
*/
public void setAllowUsersToChangePassword(Boolean allowUsersToChangePassword) {
this.allowUsersToChangePassword = allowUsersToChangePassword;
}
/**
*
* Allows all IAM users in your account to use the Amazon Web Services Management Console to change their own * passwords. For more information, see Permitting IAM users to change their own passwords in the IAM User Guide. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that IAM users in the account do not automatically have permissions to change their own password.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that IAM users in the account do not automatically have permissions to
* change their own password.
*/
public Boolean getAllowUsersToChangePassword() {
return this.allowUsersToChangePassword;
}
/**
*
* Allows all IAM users in your account to use the Amazon Web Services Management Console to change their own * passwords. For more information, see Permitting IAM users to change their own passwords in the IAM User Guide. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that IAM users in the account do not automatically have permissions to change their own password.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that IAM users in the account do not automatically have permissions to
* change their own password.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAccountPasswordPolicyRequest withAllowUsersToChangePassword(Boolean allowUsersToChangePassword) {
setAllowUsersToChangePassword(allowUsersToChangePassword);
return this;
}
/**
*
* Allows all IAM users in your account to use the Amazon Web Services Management Console to change their own * passwords. For more information, see Permitting IAM users to change their own passwords in the IAM User Guide. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that IAM users in the account do not automatically have permissions to change their own password.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that IAM users in the account do not automatically have permissions to
* change their own password.
*/
public Boolean isAllowUsersToChangePassword() {
return this.allowUsersToChangePassword;
}
/**
*
* The number of days that an IAM user password is valid. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of 0
.
* The result is that IAM user passwords never expire.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* 0
. The result is that IAM user passwords never expire.
*/
public void setMaxPasswordAge(Integer maxPasswordAge) {
this.maxPasswordAge = maxPasswordAge;
}
/**
*
* The number of days that an IAM user password is valid. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of 0
.
* The result is that IAM user passwords never expire.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* 0
. The result is that IAM user passwords never expire.
*/
public Integer getMaxPasswordAge() {
return this.maxPasswordAge;
}
/**
*
* The number of days that an IAM user password is valid. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of 0
.
* The result is that IAM user passwords never expire.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* 0
. The result is that IAM user passwords never expire.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAccountPasswordPolicyRequest withMaxPasswordAge(Integer maxPasswordAge) {
setMaxPasswordAge(maxPasswordAge);
return this;
}
/**
*
* Specifies the number of previous passwords that IAM users are prevented from reusing. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of 0
.
* The result is that IAM users are not prevented from reusing previous passwords.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* 0
. The result is that IAM users are not prevented from reusing previous passwords.
*/
public void setPasswordReusePrevention(Integer passwordReusePrevention) {
this.passwordReusePrevention = passwordReusePrevention;
}
/**
*
* Specifies the number of previous passwords that IAM users are prevented from reusing. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of 0
.
* The result is that IAM users are not prevented from reusing previous passwords.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* 0
. The result is that IAM users are not prevented from reusing previous passwords.
*/
public Integer getPasswordReusePrevention() {
return this.passwordReusePrevention;
}
/**
*
* Specifies the number of previous passwords that IAM users are prevented from reusing. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of 0
.
* The result is that IAM users are not prevented from reusing previous passwords.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* 0
. The result is that IAM users are not prevented from reusing previous passwords.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateAccountPasswordPolicyRequest withPasswordReusePrevention(Integer passwordReusePrevention) {
setPasswordReusePrevention(passwordReusePrevention);
return this;
}
/**
*
* Prevents IAM users who are accessing the account via the Amazon Web Services Management Console from setting a * new console password after their password has expired. The IAM user cannot access the console until an * administrator resets the password. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that IAM users can change their passwords after they expire and continue to sign in as the user.
*
* In the Amazon Web Services Management Console, the custom password policy option Allow users to change their
* own password gives IAM users permissions to iam:ChangePassword
for only their user and to the
* iam:GetAccountPasswordPolicy
action. This option does not attach a permissions policy to each user,
* rather the permissions are applied at the account-level for all users by IAM. IAM users with
* iam:ChangePassword
permission and active access keys can reset their own expired console password
* using the CLI or API.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that IAM users can change their passwords after they expire and continue
* to sign in as the user.
*
* In the Amazon Web Services Management Console, the custom password policy option Allow users to change
* their own password gives IAM users permissions to iam:ChangePassword
for only their user
* and to the iam:GetAccountPasswordPolicy
action. This option does not attach a permissions
* policy to each user, rather the permissions are applied at the account-level for all users by IAM. IAM
* users with iam:ChangePassword
permission and active access keys can reset their own expired
* console password using the CLI or API.
*
* Prevents IAM users who are accessing the account via the Amazon Web Services Management Console from setting a * new console password after their password has expired. The IAM user cannot access the console until an * administrator resets the password. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that IAM users can change their passwords after they expire and continue to sign in as the user.
*
* In the Amazon Web Services Management Console, the custom password policy option Allow users to change their
* own password gives IAM users permissions to iam:ChangePassword
for only their user and to the
* iam:GetAccountPasswordPolicy
action. This option does not attach a permissions policy to each user,
* rather the permissions are applied at the account-level for all users by IAM. IAM users with
* iam:ChangePassword
permission and active access keys can reset their own expired console password
* using the CLI or API.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that IAM users can change their passwords after they expire and
* continue to sign in as the user.
*
* In the Amazon Web Services Management Console, the custom password policy option Allow users to change
* their own password gives IAM users permissions to iam:ChangePassword
for only their user
* and to the iam:GetAccountPasswordPolicy
action. This option does not attach a permissions
* policy to each user, rather the permissions are applied at the account-level for all users by IAM. IAM
* users with iam:ChangePassword
permission and active access keys can reset their own expired
* console password using the CLI or API.
*
* Prevents IAM users who are accessing the account via the Amazon Web Services Management Console from setting a * new console password after their password has expired. The IAM user cannot access the console until an * administrator resets the password. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that IAM users can change their passwords after they expire and continue to sign in as the user.
*
* In the Amazon Web Services Management Console, the custom password policy option Allow users to change their
* own password gives IAM users permissions to iam:ChangePassword
for only their user and to the
* iam:GetAccountPasswordPolicy
action. This option does not attach a permissions policy to each user,
* rather the permissions are applied at the account-level for all users by IAM. IAM users with
* iam:ChangePassword
permission and active access keys can reset their own expired console password
* using the CLI or API.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that IAM users can change their passwords after they expire and continue
* to sign in as the user.
*
* In the Amazon Web Services Management Console, the custom password policy option Allow users to change
* their own password gives IAM users permissions to iam:ChangePassword
for only their user
* and to the iam:GetAccountPasswordPolicy
action. This option does not attach a permissions
* policy to each user, rather the permissions are applied at the account-level for all users by IAM. IAM
* users with iam:ChangePassword
permission and active access keys can reset their own expired
* console password using the CLI or API.
*
* Prevents IAM users who are accessing the account via the Amazon Web Services Management Console from setting a * new console password after their password has expired. The IAM user cannot access the console until an * administrator resets the password. *
*
* If you do not specify a value for this parameter, then the operation uses the default value of false
* . The result is that IAM users can change their passwords after they expire and continue to sign in as the user.
*
* In the Amazon Web Services Management Console, the custom password policy option Allow users to change their
* own password gives IAM users permissions to iam:ChangePassword
for only their user and to the
* iam:GetAccountPasswordPolicy
action. This option does not attach a permissions policy to each user,
* rather the permissions are applied at the account-level for all users by IAM. IAM users with
* iam:ChangePassword
permission and active access keys can reset their own expired console password
* using the CLI or API.
*
* If you do not specify a value for this parameter, then the operation uses the default value of
* false
. The result is that IAM users can change their passwords after they expire and
* continue to sign in as the user.
*
* In the Amazon Web Services Management Console, the custom password policy option Allow users to change
* their own password gives IAM users permissions to iam:ChangePassword
for only their user
* and to the iam:GetAccountPasswordPolicy
action. This option does not attach a permissions
* policy to each user, rather the permissions are applied at the account-level for all users by IAM. IAM
* users with iam:ChangePassword
permission and active access keys can reset their own expired
* console password using the CLI or API.
*