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

module MicrosoftGraph
    module Models
        ## 
        # Specify Defender’s actions to take on detected Malware per threat level.
        class DefenderDetectedMalwareActions
            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
            ## 
            # Defender’s default action to take on detected Malware threats.
            @high_severity
            ## 
            # Defender’s default action to take on detected Malware threats.
            @low_severity
            ## 
            # Defender’s default action to take on detected Malware threats.
            @moderate_severity
            ## 
            # The OdataType property
            @odata_type
            ## 
            # Defender’s default action to take on detected Malware threats.
            @severe_severity
            ## 
            ## 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 defenderDetectedMalwareActions 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 defender_detected_malware_actions
            ## 
            def self.create_from_discriminator_value(parse_node)
                raise StandardError, 'parse_node cannot be null' if parse_node.nil?
                return DefenderDetectedMalwareActions.new
            end
            ## 
            ## The deserialization information for the current model
            ## @return a i_dictionary
            ## 
            def get_field_deserializers()
                return {
                    "highSeverity" => lambda {|n| @high_severity = n.get_enum_value(MicrosoftGraph::Models::DefenderThreatAction) },
                    "lowSeverity" => lambda {|n| @low_severity = n.get_enum_value(MicrosoftGraph::Models::DefenderThreatAction) },
                    "moderateSeverity" => lambda {|n| @moderate_severity = n.get_enum_value(MicrosoftGraph::Models::DefenderThreatAction) },
                    "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
                    "severeSeverity" => lambda {|n| @severe_severity = n.get_enum_value(MicrosoftGraph::Models::DefenderThreatAction) },
                }
            end
            ## 
            ## Gets the highSeverity property value. Defender’s default action to take on detected Malware threats.
            ## @return a defender_threat_action
            ## 
            def high_severity
                return @high_severity
            end
            ## 
            ## Sets the highSeverity property value. Defender’s default action to take on detected Malware threats.
            ## @param value Value to set for the highSeverity property.
            ## @return a void
            ## 
            def high_severity=(value)
                @high_severity = value
            end
            ## 
            ## Gets the lowSeverity property value. Defender’s default action to take on detected Malware threats.
            ## @return a defender_threat_action
            ## 
            def low_severity
                return @low_severity
            end
            ## 
            ## Sets the lowSeverity property value. Defender’s default action to take on detected Malware threats.
            ## @param value Value to set for the lowSeverity property.
            ## @return a void
            ## 
            def low_severity=(value)
                @low_severity = value
            end
            ## 
            ## Gets the moderateSeverity property value. Defender’s default action to take on detected Malware threats.
            ## @return a defender_threat_action
            ## 
            def moderate_severity
                return @moderate_severity
            end
            ## 
            ## Sets the moderateSeverity property value. Defender’s default action to take on detected Malware threats.
            ## @param value Value to set for the moderateSeverity property.
            ## @return a void
            ## 
            def moderate_severity=(value)
                @moderate_severity = 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
            ## 
            ## 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_enum_value("highSeverity", @high_severity)
                writer.write_enum_value("lowSeverity", @low_severity)
                writer.write_enum_value("moderateSeverity", @moderate_severity)
                writer.write_string_value("@odata.type", @odata_type)
                writer.write_enum_value("severeSeverity", @severe_severity)
                writer.write_additional_data(@additional_data)
            end
            ## 
            ## Gets the severeSeverity property value. Defender’s default action to take on detected Malware threats.
            ## @return a defender_threat_action
            ## 
            def severe_severity
                return @severe_severity
            end
            ## 
            ## Sets the severeSeverity property value. Defender’s default action to take on detected Malware threats.
            ## @param value Value to set for the severeSeverity property.
            ## @return a void
            ## 
            def severe_severity=(value)
                @severe_severity = value
            end
        end
    end
end
