Package | Description |
---|---|
com.amazonaws.services.s3 |
Synchronous client for accessing Amazon S3.
|
com.amazonaws.services.s3.internal.crypto | |
com.amazonaws.services.s3.model |
Classes modeling the various types represented by Amazon S3.
|
com.amazonaws.services.s3.transfer |
Transfer management.
|
com.amazonaws.services.s3.transfer.internal |
Modifier and Type | Method and Description |
---|---|
PutObjectResult |
AmazonS3EncryptionClient.putObject(PutObjectRequest putObjectRequest) |
PutObjectResult |
AmazonS3Client.putObject(PutObjectRequest putObjectRequest) |
PutObjectResult |
AmazonS3.putObject(PutObjectRequest putObjectRequest)
Uploads a new object to the specified Amazon S3 bucket.
|
Modifier and Type | Method and Description |
---|---|
static PutObjectRequest |
EncryptionUtils.createInstructionPutRequest(PutObjectRequest request,
EncryptionInstruction instruction)
Creates a put request to store the specified instruction object in S3.
|
static PutObjectRequest |
EncryptionUtils.createInstructionPutRequest(String bucketName,
String key,
EncryptionInstruction instruction) |
static PutObjectRequest |
EncryptionUtils.encryptRequestUsingInstruction(PutObjectRequest request,
EncryptionInstruction instruction)
Returns an updated request where the input stream contains the encrypted object contents.
|
static PutObjectRequest |
EncryptionUtils.encryptRequestUsingMetadata(PutObjectRequest request,
EncryptionMaterials materials,
Provider cryptoProvider)
Deprecated.
use generateInstruction, encryptRequestUsingInstruction, and updateMetadataWithEncryptionInfo instead
|
Modifier and Type | Method and Description |
---|---|
static PutObjectRequest |
EncryptionUtils.createInstructionPutRequest(PutObjectRequest request,
EncryptionInstruction instruction)
Creates a put request to store the specified instruction object in S3.
|
static PutObjectRequest |
EncryptionUtils.encryptRequestUsingInstruction(PutObjectRequest request,
EncryptionInstruction instruction)
Returns an updated request where the input stream contains the encrypted object contents.
|
static PutObjectRequest |
EncryptionUtils.encryptRequestUsingMetadata(PutObjectRequest request,
EncryptionMaterials materials,
Provider cryptoProvider)
Deprecated.
use generateInstruction, encryptRequestUsingInstruction, and updateMetadataWithEncryptionInfo instead
|
static void |
EncryptionUtils.updateMetadataWithEncryptionInstruction(PutObjectRequest request,
EncryptionInstruction instruction)
Update the request's ObjectMetadata with the necessary information for decrypting the object
|
Modifier and Type | Method and Description |
---|---|
PutObjectRequest |
PutObjectRequest.clone()
Returns a clone of this object so that the metadata can be further
modified without affecting the original.
|
PutObjectRequest |
PutObjectRequest.withAccessControlList(AccessControlList accessControlList)
Sets the optional access control list for the new object.
|
PutObjectRequest |
PutObjectRequest.withBucketName(String bucketName)
Sets the name of the bucket where this request will upload a new
object to.
|
PutObjectRequest |
PutObjectRequest.withCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional pre-configured access control policy to use for the new
object.
|
PutObjectRequest |
PutObjectRequest.withFile(File file)
Sets the file containing the data to be uploaded to Amazon S3.
|
PutObjectRequest |
PutObjectRequest.withGeneralProgressListener(ProgressListener generalProgressListener)
Sets the optional progress listener for receiving updates about object
upload status, and returns this updated object so that additional method
calls can be chained together.
|
PutObjectRequest |
PutObjectRequest.withInputStream(InputStream inputStream)
Sets the input stream containing the data to be uploaded to Amazon S3.
|
PutObjectRequest |
PutObjectRequest.withKey(String key)
Sets the key under which to store the new object.
|
PutObjectRequest |
PutObjectRequest.withMetadata(ObjectMetadata metadata)
Sets the optional metadata instructing Amazon S3 how to handle the
uploaded data (e.g.
|
PutObjectRequest |
PutObjectRequest.withProgressListener(ProgressListener progressListener)
Deprecated.
use
withGeneralProgressListener(ProgressListener) instead. |
PutObjectRequest |
PutObjectRequest.withRedirectLocation(String redirectLocation)
Sets the optional redirect location for the new object.Returns this
PutObjectRequest , enabling additional method calls to be chained
together. |
PutObjectRequest |
PutObjectRequest.withStorageClass(StorageClass storageClass)
Sets the optional Amazon S3 storage class to use when storing the new
object.
|
PutObjectRequest |
PutObjectRequest.withStorageClass(String storageClass)
Sets the optional Amazon S3 storage class to use when storing the new
object.
|
Modifier and Type | Method and Description |
---|---|
Upload |
TransferManager.upload(PutObjectRequest putObjectRequest)
Schedules a new transfer to upload data to Amazon S3.
|
Modifier and Type | Method and Description |
---|---|
static long |
TransferManagerUtils.calculateOptimalPartSize(PutObjectRequest putObjectRequest,
TransferManagerConfiguration configuration)
Returns the optimal part size, in bytes, for each individual part upload
in a multipart upload.
|
static long |
TransferManagerUtils.getContentLength(PutObjectRequest putObjectRequest)
Returns the size of the data in this request, otherwise -1 if the content
length is unknown.
|
static File |
TransferManagerUtils.getRequestFile(PutObjectRequest putObjectRequest)
Convenience method for getting the file specified in a request.
|
static boolean |
TransferManagerUtils.isUploadParallelizable(PutObjectRequest putObjectRequest,
boolean isUsingEncryption)
Returns true if the specified upload request can use parallel part
uploads for increased performance.
|
static boolean |
TransferManagerUtils.shouldUseMultipartUpload(PutObjectRequest putObjectRequest,
TransferManagerConfiguration configuration)
Returns true if the the specified request should be processed as a
multipart upload (instead of a single part upload).
|
Constructor and Description |
---|
UploadCallable(TransferManager transferManager,
ExecutorService threadPool,
UploadImpl upload,
PutObjectRequest putObjectRequest,
ProgressListenerChain progressListenerChain) |
UploadCallable(TransferManager transferManager,
ExecutorService threadPool,
UploadImpl upload,
PutObjectRequest putObjectRequest,
ProgressListenerChain progressListenerChain)
|
UploadMonitor(TransferManager manager,
UploadImpl transfer,
ExecutorService threadPool,
UploadCallable multipartUploadCallable,
PutObjectRequest putObjectRequest,
ProgressListenerChain progressListenerChain,
ScheduledExecutorService timedThreadPool)
Constructs a new upload watcher, which immediately submits itself to the
thread pool.
|
UploadPartRequestFactory(PutObjectRequest putObjectRequest,
String uploadId,
long optimalPartSize) |
Copyright © 2016. All rights reserved.