Class CfnResourceDataSync.S3DestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ssm.CfnResourceDataSync.S3DestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceDataSync.S3DestinationProperty>
- Enclosing interface:
- CfnResourceDataSync.S3DestinationProperty
@Stability(Stable)
public static final class CfnResourceDataSync.S3DestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceDataSync.S3DestinationProperty>
A builder for
CfnResourceDataSync.S3DestinationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketName
(String bucketName) Sets the value ofCfnResourceDataSync.S3DestinationProperty.getBucketName()
bucketPrefix
(String bucketPrefix) Sets the value ofCfnResourceDataSync.S3DestinationProperty.getBucketPrefix()
bucketRegion
(String bucketRegion) Sets the value ofCfnResourceDataSync.S3DestinationProperty.getBucketRegion()
build()
Builds the configured instance.Sets the value ofCfnResourceDataSync.S3DestinationProperty.getKmsKeyArn()
syncFormat
(String syncFormat) Sets the value ofCfnResourceDataSync.S3DestinationProperty.getSyncFormat()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketName
@Stability(Stable) public CfnResourceDataSync.S3DestinationProperty.Builder bucketName(String bucketName) Sets the value ofCfnResourceDataSync.S3DestinationProperty.getBucketName()
- Parameters:
bucketName
- The name of the S3 bucket where the aggregated data is stored. This parameter is required.- Returns:
this
-
bucketRegion
@Stability(Stable) public CfnResourceDataSync.S3DestinationProperty.Builder bucketRegion(String bucketRegion) Sets the value ofCfnResourceDataSync.S3DestinationProperty.getBucketRegion()
- Parameters:
bucketRegion
- The AWS Region with the S3 bucket targeted by the resource data sync. This parameter is required.- Returns:
this
-
syncFormat
@Stability(Stable) public CfnResourceDataSync.S3DestinationProperty.Builder syncFormat(String syncFormat) Sets the value ofCfnResourceDataSync.S3DestinationProperty.getSyncFormat()
- Parameters:
syncFormat
- A supported sync format. This parameter is required. The following format is currently supported: JsonSerDe- Returns:
this
-
bucketPrefix
@Stability(Stable) public CfnResourceDataSync.S3DestinationProperty.Builder bucketPrefix(String bucketPrefix) Sets the value ofCfnResourceDataSync.S3DestinationProperty.getBucketPrefix()
- Parameters:
bucketPrefix
- An Amazon S3 prefix for the bucket.- Returns:
this
-
kmsKeyArn
@Stability(Stable) public CfnResourceDataSync.S3DestinationProperty.Builder kmsKeyArn(String kmsKeyArn) Sets the value ofCfnResourceDataSync.S3DestinationProperty.getKmsKeyArn()
- Parameters:
kmsKeyArn
- The ARN of an encryption key for a destination in Amazon S3. Must belong to the same Region as the destination S3 bucket.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResourceDataSync.S3DestinationProperty>
- Returns:
- a new instance of
CfnResourceDataSync.S3DestinationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-