public class AttributeDefinition extends Object implements Serializable, Cloneable
Represents an attribute for describing the key schema for the table and indexes.
| Constructor and Description |
|---|
AttributeDefinition()
Default constructor for AttributeDefinition object.
|
AttributeDefinition(String attributeName,
ScalarAttributeType attributeType)
Constructs a new AttributeDefinition object.
|
AttributeDefinition(String attributeName,
String attributeType)
Constructs a new AttributeDefinition object.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeDefinition |
clone() |
boolean |
equals(Object obj) |
String |
getAttributeName()
A name for the attribute.
|
String |
getAttributeType()
The data type for the attribute.
|
int |
hashCode() |
void |
setAttributeName(String attributeName)
A name for the attribute.
|
void |
setAttributeType(ScalarAttributeType attributeType)
The data type for the attribute.
|
void |
setAttributeType(String attributeType)
The data type for the attribute.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttributeDefinition |
withAttributeName(String attributeName)
A name for the attribute.
|
AttributeDefinition |
withAttributeType(ScalarAttributeType attributeType)
The data type for the attribute.
|
AttributeDefinition |
withAttributeType(String attributeType)
The data type for the attribute.
|
public AttributeDefinition()
public AttributeDefinition(String attributeName, String attributeType)
attributeName - A name for the attribute.attributeType - The data type for the attribute.public AttributeDefinition(String attributeName, ScalarAttributeType attributeType)
attributeName - A name for the attribute.attributeType - The data type for the attribute.public void setAttributeName(String attributeName)
A name for the attribute.
attributeName - A name for the attribute.public String getAttributeName()
A name for the attribute.
public AttributeDefinition withAttributeName(String attributeName)
A name for the attribute.
attributeName - A name for the attribute.public void setAttributeType(String attributeType)
The data type for the attribute.
attributeType - The data type for the attribute.ScalarAttributeTypepublic String getAttributeType()
The data type for the attribute.
ScalarAttributeTypepublic AttributeDefinition withAttributeType(String attributeType)
The data type for the attribute.
attributeType - The data type for the attribute.ScalarAttributeTypepublic void setAttributeType(ScalarAttributeType attributeType)
The data type for the attribute.
attributeType - The data type for the attribute.ScalarAttributeTypepublic AttributeDefinition withAttributeType(ScalarAttributeType attributeType)
The data type for the attribute.
attributeType - The data type for the attribute.ScalarAttributeTypepublic String toString()
toString in class ObjectObject.toString()public AttributeDefinition clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.