public class UpdateAccountPasswordPolicyRequest extends AmazonWebServiceRequest implements Serializable
UpdateAccountPasswordPolicy operation
.
Updates the password policy settings for the AWS account.
NOTE: This API does not support partial updates. No parameters are required, but if you do not specify a parameter, that parameter's value reverts to its default value. See the Request Parameters section for each parameter's default value.
For more information about using a password policy, see Managing an IAM Password Policy in the Using IAM guide.
NOOP
Constructor and Description |
---|
UpdateAccountPasswordPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Boolean |
getAllowUsersToChangePassword()
Allows all IAM users in your account to use the AWS Management Console
to change their own passwords.
|
Boolean |
getHardExpiry()
Prevents IAM users from setting a new password after their password
has expired.
|
Integer |
getMaxPasswordAge()
The number of days that an IAM user password is valid.
|
Integer |
getMinimumPasswordLength()
The minimum number of characters allowed in an IAM user password.
|
Integer |
getPasswordReusePrevention()
Specifies the number of previous passwords that IAM users are
prevented from reusing.
|
Boolean |
getRequireLowercaseCharacters()
Specifies whether IAM user passwords must contain at least one
lowercase character from the ISO basic Latin alphabet (a to z).
|
Boolean |
getRequireNumbers()
Specifies whether IAM user passwords must contain at least one numeric
character (0 to 9).
|
Boolean |
getRequireSymbols()
Specifies whether IAM user passwords must contain at least one of the
following non-alphanumeric characters: ! @ # $ % ^ & * ( ) _ + - = [ ]
{ } | ' Default value: false
|
Boolean |
getRequireUppercaseCharacters()
Specifies whether IAM user passwords must contain at least one
uppercase character from the ISO basic Latin alphabet (A to Z).
|
int |
hashCode() |
Boolean |
isAllowUsersToChangePassword()
Allows all IAM users in your account to use the AWS Management Console
to change their own passwords.
|
Boolean |
isHardExpiry()
Prevents IAM users from setting a new password after their password
has expired.
|
Boolean |
isRequireLowercaseCharacters()
Specifies whether IAM user passwords must contain at least one
lowercase character from the ISO basic Latin alphabet (a to z).
|
Boolean |
isRequireNumbers()
Specifies whether IAM user passwords must contain at least one numeric
character (0 to 9).
|
Boolean |
isRequireSymbols()
Specifies whether IAM user passwords must contain at least one of the
following non-alphanumeric characters: ! @ # $ % ^ & * ( ) _ + - = [ ]
{ } | ' Default value: false
|
Boolean |
isRequireUppercaseCharacters()
Specifies whether IAM user passwords must contain at least one
uppercase character from the ISO basic Latin alphabet (A to Z).
|
void |
setAllowUsersToChangePassword(Boolean allowUsersToChangePassword)
Allows all IAM users in your account to use the AWS Management Console
to change their own passwords.
|
void |
setHardExpiry(Boolean hardExpiry)
Prevents IAM users from setting a new password after their password
has expired.
|
void |
setMaxPasswordAge(Integer maxPasswordAge)
The number of days that an IAM user password is valid.
|
void |
setMinimumPasswordLength(Integer minimumPasswordLength)
The minimum number of characters allowed in an IAM user password.
|
void |
setPasswordReusePrevention(Integer passwordReusePrevention)
Specifies the number of previous passwords that IAM users are
prevented from reusing.
|
void |
setRequireLowercaseCharacters(Boolean requireLowercaseCharacters)
Specifies whether IAM user passwords must contain at least one
lowercase character from the ISO basic Latin alphabet (a to z).
|
void |
setRequireNumbers(Boolean requireNumbers)
Specifies whether IAM user passwords must contain at least one numeric
character (0 to 9).
|
void |
setRequireSymbols(Boolean requireSymbols)
Specifies whether IAM user passwords must contain at least one of the
following non-alphanumeric characters: ! @ # $ % ^ & * ( ) _ + - = [ ]
{ } | ' Default value: false
|
void |
setRequireUppercaseCharacters(Boolean requireUppercaseCharacters)
Specifies whether IAM user passwords must contain at least one
uppercase character from the ISO basic Latin alphabet (A to Z).
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateAccountPasswordPolicyRequest |
withAllowUsersToChangePassword(Boolean allowUsersToChangePassword)
Allows all IAM users in your account to use the AWS Management Console
to change their own passwords.
|
UpdateAccountPasswordPolicyRequest |
withHardExpiry(Boolean hardExpiry)
Prevents IAM users from setting a new password after their password
has expired.
|
UpdateAccountPasswordPolicyRequest |
withMaxPasswordAge(Integer maxPasswordAge)
The number of days that an IAM user password is valid.
|
UpdateAccountPasswordPolicyRequest |
withMinimumPasswordLength(Integer minimumPasswordLength)
The minimum number of characters allowed in an IAM user password.
|
UpdateAccountPasswordPolicyRequest |
withPasswordReusePrevention(Integer passwordReusePrevention)
Specifies the number of previous passwords that IAM users are
prevented from reusing.
|
UpdateAccountPasswordPolicyRequest |
withRequireLowercaseCharacters(Boolean requireLowercaseCharacters)
Specifies whether IAM user passwords must contain at least one
lowercase character from the ISO basic Latin alphabet (a to z).
|
UpdateAccountPasswordPolicyRequest |
withRequireNumbers(Boolean requireNumbers)
Specifies whether IAM user passwords must contain at least one numeric
character (0 to 9).
|
UpdateAccountPasswordPolicyRequest |
withRequireSymbols(Boolean requireSymbols)
Specifies whether IAM user passwords must contain at least one of the
following non-alphanumeric characters: ! @ # $ % ^ & * ( ) _ + - = [ ]
{ } | ' Default value: false
|
UpdateAccountPasswordPolicyRequest |
withRequireUppercaseCharacters(Boolean requireUppercaseCharacters)
Specifies whether IAM user passwords must contain at least one
uppercase character from the ISO basic Latin alphabet (A to Z).
|
copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public Integer getMinimumPasswordLength()
Default value: 6
Constraints:
Range: 6 - 128
Default value: 6
public void setMinimumPasswordLength(Integer minimumPasswordLength)
Default value: 6
Constraints:
Range: 6 - 128
minimumPasswordLength
- The minimum number of characters allowed in an IAM user password.
Default value: 6
public UpdateAccountPasswordPolicyRequest withMinimumPasswordLength(Integer minimumPasswordLength)
Default value: 6
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 6 - 128
minimumPasswordLength
- The minimum number of characters allowed in an IAM user password.
Default value: 6
public Boolean isRequireSymbols()
public void setRequireSymbols(Boolean requireSymbols)
requireSymbols
- Specifies whether IAM user passwords must contain at least one of the
following non-alphanumeric characters: ! @ # $ % ^ & * ( ) _ + - = [ ]
{ } | ' Default value: falsepublic UpdateAccountPasswordPolicyRequest withRequireSymbols(Boolean requireSymbols)
Returns a reference to this object so that method calls can be chained together.
requireSymbols
- Specifies whether IAM user passwords must contain at least one of the
following non-alphanumeric characters: ! @ # $ % ^ & * ( ) _ + - = [ ]
{ } | ' Default value: falsepublic Boolean getRequireSymbols()
public Boolean isRequireNumbers()
Default value: false
Default value: false
public void setRequireNumbers(Boolean requireNumbers)
Default value: false
requireNumbers
- Specifies whether IAM user passwords must contain at least one numeric
character (0 to 9). Default value: false
public UpdateAccountPasswordPolicyRequest withRequireNumbers(Boolean requireNumbers)
Default value: false
Returns a reference to this object so that method calls can be chained together.
requireNumbers
- Specifies whether IAM user passwords must contain at least one numeric
character (0 to 9). Default value: false
public Boolean getRequireNumbers()
Default value: false
Default value: false
public Boolean isRequireUppercaseCharacters()
Default value: false
Default value: false
public void setRequireUppercaseCharacters(Boolean requireUppercaseCharacters)
Default value: false
requireUppercaseCharacters
- Specifies whether IAM user passwords must contain at least one
uppercase character from the ISO basic Latin alphabet (A to Z).
Default value: false
public UpdateAccountPasswordPolicyRequest withRequireUppercaseCharacters(Boolean requireUppercaseCharacters)
Default value: false
Returns a reference to this object so that method calls can be chained together.
requireUppercaseCharacters
- Specifies whether IAM user passwords must contain at least one
uppercase character from the ISO basic Latin alphabet (A to Z).
Default value: false
public Boolean getRequireUppercaseCharacters()
Default value: false
Default value: false
public Boolean isRequireLowercaseCharacters()
Default value: false
Default value: false
public void setRequireLowercaseCharacters(Boolean requireLowercaseCharacters)
Default value: false
requireLowercaseCharacters
- Specifies whether IAM user passwords must contain at least one
lowercase character from the ISO basic Latin alphabet (a to z).
Default value: false
public UpdateAccountPasswordPolicyRequest withRequireLowercaseCharacters(Boolean requireLowercaseCharacters)
Default value: false
Returns a reference to this object so that method calls can be chained together.
requireLowercaseCharacters
- Specifies whether IAM user passwords must contain at least one
lowercase character from the ISO basic Latin alphabet (a to z).
Default value: false
public Boolean getRequireLowercaseCharacters()
Default value: false
Default value: false
public Boolean isAllowUsersToChangePassword()
Default value: false
Default value: false
public void setAllowUsersToChangePassword(Boolean allowUsersToChangePassword)
Default value: false
allowUsersToChangePassword
- Allows all IAM users in your account to use the AWS Management Console
to change their own passwords. For more information, see Letting
IAM Users Change Their Own Passwords in the Using IAM
guide. Default value: false
public UpdateAccountPasswordPolicyRequest withAllowUsersToChangePassword(Boolean allowUsersToChangePassword)
Default value: false
Returns a reference to this object so that method calls can be chained together.
allowUsersToChangePassword
- Allows all IAM users in your account to use the AWS Management Console
to change their own passwords. For more information, see Letting
IAM Users Change Their Own Passwords in the Using IAM
guide. Default value: false
public Boolean getAllowUsersToChangePassword()
Default value: false
Default value: false
public Integer getMaxPasswordAge()
Default value: 0
Constraints:
Range: 1 - 1095
Default value: 0
public void setMaxPasswordAge(Integer maxPasswordAge)
Default value: 0
Constraints:
Range: 1 - 1095
maxPasswordAge
- The number of days that an IAM user password is valid. The default
value of 0 means IAM user passwords never expire. Default value: 0
public UpdateAccountPasswordPolicyRequest withMaxPasswordAge(Integer maxPasswordAge)
Default value: 0
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 1095
maxPasswordAge
- The number of days that an IAM user password is valid. The default
value of 0 means IAM user passwords never expire. Default value: 0
public Integer getPasswordReusePrevention()
Default value: 0
Constraints:
Range: 1 - 24
Default value: 0
public void setPasswordReusePrevention(Integer passwordReusePrevention)
Default value: 0
Constraints:
Range: 1 - 24
passwordReusePrevention
- Specifies the number of previous passwords that IAM users are
prevented from reusing. The default value of 0 means IAM users are not
prevented from reusing previous passwords. Default value: 0
public UpdateAccountPasswordPolicyRequest withPasswordReusePrevention(Integer passwordReusePrevention)
Default value: 0
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 24
passwordReusePrevention
- Specifies the number of previous passwords that IAM users are
prevented from reusing. The default value of 0 means IAM users are not
prevented from reusing previous passwords. Default value: 0
public Boolean isHardExpiry()
Default value: false
Default value: false
public void setHardExpiry(Boolean hardExpiry)
Default value: false
hardExpiry
- Prevents IAM users from setting a new password after their password
has expired. Default value: false
public UpdateAccountPasswordPolicyRequest withHardExpiry(Boolean hardExpiry)
Default value: false
Returns a reference to this object so that method calls can be chained together.
hardExpiry
- Prevents IAM users from setting a new password after their password
has expired. Default value: false
public Boolean getHardExpiry()
Default value: false
Default value: false
public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.