/* * 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; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateLocationFsxOntapRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { private FsxProtocol protocol; /** *
* Specifies the Amazon EC2 security groups that provide access to your file system's preferred subnet. *
** The security groups must allow outbound traffic on the following ports (depending on the protocol you use): *
** 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 ports. *
*/ private java.util.List* Specifies the ARN of the storage virtual machine (SVM) in your file system where you want to copy data to or * from. *
*/ private String storageVirtualMachineArn; /** ** 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. *
** 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 Amazon EC2 security groups that provide access to your file system's preferred subnet. *
** The security groups must allow outbound traffic on the following ports (depending on the protocol you use): *
** 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 ports. *
* * @return Specifies the Amazon EC2 security groups that provide access to your file system's preferred subnet. ** The security groups must allow outbound traffic on the following ports (depending on the protocol you * use): *
** 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 ports.
*/
public java.util.List
* Specifies the Amazon EC2 security groups that provide access to your file system's preferred subnet.
*
* The security groups must allow outbound traffic on the following ports (depending on the protocol you use):
*
* 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 ports.
*
*
*
* The security groups must allow outbound traffic on the following ports (depending on the protocol you * use): *
** 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 ports.
*/
public void setSecurityGroupArns(java.util.Collection
* Specifies the Amazon EC2 security groups that provide access to your file system's preferred subnet.
*
* The security groups must allow outbound traffic on the following ports (depending on the protocol you use):
*
* 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 ports.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSecurityGroupArns(java.util.Collection)} or {@link #withSecurityGroupArns(java.util.Collection)} if
* you want to override the existing values.
*
*
*
* The security groups must allow outbound traffic on the following ports (depending on the protocol you * use): *
** 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 ports.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLocationFsxOntapRequest withSecurityGroupArns(String... securityGroupArns) {
if (this.securityGroupArns == null) {
setSecurityGroupArns(new java.util.ArrayList
* Specifies the Amazon EC2 security groups that provide access to your file system's preferred subnet.
*
* The security groups must allow outbound traffic on the following ports (depending on the protocol you use):
*
* 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 ports.
*
*
*
* The security groups must allow outbound traffic on the following ports (depending on the protocol you * use): *
** 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 ports.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLocationFsxOntapRequest withSecurityGroupArns(java.util.Collection
* Specifies the ARN of the storage virtual machine (SVM) in your file system where you want to copy data to or
* from.
*
* Specifies the ARN of the storage virtual machine (SVM) in your file system where you want to copy data to or
* from.
*
* Specifies the ARN of the storage virtual machine (SVM) in your file system where you want to copy data to or
* from.
*
* 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
* 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.
* /vol1
, /vol1/tree1
, or
* /share1
.
*
* 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. *
*/ public void setSubdirectory(String subdirectory) { this.subdirectory = 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. *
*
* 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. *
*/ public String getSubdirectory() { return this.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. *
*
* 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. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationFsxOntapRequest withSubdirectory(String subdirectory) { setSubdirectory(subdirectory); 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 CreateLocationFsxOntapRequest 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 CreateLocationFsxOntapRequest withTags(java.util.Collection