|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.simpledb.model.GetAttributesRequest
public class GetAttributesRequest
Container for the parameters to the GetAttributes operation
.
Returns all of the attributes associated with the specified item. Optionally, the attributes returned can be limited to one or more attributes by specifying an attribute name parameter.
If the item does not exist on the replica that was accessed for this operation, an empty set is returned. The system does not return an error as it cannot guarantee the item does not exist on other replicas.
NOTE: If GetAttributes is called without being passed any attribute names, all the attributes for the item are returned.
AmazonSimpleDB.getAttributes(GetAttributesRequest)
Constructor Summary | |
---|---|
GetAttributesRequest()
Default constructor for a new GetAttributesRequest object. |
|
GetAttributesRequest(String domainName,
String itemName)
Constructs a new GetAttributesRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
List<String> |
getAttributeNames()
The names of the attributes. |
Boolean |
getConsistentRead()
Determines whether or not strong consistency should be enforced when data is read from SimpleDB. |
String |
getDomainName()
The name of the domain in which to perform the operation. |
String |
getItemName()
The name of the item. |
int |
hashCode()
|
Boolean |
isConsistentRead()
Determines whether or not strong consistency should be enforced when data is read from SimpleDB. |
void |
setAttributeNames(Collection<String> attributeNames)
The names of the attributes. |
void |
setConsistentRead(Boolean consistentRead)
Determines whether or not strong consistency should be enforced when data is read from SimpleDB. |
void |
setDomainName(String domainName)
The name of the domain in which to perform the operation. |
void |
setItemName(String itemName)
The name of the item. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
GetAttributesRequest |
withAttributeNames(Collection<String> attributeNames)
The names of the attributes. |
GetAttributesRequest |
withAttributeNames(String... attributeNames)
The names of the attributes. |
GetAttributesRequest |
withConsistentRead(Boolean consistentRead)
Determines whether or not strong consistency should be enforced when data is read from SimpleDB. |
GetAttributesRequest |
withDomainName(String domainName)
The name of the domain in which to perform the operation. |
GetAttributesRequest |
withItemName(String itemName)
The name of the item. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GetAttributesRequest()
public GetAttributesRequest(String domainName, String itemName)
domainName
- The name of the domain in which to perform the
operation.itemName
- The name of the item.Method Detail |
---|
public String getDomainName()
public void setDomainName(String domainName)
domainName
- The name of the domain in which to perform the operation.public GetAttributesRequest withDomainName(String domainName)
Returns a reference to this object so that method calls can be chained together.
domainName
- The name of the domain in which to perform the operation.
public String getItemName()
public void setItemName(String itemName)
itemName
- The name of the item.public GetAttributesRequest withItemName(String itemName)
Returns a reference to this object so that method calls can be chained together.
itemName
- The name of the item.
public List<String> getAttributeNames()
public void setAttributeNames(Collection<String> attributeNames)
attributeNames
- The names of the attributes.public GetAttributesRequest withAttributeNames(String... attributeNames)
Returns a reference to this object so that method calls can be chained together.
attributeNames
- The names of the attributes.
public GetAttributesRequest withAttributeNames(Collection<String> attributeNames)
Returns a reference to this object so that method calls can be chained together.
attributeNames
- The names of the attributes.
public Boolean isConsistentRead()
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.
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.public void setConsistentRead(Boolean consistentRead)
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.
consistentRead
- 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.public GetAttributesRequest withConsistentRead(Boolean consistentRead)
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.
Returns a reference to this object so that method calls can be chained together.
consistentRead
- 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.
public Boolean getConsistentRead()
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.
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.public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |