Class PasswordPolicyType
- java.lang.Object
-
- com.amazonaws.services.cognitoidp.model.PasswordPolicyType
-
- All Implemented Interfaces:
Serializable,Cloneable
public class PasswordPolicyType extends Object implements Serializable, Cloneable
The password policy type.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PasswordPolicyType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PasswordPolicyTypeclone()booleanequals(Object obj)IntegergetMinimumLength()The minimum length of the password policy that you have set.BooleangetRequireLowercase()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.BooleangetRequireNumbers()In the password policy that you have set, refers to whether you have required users to use at least one number in their password.BooleangetRequireSymbols()In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.BooleangetRequireUppercase()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.inthashCode()BooleanisRequireLowercase()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.BooleanisRequireNumbers()In the password policy that you have set, refers to whether you have required users to use at least one number in their password.BooleanisRequireSymbols()In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.BooleanisRequireUppercase()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.voidsetMinimumLength(Integer minimumLength)The minimum length of the password policy that you have set.voidsetRequireLowercase(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.voidsetRequireNumbers(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.voidsetRequireSymbols(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.voidsetRequireUppercase(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.StringtoString()Returns a string representation of this object; useful for testing and debugging.PasswordPolicyTypewithMinimumLength(Integer minimumLength)The minimum length of the password policy that you have set.PasswordPolicyTypewithRequireLowercase(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.PasswordPolicyTypewithRequireNumbers(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.PasswordPolicyTypewithRequireSymbols(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.PasswordPolicyTypewithRequireUppercase(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.
-
-
-
Method Detail
-
setMinimumLength
public void setMinimumLength(Integer minimumLength)
The minimum length of the password policy that you have set. Cannot be less than 6.
- Parameters:
minimumLength- The minimum length of the password policy that you have set. Cannot be less than 6.
-
getMinimumLength
public Integer getMinimumLength()
The minimum length of the password policy that you have set. Cannot be less than 6.
- Returns:
- The minimum length of the password policy that you have set. Cannot be less than 6.
-
withMinimumLength
public PasswordPolicyType withMinimumLength(Integer minimumLength)
The minimum length of the password policy that you have set. Cannot be less than 6.
- Parameters:
minimumLength- The minimum length of the password policy that you have set. Cannot be less than 6.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRequireUppercase
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.
- Parameters:
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.
-
getRequireUppercase
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.
- Returns:
- 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.
-
withRequireUppercase
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isRequireUppercase
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.
- Returns:
- 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.
-
setRequireLowercase
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.
- Parameters:
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.
-
getRequireLowercase
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.
- Returns:
- 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.
-
withRequireLowercase
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isRequireLowercase
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.
- Returns:
- 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.
-
setRequireNumbers
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.
- Parameters:
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.
-
getRequireNumbers
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.
- Returns:
- In the password policy that you have set, refers to whether you have required users to use at least one number in their password.
-
withRequireNumbers
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isRequireNumbers
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.
- Returns:
- In the password policy that you have set, refers to whether you have required users to use at least one number in their password.
-
setRequireSymbols
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.
- Parameters:
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.
-
getRequireSymbols
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.
- Returns:
- In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.
-
withRequireSymbols
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isRequireSymbols
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.
- Returns:
- In the password policy that you have set, refers to whether you have required users to use at least one symbol in their password.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PasswordPolicyType clone()
-
-