com.amazonaws.services.dynamodb.model
Class KeySchemaElement

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

public class KeySchemaElement
extends Object

Key Schema Element


Constructor Summary
KeySchemaElement()
          Default constructor for a new KeySchemaElement object.
 
Method Summary
 boolean equals(Object obj)
           
 String getAttributeName()
          Returns the value of the AttributeName property for this object.
 String getAttributeType()
          Returns the value of the AttributeType property for this object.
 int hashCode()
           
 void setAttributeName(String attributeName)
          Sets the value of the AttributeName property for this object.
 void setAttributeType(ScalarAttributeType attributeType)
          Sets the value of the AttributeType property for this object.
 void setAttributeType(String attributeType)
          Sets the value of the AttributeType property for this object.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 KeySchemaElement withAttributeName(String attributeName)
          Sets the value of the AttributeName property for this object.
 KeySchemaElement withAttributeType(ScalarAttributeType attributeType)
          Sets the value of the AttributeType property for this object.
 KeySchemaElement withAttributeType(String attributeType)
          Sets the value of the AttributeType property for this object.
 
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()
Returns the value of the AttributeName property for this object.

Constraints:
Length: 1 - 255

Returns:
The value of the AttributeName property for this object.

setAttributeName

public void setAttributeName(String attributeName)
Sets the value of the AttributeName property for this object.

Constraints:
Length: 1 - 255

Parameters:
attributeName - The new value for the AttributeName property for this object.

withAttributeName

public KeySchemaElement withAttributeName(String attributeName)
Sets the value of the AttributeName property for this object.

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

Constraints:
Length: 1 - 255

Parameters:
attributeName - The new value for the AttributeName property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttributeType

public String getAttributeType()
Returns the value of the AttributeType property for this object.

Constraints:
Allowed Values: S, N

Returns:
The value of the AttributeType property for this object.
See Also:
ScalarAttributeType

setAttributeType

public void setAttributeType(String attributeType)
Sets the value of the AttributeType property for this object.

Constraints:
Allowed Values: S, N

Parameters:
attributeType - The new value for the AttributeType property for this object.
See Also:
ScalarAttributeType

withAttributeType

public KeySchemaElement withAttributeType(String attributeType)
Sets the value of the AttributeType property for this object.

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

Constraints:
Allowed Values: S, N

Parameters:
attributeType - The new value for the AttributeType property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ScalarAttributeType

setAttributeType

public void setAttributeType(ScalarAttributeType attributeType)
Sets the value of the AttributeType property for this object.

Constraints:
Allowed Values: S, N

Parameters:
attributeType - The new value for the AttributeType property for this object.
See Also:
ScalarAttributeType

withAttributeType

public KeySchemaElement withAttributeType(ScalarAttributeType attributeType)
Sets the value of the AttributeType property for this object.

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

Constraints:
Allowed Values: S, N

Parameters:
attributeType - The new value for the AttributeType property for this object.
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.