public static final class S3DownloadOptions.Builder
extends java.lang.Object
S3DownloadOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
S3DownloadOptions.Builder |
bucket(IBucket bucket)
Sets the value of
S3DownloadOptions.getBucket() |
S3DownloadOptions.Builder |
bucketKey(java.lang.String bucketKey)
Sets the value of
S3DownloadOptions.getBucketKey() |
S3DownloadOptions |
build()
Builds the configured instance.
|
S3DownloadOptions.Builder |
localFile(java.lang.String localFile)
Sets the value of
S3DownloadOptions.getLocalFile() |
S3DownloadOptions.Builder |
region(java.lang.String region)
Sets the value of
S3DownloadOptions.getRegion() |
public S3DownloadOptions.Builder bucket(IBucket bucket)
S3DownloadOptions.getBucket()
bucket
- Name of the S3 bucket to download from. This parameter is required.this
public S3DownloadOptions.Builder bucketKey(java.lang.String bucketKey)
S3DownloadOptions.getBucketKey()
bucketKey
- The key of the file to download. This parameter is required.this
public S3DownloadOptions.Builder localFile(java.lang.String localFile)
S3DownloadOptions.getLocalFile()
localFile
- The name of the local file.this
public S3DownloadOptions.Builder region(java.lang.String region)
S3DownloadOptions.getRegion()
region
- The region of the S3 Bucket (needed for access via VPC Gateway).this
public S3DownloadOptions build()
S3DownloadOptions
java.lang.NullPointerException
- if any required attribute was not provided