类 CreateTableRequest


  • public class CreateTableRequest
    extends AbstractBceRequest
    Represents the input of a CreateTable operation.
    • 构造器详细资料

      • 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
      • 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 List type.
        另请参阅:
        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.
        覆盖:
        toString 在类中 Object
        返回:
        A string representation of request information.