public class CreateTableRequest extends AbstractBceRequest
| Constructor and Description |
|---|
CreateTableRequest()
Constructs a new CreateTableRequest object.
|
CreateTableRequest(String name)
Constructs a new CreateTableRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
List<AttributeDefinition> |
getAttributeDefinitions()
Get the attribute definitions.
|
List<KeySchemaElement> |
getKeySchema()
Get the Key information for creating a table, contains hashkey or hashkey and rangekey.
|
ProvisionedThroughput |
getProvisionedThroughput()
Get the privisioned throughput when creating a table.
|
String |
getTableName()
Get the name of the table to create.
|
void |
setAttributeDefinitions(List<AttributeDefinition> attributeDefinitions)
Add attributes with value type and name when creating a table.
|
void |
setKeySchema(List<KeySchemaElement> keySchema)
Set the Key information for creating a table, contains hashkey or hashkey and rangekey.
|
void |
setProvisionedThroughput(ProvisionedThroughput provision)
Set the privisioned throughput when creating a table.
|
void |
setTableName(String tableName)
Set the name of the table to create.
|
String |
toString()
Return a string representation of request information.
|
CreateTableRequest |
withAttributeDefinitions(List<AttributeDefinition> attributeDefinitions)
Add attributes with value type and name when creating a table.
|
CreateTableRequest |
withKeySchema(List<KeySchemaElement> keySchema)
Set the Key information for creating a table, contains hashkey or hashkey and rangekey.
|
CreateTableRequest |
withProvisionedThroughput(ProvisionedThroughput provision)
Set the provisioned throughput when creating a table.
|
CreateTableRequest |
withRequestCredentials(BceCredentials credentials) |
CreateTableRequest |
withTableName(String tableName)
Set the name of the table to create.
|
getRequestCredentials, setRequestCredentialspublic CreateTableRequest()
public CreateTableRequest(String name)
name - The name of the table to create.public String getTableName()
public void setTableName(String tableName)
tableName - The name of the table to create.public CreateTableRequest withTableName(String tableName)
tableName - The name of the table to create.public void setAttributeDefinitions(List<AttributeDefinition> attributeDefinitions)
attributeDefinitions - A list of attributes with name and value for creating a table, the type is
List<AttributeDefinition>.AttributeDefinitionpublic CreateTableRequest withAttributeDefinitions(List<AttributeDefinition> attributeDefinitions)
attributeDefinitions - A list of attributes with name and value for creating a table, the type is
List<AttributeDefinition>.AttributeDefinitionpublic List<AttributeDefinition> getAttributeDefinitions()
AttributeDefinitionpublic void setKeySchema(List<KeySchemaElement> keySchema)
keySchema - The Key information for creating a table, contains hashkey or hashkey and rangekey.
The type is ListKeySchemaElementpublic CreateTableRequest withKeySchema(List<KeySchemaElement> keySchema)
keySchema - The Key information for creating a table, contains hashkey or hashkey and rangekey.
The type is List<KeySchemaElement> type.KeySchemaElementpublic List<KeySchemaElement> getKeySchema()
KeySchemaElementpublic void setProvisionedThroughput(ProvisionedThroughput provision)
provision - The privisioned throughtput information when creating a table.ProvisionedThroughputpublic CreateTableRequest withProvisionedThroughput(ProvisionedThroughput provision)
provision - The provisioned throughtput information when creating a table.ProvisionedThroughputpublic ProvisionedThroughput getProvisionedThroughput()
ProvisionedThroughputpublic String toString()
public CreateTableRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestCopyright © 2024. All rights reserved.