Class SchemaAttributeType
- All Implemented Interfaces:
Serializable
,Cloneable
Contains information about the schema attribute.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The attribute data type.Specifies whether the attribute type is developer only.Specifies whether the attribute can be changed once it has been created.getName()
A schema attribute of the name type.Specifies the constraints for an attribute of the number type.Specifies whether a user pool attribute is required.Specifies the constraints for an attribute of the string type.int
hashCode()
Specifies whether the attribute type is developer only.Specifies whether the attribute can be changed once it has been created.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
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.toString()
Returns a string representation of this object; useful for testing and debugging.withAttributeDataType
(AttributeDataType attributeDataType) The attribute data type.withAttributeDataType
(String attributeDataType) The attribute data type.withDeveloperOnlyAttribute
(Boolean developerOnlyAttribute) Specifies whether the attribute type is developer only.withMutable
(Boolean mutable) Specifies whether the attribute can be changed once it has been created.A schema attribute of the name type.withNumberAttributeConstraints
(NumberAttributeConstraintsType numberAttributeConstraints) Specifies the constraints for an attribute of the number type.withRequired
(Boolean required) Specifies whether a user pool attribute is required.withStringAttributeConstraints
(StringAttributeConstraintsType stringAttributeConstraints) Specifies the constraints for an attribute of the string type.
-
Constructor Details
-
SchemaAttributeType
public SchemaAttributeType()
-
-
Method Details
-
setName
A schema attribute of the name type.
- Parameters:
name
- A schema attribute of the name type.
-
getName
A schema attribute of the name type.
- Returns:
- A schema attribute of the name type.
-
withName
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
The attribute data type.
- Parameters:
attributeDataType
- The attribute data type.- See Also:
-
getAttributeDataType
The attribute data type.
- Returns:
- The attribute data type.
- See Also:
-
withAttributeDataType
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:
-
setAttributeDataType
The attribute data type.
- Parameters:
attributeDataType
- The attribute data type.- See Also:
-
withAttributeDataType
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:
-
setDeveloperOnlyAttribute
Specifies whether the attribute type is developer only.
- Parameters:
developerOnlyAttribute
- Specifies whether the attribute type is developer only.
-
getDeveloperOnlyAttribute
Specifies whether the attribute type is developer only.
- Returns:
- Specifies whether the attribute type is developer only.
-
withDeveloperOnlyAttribute
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
Specifies whether the attribute type is developer only.
- Returns:
- Specifies whether the attribute type is developer only.
-
setMutable
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
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
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
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
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
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-