
com.amazonaws.services.dynamodbv2.document.api.DeleteItemApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-osgi Show documentation
Show all versions of aws-java-sdk-osgi Show documentation
The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).
/*
* Copyright 2014-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.dynamodbv2.document.api;
import java.util.Map;
import org.apache.http.annotation.ThreadSafe;
import com.amazonaws.services.dynamodbv2.document.DeleteItemOutcome;
import com.amazonaws.services.dynamodbv2.document.Expected;
import com.amazonaws.services.dynamodbv2.document.KeyAttribute;
import com.amazonaws.services.dynamodbv2.document.PrimaryKey;
import com.amazonaws.services.dynamodbv2.document.spec.DeleteItemSpec;
/**
* A Table-centric DeleteItem API.
*/
@ThreadSafe
public interface DeleteItemApi {
/** Deletes an item by primary key. */
public DeleteItemOutcome deleteItem(KeyAttribute ... primaryKeyComponents);
/** Deletes an item by primary key. */
public DeleteItemOutcome deleteItem(PrimaryKey primaryKey);
/** Deletes an item by hash-only primary key. */
public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue);
/** Deletes an item by hash key-and-range primary key. */
public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue,
String rangeKeyName, Object rangeKeyValue);
/**
* Conditional delete with the specified primary key and expected
* conditions.
*/
public DeleteItemOutcome deleteItem(PrimaryKey primaryKey,
Expected... expected);
/**
* Conditional delete with the specified hash-only primary key and expected
* conditions.
*/
public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue,
Expected... expected);
/**
* Conditional delete with the specified hash-and-range primary key and
* expected conditions.
*/
public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue,
String rangeKeyName, Object rangeKeyValue,
Expected... expected);
/**
* Conditional delete with the specified primary key and condition
* expression.
*/
public DeleteItemOutcome deleteItem(PrimaryKey primaryKey,
String conditionExpression,
Map nameMap,
Map valueMap);
/**
* Conditional delete with the specified hash-only primary key and condition
* expression.
*/
public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue,
String conditionExpression,
Map nameMap,
Map valueMap);
/**
* Conditional delete with the specified hash-and-range primary key and
* condition expression.
*/
public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue,
String rangeKeyName, Object rangeKeyValue,
String conditionExpression,
Map nameMap,
Map valueMap);
/** Deletes an item by specifying all the details. */
public DeleteItemOutcome deleteItem(DeleteItemSpec spec);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy