Class CfnLocationFSxOpenZFSProps.Builder
java.lang.Object
software.amazon.awscdk.services.datasync.CfnLocationFSxOpenZFSProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationFSxOpenZFSProps>
- Enclosing interface:
CfnLocationFSxOpenZFSProps
@Stability(Stable)
public static final class CfnLocationFSxOpenZFSProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocationFSxOpenZFSProps>
A builder for
CfnLocationFSxOpenZFSProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.fsxFilesystemArn
(String fsxFilesystemArn) Sets the value ofCfnLocationFSxOpenZFSProps.getFsxFilesystemArn()
protocol
(IResolvable protocol) Sets the value ofCfnLocationFSxOpenZFSProps.getProtocol()
Sets the value ofCfnLocationFSxOpenZFSProps.getProtocol()
securityGroupArns
(List<String> securityGroupArns) Sets the value ofCfnLocationFSxOpenZFSProps.getSecurityGroupArns()
subdirectory
(String subdirectory) Sets the value ofCfnLocationFSxOpenZFSProps.getSubdirectory()
Sets the value ofCfnLocationFSxOpenZFSProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
protocol
Sets the value ofCfnLocationFSxOpenZFSProps.getProtocol()
- Parameters:
protocol
- The type of protocol that AWS DataSync uses to access your file system. This parameter is required.- Returns:
this
-
protocol
@Stability(Stable) public CfnLocationFSxOpenZFSProps.Builder protocol(CfnLocationFSxOpenZFS.ProtocolProperty protocol) Sets the value ofCfnLocationFSxOpenZFSProps.getProtocol()
- Parameters:
protocol
- The type of protocol that AWS DataSync uses to access your file system. This parameter is required.- Returns:
this
-
securityGroupArns
@Stability(Stable) public CfnLocationFSxOpenZFSProps.Builder securityGroupArns(List<String> securityGroupArns) Sets the value ofCfnLocationFSxOpenZFSProps.getSecurityGroupArns()
- Parameters:
securityGroupArns
- The ARNs of the security groups that are used to configure the FSx for OpenZFS file system. This parameter is required. Pattern :^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):ec2:[a-z\-0-9]*:[0-9]{12}:security-group/.*$
Length constraints : Maximum length of 128.
- Returns:
this
-
fsxFilesystemArn
@Stability(Stable) public CfnLocationFSxOpenZFSProps.Builder fsxFilesystemArn(String fsxFilesystemArn) Sets the value ofCfnLocationFSxOpenZFSProps.getFsxFilesystemArn()
- Parameters:
fsxFilesystemArn
- The Amazon Resource Name (ARN) of the FSx for OpenZFS file system.- Returns:
this
-
subdirectory
Sets the value ofCfnLocationFSxOpenZFSProps.getSubdirectory()
- Parameters:
subdirectory
- A subdirectory in the location's path that must begin with/fsx
. DataSync uses this subdirectory to read or write data (depending on whether the file system is a source or destination location).- Returns:
this
-
tags
Sets the value ofCfnLocationFSxOpenZFSProps.getTags()
- Parameters:
tags
- The key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLocationFSxOpenZFSProps>
- Returns:
- a new instance of
CfnLocationFSxOpenZFSProps
- Throws:
NullPointerException
- if any required attribute was not provided
-