|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.services.dynamodbv2.model.AttributeDefinition
public class AttributeDefinition
Represents an attribute for describing the key schema for the table and indexes.
| Constructor Summary | |
|---|---|
AttributeDefinition()
Default constructor for a new AttributeDefinition object. |
|
AttributeDefinition(java.lang.String attributeName,
ScalarAttributeType attributeType)
Constructs a new AttributeDefinition object. |
|
AttributeDefinition(java.lang.String attributeName,
java.lang.String attributeType)
Constructs a new AttributeDefinition object. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAttributeName()
A name for the attribute. |
java.lang.String |
getAttributeType()
The data type for the attribute. |
int |
hashCode()
|
void |
setAttributeName(java.lang.String attributeName)
A name for the attribute. |
void |
setAttributeType(ScalarAttributeType attributeType)
The data type for the attribute. |
void |
setAttributeType(java.lang.String attributeType)
The data type for the attribute. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
AttributeDefinition |
withAttributeName(java.lang.String attributeName)
A name for the attribute. |
AttributeDefinition |
withAttributeType(ScalarAttributeType attributeType)
The data type for the attribute. |
AttributeDefinition |
withAttributeType(java.lang.String attributeType)
The data type for the attribute. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeDefinition()
public AttributeDefinition(java.lang.String attributeName,
java.lang.String attributeType)
attributeName - A name for the attribute.attributeType - The data type for the attribute.
public AttributeDefinition(java.lang.String attributeName,
ScalarAttributeType attributeType)
attributeName - A name for the attribute.attributeType - The data type for the attribute.| Method Detail |
|---|
public java.lang.String getAttributeName()
Constraints:
Length: 1 - 255
public void setAttributeName(java.lang.String attributeName)
Constraints:
Length: 1 - 255
attributeName - A name for the attribute.public AttributeDefinition withAttributeName(java.lang.String attributeName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
attributeName - A name for the attribute.
public java.lang.String getAttributeType()
Constraints:
Allowed Values: S, N, B
ScalarAttributeTypepublic void setAttributeType(java.lang.String attributeType)
Constraints:
Allowed Values: S, N, B
attributeType - The data type for the attribute.ScalarAttributeTypepublic AttributeDefinition withAttributeType(java.lang.String attributeType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: S, N, B
attributeType - The data type for the attribute.
ScalarAttributeTypepublic void setAttributeType(ScalarAttributeType attributeType)
Constraints:
Allowed Values: S, N, B
attributeType - The data type for the attribute.ScalarAttributeTypepublic AttributeDefinition withAttributeType(ScalarAttributeType attributeType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: S, N, B
attributeType - The data type for the attribute.
ScalarAttributeTypepublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||