Class UploadOptions
- java.lang.Object
-
- com.google.appengine.api.blobstore.UploadOptions
-
public final class UploadOptions extends Object
Allows users to customize the behavior of a single upload to theBlobstoreService.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUploadOptions.BuilderContains static creation methods forUploadOptions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(@Nullable Object object)UploadOptionsgoogleStorageBucketName(String bucketName)inthashCode()UploadOptionsmaxUploadSizeBytes(long maxUploadSizeBytes)Sets the maximum size in bytes that for the total upload.UploadOptionsmaxUploadSizeBytesPerBlob(long maxUploadSizeBytesPerBlob)Sets the maximum size in bytes for any one blob in the upload.StringtoString()
-
-
-
Method Detail
-
maxUploadSizeBytesPerBlob
public UploadOptions maxUploadSizeBytesPerBlob(long maxUploadSizeBytesPerBlob)
Sets the maximum size in bytes for any one blob in the upload. If any blob in the upload exceeds this value then a 413 error will be returned to the client.- Parameters:
maxUploadSizeBytesPerBlob- The maximum size in bytes that any one blob in the upload can be.- Returns:
this(for chaining)
-
maxUploadSizeBytes
public UploadOptions maxUploadSizeBytes(long maxUploadSizeBytes)
Sets the maximum size in bytes that for the total upload. If the upload exceeds this value then a 413 error will be returned to the client.- Parameters:
maxUploadSizeBytes- The maximum size in bytes for the upload.- Returns:
this(for chaining)
-
googleStorageBucketName
public UploadOptions googleStorageBucketName(String bucketName)
-
-