类 PartETag


  • public class PartETag
    extends Object
    Container for the part number and ETag of an uploaded part. After the part is uploaded to Baidu Bos, this data is used when completing the multipart upload.
    • 构造器概要

      构造器 
      构造器 说明
      PartETag()  
      PartETag​(int partNumber, String eTag)
      Constructs an instance of PartETag and sets the part number and ETag.
    • 构造器详细资料

      • PartETag

        public PartETag()
      • PartETag

        public PartETag​(int partNumber,
                        String eTag)
        Constructs an instance of PartETag and sets the part number and ETag.
        参数:
        partNumber - The part number.
        eTag - the associated ETag for the part number.
    • 方法详细资料

      • getPartNumber

        public int getPartNumber()
        Returns the part number of the associated part.
        返回:
        the part number of the associated part.
      • setPartNumber

        public void setPartNumber​(int partNumber)
        Sets the part number of the associated part.
        参数:
        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.
        参数:
        partNumber - the part number of the associated part.
        返回:
        This updated PartETag object.
      • getETag

        public String getETag()
        Returns the entity tag generated from the content of the associated part.
        返回:
        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.
        参数:
        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.
        参数:
        eTag - the entity tag generated from the content of the associated part.
        返回:
        This updated PartETag object.
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 Object