Class CfnLocationFSxONTAPProps.Builder
java.lang.Object
software.amazon.awscdk.services.datasync.CfnLocationFSxONTAPProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationFSxONTAPProps>
- Enclosing interface:
CfnLocationFSxONTAPProps
@Stability(Stable)
public static final class CfnLocationFSxONTAPProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocationFSxONTAPProps>
A builder for
CfnLocationFSxONTAPProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.protocol
(IResolvable protocol) Sets the value ofCfnLocationFSxONTAPProps.getProtocol()
protocol
(CfnLocationFSxONTAP.ProtocolProperty protocol) Sets the value ofCfnLocationFSxONTAPProps.getProtocol()
securityGroupArns
(List<String> securityGroupArns) Sets the value ofCfnLocationFSxONTAPProps.getSecurityGroupArns()
storageVirtualMachineArn
(String storageVirtualMachineArn) Sets the value ofCfnLocationFSxONTAPProps.getStorageVirtualMachineArn()
subdirectory
(String subdirectory) Sets the value ofCfnLocationFSxONTAPProps.getSubdirectory()
Sets the value ofCfnLocationFSxONTAPProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupArns
@Stability(Stable) public CfnLocationFSxONTAPProps.Builder securityGroupArns(List<String> securityGroupArns) Sets the value ofCfnLocationFSxONTAPProps.getSecurityGroupArns()
- Parameters:
securityGroupArns
- Specifies the Amazon Resource Names (ARNs) of the security groups that DataSync can use to access your FSx for ONTAP file system. This parameter is required. You must configure the security groups to allow outbound traffic on the following ports (depending on the protocol that you're using):- Network File System (NFS) : TCP ports 111, 635, and 2049
- Server Message Block (SMB) : TCP port 445
Your file system's security groups must also allow inbound traffic on the same port.
- Returns:
this
-
storageVirtualMachineArn
@Stability(Stable) public CfnLocationFSxONTAPProps.Builder storageVirtualMachineArn(String storageVirtualMachineArn) Sets the value ofCfnLocationFSxONTAPProps.getStorageVirtualMachineArn()
- Parameters:
storageVirtualMachineArn
- Specifies the ARN of the storage virtual machine (SVM) in your file system where you want to copy data to or from. This parameter is required.- Returns:
this
-
protocol
Sets the value ofCfnLocationFSxONTAPProps.getProtocol()
- Parameters:
protocol
- Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.- Returns:
this
-
protocol
@Stability(Stable) public CfnLocationFSxONTAPProps.Builder protocol(CfnLocationFSxONTAP.ProtocolProperty protocol) Sets the value ofCfnLocationFSxONTAPProps.getProtocol()
- Parameters:
protocol
- Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.- Returns:
this
-
subdirectory
Sets the value ofCfnLocationFSxONTAPProps.getSubdirectory()
- Parameters:
subdirectory
- Specifies a path to the file share in the SVM where you'll copy your data. You can specify a junction path (also known as a mount point), qtree path (for NFS file shares), or share name (for SMB file shares). For example, your mount path might be/vol1
,/vol1/tree1
, or/share1
.Don't specify a junction path in the SVM's root volume. For more information, see Managing FSx for ONTAP storage virtual machines in the Amazon FSx for NetApp ONTAP User Guide .
- Returns:
this
-
tags
Sets the value ofCfnLocationFSxONTAPProps.getTags()
- Parameters:
tags
- Specifies labels that help you categorize, filter, and search for your AWS resources. We recommend creating at least a name tag for your location.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLocationFSxONTAPProps>
- Returns:
- a new instance of
CfnLocationFSxONTAPProps
- Throws:
NullPointerException
- if any required attribute was not provided
-