public java.util.List<String> getSecurityGroups() {
        if (securityGroups == null) {
            securityGroups = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return 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>

@return [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