Example usage for com.amazonaws.services.s3.model CopyObjectResult setETag

List of usage examples for com.amazonaws.services.s3.model CopyObjectResult setETag

Introduction

In this page you can find the example usage for com.amazonaws.services.s3.model CopyObjectResult setETag.

Prototype

public void setETag(String etag) 

Source Link

Document

Sets the ETag value for the new object that was created from the associated copy object request.

Usage

From source file:edu.si.services.beans.cameratrap.AmazonS3ClientMock.java

License:Apache License

@Override
public CopyObjectResult copyObject(CopyObjectRequest copyObjectRequest)
        throws AmazonClientException, AmazonServiceException {
    CopyObjectResult copyObjectResult = new CopyObjectResult();
    copyObjectResult.setETag("3a5c8b1ad448bca04584ecb55b836264");
    copyObjectResult.setVersionId("11192828ahsh2723");
    return copyObjectResult;
}