@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttributeDefinition extends Object implements Serializable, Cloneable, StructuredPojo
Represents an attribute for describing the 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, where: | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setAttributeName(String attributeName)
 A name for the attribute. | 
| void | setAttributeType(ScalarAttributeType attributeType)
 The data type for the attribute, where: | 
| void | setAttributeType(String attributeType)
 The data type for the attribute, where: | 
| String | toString()Returns a string representation of this object. | 
| AttributeDefinition | withAttributeName(String attributeName)
 A name for the attribute. | 
| AttributeDefinition | withAttributeType(ScalarAttributeType attributeType)
 The data type for the attribute, where: | 
| AttributeDefinition | withAttributeType(String attributeType)
 The data type for the attribute, where: | 
public AttributeDefinition()
public AttributeDefinition(String attributeName, String attributeType)
attributeName - A name for the attribute.attributeType - The data type for the attribute, where:
        
        S - the attribute is of type String
        
        N - the attribute is of type Number
        
        B - the attribute is of type Binary
        
public AttributeDefinition(String attributeName, ScalarAttributeType attributeType)
attributeName - A name for the attribute.attributeType - The data type for the attribute, where:
        
        S - the attribute is of type String
        
        N - the attribute is of type Number
        
        B - the attribute is of type Binary
        
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, where:
 S - the attribute is of type String
 
 N - the attribute is of type Number
 
 B - the attribute is of type Binary
 
attributeType - The data type for the attribute, where:
        
        S - the attribute is of type String
        
        N - the attribute is of type Number
        
        B - the attribute is of type Binary
        
ScalarAttributeTypepublic String getAttributeType()
The data type for the attribute, where:
 S - the attribute is of type String
 
 N - the attribute is of type Number
 
 B - the attribute is of type Binary
 
         S - the attribute is of type String
         
         N - the attribute is of type Number
         
         B - the attribute is of type Binary
         
ScalarAttributeTypepublic AttributeDefinition withAttributeType(String attributeType)
The data type for the attribute, where:
 S - the attribute is of type String
 
 N - the attribute is of type Number
 
 B - the attribute is of type Binary
 
attributeType - The data type for the attribute, where:
        
        S - the attribute is of type String
        
        N - the attribute is of type Number
        
        B - the attribute is of type Binary
        
ScalarAttributeTypepublic void setAttributeType(ScalarAttributeType attributeType)
The data type for the attribute, where:
 S - the attribute is of type String
 
 N - the attribute is of type Number
 
 B - the attribute is of type Binary
 
attributeType - The data type for the attribute, where:
        
        S - the attribute is of type String
        
        N - the attribute is of type Number
        
        B - the attribute is of type Binary
        
ScalarAttributeTypepublic AttributeDefinition withAttributeType(ScalarAttributeType attributeType)
The data type for the attribute, where:
 S - the attribute is of type String
 
 N - the attribute is of type Number
 
 B - the attribute is of type Binary
 
attributeType - The data type for the attribute, where:
        
        S - the attribute is of type String
        
        N - the attribute is of type Number
        
        B - the attribute is of type Binary
        
ScalarAttributeTypepublic String toString()
toString in class ObjectObject.toString()public AttributeDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.