Class CfnFileSystem.ReplicationDestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.efs.CfnFileSystem.ReplicationDestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFileSystem.ReplicationDestinationProperty>
- Enclosing interface:
CfnFileSystem.ReplicationDestinationProperty
@Stability(Stable)
public static final class CfnFileSystem.ReplicationDestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFileSystem.ReplicationDestinationProperty>
A builder for
CfnFileSystem.ReplicationDestinationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZoneName
(String availabilityZoneName) Sets the value ofCfnFileSystem.ReplicationDestinationProperty.getAvailabilityZoneName()
build()
Builds the configured instance.fileSystemId
(String fileSystemId) Sets the value ofCfnFileSystem.ReplicationDestinationProperty.getFileSystemId()
Sets the value ofCfnFileSystem.ReplicationDestinationProperty.getKmsKeyId()
Sets the value ofCfnFileSystem.ReplicationDestinationProperty.getRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZoneName
@Stability(Stable) public CfnFileSystem.ReplicationDestinationProperty.Builder availabilityZoneName(String availabilityZoneName) Sets the value ofCfnFileSystem.ReplicationDestinationProperty.getAvailabilityZoneName()
- Parameters:
availabilityZoneName
- The AWS For One Zone file systems, the replication configuration must specify the Availability Zone in which the destination file system is located. Use the formatus-east-1a
to specify the Availability Zone. For more information about One Zone file systems, see EFS file system types in the Amazon EFS User Guide .One Zone file system type is not available in all Availability Zones in AWS Regions where Amazon EFS is available.
- Returns:
this
-
fileSystemId
@Stability(Stable) public CfnFileSystem.ReplicationDestinationProperty.Builder fileSystemId(String fileSystemId) Sets the value ofCfnFileSystem.ReplicationDestinationProperty.getFileSystemId()
- Parameters:
fileSystemId
- The ID of the destination Amazon EFS file system.- Returns:
this
-
kmsKeyId
@Stability(Stable) public CfnFileSystem.ReplicationDestinationProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnFileSystem.ReplicationDestinationProperty.getKmsKeyId()
- Parameters:
kmsKeyId
- The ID of an AWS KMS key used to protect the encrypted file system.- Returns:
this
-
region
@Stability(Stable) public CfnFileSystem.ReplicationDestinationProperty.Builder region(String region) Sets the value ofCfnFileSystem.ReplicationDestinationProperty.getRegion()
- Parameters:
region
- The AWS Region in which the destination file system is located.For One Zone file systems, the replication configuration must specify the AWS Region in which the destination file system is located.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFileSystem.ReplicationDestinationProperty>
- Returns:
- a new instance of
CfnFileSystem.ReplicationDestinationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-