require 'microsoft_kiota_abstractions'
require_relative '../microsoft_graph'
require_relative './models'

module MicrosoftGraph
    module Models
        ## 
        # Windows device malware overview.
        class WindowsMalwareOverview
            include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
            ## 
            # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
            @additional_data
            ## 
            # List of device counts per malware category
            @malware_category_summary
            ## 
            # Count of devices with malware detected in the last 30 days
            @malware_detected_device_count
            ## 
            # List of device counts per malware execution state
            @malware_execution_state_summary
            ## 
            # List of device counts per malware
            @malware_name_summary
            ## 
            # List of active malware counts per malware severity
            @malware_severity_summary
            ## 
            # List of device counts per malware state
            @malware_state_summary
            ## 
            # The OdataType property
            @odata_type
            ## 
            # List of device counts with malware per windows OS version
            @os_versions_summary
            ## 
            # Count of all distinct malwares detected across all devices. Valid values -2147483648 to 2147483647
            @total_distinct_malware_count
            ## 
            # Count of all malware detections across all devices. Valid values -2147483648 to 2147483647
            @total_malware_count
            ## 
            ## Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
            ## @return a i_dictionary
            ## 
            def additional_data
                return @additional_data
            end
            ## 
            ## Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
            ## @param value Value to set for the additionalData property.
            ## @return a void
            ## 
            def additional_data=(value)
                @additional_data = value
            end
            ## 
            ## Instantiates a new windowsMalwareOverview and sets the default values.
            ## @return a void
            ## 
            def initialize()
                @additional_data = Hash.new
            end
            ## 
            ## Creates a new instance of the appropriate class based on discriminator value
            ## @param parse_node The parse node to use to read the discriminator value and create the object
            ## @return a windows_malware_overview
            ## 
            def self.create_from_discriminator_value(parse_node)
                raise StandardError, 'parse_node cannot be null' if parse_node.nil?
                return WindowsMalwareOverview.new
            end
            ## 
            ## The deserialization information for the current model
            ## @return a i_dictionary
            ## 
            def get_field_deserializers()
                return {
                    "malwareCategorySummary" => lambda {|n| @malware_category_summary = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WindowsMalwareCategoryCount.create_from_discriminator_value(pn) }) },
                    "malwareDetectedDeviceCount" => lambda {|n| @malware_detected_device_count = n.get_number_value() },
                    "malwareExecutionStateSummary" => lambda {|n| @malware_execution_state_summary = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WindowsMalwareExecutionStateCount.create_from_discriminator_value(pn) }) },
                    "malwareNameSummary" => lambda {|n| @malware_name_summary = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WindowsMalwareNameCount.create_from_discriminator_value(pn) }) },
                    "malwareSeveritySummary" => lambda {|n| @malware_severity_summary = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WindowsMalwareSeverityCount.create_from_discriminator_value(pn) }) },
                    "malwareStateSummary" => lambda {|n| @malware_state_summary = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WindowsMalwareStateCount.create_from_discriminator_value(pn) }) },
                    "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
                    "osVersionsSummary" => lambda {|n| @os_versions_summary = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::OsVersionCount.create_from_discriminator_value(pn) }) },
                    "totalDistinctMalwareCount" => lambda {|n| @total_distinct_malware_count = n.get_number_value() },
                    "totalMalwareCount" => lambda {|n| @total_malware_count = n.get_number_value() },
                }
            end
            ## 
            ## Gets the malwareCategorySummary property value. List of device counts per malware category
            ## @return a windows_malware_category_count
            ## 
            def malware_category_summary
                return @malware_category_summary
            end
            ## 
            ## Sets the malwareCategorySummary property value. List of device counts per malware category
            ## @param value Value to set for the malwareCategorySummary property.
            ## @return a void
            ## 
            def malware_category_summary=(value)
                @malware_category_summary = value
            end
            ## 
            ## Gets the malwareDetectedDeviceCount property value. Count of devices with malware detected in the last 30 days
            ## @return a integer
            ## 
            def malware_detected_device_count
                return @malware_detected_device_count
            end
            ## 
            ## Sets the malwareDetectedDeviceCount property value. Count of devices with malware detected in the last 30 days
            ## @param value Value to set for the malwareDetectedDeviceCount property.
            ## @return a void
            ## 
            def malware_detected_device_count=(value)
                @malware_detected_device_count = value
            end
            ## 
            ## Gets the malwareExecutionStateSummary property value. List of device counts per malware execution state
            ## @return a windows_malware_execution_state_count
            ## 
            def malware_execution_state_summary
                return @malware_execution_state_summary
            end
            ## 
            ## Sets the malwareExecutionStateSummary property value. List of device counts per malware execution state
            ## @param value Value to set for the malwareExecutionStateSummary property.
            ## @return a void
            ## 
            def malware_execution_state_summary=(value)
                @malware_execution_state_summary = value
            end
            ## 
            ## Gets the malwareNameSummary property value. List of device counts per malware
            ## @return a windows_malware_name_count
            ## 
            def malware_name_summary
                return @malware_name_summary
            end
            ## 
            ## Sets the malwareNameSummary property value. List of device counts per malware
            ## @param value Value to set for the malwareNameSummary property.
            ## @return a void
            ## 
            def malware_name_summary=(value)
                @malware_name_summary = value
            end
            ## 
            ## Gets the malwareSeveritySummary property value. List of active malware counts per malware severity
            ## @return a windows_malware_severity_count
            ## 
            def malware_severity_summary
                return @malware_severity_summary
            end
            ## 
            ## Sets the malwareSeveritySummary property value. List of active malware counts per malware severity
            ## @param value Value to set for the malwareSeveritySummary property.
            ## @return a void
            ## 
            def malware_severity_summary=(value)
                @malware_severity_summary = value
            end
            ## 
            ## Gets the malwareStateSummary property value. List of device counts per malware state
            ## @return a windows_malware_state_count
            ## 
            def malware_state_summary
                return @malware_state_summary
            end
            ## 
            ## Sets the malwareStateSummary property value. List of device counts per malware state
            ## @param value Value to set for the malwareStateSummary property.
            ## @return a void
            ## 
            def malware_state_summary=(value)
                @malware_state_summary = value
            end
            ## 
            ## Gets the @odata.type property value. The OdataType property
            ## @return a string
            ## 
            def odata_type
                return @odata_type
            end
            ## 
            ## Sets the @odata.type property value. The OdataType property
            ## @param value Value to set for the @odata.type property.
            ## @return a void
            ## 
            def odata_type=(value)
                @odata_type = value
            end
            ## 
            ## Gets the osVersionsSummary property value. List of device counts with malware per windows OS version
            ## @return a os_version_count
            ## 
            def os_versions_summary
                return @os_versions_summary
            end
            ## 
            ## Sets the osVersionsSummary property value. List of device counts with malware per windows OS version
            ## @param value Value to set for the osVersionsSummary property.
            ## @return a void
            ## 
            def os_versions_summary=(value)
                @os_versions_summary = value
            end
            ## 
            ## Serializes information the current object
            ## @param writer Serialization writer to use to serialize this model
            ## @return a void
            ## 
            def serialize(writer)
                raise StandardError, 'writer cannot be null' if writer.nil?
                writer.write_collection_of_object_values("malwareCategorySummary", @malware_category_summary)
                writer.write_number_value("malwareDetectedDeviceCount", @malware_detected_device_count)
                writer.write_collection_of_object_values("malwareExecutionStateSummary", @malware_execution_state_summary)
                writer.write_collection_of_object_values("malwareNameSummary", @malware_name_summary)
                writer.write_collection_of_object_values("malwareSeveritySummary", @malware_severity_summary)
                writer.write_collection_of_object_values("malwareStateSummary", @malware_state_summary)
                writer.write_string_value("@odata.type", @odata_type)
                writer.write_collection_of_object_values("osVersionsSummary", @os_versions_summary)
                writer.write_number_value("totalDistinctMalwareCount", @total_distinct_malware_count)
                writer.write_number_value("totalMalwareCount", @total_malware_count)
                writer.write_additional_data(@additional_data)
            end
            ## 
            ## Gets the totalDistinctMalwareCount property value. Count of all distinct malwares detected across all devices. Valid values -2147483648 to 2147483647
            ## @return a integer
            ## 
            def total_distinct_malware_count
                return @total_distinct_malware_count
            end
            ## 
            ## Sets the totalDistinctMalwareCount property value. Count of all distinct malwares detected across all devices. Valid values -2147483648 to 2147483647
            ## @param value Value to set for the totalDistinctMalwareCount property.
            ## @return a void
            ## 
            def total_distinct_malware_count=(value)
                @total_distinct_malware_count = value
            end
            ## 
            ## Gets the totalMalwareCount property value. Count of all malware detections across all devices. Valid values -2147483648 to 2147483647
            ## @return a integer
            ## 
            def total_malware_count
                return @total_malware_count
            end
            ## 
            ## Sets the totalMalwareCount property value. Count of all malware detections across all devices. Valid values -2147483648 to 2147483647
            ## @param value Value to set for the totalMalwareCount property.
            ## @return a void
            ## 
            def total_malware_count=(value)
                @total_malware_count = value
            end
        end
    end
end
