Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.dynamodbv2.model
Class AttributeDefinition

java.lang.Object
  extended by com.amazonaws.services.dynamodbv2.model.AttributeDefinition
All Implemented Interfaces:
Serializable

public class AttributeDefinition
extends Object
implements Serializable

Specifies an attribute for describing the key schema for the table and indexes.

See Also:
Serialized Form

Constructor Summary
AttributeDefinition()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeDefinition

public AttributeDefinition()
Method Detail

getAttributeName

public String getAttributeName()
A name for the attribute.

Constraints:
Length: 1 - 255

Returns:
A name for the attribute.

setAttributeName

public void setAttributeName(String attributeName)
A name for the attribute.

Constraints:
Length: 1 - 255

Parameters:
attributeName - A name for the attribute.

withAttributeName

public AttributeDefinition withAttributeName(String attributeName)
A name for the attribute.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255

Parameters:
attributeName - A name for the attribute.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttributeType

public String getAttributeType()
The data type for the attribute.

Constraints:
Allowed Values: S, N, B

Returns:
The data type for the attribute.
See Also:
ScalarAttributeType

setAttributeType

public void setAttributeType(String attributeType)
The data type for the attribute.

Constraints:
Allowed Values: S, N, B

Parameters:
attributeType - The data type for the attribute.
See Also:
ScalarAttributeType

withAttributeType

public AttributeDefinition withAttributeType(String attributeType)
The data type for the attribute.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: S, N, B

Parameters:
attributeType - The data type for the attribute.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ScalarAttributeType

setAttributeType

public void setAttributeType(ScalarAttributeType attributeType)
The data type for the attribute.

Constraints:
Allowed Values: S, N, B

Parameters:
attributeType - The data type for the attribute.
See Also:
ScalarAttributeType

withAttributeType

public AttributeDefinition withAttributeType(ScalarAttributeType attributeType)
The data type for the attribute.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: S, N, B

Parameters:
attributeType - The data type for the attribute.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ScalarAttributeType

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.