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()
Sets the value ofCfnFileSystem.ReplicationDestinationProperty.getRoleArn()
Sets the value ofCfnFileSystem.ReplicationDestinationProperty.getStatus()
statusMessage
(String statusMessage) Sets the value ofCfnFileSystem.ReplicationDestinationProperty.getStatusMessage()
-
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
- 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
-
roleArn
@Stability(Stable) public CfnFileSystem.ReplicationDestinationProperty.Builder roleArn(String roleArn) Sets the value ofCfnFileSystem.ReplicationDestinationProperty.getRoleArn()
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the current source file system in the replication configuration.- Returns:
this
-
status
@Stability(Stable) public CfnFileSystem.ReplicationDestinationProperty.Builder status(String status) Sets the value ofCfnFileSystem.ReplicationDestinationProperty.getStatus()
- Parameters:
status
- Describes the status of the replication configuration. For more information about replication status, see Viewing replication details in the Amazon EFS User Guide .- Returns:
this
-
statusMessage
@Stability(Stable) public CfnFileSystem.ReplicationDestinationProperty.Builder statusMessage(String statusMessage) Sets the value ofCfnFileSystem.ReplicationDestinationProperty.getStatusMessage()
- Parameters:
statusMessage
- Message that provides details about thePAUSED
orERRROR
state of the replication destination configuration. For more information about replication status messages, see Viewing replication details in the Amazon EFS User Guide .- 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
-