类 CreateTableRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.moladb.model.CreateTableRequest
-
public class CreateTableRequest extends AbstractBceRequest
Represents the input of a CreateTable operation.
-
-
构造器概要
构造器 构造器 说明 CreateTableRequest()Constructs a new CreateTableRequest object.CreateTableRequest(String name)Constructs a new CreateTableRequest object.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 List<AttributeDefinition>getAttributeDefinitions()Get the attribute definitions.List<KeySchemaElement>getKeySchema()Get the Key information for creating a table, contains hashkey or hashkey and rangekey.ProvisionedThroughputgetProvisionedThroughput()Get the privisioned throughput when creating a table.StringgetTableName()Get the name of the table to create.voidsetAttributeDefinitions(List<AttributeDefinition> attributeDefinitions)Add attributes with value type and name when creating a table.voidsetKeySchema(List<KeySchemaElement> keySchema)Set the Key information for creating a table, contains hashkey or hashkey and rangekey.voidsetProvisionedThroughput(ProvisionedThroughput provision)Set the privisioned throughput when creating a table.voidsetTableName(String tableName)Set the name of the table to create.StringtoString()Return a string representation of request information.CreateTableRequestwithAttributeDefinitions(List<AttributeDefinition> attributeDefinitions)Add attributes with value type and name when creating a table.CreateTableRequestwithKeySchema(List<KeySchemaElement> keySchema)Set the Key information for creating a table, contains hashkey or hashkey and rangekey.CreateTableRequestwithProvisionedThroughput(ProvisionedThroughput provision)Set the provisioned throughput when creating a table.CreateTableRequestwithRequestCredentials(BceCredentials credentials)CreateTableRequestwithTableName(String tableName)Set the name of the table to create.-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
构造器详细资料
-
CreateTableRequest
public CreateTableRequest()
Constructs a new CreateTableRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
-
CreateTableRequest
public CreateTableRequest(String name)
Constructs a new CreateTableRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- 参数:
name- The name of the table to create.
-
-
方法详细资料
-
getTableName
public String getTableName()
Get the name of the table to create.- 返回:
- The name of the table to create.
-
setTableName
public void setTableName(String tableName)
Set the name of the table to create.- 参数:
tableName- The name of the table to create.
-
withTableName
public CreateTableRequest withTableName(String tableName)
Set the name of the table to create.- 参数:
tableName- The name of the table to create.- 返回:
- A reference to this object so that method calls can be chained together.
-
setAttributeDefinitions
public void setAttributeDefinitions(List<AttributeDefinition> attributeDefinitions)
Add attributes with value type and name when creating a table.- 参数:
attributeDefinitions- A list of attributes with name and value for creating a table, the type is List<AttributeDefinition>.- 另请参阅:
AttributeDefinition
-
withAttributeDefinitions
public CreateTableRequest withAttributeDefinitions(List<AttributeDefinition> attributeDefinitions)
Add attributes with value type and name when creating a table.- 参数:
attributeDefinitions- A list of attributes with name and value for creating a table, the type is List<AttributeDefinition>.- 返回:
- A reference to this object so that method calls can be chained together.
- 另请参阅:
AttributeDefinition
-
getAttributeDefinitions
public List<AttributeDefinition> getAttributeDefinitions()
Get the attribute definitions.- 返回:
- The attribute definitions.
- 另请参阅:
AttributeDefinition
-
setKeySchema
public void setKeySchema(List<KeySchemaElement> keySchema)
Set the Key information for creating a table, contains hashkey or hashkey and rangekey. The type is List<KeySchemaElement> type.- 参数:
keySchema- The Key information for creating a table, contains hashkey or hashkey and rangekey. The type is Listtype. - 另请参阅:
KeySchemaElement
-
withKeySchema
public CreateTableRequest withKeySchema(List<KeySchemaElement> keySchema)
Set the Key information for creating a table, contains hashkey or hashkey and rangekey. The type is List<KeySchemaElement> type.- 参数:
keySchema- The Key information for creating a table, contains hashkey or hashkey and rangekey. The type is List<KeySchemaElement> type.- 返回:
- A reference to this object so that method calls can be chained together.
- 另请参阅:
KeySchemaElement
-
getKeySchema
public List<KeySchemaElement> getKeySchema()
Get the Key information for creating a table, contains hashkey or hashkey and rangekey. The type is List<KeySchemaElement> type.- 返回:
- The Key information for creating a table, contains hashkey or hashkey and rangekey. The type is List<KeySchemaElement> type.
- 另请参阅:
KeySchemaElement
-
setProvisionedThroughput
public void setProvisionedThroughput(ProvisionedThroughput provision)
Set the privisioned throughput when creating a table.- 参数:
provision- The privisioned throughtput information when creating a table.- 另请参阅:
ProvisionedThroughput
-
withProvisionedThroughput
public CreateTableRequest withProvisionedThroughput(ProvisionedThroughput provision)
Set the provisioned throughput when creating a table.- 参数:
provision- The provisioned throughtput information when creating a table.- 返回:
- A reference to this object so that method calls can be chained together.
- 另请参阅:
ProvisionedThroughput
-
getProvisionedThroughput
public ProvisionedThroughput getProvisionedThroughput()
Get the privisioned throughput when creating a table.- 返回:
- The privisioned throughtput information when creating a table.
- 另请参阅:
ProvisionedThroughput
-
toString
public String toString()
Return a string representation of request information.
-
withRequestCredentials
public CreateTableRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
-