All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.datasync.model.CreateLocationNfsRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS DataSync module holds the client classes that are used for communicating with AWS DataSync Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2017-2022 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 { /** *

* The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to * the NFS destination. 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. *

*

* For information about NFS export configuration, see 18.7. The /etc/exports Configuration File in the Red Hat * Enterprise Linux documentation. *

*/ private String subdirectory; /** *

* The name of the NFS server. This value is the IP address or Domain Name Service (DNS) name of the NFS 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. *

* *

* This name must either be DNS-compliant or must be an IP version 4 (IPv4) address. *

*
*/ private String serverHostname; /** *

* Contains a list of Amazon Resource Names (ARNs) of agents that are used to connect to an NFS server. *

*

* If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *

*/ private OnPremConfig onPremConfig; /** *

* The NFS mount options that DataSync can use to mount your NFS share. *

*/ private NfsMountOptions mountOptions; /** *

* The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. *

*/ private java.util.List tags; /** *

* The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to * the NFS destination. 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. *

*

* For information about NFS export configuration, see 18.7. The /etc/exports Configuration File in the Red Hat * Enterprise Linux documentation. *

* * @param subdirectory * The subdirectory in the NFS file system that is used to read data from the NFS source location or write * data to the NFS destination. 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. *

*

* For information about NFS export configuration, see 18.7. The /etc/exports Configuration File in the Red * Hat Enterprise Linux documentation. */ public void setSubdirectory(String subdirectory) { this.subdirectory = subdirectory; } /** *

* The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to * the NFS destination. 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. *

*

* For information about NFS export configuration, see 18.7. The /etc/exports Configuration File in the Red Hat * Enterprise Linux documentation. *

* * @return The subdirectory in the NFS file system that is used to read data from the NFS source location or write * data to the NFS destination. 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. *

*

* For information about NFS export configuration, see 18.7. The /etc/exports Configuration File in the Red * Hat Enterprise Linux documentation. */ public String getSubdirectory() { return this.subdirectory; } /** *

* The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to * the NFS destination. 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. *

*

* For information about NFS export configuration, see 18.7. The /etc/exports Configuration File in the Red Hat * Enterprise Linux documentation. *

* * @param subdirectory * The subdirectory in the NFS file system that is used to read data from the NFS source location or write * data to the NFS destination. 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. *

*

* For information about NFS export configuration, see 18.7. The /etc/exports Configuration File in the Red * Hat Enterprise Linux documentation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationNfsRequest withSubdirectory(String subdirectory) { setSubdirectory(subdirectory); return this; } /** *

* The name of the NFS server. This value is the IP address or Domain Name Service (DNS) name of the NFS 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. *

* *

* This name must either be DNS-compliant or must be an IP version 4 (IPv4) address. *

*
* * @param serverHostname * The name of the NFS server. This value is the IP address or Domain Name Service (DNS) name of the NFS * 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. *

* *

* This name must either be DNS-compliant or must be an IP version 4 (IPv4) address. *

*/ public void setServerHostname(String serverHostname) { this.serverHostname = serverHostname; } /** *

* The name of the NFS server. This value is the IP address or Domain Name Service (DNS) name of the NFS 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. *

* *

* This name must either be DNS-compliant or must be an IP version 4 (IPv4) address. *

*
* * @return The name of the NFS server. This value is the IP address or Domain Name Service (DNS) name of the NFS * 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. *

* *

* This name must either be DNS-compliant or must be an IP version 4 (IPv4) address. *

*/ public String getServerHostname() { return this.serverHostname; } /** *

* The name of the NFS server. This value is the IP address or Domain Name Service (DNS) name of the NFS 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. *

* *

* This name must either be DNS-compliant or must be an IP version 4 (IPv4) address. *

*
* * @param serverHostname * The name of the NFS server. This value is the IP address or Domain Name Service (DNS) name of the NFS * 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. *

* *

* This name must either be DNS-compliant or must be an IP version 4 (IPv4) address. *

* @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationNfsRequest withServerHostname(String serverHostname) { setServerHostname(serverHostname); return this; } /** *

* Contains a list of Amazon Resource Names (ARNs) of agents that are used to connect to an NFS server. *

*

* If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *

* * @param onPremConfig * Contains a list of Amazon Resource Names (ARNs) of agents that are used to connect to an NFS 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; } /** *

* Contains a list of Amazon Resource Names (ARNs) of agents that are used to connect to an NFS server. *

*

* If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *

* * @return Contains a list of Amazon Resource Names (ARNs) of agents that are used to connect to an NFS 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; } /** *

* Contains a list of Amazon Resource Names (ARNs) of agents that are used to connect to an NFS server. *

*

* If you are copying data to or from your Snowcone device, see NFS Server * on Snowcone for more information. *

* * @param onPremConfig * Contains a list of Amazon Resource Names (ARNs) of agents that are used to connect to an NFS 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; } /** *

* The NFS mount options that DataSync can use to mount your NFS share. *

* * @param mountOptions * The NFS mount options that DataSync can use to mount your NFS share. */ public void setMountOptions(NfsMountOptions mountOptions) { this.mountOptions = mountOptions; } /** *

* The NFS mount options that DataSync can use to mount your NFS share. *

* * @return The NFS mount options that DataSync can use to mount your NFS share. */ public NfsMountOptions getMountOptions() { return this.mountOptions; } /** *

* The NFS mount options that DataSync can use to mount your NFS share. *

* * @param mountOptions * The NFS 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; } /** *

* The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. *

* * @return The key-value pair that represents the tag that you want to add to the location. The value can be an * empty string. We recommend using tags to name your resources. */ public java.util.List getTags() { return tags; } /** *

* The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. *

* * @param tags * The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. *

*

* 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 * The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. * @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(tags.length)); } for (TagListEntry ele : tags) { this.tags.add(ele); } return this; } /** *

* The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. *

* * @param tags * The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationNfsRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSubdirectory() != null) sb.append("Subdirectory: ").append(getSubdirectory()).append(","); if (getServerHostname() != null) sb.append("ServerHostname: ").append(getServerHostname()).append(","); if (getOnPremConfig() != null) sb.append("OnPremConfig: ").append(getOnPremConfig()).append(","); if (getMountOptions() != null) sb.append("MountOptions: ").append(getMountOptions()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateLocationNfsRequest == false) return false; CreateLocationNfsRequest other = (CreateLocationNfsRequest) obj; if (other.getSubdirectory() == null ^ this.getSubdirectory() == null) return false; if (other.getSubdirectory() != null && other.getSubdirectory().equals(this.getSubdirectory()) == false) return false; if (other.getServerHostname() == null ^ this.getServerHostname() == null) return false; if (other.getServerHostname() != null && other.getServerHostname().equals(this.getServerHostname()) == false) return false; if (other.getOnPremConfig() == null ^ this.getOnPremConfig() == null) return false; if (other.getOnPremConfig() != null && other.getOnPremConfig().equals(this.getOnPremConfig()) == false) return false; if (other.getMountOptions() == null ^ this.getMountOptions() == null) return false; if (other.getMountOptions() != null && other.getMountOptions().equals(this.getMountOptions()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSubdirectory() == null) ? 0 : getSubdirectory().hashCode()); hashCode = prime * hashCode + ((getServerHostname() == null) ? 0 : getServerHostname().hashCode()); hashCode = prime * hashCode + ((getOnPremConfig() == null) ? 0 : getOnPremConfig().hashCode()); hashCode = prime * hashCode + ((getMountOptions() == null) ? 0 : getMountOptions().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateLocationNfsRequest clone() { return (CreateLocationNfsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy