@NotThreadSafe public class PayloadStorageConfiguration extends Object
| Constructor and Description |
|---|
PayloadStorageConfiguration() |
PayloadStorageConfiguration(PayloadStorageConfiguration other) |
| Modifier and Type | Method and Description |
|---|---|
com.amazonaws.services.s3.AmazonS3 |
getAmazonS3Client()
Gets the Amazon S3 client which is being used for storing payloads.
|
int |
getPayloadSizeThreshold()
Gets the payload size threshold for storing payloads in Amazon S3.
|
String |
getS3BucketName()
Gets the name of the S3 bucket which is being used for storing payload.
|
com.amazonaws.services.s3.model.SSEAwsKeyManagementParams |
getSSEAwsKeyManagementParams()
Gets the S3 SSE-KMS encryption params of S3 objects under configured S3 bucket name.
|
boolean |
isAlwaysThroughS3()
Checks whether or not all payloads regardless of their size are being stored in Amazon S3.
|
boolean |
isPayloadSupportEnabled()
Check if the support for payloads if enabled.
|
void |
setAlwaysThroughS3(boolean alwaysThroughS3)
Sets whether or not all payloads regardless of their size should be stored in Amazon S3.
|
void |
setPayloadSizeThreshold(int payloadSizeThreshold)
Sets the payload size threshold for storing payloads in Amazon S3.
|
void |
setPayloadSupportDisabled()
Disables support for payloads.
|
void |
setPayloadSupportEnabled(com.amazonaws.services.s3.AmazonS3 s3,
String s3BucketName)
Enables support for payloads .
|
void |
setSSEAwsKeyManagementParams(com.amazonaws.services.s3.model.SSEAwsKeyManagementParams sseAwsKeyManagementParams)
Sets the the S3 SSE-KMS encryption params of S3 objects under configured S3 bucket name.
|
PayloadStorageConfiguration |
withAlwaysThroughS3(boolean alwaysThroughS3)
Sets whether or not all payloads regardless of their size should be stored in Amazon S3.
|
PayloadStorageConfiguration |
withPayloadSizeThreshold(int payloadSizeThreshold)
Sets the payload size threshold for storing payloads in Amazon S3.
|
PayloadStorageConfiguration |
withPayloadSupportDisabled()
Disables support for payload.
|
PayloadStorageConfiguration |
withPayloadSupportEnabled(com.amazonaws.services.s3.AmazonS3 s3,
String s3BucketName)
Enables support for payload.
|
PayloadStorageConfiguration |
withSSEAwsKeyManagementParams(com.amazonaws.services.s3.model.SSEAwsKeyManagementParams sseAwsKeyManagementParams)
Sets the the S3 SSE-KMS encryption params of S3 objects under configured S3 bucket name.
|
public PayloadStorageConfiguration()
public PayloadStorageConfiguration(PayloadStorageConfiguration other)
public void setPayloadSupportEnabled(com.amazonaws.services.s3.AmazonS3 s3,
String s3BucketName)
s3 - Amazon S3 client which is going to be used for storing payload.s3BucketName - Name of the bucket which is going to be used for storing payload.
The bucket must be already created and configured in s3.public PayloadStorageConfiguration withPayloadSupportEnabled(com.amazonaws.services.s3.AmazonS3 s3, String s3BucketName)
s3 - Amazon S3 client which is going to be used for storing payloads.s3BucketName - Name of the bucket which is going to be used for storing payloads.
The bucket must be already created and configured in s3.public void setPayloadSupportDisabled()
public PayloadStorageConfiguration withPayloadSupportDisabled()
public boolean isPayloadSupportEnabled()
public com.amazonaws.services.s3.AmazonS3 getAmazonS3Client()
public String getS3BucketName()
public com.amazonaws.services.s3.model.SSEAwsKeyManagementParams getSSEAwsKeyManagementParams()
public void setSSEAwsKeyManagementParams(com.amazonaws.services.s3.model.SSEAwsKeyManagementParams sseAwsKeyManagementParams)
sseAwsKeyManagementParams - The S3 SSE-KMS params used for encryption.public PayloadStorageConfiguration withSSEAwsKeyManagementParams(com.amazonaws.services.s3.model.SSEAwsKeyManagementParams sseAwsKeyManagementParams)
sseAwsKeyManagementParams - The S3 SSE-KMS params used for encryption.public PayloadStorageConfiguration withPayloadSizeThreshold(int payloadSizeThreshold)
payloadSizeThreshold - Payload size threshold to be used for storing in Amazon S3.
Default: 256KB.public int getPayloadSizeThreshold()
public void setPayloadSizeThreshold(int payloadSizeThreshold)
payloadSizeThreshold - Payload size threshold to be used for storing in Amazon S3.
Default: 256KB.public PayloadStorageConfiguration withAlwaysThroughS3(boolean alwaysThroughS3)
alwaysThroughS3 - Whether or not all payloads regardless of their size
should be stored in Amazon S3. Default: falsepublic boolean isAlwaysThroughS3()
public void setAlwaysThroughS3(boolean alwaysThroughS3)
alwaysThroughS3 - Whether or not all payloads regardless of their size
should be stored in Amazon S3. Default: falseCopyright © 2020. All rights reserved.