类 PartETag
- java.lang.Object
-
- com.baidubce.services.bos.model.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.
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(Object obj)StringgetETag()Returns the entity tag generated from the content of the associated part.intgetPartNumber()Returns the part number of the associated part.inthashCode()voidsetETag(String eTag)Sets the entity tag generated from the content of the associated part.voidsetPartNumber(int partNumber)Sets the part number of the associated part.StringtoString()PartETagwithETag(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.PartETagwithPartNumber(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.
-
-
-
构造器详细资料
-
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.
-
-