|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.dynamodb.model.CreateTableRequest
public class CreateTableRequest
Container for the parameters to the CreateTable operation
.
The CreateTable operation adds a new table to your account. The table name must be unique among those associated with the AWS Account issuing the request, and the AWS Region that receives the request (e.g. us-east-1). The CreateTable operation triggers an asynchronous workflow to begin creating the table. Amazon DynamoDB immediately returns the state of the table (CREATING) until the table is in the ACTIVE state. Once the table is in the ACTIVE state, you can perform data plane operations.
AmazonDynamoDB.createTable(CreateTableRequest)
Constructor Summary | |
---|---|
CreateTableRequest()
Default constructor for a new CreateTableRequest object. |
|
CreateTableRequest(String tableName,
KeySchema keySchema)
Constructs a new CreateTableRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
KeySchema |
getKeySchema()
KeySchema: The KeySchema identifies the primary key as a one attribute primary key (hash) or a composite two attribute (hash-and-range) primary key. |
ProvisionedThroughput |
getProvisionedThroughput()
Provisioned throughput reserves the required read and write resources for your table in terms of ReadCapacityUnits and WriteCapacityUnits. |
String |
getTableName()
Returns the value of the TableName property for this object. |
int |
hashCode()
|
void |
setKeySchema(KeySchema keySchema)
KeySchema: The KeySchema identifies the primary key as a one attribute primary key (hash) or a composite two attribute (hash-and-range) primary key. |
void |
setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Provisioned throughput reserves the required read and write resources for your table in terms of ReadCapacityUnits and WriteCapacityUnits. |
void |
setTableName(String tableName)
Sets the value of the TableName property for this object. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateTableRequest |
withKeySchema(KeySchema keySchema)
KeySchema: The KeySchema identifies the primary key as a one attribute primary key (hash) or a composite two attribute (hash-and-range) primary key. |
CreateTableRequest |
withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Provisioned throughput reserves the required read and write resources for your table in terms of ReadCapacityUnits and WriteCapacityUnits. |
CreateTableRequest |
withTableName(String tableName)
Sets the value of the TableName property for this object. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateTableRequest()
public CreateTableRequest(String tableName, KeySchema keySchema)
tableName
- keySchema
- KeySchema: The KeySchema identifies the primary key
as a one attribute primary key (hash) or a composite two attribute
(hash-and-range) primary key. Single attribute primary keys have one
index value: a HashKeyElement. A composite hash-and-range primary key
contains two attribute values: a HashKeyElement and a RangeKeyElement.Method Detail |
---|
public String getTableName()
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
public void setTableName(String tableName)
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
tableName
- The new value for the TableName property for this object.public CreateTableRequest withTableName(String tableName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
tableName
- The new value for the TableName property for this object.
public KeySchema getKeySchema()
public void setKeySchema(KeySchema keySchema)
keySchema
- KeySchema: The KeySchema identifies the primary key as a one attribute
primary key (hash) or a composite two attribute (hash-and-range)
primary key. Single attribute primary keys have one index value: a
HashKeyElement. A composite hash-and-range primary key contains two
attribute values: a HashKeyElement and a RangeKeyElement.public CreateTableRequest withKeySchema(KeySchema keySchema)
Returns a reference to this object so that method calls can be chained together.
keySchema
- KeySchema: The KeySchema identifies the primary key as a one attribute
primary key (hash) or a composite two attribute (hash-and-range)
primary key. Single attribute primary keys have one index value: a
HashKeyElement. A composite hash-and-range primary key contains two
attribute values: a HashKeyElement and a RangeKeyElement.
public ProvisionedThroughput getProvisionedThroughput()
public void setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
provisionedThroughput
- Provisioned throughput reserves the required read and write resources
for your table in terms of ReadCapacityUnits and WriteCapacityUnits.
Values for provisioned throughput depend upon your expected read/write
rates, item size, and consistency. Provide the expected number of read
and write operations, assuming an item size of 1KB and strictly
consistent reads. For 2KB item size, double the value, 3KB, triple the
value, etc. Eventually consistent reads consume half the resources of
strictly consistent reads.public CreateTableRequest withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Returns a reference to this object so that method calls can be chained together.
provisionedThroughput
- Provisioned throughput reserves the required read and write resources
for your table in terms of ReadCapacityUnits and WriteCapacityUnits.
Values for provisioned throughput depend upon your expected read/write
rates, item size, and consistency. Provide the expected number of read
and write operations, assuming an item size of 1KB and strictly
consistent reads. For 2KB item size, double the value, 3KB, triple the
value, etc. Eventually consistent reads consume half the resources of
strictly consistent reads.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |