public void setSecurityGroups(java.util.Collection<String> securityGroups) {
        if (securityGroups == null) {
            this.securityGroups = null;
            return;
        }

        this.securityGroups = new com.amazonaws.internal.SdkInternalList<String>(securityGroups);
    }
<p>
[Default VPC] The names of the security groups.
</p>
<p>
If you specify a network interface, you must specify any security groups as part of the network interface instead
of using this parameter.
</p>
<p>
Default: Amazon EC2 uses the default security group.
</p>

@param securityGroups
       [Default VPC] The names of the security groups.</p>
       <p>
       If you specify a network interface, you must specify any security groups as part of the network interface
       instead of using this parameter.
       </p>
       <p>
       Default: Amazon EC2 uses the default security group.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/RunInstancesRequest.java