/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.datasync.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* CreateLocationNfsRequest *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateLocationNfsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** Specifies the subdirectory in the NFS file server that DataSync transfers to or from. The NFS path should be a * path that's exported by the NFS server, or a subdirectory of that path. The path should be such that it can be * mounted by other NFS clients in your network. *
*
* To see all the paths exported by your NFS server, run "showmount -e nfs-server-name
" from an NFS
* client that has access to your server. You can specify any directory that appears in the results, and any
* subdirectory of that directory. Ensure that the NFS export is accessible without Kerberos authentication.
*
* To transfer all the data in the folder you specified, DataSync needs to have permissions to read all the data. To
* ensure this, either configure the NFS export with no_root_squash,
or ensure that the permissions for
* all of the files that you want DataSync allow read access for all users. Doing either enables the agent to read
* the files. For the agent to access directories, you must additionally enable all execute access.
*
* If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *
*/ private String subdirectory; /** ** Specifies the IP address or domain name of your NFS file server. An agent that is installed on-premises uses this * hostname to mount the NFS server in a network. *
** If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *
** You must specify be an IP version 4 address or Domain Name System (DNS)-compliant name. *
** Specifies the Amazon Resource Names (ARNs) of agents that DataSync uses to connect to your NFS file server. *
** If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *
*/ private OnPremConfig onPremConfig; /** ** Specifies the mount options that DataSync can use to mount your NFS share. *
*/ private NfsMountOptions mountOptions; /** ** Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. *
*/ private java.util.List* Specifies the subdirectory in the NFS file server that DataSync transfers to or from. The NFS path should be a * path that's exported by the NFS server, or a subdirectory of that path. The path should be such that it can be * mounted by other NFS clients in your network. *
*
* To see all the paths exported by your NFS server, run "showmount -e nfs-server-name
" from an NFS
* client that has access to your server. You can specify any directory that appears in the results, and any
* subdirectory of that directory. Ensure that the NFS export is accessible without Kerberos authentication.
*
* To transfer all the data in the folder you specified, DataSync needs to have permissions to read all the data. To
* ensure this, either configure the NFS export with no_root_squash,
or ensure that the permissions for
* all of the files that you want DataSync allow read access for all users. Doing either enables the agent to read
* the files. For the agent to access directories, you must additionally enable all execute access.
*
* If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *
* * @param subdirectory * Specifies the subdirectory in the NFS file server that DataSync transfers to or from. The NFS path should * be a path that's exported by the NFS server, or a subdirectory of that path. The path should be such that * it can be mounted by other NFS clients in your network. *
* To see all the paths exported by your NFS server, run "showmount -e nfs-server-name
" from an
* NFS client that has access to your server. You can specify any directory that appears in the results, and
* any subdirectory of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication.
*
* To transfer all the data in the folder you specified, DataSync needs to have permissions to read all the
* data. To ensure this, either configure the NFS export with no_root_squash,
or ensure that the
* permissions for all of the files that you want DataSync allow read access for all users. Doing either
* enables the agent to read the files. For the agent to access directories, you must additionally enable all
* execute access.
*
* If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information. */ public void setSubdirectory(String subdirectory) { this.subdirectory = subdirectory; } /** *
* Specifies the subdirectory in the NFS file server that DataSync transfers to or from. The NFS path should be a * path that's exported by the NFS server, or a subdirectory of that path. The path should be such that it can be * mounted by other NFS clients in your network. *
*
* To see all the paths exported by your NFS server, run "showmount -e nfs-server-name
" from an NFS
* client that has access to your server. You can specify any directory that appears in the results, and any
* subdirectory of that directory. Ensure that the NFS export is accessible without Kerberos authentication.
*
* To transfer all the data in the folder you specified, DataSync needs to have permissions to read all the data. To
* ensure this, either configure the NFS export with no_root_squash,
or ensure that the permissions for
* all of the files that you want DataSync allow read access for all users. Doing either enables the agent to read
* the files. For the agent to access directories, you must additionally enable all execute access.
*
* If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *
* * @return Specifies the subdirectory in the NFS file server that DataSync transfers to or from. The NFS path should * be a path that's exported by the NFS server, or a subdirectory of that path. The path should be such that * it can be mounted by other NFS clients in your network. *
* To see all the paths exported by your NFS server, run "showmount -e nfs-server-name
" from an
* NFS client that has access to your server. You can specify any directory that appears in the results, and
* any subdirectory of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication.
*
* To transfer all the data in the folder you specified, DataSync needs to have permissions to read all the
* data. To ensure this, either configure the NFS export with no_root_squash,
or ensure that
* the permissions for all of the files that you want DataSync allow read access for all users. Doing either
* enables the agent to read the files. For the agent to access directories, you must additionally enable
* all execute access.
*
* If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information. */ public String getSubdirectory() { return this.subdirectory; } /** *
* Specifies the subdirectory in the NFS file server that DataSync transfers to or from. The NFS path should be a * path that's exported by the NFS server, or a subdirectory of that path. The path should be such that it can be * mounted by other NFS clients in your network. *
*
* To see all the paths exported by your NFS server, run "showmount -e nfs-server-name
" from an NFS
* client that has access to your server. You can specify any directory that appears in the results, and any
* subdirectory of that directory. Ensure that the NFS export is accessible without Kerberos authentication.
*
* To transfer all the data in the folder you specified, DataSync needs to have permissions to read all the data. To
* ensure this, either configure the NFS export with no_root_squash,
or ensure that the permissions for
* all of the files that you want DataSync allow read access for all users. Doing either enables the agent to read
* the files. For the agent to access directories, you must additionally enable all execute access.
*
* If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *
* * @param subdirectory * Specifies the subdirectory in the NFS file server that DataSync transfers to or from. The NFS path should * be a path that's exported by the NFS server, or a subdirectory of that path. The path should be such that * it can be mounted by other NFS clients in your network. *
* To see all the paths exported by your NFS server, run "showmount -e nfs-server-name
" from an
* NFS client that has access to your server. You can specify any directory that appears in the results, and
* any subdirectory of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication.
*
* To transfer all the data in the folder you specified, DataSync needs to have permissions to read all the
* data. To ensure this, either configure the NFS export with no_root_squash,
or ensure that the
* permissions for all of the files that you want DataSync allow read access for all users. Doing either
* enables the agent to read the files. For the agent to access directories, you must additionally enable all
* execute access.
*
* If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationNfsRequest withSubdirectory(String subdirectory) { setSubdirectory(subdirectory); return this; } /** *
* Specifies the IP address or domain name of your NFS file server. An agent that is installed on-premises uses this * hostname to mount the NFS server in a network. *
** If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *
** You must specify be an IP version 4 address or Domain Name System (DNS)-compliant name. *
** If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information. *
** You must specify be an IP version 4 address or Domain Name System (DNS)-compliant name. *
*/ public void setServerHostname(String serverHostname) { this.serverHostname = serverHostname; } /** ** Specifies the IP address or domain name of your NFS file server. An agent that is installed on-premises uses this * hostname to mount the NFS server in a network. *
** If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *
** You must specify be an IP version 4 address or Domain Name System (DNS)-compliant name. *
** If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information. *
** You must specify be an IP version 4 address or Domain Name System (DNS)-compliant name. *
*/ public String getServerHostname() { return this.serverHostname; } /** ** Specifies the IP address or domain name of your NFS file server. An agent that is installed on-premises uses this * hostname to mount the NFS server in a network. *
** If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *
** You must specify be an IP version 4 address or Domain Name System (DNS)-compliant name. *
** If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information. *
** You must specify be an IP version 4 address or Domain Name System (DNS)-compliant name. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationNfsRequest withServerHostname(String serverHostname) { setServerHostname(serverHostname); return this; } /** ** Specifies the Amazon Resource Names (ARNs) of agents that DataSync uses to connect to your NFS file server. *
** If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *
* * @param onPremConfig * Specifies the Amazon Resource Names (ARNs) of agents that DataSync uses to connect to your NFS file * server. ** If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information. */ public void setOnPremConfig(OnPremConfig onPremConfig) { this.onPremConfig = onPremConfig; } /** *
* Specifies the Amazon Resource Names (ARNs) of agents that DataSync uses to connect to your NFS file server. *
** If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *
* * @return Specifies the Amazon Resource Names (ARNs) of agents that DataSync uses to connect to your NFS file * server. ** If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information. */ public OnPremConfig getOnPremConfig() { return this.onPremConfig; } /** *
* Specifies the Amazon Resource Names (ARNs) of agents that DataSync uses to connect to your NFS file server. *
** If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *
* * @param onPremConfig * Specifies the Amazon Resource Names (ARNs) of agents that DataSync uses to connect to your NFS file * server. ** If you are copying data to or from your Snowcone device, see NFS * Server on Snowcone for more information. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationNfsRequest withOnPremConfig(OnPremConfig onPremConfig) { setOnPremConfig(onPremConfig); return this; } /** *
* Specifies the mount options that DataSync can use to mount your NFS share. *
* * @param mountOptions * Specifies the mount options that DataSync can use to mount your NFS share. */ public void setMountOptions(NfsMountOptions mountOptions) { this.mountOptions = mountOptions; } /** ** Specifies the mount options that DataSync can use to mount your NFS share. *
* * @return Specifies the mount options that DataSync can use to mount your NFS share. */ public NfsMountOptions getMountOptions() { return this.mountOptions; } /** ** Specifies the mount options that DataSync can use to mount your NFS share. *
* * @param mountOptions * Specifies the mount options that DataSync can use to mount your NFS share. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationNfsRequest withMountOptions(NfsMountOptions mountOptions) { setMountOptions(mountOptions); return this; } /** ** Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. *
* * @return Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. */ public java.util.List* Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. *
* * @param tags * Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. */ public void setTags(java.util.Collection* Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationNfsRequest withTags(TagListEntry... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. *
* * @param tags * Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationNfsRequest withTags(java.util.Collection