@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PasswordPolicy extends Object implements Serializable, Cloneable
Contains information about the account password policy.
This data type is used as a response element in the GetAccountPasswordPolicy action.
Constructor and Description |
---|
PasswordPolicy() |
Modifier and Type | Method and Description |
---|---|
PasswordPolicy |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAllowUsersToChangePassword()
Specifies whether IAM users are allowed to change their own password.
|
Boolean |
getExpirePasswords()
Indicates whether passwords in the account expire.
|
Boolean |
getHardExpiry()
Specifies whether IAM users are prevented 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()
Minimum length to require for IAM user passwords.
|
Integer |
getPasswordReusePrevention()
Specifies the number of previous passwords that IAM users are prevented from reusing.
|
Boolean |
getRequireLowercaseCharacters()
Specifies whether to require lowercase characters for IAM user passwords.
|
Boolean |
getRequireNumbers()
Specifies whether to require numbers for IAM user passwords.
|
Boolean |
getRequireSymbols()
Specifies whether to require symbols for IAM user passwords.
|
Boolean |
getRequireUppercaseCharacters()
Specifies whether to require uppercase characters for IAM user passwords.
|
int |
hashCode() |
Boolean |
isAllowUsersToChangePassword()
Specifies whether IAM users are allowed to change their own password.
|
Boolean |
isExpirePasswords()
Indicates whether passwords in the account expire.
|
Boolean |
isHardExpiry()
Specifies whether IAM users are prevented from setting a new password after their password has expired.
|
Boolean |
isRequireLowercaseCharacters()
Specifies whether to require lowercase characters for IAM user passwords.
|
Boolean |
isRequireNumbers()
Specifies whether to require numbers for IAM user passwords.
|
Boolean |
isRequireSymbols()
Specifies whether to require symbols for IAM user passwords.
|
Boolean |
isRequireUppercaseCharacters()
Specifies whether to require uppercase characters for IAM user passwords.
|
void |
setAllowUsersToChangePassword(Boolean allowUsersToChangePassword)
Specifies whether IAM users are allowed to change their own password.
|
void |
setExpirePasswords(Boolean expirePasswords)
Indicates whether passwords in the account expire.
|
void |
setHardExpiry(Boolean hardExpiry)
Specifies whether IAM users are prevented 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)
Minimum length to require for IAM user passwords.
|
void |
setPasswordReusePrevention(Integer passwordReusePrevention)
Specifies the number of previous passwords that IAM users are prevented from reusing.
|
void |
setRequireLowercaseCharacters(Boolean requireLowercaseCharacters)
Specifies whether to require lowercase characters for IAM user passwords.
|
void |
setRequireNumbers(Boolean requireNumbers)
Specifies whether to require numbers for IAM user passwords.
|
void |
setRequireSymbols(Boolean requireSymbols)
Specifies whether to require symbols for IAM user passwords.
|
void |
setRequireUppercaseCharacters(Boolean requireUppercaseCharacters)
Specifies whether to require uppercase characters for IAM user passwords.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PasswordPolicy |
withAllowUsersToChangePassword(Boolean allowUsersToChangePassword)
Specifies whether IAM users are allowed to change their own password.
|
PasswordPolicy |
withExpirePasswords(Boolean expirePasswords)
Indicates whether passwords in the account expire.
|
PasswordPolicy |
withHardExpiry(Boolean hardExpiry)
Specifies whether IAM users are prevented from setting a new password after their password has expired.
|
PasswordPolicy |
withMaxPasswordAge(Integer maxPasswordAge)
The number of days that an IAM user password is valid.
|
PasswordPolicy |
withMinimumPasswordLength(Integer minimumPasswordLength)
Minimum length to require for IAM user passwords.
|
PasswordPolicy |
withPasswordReusePrevention(Integer passwordReusePrevention)
Specifies the number of previous passwords that IAM users are prevented from reusing.
|
PasswordPolicy |
withRequireLowercaseCharacters(Boolean requireLowercaseCharacters)
Specifies whether to require lowercase characters for IAM user passwords.
|
PasswordPolicy |
withRequireNumbers(Boolean requireNumbers)
Specifies whether to require numbers for IAM user passwords.
|
PasswordPolicy |
withRequireSymbols(Boolean requireSymbols)
Specifies whether to require symbols for IAM user passwords.
|
PasswordPolicy |
withRequireUppercaseCharacters(Boolean requireUppercaseCharacters)
Specifies whether to require uppercase characters for IAM user passwords.
|
public void setMinimumPasswordLength(Integer minimumPasswordLength)
Minimum length to require for IAM user passwords.
minimumPasswordLength
- Minimum length to require for IAM user passwords.public Integer getMinimumPasswordLength()
Minimum length to require for IAM user passwords.
public PasswordPolicy withMinimumPasswordLength(Integer minimumPasswordLength)
Minimum length to require for IAM user passwords.
minimumPasswordLength
- Minimum length to require for IAM user passwords.public void setRequireSymbols(Boolean requireSymbols)
Specifies whether to require symbols for IAM user passwords.
requireSymbols
- Specifies whether to require symbols for IAM user passwords.public Boolean getRequireSymbols()
Specifies whether to require symbols for IAM user passwords.
public PasswordPolicy withRequireSymbols(Boolean requireSymbols)
Specifies whether to require symbols for IAM user passwords.
requireSymbols
- Specifies whether to require symbols for IAM user passwords.public Boolean isRequireSymbols()
Specifies whether to require symbols for IAM user passwords.
public void setRequireNumbers(Boolean requireNumbers)
Specifies whether to require numbers for IAM user passwords.
requireNumbers
- Specifies whether to require numbers for IAM user passwords.public Boolean getRequireNumbers()
Specifies whether to require numbers for IAM user passwords.
public PasswordPolicy withRequireNumbers(Boolean requireNumbers)
Specifies whether to require numbers for IAM user passwords.
requireNumbers
- Specifies whether to require numbers for IAM user passwords.public Boolean isRequireNumbers()
Specifies whether to require numbers for IAM user passwords.
public void setRequireUppercaseCharacters(Boolean requireUppercaseCharacters)
Specifies whether to require uppercase characters for IAM user passwords.
requireUppercaseCharacters
- Specifies whether to require uppercase characters for IAM user passwords.public Boolean getRequireUppercaseCharacters()
Specifies whether to require uppercase characters for IAM user passwords.
public PasswordPolicy withRequireUppercaseCharacters(Boolean requireUppercaseCharacters)
Specifies whether to require uppercase characters for IAM user passwords.
requireUppercaseCharacters
- Specifies whether to require uppercase characters for IAM user passwords.public Boolean isRequireUppercaseCharacters()
Specifies whether to require uppercase characters for IAM user passwords.
public void setRequireLowercaseCharacters(Boolean requireLowercaseCharacters)
Specifies whether to require lowercase characters for IAM user passwords.
requireLowercaseCharacters
- Specifies whether to require lowercase characters for IAM user passwords.public Boolean getRequireLowercaseCharacters()
Specifies whether to require lowercase characters for IAM user passwords.
public PasswordPolicy withRequireLowercaseCharacters(Boolean requireLowercaseCharacters)
Specifies whether to require lowercase characters for IAM user passwords.
requireLowercaseCharacters
- Specifies whether to require lowercase characters for IAM user passwords.public Boolean isRequireLowercaseCharacters()
Specifies whether to require lowercase characters for IAM user passwords.
public void setAllowUsersToChangePassword(Boolean allowUsersToChangePassword)
Specifies whether IAM users are allowed to change their own password.
allowUsersToChangePassword
- Specifies whether IAM users are allowed to change their own password.public Boolean getAllowUsersToChangePassword()
Specifies whether IAM users are allowed to change their own password.
public PasswordPolicy withAllowUsersToChangePassword(Boolean allowUsersToChangePassword)
Specifies whether IAM users are allowed to change their own password.
allowUsersToChangePassword
- Specifies whether IAM users are allowed to change their own password.public Boolean isAllowUsersToChangePassword()
Specifies whether IAM users are allowed to change their own password.
public void setExpirePasswords(Boolean expirePasswords)
Indicates whether passwords in the account expire. Returns true if MaxPasswordAge is contains a value greater than 0. Returns false if MaxPasswordAge is 0 or not present.
expirePasswords
- Indicates whether passwords in the account expire. Returns true if MaxPasswordAge is contains a value
greater than 0. Returns false if MaxPasswordAge is 0 or not present.public Boolean getExpirePasswords()
Indicates whether passwords in the account expire. Returns true if MaxPasswordAge is contains a value greater than 0. Returns false if MaxPasswordAge is 0 or not present.
public PasswordPolicy withExpirePasswords(Boolean expirePasswords)
Indicates whether passwords in the account expire. Returns true if MaxPasswordAge is contains a value greater than 0. Returns false if MaxPasswordAge is 0 or not present.
expirePasswords
- Indicates whether passwords in the account expire. Returns true if MaxPasswordAge is contains a value
greater than 0. Returns false if MaxPasswordAge is 0 or not present.public Boolean isExpirePasswords()
Indicates whether passwords in the account expire. Returns true if MaxPasswordAge is contains a value greater than 0. Returns false if MaxPasswordAge is 0 or not present.
public void setMaxPasswordAge(Integer maxPasswordAge)
The number of days that an IAM user password is valid.
maxPasswordAge
- The number of days that an IAM user password is valid.public Integer getMaxPasswordAge()
The number of days that an IAM user password is valid.
public PasswordPolicy withMaxPasswordAge(Integer maxPasswordAge)
The number of days that an IAM user password is valid.
maxPasswordAge
- The number of days that an IAM user password is valid.public void setPasswordReusePrevention(Integer passwordReusePrevention)
Specifies the number of previous passwords that IAM users are prevented from reusing.
passwordReusePrevention
- Specifies the number of previous passwords that IAM users are prevented from reusing.public Integer getPasswordReusePrevention()
Specifies the number of previous passwords that IAM users are prevented from reusing.
public PasswordPolicy withPasswordReusePrevention(Integer passwordReusePrevention)
Specifies the number of previous passwords that IAM users are prevented from reusing.
passwordReusePrevention
- Specifies the number of previous passwords that IAM users are prevented from reusing.public void setHardExpiry(Boolean hardExpiry)
Specifies whether IAM users are prevented from setting a new password after their password has expired.
hardExpiry
- Specifies whether IAM users are prevented from setting a new password after their password has expired.public Boolean getHardExpiry()
Specifies whether IAM users are prevented from setting a new password after their password has expired.
public PasswordPolicy withHardExpiry(Boolean hardExpiry)
Specifies whether IAM users are prevented from setting a new password after their password has expired.
hardExpiry
- Specifies whether IAM users are prevented from setting a new password after their password has expired.public Boolean isHardExpiry()
Specifies whether IAM users are prevented from setting a new password after their password has expired.
public String toString()
toString
in class Object
Object.toString()
public PasswordPolicy clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.