Class SelectRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.simpledb.model.SelectRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class SelectRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SelectRequest()
Default constructor for SelectRequest object.SelectRequest(String selectExpression)
Constructs a new SelectRequest object.SelectRequest(String selectExpression, Boolean consistentRead)
Constructs a new SelectRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
Boolean
getConsistentRead()
Determines whether or not strong consistency should be enforced when data is read from SimpleDB.String
getNextToken()
A string informing Amazon SimpleDB where to start the next list ofItemNames
.String
getSelectExpression()
The expression used to query the domain.int
hashCode()
Boolean
isConsistentRead()
Determines whether or not strong consistency should be enforced when data is read from SimpleDB.void
setConsistentRead(Boolean consistentRead)
Determines whether or not strong consistency should be enforced when data is read from SimpleDB.void
setNextToken(String nextToken)
A string informing Amazon SimpleDB where to start the next list ofItemNames
.void
setSelectExpression(String selectExpression)
The expression used to query the domain.String
toString()
Returns a string representation of this object; useful for testing and debugging.SelectRequest
withConsistentRead(Boolean consistentRead)
Determines whether or not strong consistency should be enforced when data is read from SimpleDB.SelectRequest
withNextToken(String nextToken)
A string informing Amazon SimpleDB where to start the next list ofItemNames
.SelectRequest
withSelectExpression(String selectExpression)
The expression used to query the domain.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Constructor Detail
-
SelectRequest
public SelectRequest()
Default constructor for SelectRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
SelectRequest
public SelectRequest(String selectExpression)
Constructs a new SelectRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
selectExpression
- The expression used to query the domain.
-
SelectRequest
public SelectRequest(String selectExpression, Boolean consistentRead)
Constructs a new SelectRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
selectExpression
- The expression used to query the domain.consistentRead
- Determines whether or not strong consistency should be enforced when data is read from SimpleDB. Iftrue
, any data previously written to SimpleDB will be returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read.
-
-
Method Detail
-
setSelectExpression
public void setSelectExpression(String selectExpression)
The expression used to query the domain.- Parameters:
selectExpression
- The expression used to query the domain.
-
getSelectExpression
public String getSelectExpression()
The expression used to query the domain.- Returns:
- The expression used to query the domain.
-
withSelectExpression
public SelectRequest withSelectExpression(String selectExpression)
The expression used to query the domain.- Parameters:
selectExpression
- The expression used to query the domain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
A string informing Amazon SimpleDB where to start the next list ofItemNames
.- Parameters:
nextToken
- A string informing Amazon SimpleDB where to start the next list ofItemNames
.
-
getNextToken
public String getNextToken()
A string informing Amazon SimpleDB where to start the next list ofItemNames
.- Returns:
- A string informing Amazon SimpleDB where to start the next list
of
ItemNames
.
-
withNextToken
public SelectRequest withNextToken(String nextToken)
A string informing Amazon SimpleDB where to start the next list ofItemNames
.- Parameters:
nextToken
- A string informing Amazon SimpleDB where to start the next list ofItemNames
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setConsistentRead
public void setConsistentRead(Boolean consistentRead)
Determines whether or not strong consistency should be enforced when data is read from SimpleDB. Iftrue
, any data previously written to SimpleDB will be returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read.- Parameters:
consistentRead
- Determines whether or not strong consistency should be enforced when data is read from SimpleDB. Iftrue
, any data previously written to SimpleDB will be returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read.
-
getConsistentRead
public Boolean getConsistentRead()
Determines whether or not strong consistency should be enforced when data is read from SimpleDB. Iftrue
, any data previously written to SimpleDB will be returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read.- Returns:
- Determines whether or not strong consistency should be enforced
when data is read from SimpleDB. If
true
, any data previously written to SimpleDB will be returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read.
-
withConsistentRead
public SelectRequest withConsistentRead(Boolean consistentRead)
Determines whether or not strong consistency should be enforced when data is read from SimpleDB. Iftrue
, any data previously written to SimpleDB will be returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read.- Parameters:
consistentRead
- Determines whether or not strong consistency should be enforced when data is read from SimpleDB. Iftrue
, any data previously written to SimpleDB will be returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isConsistentRead
public Boolean isConsistentRead()
Determines whether or not strong consistency should be enforced when data is read from SimpleDB. Iftrue
, any data previously written to SimpleDB will be returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read.- Returns:
- Determines whether or not strong consistency should be enforced
when data is read from SimpleDB. If
true
, any data previously written to SimpleDB will be returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SelectRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-