public java.util.List<SecurityGroup> getSecurityGroups() {
        return securityGroups;
    }
<p>
The security groups associated with the EC2 instance.
</p>

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