Class PartETag

java.lang.Object
com.amazonaws.services.s3.model.PartETag
All Implemented Interfaces:
Serializable

public class PartETag extends Object implements 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
    Constructor
    Description
    PartETag(int partNumber, String eTag)
    Constructs an instance of PartETag and sets the part number and ETag.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 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

      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.