public final class DynamoDBHashKeySchema extends Object
Constructor and Description |
---|
DynamoDBHashKeySchema(String keyName,
com.amazonaws.services.dynamodbv2.model.ScalarAttributeType attrType)
Creates a new DynamoDB hash key schema.
|
Modifier and Type | Method and Description |
---|---|
com.amazonaws.services.dynamodbv2.model.ScalarAttributeType |
getAttributeType()
Returns the key attribute type.
|
String |
getKeyName()
Returns the key (attribute) name.
|
com.amazonaws.services.dynamodbv2.model.AttributeDefinition |
toAttributeDefinition()
Returns the attribute definition.
|
com.amazonaws.services.dynamodbv2.model.KeySchemaElement |
toKeySchemaElement()
Returns the key schema element.
|
public DynamoDBHashKeySchema(String keyName, com.amazonaws.services.dynamodbv2.model.ScalarAttributeType attrType)
keyName
- The key (attribute) name.attrType
- The key attribute type.public String getKeyName()
public com.amazonaws.services.dynamodbv2.model.ScalarAttributeType getAttributeType()
public com.amazonaws.services.dynamodbv2.model.KeySchemaElement toKeySchemaElement()
public com.amazonaws.services.dynamodbv2.model.AttributeDefinition toAttributeDefinition()
Copyright © 2017 Connect2id Ltd.. All Rights Reserved.