Package software.amazon.awssdk.crt.s3
Class S3MetaRequestOptions
- java.lang.Object
-
- software.amazon.awssdk.crt.s3.S3MetaRequestOptions
-
public class S3MetaRequestOptions extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
S3MetaRequestOptions.MetaRequestType
A Meta Request represents a group of generated requests that are being done on behalf of the original request.
-
Constructor Summary
Constructors Constructor Description S3MetaRequestOptions()
-
Method Summary
-
-
-
Method Detail
-
withMetaRequestType
public S3MetaRequestOptions withMetaRequestType(S3MetaRequestOptions.MetaRequestType metaRequestType)
-
getMetaRequestType
public S3MetaRequestOptions.MetaRequestType getMetaRequestType()
-
withChecksumConfig
public S3MetaRequestOptions withChecksumConfig(ChecksumConfig checksumConfig)
The config related to checksum used for the meta request. SeeChecksumConfig
for details.- Parameters:
checksumConfig
- The checksum config used for the meta request- Returns:
- this
-
getChecksumConfig
public ChecksumConfig getChecksumConfig()
-
withChecksumAlgorithm
public S3MetaRequestOptions withChecksumAlgorithm(ChecksumAlgorithm checksumAlgorithm)
Deprecated.Please usewithChecksumConfig(ChecksumConfig)
instead. Specify the checksum algorithm to use use for put requests, if unset defaults to NONE and no checksum will be calculated. The location of the checksum will be default to trailer.- Parameters:
checksumAlgorithm
- the checksum algorithm to use use for put requests- Returns:
- this
-
getChecksumAlgorithm
public ChecksumAlgorithm getChecksumAlgorithm()
Deprecated.- Returns:
- the checksum algorithm to use use for put requests
-
withValidateChecksum
public S3MetaRequestOptions withValidateChecksum(boolean validateChecksum)
Deprecated.Please usewithChecksumConfig(ChecksumConfig)
instead. validateChecksum defaults to false, if set to true, it will cause the client to compare a streamed calculation of the objects checksum to a remotely stored checksum assigned to the object if one exists. The checksumValidated field passed in parameter of the finished callback will inform the user if validation ocurred. A mismatch will result in a AWS_ERROR_S3_RESPONSE_CHECKSUM_MISMATCH error- Parameters:
validateChecksum
- Validate the checksum of response if server provides.- Returns:
- this
-
getValidateChecksum
public boolean getValidateChecksum()
Deprecated.- Returns:
- Validate the checksum of response if server provides.
-
withHttpRequest
public S3MetaRequestOptions withHttpRequest(HttpRequest httpRequest)
Set the initial HTTP request. Note: When uploading a file, you can get better performance by settingwithRequestFilePath(java.nio.file.Path)
instead of setting a body stream on the HttpRequest. (If both are set, the file path is used and body stream is ignored)- Parameters:
httpRequest
- initial HTTP request message.- Returns:
- this
-
getHttpRequest
public HttpRequest getHttpRequest()
-
withRequestFilePath
public S3MetaRequestOptions withRequestFilePath(java.nio.file.Path requestFilePath)
If set, this file is sent as the request's body, and thewithHttpRequest(software.amazon.awssdk.crt.http.HttpRequest)
body stream is ignored. This can give better upload performance than sending data using the body stream.- Parameters:
requestFilePath
- path to file to send as the request's body.- Returns:
- this
-
getRequestFilePath
public java.nio.file.Path getRequestFilePath()
-
withResponseHandler
public S3MetaRequestOptions withResponseHandler(S3MetaRequestResponseHandler responseHandler)
-
getResponseHandler
public S3MetaRequestResponseHandler getResponseHandler()
-
withCredentialsProvider
public S3MetaRequestOptions withCredentialsProvider(CredentialsProvider credentialsProvider)
Deprecated.Please usewithSigningConfig(AwsSigningConfig)
instead. The credentials provider will be used to create the signing Config to override the client level config. The client config will be used.- Parameters:
credentialsProvider
- provide credentials for signing.- Returns:
- this
-
getCredentialsProvider
public CredentialsProvider getCredentialsProvider()
-
withSigningConfig
public S3MetaRequestOptions withSigningConfig(AwsSigningConfig signingConfig)
The configuration related to signing used by S3 client. It will override the client level configuration if provided. `AwsSigningConfig.getDefaultS3SigningConfig(region, credentialsProvider);` can be used as helper to create the default configuration to be used for S3. If not set, the client configuration will be used. If set: - All fields are optional. The credentials will be resolve from client if not set. - S3 Client will derive the right config for signing process based on this. Notes: - For SIGV4_S3EXPRESS, S3 client will use the credentials in the config to derive the S3Express credentials that are used in the signing process. - Client may make modifications to signing config before passing it on to signer.- Parameters:
signingConfig
- configuration related to signing via an AWS signing process.- Returns:
- this
-
getSigningConfig
public AwsSigningConfig getSigningConfig()
-
withEndpoint
public S3MetaRequestOptions withEndpoint(java.net.URI endpoint)
-
getEndpoint
public java.net.URI getEndpoint()
-
withResumeToken
public S3MetaRequestOptions withResumeToken(ResumeToken resumeToken)
-
getResumeToken
public ResumeToken getResumeToken()
-
-