Package com.amazonaws.services.s3.model
Class PartETag
java.lang.Object
com.amazonaws.services.s3.model.PartETag
- All Implemented Interfaces:
Serializable
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetETag()
Returns the entity tag generated from the content of the associated part.int
Returns the part number of the associated part.void
Sets the entity tag generated from the content of the associated part.void
setPartNumber
(int partNumber) Sets the part number of the associated part.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.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.
-
Constructor Details
-
PartETag
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 Details
-
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
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
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
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
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.
-