use of com.amazonaws.services.s3.internal.DeleteObjectTaggingHeaderHandler in project aws-sdk-android by aws-amplify.
the class AmazonS3Client method deleteObjectTagging.
@Override
public DeleteObjectTaggingResult deleteObjectTagging(DeleteObjectTaggingRequest deleteObjectTaggingRequest) {
assertParameterNotNull(deleteObjectTaggingRequest, "The request parameter must be specified when delete the object tags");
final String bucketName = assertStringNotEmpty(deleteObjectTaggingRequest.getBucketName(), "BucketName");
final String key = assertStringNotEmpty(deleteObjectTaggingRequest.getKey(), "Key");
final Request<DeleteObjectTaggingRequest> request = createRequest(bucketName, key, deleteObjectTaggingRequest, HttpMethodName.DELETE);
request.addParameter("tagging", null);
addParameterIfNotNull(request, "versionId", deleteObjectTaggingRequest.getVersionId());
final ResponseHeaderHandlerChain<DeleteObjectTaggingResult> handlerChain = new ResponseHeaderHandlerChain<DeleteObjectTaggingResult>(new Unmarshallers.DeleteObjectTaggingResponseUnmarshaller(), new DeleteObjectTaggingHeaderHandler());
return invoke(request, handlerChain, bucketName, key);
}
Aggregations