Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.dynamodbv2.model
Class KeySchemaElement

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

public class KeySchemaElement
extends Object
implements Serializable

Represents a key schema. Specifies the attributes that make up the primary key of a table, or the key attributes of a secondary index.

See Also:
Serialized Form

Constructor Summary
KeySchemaElement()
          Default constructor for a new KeySchemaElement object.
 
Method Summary
 boolean equals(Object obj)
           
 String getAttributeName()
          Represents the name of a key attribute.
 String getKeyType()
          Represents the attribute data, consisting of the data type and the attribute value itself.
 int hashCode()
           
 void setAttributeName(String attributeName)
          Represents the name of a key attribute.
 void setKeyType(KeyType keyType)
          Represents the attribute data, consisting of the data type and the attribute value itself.
 void setKeyType(String keyType)
          Represents the attribute data, consisting of the data type and the attribute value itself.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 KeySchemaElement withAttributeName(String attributeName)
          Represents the name of a key attribute.
 KeySchemaElement withKeyType(KeyType keyType)
          Represents the attribute data, consisting of the data type and the attribute value itself.
 KeySchemaElement withKeyType(String keyType)
          Represents the attribute data, consisting of the data type and the attribute value itself.
 
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()
Represents the name of a key attribute.

Constraints:
Length: 1 - 255

Returns:
Represents the name of a key attribute.

setAttributeName

public void setAttributeName(String attributeName)
Represents the name of a key attribute.

Constraints:
Length: 1 - 255

Parameters:
attributeName - Represents the name of a key attribute.

withAttributeName

public KeySchemaElement withAttributeName(String attributeName)
Represents the name of a key attribute.

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

Constraints:
Length: 1 - 255

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

getKeyType

public String getKeyType()
Represents the attribute data, consisting of the data type and the attribute value itself.

Constraints:
Allowed Values: HASH, RANGE

Returns:
Represents the attribute data, consisting of the data type and the attribute value itself.
See Also:
KeyType

setKeyType

public void setKeyType(String keyType)
Represents the attribute data, consisting of the data type and the attribute value itself.

Constraints:
Allowed Values: HASH, RANGE

Parameters:
keyType - Represents the attribute data, consisting of the data type and the attribute value itself.
See Also:
KeyType

withKeyType

public KeySchemaElement withKeyType(String keyType)
Represents the attribute data, consisting of the data type and the attribute value itself.

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

Constraints:
Allowed Values: HASH, RANGE

Parameters:
keyType - Represents the attribute data, consisting of the data type and the attribute value itself.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
KeyType

setKeyType

public void setKeyType(KeyType keyType)
Represents the attribute data, consisting of the data type and the attribute value itself.

Constraints:
Allowed Values: HASH, RANGE

Parameters:
keyType - Represents the attribute data, consisting of the data type and the attribute value itself.
See Also:
KeyType

withKeyType

public KeySchemaElement withKeyType(KeyType keyType)
Represents the attribute data, consisting of the data type and the attribute value itself.

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

Constraints:
Allowed Values: HASH, RANGE

Parameters:
keyType - Represents the attribute data, consisting of the data type and the attribute value itself.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
KeyType

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.