com.amazonaws.services.dynamodb.model
Class KeySchemaElement

java.lang.Object
  extended by com.amazonaws.services.dynamodb.model.KeySchemaElement

public class KeySchemaElement
extends Object

KeySchemaElement is the primary key (hash or hash-and-range) structure for the table.


Constructor Summary
KeySchemaElement()
          Default constructor for a new KeySchemaElement object.
 
Method Summary
 boolean equals(Object obj)
           
 String getAttributeName()
          The AttributeName of the KeySchemaElement.
 String getAttributeType()
          The AttributeType of the KeySchemaElement which can be a String or a Number.
 int hashCode()
           
 void setAttributeName(String attributeName)
          The AttributeName of the KeySchemaElement.
 void setAttributeType(ScalarAttributeType attributeType)
          The AttributeType of the KeySchemaElement which can be a String or a Number.
 void setAttributeType(String attributeType)
          The AttributeType of the KeySchemaElement which can be a String or a Number.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 KeySchemaElement withAttributeName(String attributeName)
          The AttributeName of the KeySchemaElement.
 KeySchemaElement withAttributeType(ScalarAttributeType attributeType)
          The AttributeType of the KeySchemaElement which can be a String or a Number.
 KeySchemaElement withAttributeType(String attributeType)
          The AttributeType of the KeySchemaElement which can be a String or a Number.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeySchemaElement

public KeySchemaElement()
Default constructor for a new KeySchemaElement object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

Method Detail

getAttributeName

public String getAttributeName()
The AttributeName of the KeySchemaElement.

Constraints:
Length: 1 - 255

Returns:
The AttributeName of the KeySchemaElement.

setAttributeName

public void setAttributeName(String attributeName)
The AttributeName of the KeySchemaElement.

Constraints:
Length: 1 - 255

Parameters:
attributeName - The AttributeName of the KeySchemaElement.

withAttributeName

public KeySchemaElement withAttributeName(String attributeName)
The AttributeName of the KeySchemaElement.

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

Constraints:
Length: 1 - 255

Parameters:
attributeName - The AttributeName of the KeySchemaElement.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttributeType

public String getAttributeType()
The AttributeType of the KeySchemaElement which can be a String or a Number.

Constraints:
Allowed Values: S, N, B

Returns:
The AttributeType of the KeySchemaElement which can be a String or a Number.
See Also:
ScalarAttributeType

setAttributeType

public void setAttributeType(String attributeType)
The AttributeType of the KeySchemaElement which can be a String or a Number.

Constraints:
Allowed Values: S, N, B

Parameters:
attributeType - The AttributeType of the KeySchemaElement which can be a String or a Number.
See Also:
ScalarAttributeType

withAttributeType

public KeySchemaElement withAttributeType(String attributeType)
The AttributeType of the KeySchemaElement which can be a String or a Number.

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

Constraints:
Allowed Values: S, N, B

Parameters:
attributeType - The AttributeType of the KeySchemaElement which can be a String or a Number.
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 AttributeType of the KeySchemaElement which can be a String or a Number.

Constraints:
Allowed Values: S, N, B

Parameters:
attributeType - The AttributeType of the KeySchemaElement which can be a String or a Number.
See Also:
ScalarAttributeType

withAttributeType

public KeySchemaElement withAttributeType(ScalarAttributeType attributeType)
The AttributeType of the KeySchemaElement which can be a String or a Number.

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

Constraints:
Allowed Values: S, N, B

Parameters:
attributeType - The AttributeType of the KeySchemaElement which can be a String or a Number.
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.