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

        this.securityGroups = new java.util.ArrayList<SecurityGroup>(securityGroups);
    }
<p>
A list of the security groups associated with the network interface. Includes the groupId and groupName.
</p>

@param securityGroups
       A list of the security groups associated with the network interface. Includes the groupId and groupName.
aws-java-sdk-inspector/src/main/java/com/amazonaws/services/inspector/model/NetworkInterface.java