public CreateVpcEndpointRequest withSecurityGroupIds(String... securityGroupIds) {
        if (this.securityGroupIds == null) {
            setSecurityGroupIds(new com.amazonaws.internal.SdkInternalList<String>(securityGroupIds.length));
        }
        for (String ele : securityGroupIds) {
            this.securityGroupIds.add(ele);
        }
        return this;
    }
<p>
(Interface endpoint) The IDs of the security groups to associate with the endpoint network interfaces. If this
parameter is not specified, we use the default security group for the VPC.
</p>
<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
       (Interface endpoint) The IDs of the security groups to associate with the endpoint network interfaces. If
       this parameter is not specified, we use the default security group for the VPC.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateVpcEndpointRequest.java