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 SchemaAttributeType
clone()
boolean
equals(Object obj)
String
getAttributeDataType()
The attribute data type.Boolean
getDeveloperOnlyAttribute()
Specifies whether the attribute type is developer only.Boolean
getMutable()
Specifies whether the attribute can be changed once it has been created.String
getName()
A schema attribute of the name type.NumberAttributeConstraintsType
getNumberAttributeConstraints()
Specifies the constraints for an attribute of the number type.Boolean
getRequired()
Specifies whether a user pool attribute is required.StringAttributeConstraintsType
getStringAttributeConstraints()
Specifies the constraints for an attribute of the string type.int
hashCode()
Boolean
isDeveloperOnlyAttribute()
Specifies whether the attribute type is developer only.Boolean
isMutable()
Specifies whether the attribute can be changed once it has been created.Boolean
isRequired()
Specifies whether a user pool attribute is required.void
setAttributeDataType(AttributeDataType attributeDataType)
The attribute data type.void
setAttributeDataType(String attributeDataType)
The attribute data type.void
setDeveloperOnlyAttribute(Boolean developerOnlyAttribute)
Specifies whether the attribute type is developer only.void
setMutable(Boolean mutable)
Specifies whether the attribute can be changed once it has been created.void
setName(String name)
A schema attribute of the name type.void
setNumberAttributeConstraints(NumberAttributeConstraintsType numberAttributeConstraints)
Specifies the constraints for an attribute of the number type.void
setRequired(Boolean required)
Specifies whether a user pool attribute is required.void
setStringAttributeConstraints(StringAttributeConstraintsType stringAttributeConstraints)
Specifies the constraints for an attribute of the string type.String
toString()
Returns a string representation of this object; useful for testing and debugging.SchemaAttributeType
withAttributeDataType(AttributeDataType attributeDataType)
The attribute data type.SchemaAttributeType
withAttributeDataType(String attributeDataType)
The attribute data type.SchemaAttributeType
withDeveloperOnlyAttribute(Boolean developerOnlyAttribute)
Specifies whether the attribute type is developer only.SchemaAttributeType
withMutable(Boolean mutable)
Specifies whether the attribute can be changed once it has been created.SchemaAttributeType
withName(String name)
A schema attribute of the name type.SchemaAttributeType
withNumberAttributeConstraints(NumberAttributeConstraintsType numberAttributeConstraints)
Specifies the constraints for an attribute of the number type.SchemaAttributeType
withRequired(Boolean required)
Specifies whether a user pool attribute is required.SchemaAttributeType
withStringAttributeConstraints(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SchemaAttributeType clone()
-
-