public class KeysAndAttributes extends Object
| Constructor and Description |
|---|
KeysAndAttributes()
Constructs a new KeysAndAttributes object.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAttributesToGet()
Get all of the attributes to retrieve from a table.
|
List<Key> |
getKeys()
Get the key attributes the define the items and the attributes associated with the items in this object.
|
boolean |
isConsistentRead()
Return true if the consistency is a strongly consistent read; else return false.
|
void |
setAttributesToGet(List<String> attributes)
Attributes to retrieve from the table.
|
void |
setConsistentRead(boolean consistentRead)
Set the type of the consistency of a read operation.The default value is false, representing that it is
eventually consistent read.
|
void |
setKeys(List<Key> keys)
Set the list of Keys to get associated items.
|
protected Map<String,Object> |
toJsonObj() |
String |
toString()
Return a string representation of the object.
|
KeysAndAttributes |
withAttributesToGet(List<String> attributes)
Attributes to retrieve from the table.
|
KeysAndAttributes |
withConsistentRead(boolean consistentRead)
Set the type of the consistency of a read operation.The default value is false, representing that it is
eventually consistent read.
|
KeysAndAttributes |
withKeys(List<Key> keys)
Set the list of Keys to get associated items.
|
public KeysAndAttributes()
public KeysAndAttributes withKeys(List<Key> keys)
keys - The key attributes and values to get items from a table.public void setKeys(List<Key> keys)
keys - The key attributes and values to get items from a table.IllegalArgumentException - if the list is empty.public void setConsistentRead(boolean consistentRead)
consistentRead - The consistency of a read operation. The default value is false, representing that it is
eventually consistent read. If the value is true, it is a strongly consistent read.public KeysAndAttributes withConsistentRead(boolean consistentRead)
consistentRead - The consistency of a read operation. The default value is false, representing that it is
eventually consistent read. If the value is true, it is a strongly consistent read.public KeysAndAttributes withAttributesToGet(List<String> attributes)
attributes - The attributes to retrieve from an item.public void setAttributesToGet(List<String> attributes)
attributes - The attributes to retrieve from an item.public boolean isConsistentRead()
public List<String> getAttributesToGet()
public List<Key> getKeys()
Copyright © 2020. All rights reserved.