public ModifyServerlessCacheRequest 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>
The new list of VPC security groups to be associated with the serverless cache. Populating this list means the
current VPC security groups will be removed. This security group is used to authorize traffic access for the VPC
end-point (private-link). Default = NULL - the existing list of VPC security groups is not removed.
</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
       The new list of VPC security groups to be associated with the serverless cache. Populating this list means
       the current VPC security groups will be removed. This security group is used to authorize traffic access
       for the VPC end-point (private-link). Default = NULL - the existing list of VPC security groups is not
       removed.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/ModifyServerlessCacheRequest.java