Class SelectResult
- java.lang.Object
-
- com.amazonaws.services.simpledb.model.SelectResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class SelectResult extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SelectResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectResultclone()booleanequals(Object obj)List<Item>getItems()A list of items that match the select expression.StringgetNextToken()An opaque token indicating that more items thanMaxNumberOfItemswere matched, the response size exceeded 1 megabyte, or the execution time exceeded 5 seconds.inthashCode()voidsetItems(Collection<Item> items)A list of items that match the select expression.voidsetNextToken(String nextToken)An opaque token indicating that more items thanMaxNumberOfItemswere matched, the response size exceeded 1 megabyte, or the execution time exceeded 5 seconds.StringtoString()Returns a string representation of this object; useful for testing and debugging.SelectResultwithItems(Item... items)A list of items that match the select expression.SelectResultwithItems(Collection<Item> items)A list of items that match the select expression.SelectResultwithNextToken(String nextToken)An opaque token indicating that more items thanMaxNumberOfItemswere matched, the response size exceeded 1 megabyte, or the execution time exceeded 5 seconds.
-
-
-
Method Detail
-
getItems
public List<Item> getItems()
A list of items that match the select expression.- Returns:
- A list of items that match the select expression.
-
setItems
public void setItems(Collection<Item> items)
A list of items that match the select expression.- Parameters:
items- A list of items that match the select expression.
-
withItems
public SelectResult withItems(Item... items)
A list of items that match the select expression.NOTE: This method appends the values to the existing list (if any). Use
setItems(java.util.Collection)orwithItems(java.util.Collection)if you want to override the existing values.- Parameters:
items- A list of items that match the select expression.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withItems
public SelectResult withItems(Collection<Item> items)
A list of items that match the select expression.- Parameters:
items- A list of items that match the select expression.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
An opaque token indicating that more items thanMaxNumberOfItemswere matched, the response size exceeded 1 megabyte, or the execution time exceeded 5 seconds.- Parameters:
nextToken- An opaque token indicating that more items thanMaxNumberOfItemswere matched, the response size exceeded 1 megabyte, or the execution time exceeded 5 seconds.
-
getNextToken
public String getNextToken()
An opaque token indicating that more items thanMaxNumberOfItemswere matched, the response size exceeded 1 megabyte, or the execution time exceeded 5 seconds.- Returns:
- An opaque token indicating that more items than
MaxNumberOfItemswere matched, the response size exceeded 1 megabyte, or the execution time exceeded 5 seconds.
-
withNextToken
public SelectResult withNextToken(String nextToken)
An opaque token indicating that more items thanMaxNumberOfItemswere matched, the response size exceeded 1 megabyte, or the execution time exceeded 5 seconds.- Parameters:
nextToken- An opaque token indicating that more items thanMaxNumberOfItemswere matched, the response size exceeded 1 megabyte, or the execution time exceeded 5 seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SelectResult clone()
-
-