public VpcConnector withSecurityGroups(String... securityGroups) {
        if (this.securityGroups == null) {
            setSecurityGroups(new java.util.ArrayList<String>(securityGroups.length));
        }
        for (String ele : securityGroups) {
            this.securityGroups.add(ele);
        }
        return this;
    }
<p>
A list of IDs of security groups that App Runner uses for access to Amazon Web Services resources under the
specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The default
security group allows all outbound traffic.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSecurityGroups(java.util.Collection)} or {@link #withSecurityGroups(java.util.Collection)} if you want
to override the existing values.
</p>

@param securityGroups
       A list of IDs of security groups that App Runner uses for access to Amazon Web Services resources under
       the specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The
       default security group allows all outbound traffic.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-apprunner/src/main/java/com/amazonaws/services/apprunner/model/VpcConnector.java