# 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::CDN::Mgmt::V2020_09_01
  module Models
    #
    # The json object containing security policy waf parameters
    #
    class SecurityPolicyWebApplicationFirewallParameters < SecurityPolicyParameters

      include MsRestAzure


      def initialize
        @type = "WebApplicationFirewall"
      end

      attr_accessor :type

      # @return [ResourceReference] Resource ID.
      attr_accessor :waf_policy

      # @return [Array<SecurityPolicyWebApplicationFirewallAssociation>] Waf
      # associations
      attr_accessor :associations


      #
      # Mapper for SecurityPolicyWebApplicationFirewallParameters class as Ruby
      # Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'WebApplicationFirewall',
          type: {
            name: 'Composite',
            class_name: 'SecurityPolicyWebApplicationFirewallParameters',
            model_properties: {
              type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              waf_policy: {
                client_side_validation: true,
                required: false,
                serialized_name: 'wafPolicy',
                type: {
                  name: 'Composite',
                  class_name: 'ResourceReference'
                }
              },
              associations: {
                client_side_validation: true,
                required: false,
                serialized_name: 'associations',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'SecurityPolicyWebApplicationFirewallAssociationElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'SecurityPolicyWebApplicationFirewallAssociation'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
