Class AbstractSpecWithPrimaryKey<T extends AmazonWebServiceRequest>

java.lang.Object
com.amazonaws.services.dynamodbv2.document.spec.AbstractSpecWithPrimaryKey<T>
Direct Known Subclasses:
DeleteItemSpec, GetItemSpec, UpdateItemSpec

public class AbstractSpecWithPrimaryKey<T extends AmazonWebServiceRequest> extends Object
Common base class for parameter specification that involves a primary key.
  • Constructor Details

    • AbstractSpecWithPrimaryKey

      protected AbstractSpecWithPrimaryKey(T request)
  • Method Details

    • getKeyComponents

      public final Collection<KeyAttribute> getKeyComponents()
      Returns the primary key components that has been specified.
    • withPrimaryKey

      public AbstractSpecWithPrimaryKey<T> withPrimaryKey(KeyAttribute... components)
      Sets the primary key with the specified key components.
    • withPrimaryKey

      public AbstractSpecWithPrimaryKey<T> withPrimaryKey(PrimaryKey primaryKey)
      Sets the primary key.
    • withPrimaryKey

      public AbstractSpecWithPrimaryKey<T> withPrimaryKey(String hashKeyName, Object hashKeyValue)
      Sets the primary key with the specified hash-only key name and value.
    • withPrimaryKey

      public AbstractSpecWithPrimaryKey<T> withPrimaryKey(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue)
      Sets the primary key with the specified hash key and range key.
    • getRequest

      public T getRequest()
      Internal method. Not meant to be called directly. May change without notice.
    • getProgressListener

      public ProgressListener getProgressListener()
    • setProgressListener

      public void setProgressListener(ProgressListener progressListener)
    • getRequestMetricCollector

      public RequestMetricCollector getRequestMetricCollector()
    • setRequestMetricCollector

      public void setRequestMetricCollector(RequestMetricCollector requestMetricCollector)
    • withProgressListener

      public com.amazonaws.services.dynamodbv2.document.spec.AbstractSpec<T> withProgressListener(ProgressListener progressListener)
    • withRequestMetricCollector

      public com.amazonaws.services.dynamodbv2.document.spec.AbstractSpec<T> withRequestMetricCollector(RequestMetricCollector requestMetricCollector)