@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsDynamoDbTableKeySchema extends Object implements Serializable, Cloneable, StructuredPojo
A component of the key schema for the DynamoDB table, a global secondary index, or a local secondary index.
| Constructor and Description |
|---|
AwsDynamoDbTableKeySchema() |
| Modifier and Type | Method and Description |
|---|---|
AwsDynamoDbTableKeySchema |
clone() |
boolean |
equals(Object obj) |
String |
getAttributeName()
The name of the key schema attribute.
|
String |
getKeyType()
The type of key used for the key schema attribute.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAttributeName(String attributeName)
The name of the key schema attribute.
|
void |
setKeyType(String keyType)
The type of key used for the key schema attribute.
|
String |
toString()
Returns a string representation of this object.
|
AwsDynamoDbTableKeySchema |
withAttributeName(String attributeName)
The name of the key schema attribute.
|
AwsDynamoDbTableKeySchema |
withKeyType(String keyType)
The type of key used for the key schema attribute.
|
public void setAttributeName(String attributeName)
The name of the key schema attribute.
attributeName - The name of the key schema attribute.public String getAttributeName()
The name of the key schema attribute.
public AwsDynamoDbTableKeySchema withAttributeName(String attributeName)
The name of the key schema attribute.
attributeName - The name of the key schema attribute.public void setKeyType(String keyType)
The type of key used for the key schema attribute. Valid values are HASH or RANGE.
keyType - The type of key used for the key schema attribute. Valid values are HASH or
RANGE.public String getKeyType()
The type of key used for the key schema attribute. Valid values are HASH or RANGE.
HASH or
RANGE.public AwsDynamoDbTableKeySchema withKeyType(String keyType)
The type of key used for the key schema attribute. Valid values are HASH or RANGE.
keyType - The type of key used for the key schema attribute. Valid values are HASH or
RANGE.public String toString()
toString in class ObjectObject.toString()public AwsDynamoDbTableKeySchema clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.