com.amazonaws.services.s3.model
Class PartETag

java.lang.Object
  extended by com.amazonaws.services.s3.model.PartETag

public class PartETag
extends Object

Container for the part number and ETag of an uploaded part. After the part is uploaded to Amazon S3, this data is used when completing the multipart upload.


Constructor Summary
PartETag(int partNumber, String eTag)
          Constructs an instance of PartETag and sets the part number and ETag.
 
Method Summary
 String getETag()
          Returns the entity tag generated from the content of the associated part.
 int getPartNumber()
          Returns the part number of the associated part.
 void setETag(String eTag)
          Sets the entity tag generated from the content of the associated part.
 void setPartNumber(int partNumber)
          Sets the part number of the associated part.
 PartETag withETag(String eTag)
          Sets the entity tag generated from the content of the associated part, and returns this updated PartETag object so that additional method calls can be chained together.
 PartETag withPartNumber(int partNumber)
          Sets the part number of the associated part, and returns this updated PartETag object so that additional method calls can be chained together.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartETag

public PartETag(int partNumber,
                String eTag)
Constructs an instance of PartETag and sets the part number and ETag.

Parameters:
partNumber - The part number.
eTag - the associated ETag for the part number.
Method Detail

getPartNumber

public int getPartNumber()
Returns the part number of the associated part.

Returns:
the part number of the associated part.

setPartNumber

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

Parameters:
partNumber - the part number of the associated part.

withPartNumber

public PartETag withPartNumber(int partNumber)
Sets the part number of the associated part, and returns this updated PartETag object so that additional method calls can be chained together.

Parameters:
partNumber - the part number of the associated part.
Returns:
This updated PartETag object.

getETag

public String getETag()
Returns the entity tag generated from the content of the associated part.

Returns:
the entity tag generated from the content of the associated part.

setETag

public void setETag(String eTag)
Sets the entity tag generated from the content of the associated part.

Parameters:
eTag - the entity tag generated from the content of the associated part.

withETag

public PartETag withETag(String eTag)
Sets the entity tag generated from the content of the associated part, and returns this updated PartETag object so that additional method calls can be chained together.

Parameters:
eTag - the entity tag generated from the content of the associated part.
Returns:
This updated PartETag object.


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