public class GetAttributesRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
Constructor and Description |
---|
GetAttributesRequest()
Default constructor for a new GetAttributesRequest object.
|
GetAttributesRequest(java.lang.String domainName,
java.lang.String itemName)
Constructs a new GetAttributesRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getAttributeNames()
The names of the attributes.
|
java.lang.Boolean |
getConsistentRead()
Determines whether or not strong consistency should be enforced when
data is read from SimpleDB.
|
java.lang.String |
getDomainName()
The name of the domain in which to perform the operation.
|
java.lang.String |
getItemName()
The name of the item.
|
int |
hashCode() |
java.lang.Boolean |
isConsistentRead()
Determines whether or not strong consistency should be enforced when
data is read from SimpleDB.
|
void |
setAttributeNames(java.util.Collection<java.lang.String> attributeNames)
The names of the attributes.
|
void |
setConsistentRead(java.lang.Boolean consistentRead)
Determines whether or not strong consistency should be enforced when
data is read from SimpleDB.
|
void |
setDomainName(java.lang.String domainName)
The name of the domain in which to perform the operation.
|
void |
setItemName(java.lang.String itemName)
The name of the item.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetAttributesRequest |
withAttributeNames(java.util.Collection<java.lang.String> attributeNames)
The names of the attributes.
|
GetAttributesRequest |
withAttributeNames(java.lang.String... attributeNames)
The names of the attributes.
|
GetAttributesRequest |
withConsistentRead(java.lang.Boolean consistentRead)
Determines whether or not strong consistency should be enforced when
data is read from SimpleDB.
|
GetAttributesRequest |
withDomainName(java.lang.String domainName)
The name of the domain in which to perform the operation.
|
GetAttributesRequest |
withItemName(java.lang.String itemName)
The name of the item.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public GetAttributesRequest()
public GetAttributesRequest(java.lang.String domainName, java.lang.String itemName)
domainName
- The name of the domain in which to perform the
operation.itemName
- The name of the item.public java.lang.String getDomainName()
public void setDomainName(java.lang.String domainName)
domainName
- The name of the domain in which to perform the operation.public GetAttributesRequest withDomainName(java.lang.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 java.lang.String getItemName()
public void setItemName(java.lang.String itemName)
itemName
- The name of the item.public GetAttributesRequest withItemName(java.lang.String itemName)
Returns a reference to this object so that method calls can be chained together.
itemName
- The name of the item.public java.util.List<java.lang.String> getAttributeNames()
public void setAttributeNames(java.util.Collection<java.lang.String> attributeNames)
attributeNames
- The names of the attributes.public GetAttributesRequest withAttributeNames(java.lang.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(java.util.Collection<java.lang.String> attributeNames)
Returns a reference to this object so that method calls can be chained together.
attributeNames
- The names of the attributes.public java.lang.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(java.lang.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(java.lang.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 java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.