Class SchemaAttributeType
- java.lang.Object
-
- com.amazonaws.services.cognitoidp.model.SchemaAttributeType
-
- All Implemented Interfaces:
Serializable,Cloneable
public class SchemaAttributeType extends Object implements Serializable, Cloneable
Contains information about the schema attribute.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SchemaAttributeType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaAttributeTypeclone()booleanequals(Object obj)StringgetAttributeDataType()The attribute data type.BooleangetDeveloperOnlyAttribute()Specifies whether the attribute type is developer only.BooleangetMutable()Specifies whether the attribute can be changed once it has been created.StringgetName()A schema attribute of the name type.NumberAttributeConstraintsTypegetNumberAttributeConstraints()Specifies the constraints for an attribute of the number type.BooleangetRequired()Specifies whether a user pool attribute is required.StringAttributeConstraintsTypegetStringAttributeConstraints()Specifies the constraints for an attribute of the string type.inthashCode()BooleanisDeveloperOnlyAttribute()Specifies whether the attribute type is developer only.BooleanisMutable()Specifies whether the attribute can be changed once it has been created.BooleanisRequired()Specifies whether a user pool attribute is required.voidsetAttributeDataType(AttributeDataType attributeDataType)The attribute data type.voidsetAttributeDataType(String attributeDataType)The attribute data type.voidsetDeveloperOnlyAttribute(Boolean developerOnlyAttribute)Specifies whether the attribute type is developer only.voidsetMutable(Boolean mutable)Specifies whether the attribute can be changed once it has been created.voidsetName(String name)A schema attribute of the name type.voidsetNumberAttributeConstraints(NumberAttributeConstraintsType numberAttributeConstraints)Specifies the constraints for an attribute of the number type.voidsetRequired(Boolean required)Specifies whether a user pool attribute is required.voidsetStringAttributeConstraints(StringAttributeConstraintsType stringAttributeConstraints)Specifies the constraints for an attribute of the string type.StringtoString()Returns a string representation of this object; useful for testing and debugging.SchemaAttributeTypewithAttributeDataType(AttributeDataType attributeDataType)The attribute data type.SchemaAttributeTypewithAttributeDataType(String attributeDataType)The attribute data type.SchemaAttributeTypewithDeveloperOnlyAttribute(Boolean developerOnlyAttribute)Specifies whether the attribute type is developer only.SchemaAttributeTypewithMutable(Boolean mutable)Specifies whether the attribute can be changed once it has been created.SchemaAttributeTypewithName(String name)A schema attribute of the name type.SchemaAttributeTypewithNumberAttributeConstraints(NumberAttributeConstraintsType numberAttributeConstraints)Specifies the constraints for an attribute of the number type.SchemaAttributeTypewithRequired(Boolean required)Specifies whether a user pool attribute is required.SchemaAttributeTypewithStringAttributeConstraints(StringAttributeConstraintsType stringAttributeConstraints)Specifies the constraints for an attribute of the string type.
-
-
-
Method Detail
-
setName
public void setName(String name)
A schema attribute of the name type.
- Parameters:
name- A schema attribute of the name type.
-
getName
public String getName()
A schema attribute of the name type.
- Returns:
- A schema attribute of the name type.
-
withName
public SchemaAttributeType withName(String name)
A schema attribute of the name type.
- Parameters:
name- A schema attribute of the name type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAttributeDataType
public void setAttributeDataType(String attributeDataType)
The attribute data type.
- Parameters:
attributeDataType- The attribute data type.- See Also:
AttributeDataType
-
getAttributeDataType
public String getAttributeDataType()
The attribute data type.
- Returns:
- The attribute data type.
- See Also:
AttributeDataType
-
withAttributeDataType
public SchemaAttributeType withAttributeDataType(String attributeDataType)
The attribute data type.
- Parameters:
attributeDataType- The attribute data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AttributeDataType
-
setAttributeDataType
public void setAttributeDataType(AttributeDataType attributeDataType)
The attribute data type.
- Parameters:
attributeDataType- The attribute data type.- See Also:
AttributeDataType
-
withAttributeDataType
public SchemaAttributeType withAttributeDataType(AttributeDataType attributeDataType)
The attribute data type.
- Parameters:
attributeDataType- The attribute data type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AttributeDataType
-
setDeveloperOnlyAttribute
public void setDeveloperOnlyAttribute(Boolean developerOnlyAttribute)
Specifies whether the attribute type is developer only.
- Parameters:
developerOnlyAttribute- Specifies whether the attribute type is developer only.
-
getDeveloperOnlyAttribute
public Boolean getDeveloperOnlyAttribute()
Specifies whether the attribute type is developer only.
- Returns:
- Specifies whether the attribute type is developer only.
-
withDeveloperOnlyAttribute
public SchemaAttributeType withDeveloperOnlyAttribute(Boolean developerOnlyAttribute)
Specifies whether the attribute type is developer only.
- Parameters:
developerOnlyAttribute- Specifies whether the attribute type is developer only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDeveloperOnlyAttribute
public Boolean isDeveloperOnlyAttribute()
Specifies whether the attribute type is developer only.
- Returns:
- Specifies whether the attribute type is developer only.
-
setMutable
public void setMutable(Boolean mutable)
Specifies whether the attribute can be changed once it has been created.
- Parameters:
mutable- Specifies whether the attribute can be changed once it has been created.
-
getMutable
public Boolean getMutable()
Specifies whether the attribute can be changed once it has been created.
- Returns:
- Specifies whether the attribute can be changed once it has been created.
-
withMutable
public SchemaAttributeType withMutable(Boolean mutable)
Specifies whether the attribute can be changed once it has been created.
- Parameters:
mutable- Specifies whether the attribute can be changed once it has been created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isMutable
public Boolean isMutable()
Specifies whether the attribute can be changed once it has been created.
- Returns:
- Specifies whether the attribute can be changed once it has been created.
-
setRequired
public void setRequired(Boolean required)
Specifies whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.
- Parameters:
required- Specifies whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.
-
getRequired
public Boolean getRequired()
Specifies whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.
- Returns:
- Specifies whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.
-
withRequired
public SchemaAttributeType withRequired(Boolean required)
Specifies whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.
- Parameters:
required- Specifies whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isRequired
public Boolean isRequired()
Specifies whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.
- Returns:
- Specifies whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.
-
setNumberAttributeConstraints
public void setNumberAttributeConstraints(NumberAttributeConstraintsType numberAttributeConstraints)
Specifies the constraints for an attribute of the number type.
- Parameters:
numberAttributeConstraints- Specifies the constraints for an attribute of the number type.
-
getNumberAttributeConstraints
public NumberAttributeConstraintsType getNumberAttributeConstraints()
Specifies the constraints for an attribute of the number type.
- Returns:
- Specifies the constraints for an attribute of the number type.
-
withNumberAttributeConstraints
public SchemaAttributeType withNumberAttributeConstraints(NumberAttributeConstraintsType numberAttributeConstraints)
Specifies the constraints for an attribute of the number type.
- Parameters:
numberAttributeConstraints- Specifies the constraints for an attribute of the number type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStringAttributeConstraints
public void setStringAttributeConstraints(StringAttributeConstraintsType stringAttributeConstraints)
Specifies the constraints for an attribute of the string type.
- Parameters:
stringAttributeConstraints- Specifies the constraints for an attribute of the string type.
-
getStringAttributeConstraints
public StringAttributeConstraintsType getStringAttributeConstraints()
Specifies the constraints for an attribute of the string type.
- Returns:
- Specifies the constraints for an attribute of the string type.
-
withStringAttributeConstraints
public SchemaAttributeType withStringAttributeConstraints(StringAttributeConstraintsType stringAttributeConstraints)
Specifies the constraints for an attribute of the string type.
- Parameters:
stringAttributeConstraints- Specifies the constraints for an attribute of the string type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 SchemaAttributeType clone()
-
-