Class Part.Builder
java.lang.Object
com.google.cloud.storage.multipartupload.model.Part.Builder
- Enclosing class:
- Part
A builder for
Part.- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newPartobject.Sets the ETag of the part.lastModified(OffsetDateTime lastModified) Sets the last modified time of the part.partNumber(int partNumber) Sets the part number.size(long size) Sets the size of the part.
-
Method Details
-
partNumber
Sets the part number.- Parameters:
partNumber- the part number.- Returns:
- this builder.
- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
eTag
Sets the ETag of the part.- Parameters:
eTag- the ETag of the part.- Returns:
- this builder.
- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
size
Sets the size of the part.- Parameters:
size- the size of the part.- Returns:
- this builder.
- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
lastModified
Sets the last modified time of the part.- Parameters:
lastModified- the last modified time of the part.- Returns:
- this builder.
- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
build
Builds a newPartobject.- Returns:
- a new
Partobject. - Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-