Example usage for Java com.amazonaws.services.s3.model PutObjectRequest fields, constructors, methods, implement or subclass
The text is from its open source code.
PutObjectRequest(String bucketName, String key, File file) Constructs a new PutObjectRequest object to upload a file to the specified bucket and key. | |
PutObjectRequest(String bucketName, String key, String redirectLocation) Constructs a new PutObjectRequest object to perform a redirect for the specified bucket and key. | |
PutObjectRequest(String bucketName, String key, InputStream input, ObjectMetadata metadata) Constructs a new PutObjectRequest object to upload a stream of data to the specified bucket and key. |
AccessControlList | getAccessControlList() Returns the optional access control list for the new object. |
String | getBucketName() Gets the name of the existing bucket where this request will upload a new object to. |
CannedAccessControlList | getCannedAcl() Gets the optional pre-configured access control policy to use for the new object. |
File | getFile() Gets the path and name of the file containing the data to be uploaded to Amazon S3. |
ProgressListener | getGeneralProgressListener() Returns the optional progress listener for receiving updates about the progress of the request. |
InputStream | getInputStream() Gets the input stream containing the data to be uploaded to Amazon S3. |
String | getKey() Gets the key under which to store the new object. |
ObjectMetadata | getMetadata() Gets the optional metadata instructing Amazon S3 how to handle the uploaded data (e.g. |
String | getRedirectLocation() Gets the optional redirect location for the new object. |
RequestClientOptions | getRequestClientOptions() Gets the options stored with this request object. |
String | getStorageClass() Gets the optional Amazon S3 storage class to use when storing the new object. |
ObjectTagging | getTagging() |
String | putCustomRequestHeader(String name, String value) Put a new custom header to the map of custom header names to custom header values, and return the previous value if the header has already been set in this map. |
void | setAccessControlList(AccessControlList accessControlList) Sets the optional access control list for the new object. |
void | setBucketName(String bucketName) Sets the name of an existing bucket where this request will upload a new object to. |
void | setCannedAcl(CannedAccessControlList cannedAcl) Sets the optional pre-configured access control policy to use for the new object. |
void | setGeneralProgressListener(ProgressListener progressListener) Sets the optional progress listener for receiving updates about the progress of the request. |
void | setKey(String key) Sets the key under which to store the new object. |
void | setMetadata(ObjectMetadata metadata) Sets the optional metadata instructing Amazon S3 how to handle the uploaded data (e.g. |
void | setProgressListener(com.amazonaws.services.s3.model.ProgressListener progressListener) Sets the optional progress listener for receiving updates for object upload status. |
void | setSSEAwsKeyManagementParams(SSEAwsKeyManagementParams params) Sets the AWS Key Management System parameters used to encrypt the object on server side. |
void | setSSECustomerKey(SSECustomerKey sseKey) Sets the optional customer-provided server-side encryption key to use to encrypt the uploaded object. |
void | setStorageClass(String storageClass) Sets the optional Amazon S3 storage class to use when storing the new object. |
void | setTagging(ObjectTagging tagging) |
PutObjectRequest | withAccessControlList(AccessControlList accessControlList) |
PutObjectRequest | withCannedAcl(CannedAccessControlList cannedAcl) |
PutObjectRequest | withMetadata(ObjectMetadata metadata) |
PutObjectRequest | withSSEAwsKeyManagementParams(SSEAwsKeyManagementParams sseAwsKeyManagementParams) |
PutObjectRequest | withSSECustomerKey(SSECustomerKey sseKey) |
PutObjectRequest | withStorageClass(String storageClass) |
PutObjectRequest | withStorageClass(StorageClass storageClass) |