public class AbstractSpecWithPrimaryKey<T extends AmazonWebServiceRequest> extends AbstractSpec<T>
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<KeyAttribute> |
keyComponents |
Modifier | Constructor and Description |
---|---|
protected |
AbstractSpecWithPrimaryKey(T request) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<KeyAttribute> |
getKeyComponents()
Returns the primary key components that has been specified.
|
AbstractSpecWithPrimaryKey<T> |
withPrimaryKey(KeyAttribute... components)
Sets the primary key with the specified key components.
|
AbstractSpecWithPrimaryKey<T> |
withPrimaryKey(PrimaryKey primaryKey)
Sets the primary key.
|
AbstractSpecWithPrimaryKey<T> |
withPrimaryKey(java.lang.String hashKeyName,
java.lang.Object hashKeyValue)
Sets the primary key with the specified hash-only key name and value.
|
AbstractSpecWithPrimaryKey<T> |
withPrimaryKey(java.lang.String hashKeyName,
java.lang.Object hashKeyValue,
java.lang.String rangeKeyName,
java.lang.Object rangeKeyValue)
Sets the primary key with the specified hash key and range key.
|
getProgressListener, getRequest, getRequestMetricCollector, setProgressListener, setRequestMetricCollector, withProgressListener, withRequestMetricCollector
private java.util.Collection<KeyAttribute> keyComponents
protected AbstractSpecWithPrimaryKey(T request)
public final java.util.Collection<KeyAttribute> getKeyComponents()
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(KeyAttribute... components)
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(PrimaryKey primaryKey)
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(java.lang.String hashKeyName, java.lang.Object hashKeyValue)
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(java.lang.String hashKeyName, java.lang.Object hashKeyValue, java.lang.String rangeKeyName, java.lang.Object rangeKeyValue)