|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.baidubce.model.AbstractBceRequest
com.baidubce.services.moladb.model.GetItemRequest
public class GetItemRequest
Represents the input of a GetItem operation.
| Constructor Summary | |
|---|---|
GetItemRequest()
Constructs a new GetItemRequest object. |
|
GetItemRequest(String tableName)
Constructs a new GetItemRequest object. |
|
| Method Summary | |
|---|---|
List<String> |
getAttributesToGet()
The method return all the attribute names which are expected to return from the table. |
Key |
getKey()
The method return the Key that is used to get the item. |
String |
getTableName()
The method return the table name of this request |
boolean |
isConsistentRead()
The method return this consistent read flag. |
void |
setAttributesToGet(List<String> attributeNames)
The method specify the attributes that is expected to return from the table. |
void |
setConsistentRead(boolean consistent)
The method set this read as consistent read. |
void |
setKey(Key key)
The method set the Key that used to get item from the table. |
void |
setTableName(String tableName)
The method set the table name. |
String |
toString()
Return a string representation of the object. |
GetItemRequest |
withAttributesToGet(List<String> attributeNames)
The method specify the attributes that is expected to return from the table. |
GetItemRequest |
withConsistentRead(boolean consistent)
The method set this read as consistent read. |
GetItemRequest |
withKey(Key key)
The method set the Key that used to get item from the table. |
GetItemRequest |
withRequestCredentials(BceCredentials credentials)
|
GetItemRequest |
withTableName(String tableName)
The method set the table name. |
| Methods inherited from class com.baidubce.model.AbstractBceRequest |
|---|
getRequestCredentials, setRequestCredentials |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GetItemRequest()
public GetItemRequest(String tableName)
tableName - The name of the table to that to be get item from.| Method Detail |
|---|
public String toString()
toString in class Objectpublic GetItemRequest withKey(Key key)
key - The key that used to describe the key field.
public void setKey(Key key)
key - The key that used to describe the key field.public Key getKey()
public void setConsistentRead(boolean consistent)
consistent - Set consistent read as true or falsepublic GetItemRequest withConsistentRead(boolean consistent)
consistent - Set consistent read as true or false
public boolean isConsistentRead()
public void setTableName(String tableName)
tableName - The name of the table to get the items.public GetItemRequest withTableName(String tableName)
public String getTableName()
public void setAttributesToGet(List<String> attributeNames)
attributeNames - The attribute name list which are expected to be returned from the table.public GetItemRequest withAttributesToGet(List<String> attributeNames)
attributeNames - The attribute name list which are expected to be returned from the table.
public List<String> getAttributesToGet()
public GetItemRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||