# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Network::Mgmt::V2020_07_01
  module Models
    #
    # Configuration for intrusion detection mode and rules.
    #
    class FirewallPolicyIntrusionDetection

      include MsRestAzure

      # @return [FirewallPolicyIntrusionDetectionStateType] Intrusion detection
      # general state. Possible values include: 'Off', 'Alert', 'Deny'
      attr_accessor :mode

      # @return [FirewallPolicyIntrusionDetectionConfiguration] Intrusion
      # detection configuration properties.
      attr_accessor :configuration


      #
      # Mapper for FirewallPolicyIntrusionDetection class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'FirewallPolicyIntrusionDetection',
          type: {
            name: 'Composite',
            class_name: 'FirewallPolicyIntrusionDetection',
            model_properties: {
              mode: {
                client_side_validation: true,
                required: false,
                serialized_name: 'mode',
                type: {
                  name: 'String'
                }
              },
              configuration: {
                client_side_validation: true,
                required: false,
                serialized_name: 'configuration',
                type: {
                  name: 'Composite',
                  class_name: 'FirewallPolicyIntrusionDetectionConfiguration'
                }
              }
            }
          }
        }
      end
    end
  end
end
