public class GetItemSpec extends AbstractSpecWithPrimaryKey<GetItemRequest>
| Constructor and Description |
|---|
GetItemSpec() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAttributesToGet() |
Map<String,String> |
getNameMap() |
com.amazonaws.event.ProgressListener |
getProgressListener() |
String |
getProjectionExpression() |
T |
getRequest()
Internal method.
|
com.amazonaws.metrics.RequestMetricCollector |
getRequestMetricCollector() |
String |
getReturnConsumedCapacity() |
Boolean |
isConsistentRead() |
void |
setProgressListener(com.amazonaws.event.ProgressListener progressListener) |
void |
setRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector requestMetricCollector) |
GetItemSpec |
withAttributesToGet(String... attrNames) |
GetItemSpec |
withConsistentRead(boolean consistentRead) |
GetItemSpec |
withNameMap(Map<String,String> nameMap)
Applicable only when an expression has been specified.
|
GetItemSpec |
withPrimaryKey(KeyAttribute... components)
Sets the primary key with the specified key components.
|
GetItemSpec |
withPrimaryKey(PrimaryKey primaryKey)
Sets the primary key.
|
GetItemSpec |
withPrimaryKey(String hashKeyName,
Object hashKeyValue)
Sets the primary key with the specified hash-only key name and value.
|
GetItemSpec |
withPrimaryKey(String hashKeyName,
Object hashKeyValue,
String rangeKeyName,
Object rangeKeyValue)
Sets the primary key with the specified hash key and range key.
|
GetItemSpec |
withProgressListener(com.amazonaws.event.ProgressListener progressListener) |
GetItemSpec |
withProjectionExpression(String expression)
When a projection expression is specified, the corresponding name-map can
optionally be specified via {
withNameMap(Map). |
GetItemSpec |
withRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector requestMetricCollector) |
GetItemSpec |
withReturnConsumedCapacity(ReturnConsumedCapacity capacity) |
getKeyComponentspublic GetItemSpec withPrimaryKey(KeyAttribute... components)
AbstractSpecWithPrimaryKeywithPrimaryKey in class AbstractSpecWithPrimaryKey<GetItemRequest>public GetItemSpec withPrimaryKey(PrimaryKey primaryKey)
AbstractSpecWithPrimaryKeywithPrimaryKey in class AbstractSpecWithPrimaryKey<GetItemRequest>public GetItemSpec withPrimaryKey(String hashKeyName, Object hashKeyValue)
AbstractSpecWithPrimaryKeywithPrimaryKey in class AbstractSpecWithPrimaryKey<GetItemRequest>public GetItemSpec withPrimaryKey(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue)
AbstractSpecWithPrimaryKeywithPrimaryKey in class AbstractSpecWithPrimaryKey<GetItemRequest>public String getReturnConsumedCapacity()
public GetItemSpec withReturnConsumedCapacity(ReturnConsumedCapacity capacity)
public GetItemSpec withAttributesToGet(String... attrNames)
public Boolean isConsistentRead()
public GetItemSpec withConsistentRead(boolean consistentRead)
public String getProjectionExpression()
public GetItemSpec withProjectionExpression(String expression)
withNameMap(Map). (Note
attributes-to-get must not be specified if a projection expression has
been specified.)public GetItemSpec withNameMap(Map<String,String> nameMap)
public GetItemSpec withProgressListener(com.amazonaws.event.ProgressListener progressListener)
public GetItemSpec withRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
public T getRequest()
public com.amazonaws.event.ProgressListener getProgressListener()
public void setProgressListener(com.amazonaws.event.ProgressListener progressListener)
public com.amazonaws.metrics.RequestMetricCollector getRequestMetricCollector()
public void setRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
Copyright © 2015. All rights reserved.