@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PasswordPolicyType extends Object implements Serializable, Cloneable, StructuredPojo
The password policy type.
Constructor and Description |
---|
PasswordPolicyType() |
Modifier and Type | Method and Description |
---|---|
PasswordPolicyType |
clone() |
boolean |
equals(Object obj) |
Integer |
getMinimumLength()
The minimum length of the password in the policy that you have set.
|
Boolean |
getRequireLowercase()
In the password policy that you have set, refers to whether you have required users to use at least one lowercase
letter in their password.
|
Boolean |
getRequireNumbers()
In the password policy that you have set, refers to whether you have required users to use at least one number in
their password.
|
Boolean |
getRequireSymbols()
In the password policy that you have set, refers to whether you have required users to use at least one symbol in
their password.
|
Boolean |
getRequireUppercase()
In the password policy that you have set, refers to whether you have required users to use at least one uppercase
letter in their password.
|
Integer |
getTemporaryPasswordValidityDays()
The number of days a temporary password is valid in the password policy.
|
int |
hashCode() |
Boolean |
isRequireLowercase()
In the password policy that you have set, refers to whether you have required users to use at least one lowercase
letter in their password.
|
Boolean |
isRequireNumbers()
In the password policy that you have set, refers to whether you have required users to use at least one number in
their password.
|
Boolean |
isRequireSymbols()
In the password policy that you have set, refers to whether you have required users to use at least one symbol in
their password.
|
Boolean |
isRequireUppercase()
In the password policy that you have set, refers to whether you have required users to use at least one uppercase
letter in their password.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMinimumLength(Integer minimumLength)
The minimum length of the password in the policy that you have set.
|
void |
setRequireLowercase(Boolean requireLowercase)
In the password policy that you have set, refers to whether you have required users to use at least one lowercase
letter in their password.
|
void |
setRequireNumbers(Boolean requireNumbers)
In the password policy that you have set, refers to whether you have required users to use at least one number in
their password.
|
void |
setRequireSymbols(Boolean requireSymbols)
In the password policy that you have set, refers to whether you have required users to use at least one symbol in
their password.
|
void |
setRequireUppercase(Boolean requireUppercase)
In the password policy that you have set, refers to whether you have required users to use at least one uppercase
letter in their password.
|
void |
setTemporaryPasswordValidityDays(Integer temporaryPasswordValidityDays)
The number of days a temporary password is valid in the password policy.
|
String |
toString()
Returns a string representation of this object.
|
PasswordPolicyType |
withMinimumLength(Integer minimumLength)
The minimum length of the password in the policy that you have set.
|
PasswordPolicyType |
withRequireLowercase(Boolean requireLowercase)
In the password policy that you have set, refers to whether you have required users to use at least one lowercase
letter in their password.
|
PasswordPolicyType |
withRequireNumbers(Boolean requireNumbers)
In the password policy that you have set, refers to whether you have required users to use at least one number in
their password.
|
PasswordPolicyType |
withRequireSymbols(Boolean requireSymbols)
In the password policy that you have set, refers to whether you have required users to use at least one symbol in
their password.
|
PasswordPolicyType |
withRequireUppercase(Boolean requireUppercase)
In the password policy that you have set, refers to whether you have required users to use at least one uppercase
letter in their password.
|
PasswordPolicyType |
withTemporaryPasswordValidityDays(Integer temporaryPasswordValidityDays)
The number of days a temporary password is valid in the password policy.
|
public void setMinimumLength(Integer minimumLength)
The minimum length of the password in the policy that you have set. This value can't be less than 6.
minimumLength
- The minimum length of the password in the policy that you have set. This value can't be less than 6.public Integer getMinimumLength()
The minimum length of the password in the policy that you have set. This value can't be less than 6.
public PasswordPolicyType withMinimumLength(Integer minimumLength)
The minimum length of the password in the policy that you have set. This value can't be less than 6.
minimumLength
- The minimum length of the password in the policy that you have set. This value can't be less than 6.public void setRequireUppercase(Boolean requireUppercase)
In the password policy that you have set, refers to whether you have required users to use at least one uppercase letter in their password.
requireUppercase
- In the password policy that you have set, refers to whether you have required users to use at least one
uppercase letter in their password.public Boolean getRequireUppercase()
In the password policy that you have set, refers to whether you have required users to use at least one uppercase letter in their password.
public PasswordPolicyType withRequireUppercase(Boolean requireUppercase)
In the password policy that you have set, refers to whether you have required users to use at least one uppercase letter in their password.
requireUppercase
- In the password policy that you have set, refers to whether you have required users to use at least one
uppercase letter in their password.public Boolean isRequireUppercase()
In the password policy that you have set, refers to whether you have required users to use at least one uppercase letter in their password.
public void setRequireLowercase(Boolean requireLowercase)
In the password policy that you have set, refers to whether you have required users to use at least one lowercase letter in their password.
requireLowercase
- In the password policy that you have set, refers to whether you have required users to use at least one
lowercase letter in their password.public Boolean getRequireLowercase()
In the password policy that you have set, refers to whether you have required users to use at least one lowercase letter in their password.
public PasswordPolicyType withRequireLowercase(Boolean requireLowercase)
In the password policy that you have set, refers to whether you have required users to use at least one lowercase letter in their password.
requireLowercase
- In the password policy that you have set, refers to whether you have required users to use at least one
lowercase letter in their password.public Boolean isRequireLowercase()
In the password policy that you have set, refers to whether you have required users to use at least one lowercase letter in their password.
public void setRequireNumbers(Boolean requireNumbers)
In the password policy that you have set, refers to whether you have required users to use at least one number in their password.
requireNumbers
- In the password policy that you have set, refers to whether you have required users to use at least one
number in their password.public Boolean getRequireNumbers()
In the password policy that you have set, refers to whether you have required users to use at least one number in their password.
public PasswordPolicyType withRequireNumbers(Boolean requireNumbers)
In the password policy that you have set, refers to whether you have required users to use at least one number in their password.
requireNumbers
- In the password policy that you have set, refers to whether you have required users to use at least one
number in their password.public Boolean isRequireNumbers()
In the password policy that you have set, refers to whether you have required users to use at least one number in their password.
public void setRequireSymbols(Boolean requireSymbols)
In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.
requireSymbols
- In the password policy that you have set, refers to whether you have required users to use at least one
symbol in their password.public Boolean getRequireSymbols()
In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.
public PasswordPolicyType withRequireSymbols(Boolean requireSymbols)
In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.
requireSymbols
- In the password policy that you have set, refers to whether you have required users to use at least one
symbol in their password.public Boolean isRequireSymbols()
In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.
public void setTemporaryPasswordValidityDays(Integer temporaryPasswordValidityDays)
The number of days a temporary password is valid in the password policy. If the user doesn't sign in during this
time, an administrator must reset their password. Defaults to 7
. If you submit a value of
0
, Amazon Cognito treats it as a null value and sets TemporaryPasswordValidityDays
to
its default value.
When you set TemporaryPasswordValidityDays
for a user pool, you can no longer set a value for the
legacy UnusedAccountValidityDays
parameter in that user pool.
temporaryPasswordValidityDays
- The number of days a temporary password is valid in the password policy. If the user doesn't sign in
during this time, an administrator must reset their password. Defaults to 7
. If you submit a
value of 0
, Amazon Cognito treats it as a null value and sets
TemporaryPasswordValidityDays
to its default value.
When you set TemporaryPasswordValidityDays
for a user pool, you can no longer set a value for
the legacy UnusedAccountValidityDays
parameter in that user pool.
public Integer getTemporaryPasswordValidityDays()
The number of days a temporary password is valid in the password policy. If the user doesn't sign in during this
time, an administrator must reset their password. Defaults to 7
. If you submit a value of
0
, Amazon Cognito treats it as a null value and sets TemporaryPasswordValidityDays
to
its default value.
When you set TemporaryPasswordValidityDays
for a user pool, you can no longer set a value for the
legacy UnusedAccountValidityDays
parameter in that user pool.
7
. If you submit a
value of 0
, Amazon Cognito treats it as a null value and sets
TemporaryPasswordValidityDays
to its default value.
When you set TemporaryPasswordValidityDays
for a user pool, you can no longer set a value
for the legacy UnusedAccountValidityDays
parameter in that user pool.
public PasswordPolicyType withTemporaryPasswordValidityDays(Integer temporaryPasswordValidityDays)
The number of days a temporary password is valid in the password policy. If the user doesn't sign in during this
time, an administrator must reset their password. Defaults to 7
. If you submit a value of
0
, Amazon Cognito treats it as a null value and sets TemporaryPasswordValidityDays
to
its default value.
When you set TemporaryPasswordValidityDays
for a user pool, you can no longer set a value for the
legacy UnusedAccountValidityDays
parameter in that user pool.
temporaryPasswordValidityDays
- The number of days a temporary password is valid in the password policy. If the user doesn't sign in
during this time, an administrator must reset their password. Defaults to 7
. If you submit a
value of 0
, Amazon Cognito treats it as a null value and sets
TemporaryPasswordValidityDays
to its default value.
When you set TemporaryPasswordValidityDays
for a user pool, you can no longer set a value for
the legacy UnusedAccountValidityDays
parameter in that user pool.
public String toString()
toString
in class Object
Object.toString()
public PasswordPolicyType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.