Class 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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PartETag​(int partNumber, String eTag)
      Constructs an instance of PartETag and sets the part number and ETag.
    • 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.