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

        this.securityGroups = new java.util.ArrayList<SecurityGroup>(securityGroups);
    }
<p>
The security groups associated with the EC2 instance.
</p>

@param securityGroups
       The security groups associated with the EC2 instance.
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/NetworkInterface.java