public class KeySchemaElement
extends java.lang.Object
implements java.io.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.
| コンストラクタと説明 |
|---|
KeySchemaElement()
Default constructor for a new KeySchemaElement object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttributeName()
Represents the name of a key attribute.
|
java.lang.String |
getKeyType()
Represents the attribute data, consisting of the data type and the
attribute value itself.
|
int |
hashCode() |
void |
setAttributeName(java.lang.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(java.lang.String keyType)
Represents the attribute data, consisting of the data type and the
attribute value itself.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
KeySchemaElement |
withAttributeName(java.lang.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(java.lang.String keyType)
Represents the attribute data, consisting of the data type and the
attribute value itself.
|
public KeySchemaElement()
public java.lang.String getAttributeName()
Constraints:
Length: 1 - 255
public void setAttributeName(java.lang.String attributeName)
Constraints:
Length: 1 - 255
attributeName - Represents the name of a key attribute.public KeySchemaElement withAttributeName(java.lang.String attributeName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
attributeName - Represents the name of a key attribute.public java.lang.String getKeyType()
Constraints:
Allowed Values: HASH, RANGE
KeyTypepublic void setKeyType(java.lang.String keyType)
Constraints:
Allowed Values: HASH, RANGE
keyType - Represents the attribute data, consisting of the data type and the
attribute value itself.KeyTypepublic KeySchemaElement withKeyType(java.lang.String keyType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: HASH, RANGE
keyType - Represents the attribute data, consisting of the data type and the
attribute value itself.KeyTypepublic void setKeyType(KeyType keyType)
Constraints:
Allowed Values: HASH, RANGE
keyType - Represents the attribute data, consisting of the data type and the
attribute value itself.KeyTypepublic KeySchemaElement withKeyType(KeyType keyType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: HASH, RANGE
keyType - Represents the attribute data, consisting of the data type and the
attribute value itself.KeyTypepublic java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object