public static final class UploadOptions.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
UploadOptions.Builder |
bucket(java.lang.String bucket)
Sets the bucket used for upload.
|
UploadOptions |
build()
Return the finally constructed UploadOptions.
|
UploadOptions.Builder |
cannedAcl(CannedAccessControlList cannedAcl)
Sets the canned ACL of the object to upload.
|
UploadOptions.Builder |
objectMetadata(ObjectMetadata metadata)
Sets the metadata of the object to upload.
|
UploadOptions.Builder |
transferListener(TransferListener listener)
Sets the listener to an upload task.
|
public UploadOptions.Builder bucket(java.lang.String bucket)
bucket
- The bucket namepublic UploadOptions.Builder objectMetadata(ObjectMetadata metadata)
metadata
- The S3 metadata to associate with this objectpublic UploadOptions.Builder cannedAcl(CannedAccessControlList cannedAcl)
cannedAcl
- The canned ACL to associate with this objectpublic UploadOptions.Builder transferListener(TransferListener listener)
listener
- The listener to attach to transfer observerpublic UploadOptions build()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.