public static interface GetObjectRequest.Builder extends S3Request.Builder, SdkPojo, CopyableBuilder<GetObjectRequest.Builder,GetObjectRequest>
Modifier and Type | Method and Description |
---|---|
GetObjectRequest.Builder |
bucket(String bucket)
The bucket name containing the object.
|
GetObjectRequest.Builder |
ifMatch(String ifMatch)
Return the object only if its entity tag (ETag) is the same as the one specified, otherwise return a 412
(precondition failed).
|
GetObjectRequest.Builder |
ifModifiedSince(Instant ifModifiedSince)
Return the object only if it has been modified since the specified time, otherwise return a 304 (not
modified).
|
GetObjectRequest.Builder |
ifNoneMatch(String ifNoneMatch)
Return the object only if its entity tag (ETag) is different from the one specified, otherwise return a 304
(not modified).
|
GetObjectRequest.Builder |
ifUnmodifiedSince(Instant ifUnmodifiedSince)
Return the object only if it has not been modified since the specified time, otherwise return a 412
(precondition failed).
|
GetObjectRequest.Builder |
key(String key)
Key of the object to get.
|
GetObjectRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
GetObjectRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
GetObjectRequest.Builder |
partNumber(Integer partNumber)
Part number of the object being read.
|
GetObjectRequest.Builder |
range(String range)
Downloads the specified range bytes of an object.
|
GetObjectRequest.Builder |
requestPayer(RequestPayer requestPayer)
Sets the value of the RequestPayer property for this object.
|
GetObjectRequest.Builder |
requestPayer(String requestPayer)
Sets the value of the RequestPayer property for this object.
|
GetObjectRequest.Builder |
responseCacheControl(String responseCacheControl)
Sets the Cache-Control header of the response.
|
GetObjectRequest.Builder |
responseContentDisposition(String responseContentDisposition)
Sets the Content-Disposition header of the response
|
GetObjectRequest.Builder |
responseContentEncoding(String responseContentEncoding)
Sets the Content-Encoding header of the response.
|
GetObjectRequest.Builder |
responseContentLanguage(String responseContentLanguage)
Sets the Content-Language header of the response.
|
GetObjectRequest.Builder |
responseContentType(String responseContentType)
Sets the Content-Type header of the response.
|
GetObjectRequest.Builder |
responseExpires(Instant responseExpires)
Sets the Expires header of the response.
|
GetObjectRequest.Builder |
sseCustomerAlgorithm(String sseCustomerAlgorithm)
Specifies the algorithm to use to when encrypting the object (e.g., AES256).
|
GetObjectRequest.Builder |
sseCustomerKey(String sseCustomerKey)
Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data.
|
GetObjectRequest.Builder |
sseCustomerKeyMD5(String sseCustomerKeyMD5)
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
|
GetObjectRequest.Builder |
versionId(String versionId)
VersionId used to reference a specific version of the object.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
GetObjectRequest.Builder bucket(String bucket)
The bucket name containing the object.
bucket
- The bucket name containing the object.GetObjectRequest.Builder ifMatch(String ifMatch)
Return the object only if its entity tag (ETag) is the same as the one specified, otherwise return a 412 (precondition failed).
ifMatch
- Return the object only if its entity tag (ETag) is the same as the one specified, otherwise return a
412 (precondition failed).GetObjectRequest.Builder ifModifiedSince(Instant ifModifiedSince)
Return the object only if it has been modified since the specified time, otherwise return a 304 (not modified).
ifModifiedSince
- Return the object only if it has been modified since the specified time, otherwise return a 304 (not
modified).GetObjectRequest.Builder ifNoneMatch(String ifNoneMatch)
Return the object only if its entity tag (ETag) is different from the one specified, otherwise return a 304 (not modified).
ifNoneMatch
- Return the object only if its entity tag (ETag) is different from the one specified, otherwise return
a 304 (not modified).GetObjectRequest.Builder ifUnmodifiedSince(Instant ifUnmodifiedSince)
Return the object only if it has not been modified since the specified time, otherwise return a 412 (precondition failed).
ifUnmodifiedSince
- Return the object only if it has not been modified since the specified time, otherwise return a 412
(precondition failed).GetObjectRequest.Builder key(String key)
Key of the object to get.
key
- Key of the object to get.GetObjectRequest.Builder range(String range)
Downloads the specified range bytes of an object. For more information about the HTTP Range header, go to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.
range
- Downloads the specified range bytes of an object. For more information about the HTTP Range header, go
to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.GetObjectRequest.Builder responseCacheControl(String responseCacheControl)
Sets the Cache-Control header of the response.
responseCacheControl
- Sets the Cache-Control header of the response.GetObjectRequest.Builder responseContentDisposition(String responseContentDisposition)
Sets the Content-Disposition header of the response
responseContentDisposition
- Sets the Content-Disposition header of the responseGetObjectRequest.Builder responseContentEncoding(String responseContentEncoding)
Sets the Content-Encoding header of the response.
responseContentEncoding
- Sets the Content-Encoding header of the response.GetObjectRequest.Builder responseContentLanguage(String responseContentLanguage)
Sets the Content-Language header of the response.
responseContentLanguage
- Sets the Content-Language header of the response.GetObjectRequest.Builder responseContentType(String responseContentType)
Sets the Content-Type header of the response.
responseContentType
- Sets the Content-Type header of the response.GetObjectRequest.Builder responseExpires(Instant responseExpires)
Sets the Expires header of the response.
responseExpires
- Sets the Expires header of the response.GetObjectRequest.Builder versionId(String versionId)
VersionId used to reference a specific version of the object.
versionId
- VersionId used to reference a specific version of the object.GetObjectRequest.Builder sseCustomerAlgorithm(String sseCustomerAlgorithm)
Specifies the algorithm to use to when encrypting the object (e.g., AES256).
sseCustomerAlgorithm
- Specifies the algorithm to use to when encrypting the object (e.g., AES256).GetObjectRequest.Builder sseCustomerKey(String 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.
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.GetObjectRequest.Builder sseCustomerKeyMD5(String 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.
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.GetObjectRequest.Builder requestPayer(String requestPayer)
requestPayer
- The new value for the RequestPayer property for this object.RequestPayer
,
RequestPayer
GetObjectRequest.Builder requestPayer(RequestPayer requestPayer)
requestPayer
- The new value for the RequestPayer property for this object.RequestPayer
,
RequestPayer
GetObjectRequest.Builder partNumber(Integer partNumber)
Part number of the object being read. This is a positive integer between 1 and 10,000. Effectively performs a 'ranged' GET request for the part specified. Useful for downloading just a part of an object.
partNumber
- Part number of the object being read. This is a positive integer between 1 and 10,000. Effectively
performs a 'ranged' GET request for the part specified. Useful for downloading just a part of an
object.GetObjectRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
GetObjectRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2019. All rights reserved.