java.lang.Object
com.google.cloud.storage.multipartupload.model.Part.Builder
Enclosing class:
Part

@BetaApi public static final class Part.Builder extends Object
A builder for Part.
Since:
2.60.0 This new api is in preview and is subject to breaking changes.
  • Method Details

    • partNumber

      @BetaApi public Part.Builder partNumber(int 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

      @BetaApi public Part.Builder eTag(String 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

      @BetaApi public Part.Builder size(long 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

      @BetaApi public Part.Builder lastModified(OffsetDateTime 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

      @BetaApi public Part build()
      Builds a new Part object.
      Returns:
      a new Part object.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.