public static interface PutObjectRequest.Builder extends S3Request.Builder, CopyableBuilder<PutObjectRequest.Builder,PutObjectRequest>
Modifier and Type | Method and Description |
---|---|
PutObjectRequest.Builder |
acl(ObjectCannedACL acl)
The canned ACL to apply to the object.
|
PutObjectRequest.Builder |
acl(String acl)
The canned ACL to apply to the object.
|
PutObjectRequest.Builder |
bucket(String bucket)
Name of the bucket to which the PUT operation was initiated.
|
PutObjectRequest.Builder |
cacheControl(String cacheControl)
Specifies caching behavior along the request/reply chain.
|
PutObjectRequest.Builder |
contentDisposition(String contentDisposition)
Specifies presentational information for the object.
|
PutObjectRequest.Builder |
contentEncoding(String contentEncoding)
Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be
applied to obtain the media-type referenced by the Content-Type header field.
|
PutObjectRequest.Builder |
contentLanguage(String contentLanguage)
The language the content is in.
|
PutObjectRequest.Builder |
contentLength(Long contentLength)
Size of the body in bytes.
|
PutObjectRequest.Builder |
contentMD5(String contentMD5)
The base64-encoded 128-bit MD5 digest of the part data.
|
PutObjectRequest.Builder |
contentType(String contentType)
A standard MIME type describing the format of the object data.
|
PutObjectRequest.Builder |
expires(Instant expires)
The date and time at which the object is no longer cacheable.
|
PutObjectRequest.Builder |
grantFullControl(String grantFullControl)
Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
|
PutObjectRequest.Builder |
grantRead(String grantRead)
Allows grantee to read the object data and its metadata.
|
PutObjectRequest.Builder |
grantReadACP(String grantReadACP)
Allows grantee to read the object ACL.
|
PutObjectRequest.Builder |
grantWriteACP(String grantWriteACP)
Allows grantee to write the ACL for the applicable object.
|
PutObjectRequest.Builder |
key(String key)
Object key for which the PUT operation was initiated.
|
PutObjectRequest.Builder |
metadata(Map<String,String> metadata)
A map of metadata to store with the object in S3.
|
PutObjectRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
PutObjectRequest.Builder |
requestPayer(RequestPayer requestPayer)
Sets the value of the RequestPayer property for this object.
|
PutObjectRequest.Builder |
requestPayer(String requestPayer)
Sets the value of the RequestPayer property for this object.
|
PutObjectRequest.Builder |
serverSideEncryption(ServerSideEncryption serverSideEncryption)
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
|
PutObjectRequest.Builder |
serverSideEncryption(String serverSideEncryption)
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
|
PutObjectRequest.Builder |
sseCustomerAlgorithm(String sseCustomerAlgorithm)
Specifies the algorithm to use to when encrypting the object (e.g., AES256).
|
PutObjectRequest.Builder |
sseCustomerKey(String sseCustomerKey)
Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data.
|
PutObjectRequest.Builder |
sseCustomerKeyMD5(String sseCustomerKeyMD5)
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
|
PutObjectRequest.Builder |
ssekmsKeyId(String ssekmsKeyId)
Specifies the AWS KMS key ID to use for object encryption.
|
PutObjectRequest.Builder |
storageClass(StorageClass storageClass)
The type of storage to use for the object.
|
PutObjectRequest.Builder |
storageClass(String storageClass)
The type of storage to use for the object.
|
PutObjectRequest.Builder |
tagging(String tagging)
The tag-set for the object.
|
PutObjectRequest.Builder |
tagging(Tagging tagging) |
PutObjectRequest.Builder |
websiteRedirectLocation(String websiteRedirectLocation)
If the bucket is configured as a website, redirects requests for this object to another object in the same
bucket or to an external URL.
|
build
requestOverrideConfig, requestOverrideConfig
copy
apply, build
PutObjectRequest.Builder acl(String acl)
acl
- The canned ACL to apply to the object.ObjectCannedACL
,
ObjectCannedACL
PutObjectRequest.Builder acl(ObjectCannedACL acl)
acl
- The canned ACL to apply to the object.ObjectCannedACL
,
ObjectCannedACL
PutObjectRequest.Builder bucket(String bucket)
bucket
- Name of the bucket to which the PUT operation was initiated.PutObjectRequest.Builder cacheControl(String cacheControl)
cacheControl
- Specifies caching behavior along the request/reply chain.PutObjectRequest.Builder contentDisposition(String contentDisposition)
contentDisposition
- Specifies presentational information for the object.PutObjectRequest.Builder contentEncoding(String contentEncoding)
contentEncoding
- Specifies what content encodings have been applied to the object and thus what decoding mechanisms
must be applied to obtain the media-type referenced by the Content-Type header field.PutObjectRequest.Builder contentLanguage(String contentLanguage)
contentLanguage
- The language the content is in.PutObjectRequest.Builder contentLength(Long contentLength)
contentLength
- Size of the body in bytes. This parameter is useful when the size of the body cannot be determined
automatically.PutObjectRequest.Builder contentMD5(String contentMD5)
contentMD5
- The base64-encoded 128-bit MD5 digest of the part data.PutObjectRequest.Builder contentType(String contentType)
contentType
- A standard MIME type describing the format of the object data.PutObjectRequest.Builder expires(Instant expires)
expires
- The date and time at which the object is no longer cacheable.PutObjectRequest.Builder grantFullControl(String grantFullControl)
grantFullControl
- Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.PutObjectRequest.Builder grantRead(String grantRead)
grantRead
- Allows grantee to read the object data and its metadata.PutObjectRequest.Builder grantReadACP(String grantReadACP)
grantReadACP
- Allows grantee to read the object ACL.PutObjectRequest.Builder grantWriteACP(String grantWriteACP)
grantWriteACP
- Allows grantee to write the ACL for the applicable object.PutObjectRequest.Builder key(String key)
key
- Object key for which the PUT operation was initiated.PutObjectRequest.Builder metadata(Map<String,String> metadata)
metadata
- A map of metadata to store with the object in S3.PutObjectRequest.Builder serverSideEncryption(String serverSideEncryption)
serverSideEncryption
- The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).ServerSideEncryption
,
ServerSideEncryption
PutObjectRequest.Builder serverSideEncryption(ServerSideEncryption serverSideEncryption)
serverSideEncryption
- The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).ServerSideEncryption
,
ServerSideEncryption
PutObjectRequest.Builder storageClass(String storageClass)
storageClass
- The type of storage to use for the object. Defaults to 'STANDARD'.StorageClass
,
StorageClass
PutObjectRequest.Builder storageClass(StorageClass storageClass)
storageClass
- The type of storage to use for the object. Defaults to 'STANDARD'.StorageClass
,
StorageClass
PutObjectRequest.Builder websiteRedirectLocation(String websiteRedirectLocation)
websiteRedirectLocation
- If the bucket is configured as a website, redirects requests for this object to another object in the
same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.PutObjectRequest.Builder sseCustomerAlgorithm(String sseCustomerAlgorithm)
sseCustomerAlgorithm
- Specifies the algorithm to use to when encrypting the object (e.g., AES256).PutObjectRequest.Builder sseCustomerKey(String sseCustomerKey)
sseCustomerKey
- Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is
used to store the object and then it is discarded; Amazon does not store the encryption key. The key
must be appropriate for use with the algorithm specified in the
x-amz-server-side-encryption-customer-algorithm header.PutObjectRequest.Builder sseCustomerKeyMD5(String sseCustomerKeyMD5)
sseCustomerKeyMD5
- Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this
header for a message integrity check to ensure the encryption key was transmitted without error.PutObjectRequest.Builder ssekmsKeyId(String ssekmsKeyId)
ssekmsKeyId
- Specifies the AWS KMS key ID to use for object encryption. All GET and PUT requests for an object
protected by AWS KMS will fail if not made via SSL or using SigV4. Documentation on configuring any of
the officially supported AWS SDKs and CLI can be found at
http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-versionPutObjectRequest.Builder requestPayer(String requestPayer)
requestPayer
- The new value for the RequestPayer property for this object.RequestPayer
,
RequestPayer
PutObjectRequest.Builder requestPayer(RequestPayer requestPayer)
requestPayer
- The new value for the RequestPayer property for this object.RequestPayer
,
RequestPayer
PutObjectRequest.Builder tagging(String tagging)
tagging
- The tag-set for the object. The tag-set must be encoded as URL Query parametersPutObjectRequest.Builder tagging(Tagging tagging)
PutObjectRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.