public final class ArchiveTransferManagerBuilder extends Object
ArchiveTransferManager
. Use of the builder is preferred over
constructors for ArchiveTransferManager
.Constructor and Description |
---|
ArchiveTransferManagerBuilder() |
Modifier and Type | Method and Description |
---|---|
ArchiveTransferManager |
build() |
AmazonGlacier |
getGlacierClient() |
AmazonSNS |
getSnsClient() |
AmazonSQS |
getSqsClient() |
void |
setGlacierClient(AmazonGlacier glacierClient)
Set the client for uploading and downloading data to and from Amazon Glacier.
|
void |
setSnsClient(AmazonSNS snsClient)
Set the client for working with Amazon SNS when polling for the archive retrieval job status.
|
void |
setSqsClient(AmazonSQS sqsClient)
Set the client for working with Amazon SQS when polling for the archive retrieval job status.
|
ArchiveTransferManagerBuilder |
withGlacierClient(AmazonGlacier glacierClient)
Set the client for uploading and downloading data to and from Amazon Glacier.
|
ArchiveTransferManagerBuilder |
withSnsClient(AmazonSNS snsClient)
Set the client for working with Amazon SNS when polling for the archive retrieval job status.
|
ArchiveTransferManagerBuilder |
withSqsClient(AmazonSQS sqsClient)
Set the SQS client for working with Amazon SQS when polling for the archive retrieval job
status.
|
public AmazonGlacier getGlacierClient()
public void setGlacierClient(AmazonGlacier glacierClient)
glacierClient
- The Amazon Glacier client.public ArchiveTransferManagerBuilder withGlacierClient(AmazonGlacier glacierClient)
glacierClient
- The Amazon Glacier client.public AmazonSQS getSqsClient()
public void setSqsClient(AmazonSQS sqsClient)
sqsClient
- The SQS client.public ArchiveTransferManagerBuilder withSqsClient(AmazonSQS sqsClient)
sqsClient
- The SQS client.public AmazonSNS getSnsClient()
public void setSnsClient(AmazonSNS snsClient)
snsClient
- The SNS client.public ArchiveTransferManagerBuilder withSnsClient(AmazonSNS snsClient)
snsClient
- The SNS client.public ArchiveTransferManager build()
ArchiveTransferManager
using the configured options.