public CreateLocationFsxOntapRequest withSecurityGroupArns(String... securityGroupArns) {
        if (this.securityGroupArns == null) {
            setSecurityGroupArns(new java.util.ArrayList<String>(securityGroupArns.length));
        }
        for (String ele : securityGroupArns) {
            this.securityGroupArns.add(ele);
        }
        return this;
    }
<p>
Specifies the Amazon EC2 security groups that provide access to your file system's preferred subnet.
</p>
<p>
The security groups must allow outbound traffic on the following ports (depending on the protocol you use):
</p>
<ul>
<li>
<p>
<b>Network File System (NFS)</b>: TCP ports 111, 635, and 2049
</p>
</li>
<li>
<p>
<b>Server Message Block (SMB)</b>: TCP port 445
</p>
</li>
</ul>
<p>
Your file system's security groups must also allow inbound traffic on the same ports.
</p>
<p>
<b>NOTE:</b> 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.
</p>

@param securityGroupArns
       Specifies the Amazon EC2 security groups that provide access to your file system's preferred subnet.</p>
       <p>
       The security groups must allow outbound traffic on the following ports (depending on the protocol you
       use):
       </p>
       <ul>
       <li>
       <p>
       <b>Network File System (NFS)</b>: TCP ports 111, 635, and 2049
       </p>
       </li>
       <li>
       <p>
       <b>Server Message Block (SMB)</b>: TCP port 445
       </p>
       </li>
       </ul>
       <p>
       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.
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/CreateLocationFsxOntapRequest.java