Class ReplicationConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.efs.ReplicationConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ReplicationConfigurationProps>
- Enclosing interface:
ReplicationConfigurationProps
@Stability(Stable)
public static final class ReplicationConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<ReplicationConfigurationProps>
A builder for
ReplicationConfigurationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(String availabilityZone) Sets the value ofReplicationConfigurationProps.getAvailabilityZone()build()Builds the configured instance.destinationFileSystem(IFileSystem destinationFileSystem) Sets the value ofReplicationConfigurationProps.getDestinationFileSystem()Sets the value ofReplicationConfigurationProps.getKmsKey()Sets the value ofReplicationConfigurationProps.getRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Stable) public ReplicationConfigurationProps.Builder availabilityZone(String availabilityZone) Sets the value ofReplicationConfigurationProps.getAvailabilityZone()- Parameters:
availabilityZone- The availability zone name of the destination file system. One zone file system is used as the destination file system when this property is set.- Returns:
this
-
destinationFileSystem
@Stability(Stable) public ReplicationConfigurationProps.Builder destinationFileSystem(IFileSystem destinationFileSystem) Sets the value ofReplicationConfigurationProps.getDestinationFileSystem()- Parameters:
destinationFileSystem- The existing destination file system for the replication.- Returns:
this
-
kmsKey
Sets the value ofReplicationConfigurationProps.getKmsKey()- Parameters:
kmsKey- AWS KMS key used to protect the encrypted file system.- Returns:
this
-
region
Sets the value ofReplicationConfigurationProps.getRegion()- Parameters:
region- The AWS Region in which the destination file system is located.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ReplicationConfigurationProps>- Returns:
- a new instance of
ReplicationConfigurationProps - Throws:
NullPointerException- if any required attribute was not provided
-