public EndpointDetails withSecurityGroupIds(String... securityGroupIds) {
        if (this.securityGroupIds == null) {
            setSecurityGroupIds(new java.util.ArrayList<String>(securityGroupIds.length));
        }
        for (String ele : securityGroupIds) {
            this.securityGroupIds.add(ele);
        }
        return this;
    }
<p>
A list of security groups IDs that are available to attach to your server's endpoint.
</p>
<note>
<p>
This property can only be set when <code>EndpointType</code> is set to <code>VPC</code>.
</p>
<p>
You can edit the <code>SecurityGroupIds</code> property in the <a
href="https://docs.aws.amazon.com/transfer/latest/userguide/API_UpdateServer.html">UpdateServer</a> API only if
you are changing the <code>EndpointType</code> from <code>PUBLIC</code> or <code>VPC_ENDPOINT</code> to
<code>VPC</code>. To change security groups associated with your server's VPC endpoint after creation, use the
Amazon EC2 <a
href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyVpcEndpoint.html">ModifyVpcEndpoint</a>
API.
</p>
</note>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSecurityGroupIds(java.util.Collection)} or {@link #withSecurityGroupIds(java.util.Collection)} if you
want to override the existing values.
</p>

@param securityGroupIds
       A list of security groups IDs that are available to attach to your server's endpoint.</p> <note>
       <p>
       This property can only be set when <code>EndpointType</code> is set to <code>VPC</code>.
       </p>
       <p>
       You can edit the <code>SecurityGroupIds</code> property in the <a
       href="https://docs.aws.amazon.com/transfer/latest/userguide/API_UpdateServer.html">UpdateServer</a> API
       only if you are changing the <code>EndpointType</code> from <code>PUBLIC</code> or
       <code>VPC_ENDPOINT</code> to <code>VPC</code>. To change security groups associated with your server's VPC
       endpoint after creation, use the Amazon EC2 <a
       href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyVpcEndpoint.html"
       >ModifyVpcEndpoint</a> API.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-transfer/src/main/java/com/amazonaws/services/transfer/model/EndpointDetails.java