public NetworkInterface withSecurityGroups(java.util.Collection<SecurityGroup> securityGroups) {
        setSecurityGroups(securityGroups);
        return this;
    }
<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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-inspector/src/main/java/com/amazonaws/services/inspector/model/NetworkInterface.java