com.amazonaws.services.s3.model
Class UploadPartResult

java.lang.Object
  extended by com.amazonaws.services.s3.model.UploadPartResult
All Implemented Interfaces:
com.amazonaws.services.s3.internal.ServerSideEncryptionResult

public class UploadPartResult
extends Object
implements com.amazonaws.services.s3.internal.ServerSideEncryptionResult

Contains the details returned from Amazon S3 after calling the UploadPart operation.


Constructor Summary
UploadPartResult()
           
 
Method Summary
 String getETag()
          Returns the entity tag of the newly uploaded part.
 PartETag getPartETag()
          Returns an identifier which identifies the upload part by its part number and the entity tag computed from the part's data.
 int getPartNumber()
          Returns the part number of the newly uploaded part.
 String getServerSideEncryption()
          Returns the server-side encryption algorithm for the newly created object, or null if none was used.
 void setETag(String eTag)
          Sets the entity tag of the newly uploaded part.
 void setPartNumber(int partNumber)
          Sets the part number of the newly uploaded part.
 void setServerSideEncryption(String serverSideEncryption)
          Sets the server-side encryption algorithm for the newly created object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadPartResult

public UploadPartResult()
Method Detail

getPartNumber

public int getPartNumber()
Returns the part number of the newly uploaded part.

Returns:
The part number of the newly uploaded part.

setPartNumber

public void setPartNumber(int partNumber)
Sets the part number of the newly uploaded part.

Parameters:
partNumber - the part number of the newly uploaded part.

getETag

public String getETag()
Returns the entity tag of the newly uploaded part. The entity tag is needed later when the multipart upload is completed.

Returns:
the entity tag of the newly uploaded part.

setETag

public void setETag(String eTag)
Sets the entity tag of the newly uploaded part.

Parameters:
eTag - the entity tag of the newly uploaded part.

getPartETag

public PartETag getPartETag()
Returns an identifier which identifies the upload part by its part number and the entity tag computed from the part's data. This information is later needed to complete a multipart upload.

Returns:
An identifier which identifies the upload part by its part number and the entity tag computed from the part's data.

getServerSideEncryption

public String getServerSideEncryption()
Returns the server-side encryption algorithm for the newly created object, or null if none was used.

Specified by:
getServerSideEncryption in interface com.amazonaws.services.s3.internal.ServerSideEncryptionResult

setServerSideEncryption

public void setServerSideEncryption(String serverSideEncryption)
Sets the server-side encryption algorithm for the newly created object.

Specified by:
setServerSideEncryption in interface com.amazonaws.services.s3.internal.ServerSideEncryptionResult
Parameters:
serverSideEncryption - The server-side encryption algorithm for the new object.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.