Class CfnLocationNFSMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.datasync.CfnLocationNFSMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationNFSMixinProps>
- Enclosing interface:
CfnLocationNFSMixinProps
@Stability(Stable)
public static final class CfnLocationNFSMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocationNFSMixinProps>
A builder for
CfnLocationNFSMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.mountOptions(CfnLocationNFSPropsMixin.MountOptionsProperty mountOptions) Sets the value ofCfnLocationNFSMixinProps.getMountOptions()mountOptions(IResolvable mountOptions) Sets the value ofCfnLocationNFSMixinProps.getMountOptions()onPremConfig(CfnLocationNFSPropsMixin.OnPremConfigProperty onPremConfig) Sets the value ofCfnLocationNFSMixinProps.getOnPremConfig()onPremConfig(IResolvable onPremConfig) Sets the value ofCfnLocationNFSMixinProps.getOnPremConfig()serverHostname(String serverHostname) Sets the value ofCfnLocationNFSMixinProps.getServerHostname()subdirectory(String subdirectory) Sets the value ofCfnLocationNFSMixinProps.getSubdirectory()Sets the value ofCfnLocationNFSMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mountOptions
Sets the value ofCfnLocationNFSMixinProps.getMountOptions()- Parameters:
mountOptions- Specifies the options that DataSync can use to mount your NFS file server.- Returns:
this
-
mountOptions
@Stability(Stable) public CfnLocationNFSMixinProps.Builder mountOptions(CfnLocationNFSPropsMixin.MountOptionsProperty mountOptions) Sets the value ofCfnLocationNFSMixinProps.getMountOptions()- Parameters:
mountOptions- Specifies the options that DataSync can use to mount your NFS file server.- Returns:
this
-
onPremConfig
Sets the value ofCfnLocationNFSMixinProps.getOnPremConfig()- Parameters:
onPremConfig- Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server. You can specify more than one agent. For more information, see Using multiple DataSync agents .- Returns:
this
-
onPremConfig
@Stability(Stable) public CfnLocationNFSMixinProps.Builder onPremConfig(CfnLocationNFSPropsMixin.OnPremConfigProperty onPremConfig) Sets the value ofCfnLocationNFSMixinProps.getOnPremConfig()- Parameters:
onPremConfig- Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect to your NFS file server. You can specify more than one agent. For more information, see Using multiple DataSync agents .- Returns:
this
-
serverHostname
Sets the value ofCfnLocationNFSMixinProps.getServerHostname()- Parameters:
serverHostname- Specifies the DNS name or IP address (IPv4 or IPv6) of the NFS file server that your DataSync agent connects to.- Returns:
this
-
subdirectory
Sets the value ofCfnLocationNFSMixinProps.getSubdirectory()- Parameters:
subdirectory- Specifies the export path in your NFS file server that you want DataSync to mount. This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see Accessing NFS file servers .- Returns:
this
-
tags
Sets the value ofCfnLocationNFSMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnLocationNFSMixinProps>- Returns:
- a new instance of
CfnLocationNFSMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-