public java.util.List<String> getSecurityGroupIds() {
        if (securityGroupIds == null) {
            securityGroupIds = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return securityGroupIds;
    }
<p>
The IDs of the security groups. You can create a security group using <a
href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html"
>CreateSecurityGroup</a>.
</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>

@return The IDs of the security groups. You can create a security group using <a
        href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html"
        >CreateSecurityGroup</a>.</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.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/RunInstancesRequest.java