com.baidubce.services.tablestorage.model
Class PutRowRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.tablestorage.model.AbstractTableStorageRequest
          extended by com.baidubce.services.tablestorage.model.PutRowRequest

public class PutRowRequest
extends AbstractTableStorageRequest

Represent the request for PutRow operation.


Constructor Summary
PutRowRequest(String tableName, String rowkey)
          Constructs the put row request with target table name and rowkey.
 
Method Summary
 PutRowRequest addCell(String column, String value)
          Add a cell with column name and value.
 String toJsonString()
          Convert the put row request object to json string.
 
Methods inherited from class com.baidubce.services.tablestorage.model.AbstractTableStorageRequest
getTableName, withRequestCredentials
 
Methods inherited from class com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PutRowRequest

public PutRowRequest(String tableName,
                     String rowkey)
Constructs the put row request with target table name and rowkey.

Parameters:
tableName - The target table name.
rowkey - The target rowkey.
Method Detail

addCell

public PutRowRequest addCell(String column,
                             String value)
Add a cell with column name and value.

Parameters:
column - The column name of the cell.
value - The value of the cell.
Returns:

toJsonString

public String toJsonString()
Convert the put row request object to json string.

Specified by:
toJsonString in class AbstractTableStorageRequest
Returns:
The json string represent this put row request.


Copyright © 2020. All rights reserved.