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

module MicrosoftGraph
    module Models
        class EmailFileAssessmentRequest < MicrosoftGraph::Models::ThreatAssessmentRequest
            include MicrosoftKiotaAbstractions::Parsable
            ## 
            # Base64 encoded .eml email file content. The file content cannot fetch back because it isn't stored.
            @content_data
            ## 
            # The reason for mail routed to its destination. Possible values are: none, mailFlowRule, safeSender, blockedSender, advancedSpamFiltering, domainAllowList, domainBlockList, notInAddressBook, firstTimeSender, autoPurgeToInbox, autoPurgeToJunk, autoPurgeToDeleted, outbound, notJunk, junk.
            @destination_routing_reason
            ## 
            # The mail recipient whose policies are used to assess the mail.
            @recipient_email
            ## 
            ## Instantiates a new emailFileAssessmentRequest and sets the default values.
            ## @return a void
            ## 
            def initialize()
                super
                @odata_type = "#microsoft.graph.emailFileAssessmentRequest"
            end
            ## 
            ## Gets the contentData property value. Base64 encoded .eml email file content. The file content cannot fetch back because it isn't stored.
            ## @return a string
            ## 
            def content_data
                return @content_data
            end
            ## 
            ## Sets the contentData property value. Base64 encoded .eml email file content. The file content cannot fetch back because it isn't stored.
            ## @param value Value to set for the contentData property.
            ## @return a void
            ## 
            def content_data=(value)
                @content_data = value
            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 email_file_assessment_request
            ## 
            def self.create_from_discriminator_value(parse_node)
                raise StandardError, 'parse_node cannot be null' if parse_node.nil?
                return EmailFileAssessmentRequest.new
            end
            ## 
            ## Gets the destinationRoutingReason property value. The reason for mail routed to its destination. Possible values are: none, mailFlowRule, safeSender, blockedSender, advancedSpamFiltering, domainAllowList, domainBlockList, notInAddressBook, firstTimeSender, autoPurgeToInbox, autoPurgeToJunk, autoPurgeToDeleted, outbound, notJunk, junk.
            ## @return a mail_destination_routing_reason
            ## 
            def destination_routing_reason
                return @destination_routing_reason
            end
            ## 
            ## Sets the destinationRoutingReason property value. The reason for mail routed to its destination. Possible values are: none, mailFlowRule, safeSender, blockedSender, advancedSpamFiltering, domainAllowList, domainBlockList, notInAddressBook, firstTimeSender, autoPurgeToInbox, autoPurgeToJunk, autoPurgeToDeleted, outbound, notJunk, junk.
            ## @param value Value to set for the destinationRoutingReason property.
            ## @return a void
            ## 
            def destination_routing_reason=(value)
                @destination_routing_reason = value
            end
            ## 
            ## The deserialization information for the current model
            ## @return a i_dictionary
            ## 
            def get_field_deserializers()
                return super.merge({
                    "contentData" => lambda {|n| @content_data = n.get_string_value() },
                    "destinationRoutingReason" => lambda {|n| @destination_routing_reason = n.get_enum_value(MicrosoftGraph::Models::MailDestinationRoutingReason) },
                    "recipientEmail" => lambda {|n| @recipient_email = n.get_string_value() },
                })
            end
            ## 
            ## Gets the recipientEmail property value. The mail recipient whose policies are used to assess the mail.
            ## @return a string
            ## 
            def recipient_email
                return @recipient_email
            end
            ## 
            ## Sets the recipientEmail property value. The mail recipient whose policies are used to assess the mail.
            ## @param value Value to set for the recipientEmail property.
            ## @return a void
            ## 
            def recipient_email=(value)
                @recipient_email = 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?
                super
                writer.write_string_value("contentData", @content_data)
                writer.write_enum_value("destinationRoutingReason", @destination_routing_reason)
                writer.write_string_value("recipientEmail", @recipient_email)
            end
        end
    end
end
