# This file was generated by the Julia Swagger Code Generator
# Do not modify this file directly. Modify the swagger specification instead.


mutable struct ApplicationGatewayRewriteRule <: SwaggerModel
    name::Any # spec type: Union{ Nothing, String } # spec name: name
    ruleSequence::Any # spec type: Union{ Nothing, Int32 } # spec name: ruleSequence
    conditions::Any # spec type: Union{ Nothing, Vector{ApplicationGatewayRewriteRuleCondition} } # spec name: conditions
    actionSet::Any # spec type: Union{ Nothing, ApplicationGatewayRewriteRuleActionSet } # spec name: actionSet

    function ApplicationGatewayRewriteRule(;name=nothing, ruleSequence=nothing, conditions=nothing, actionSet=nothing)
        o = new()
        validate_property(ApplicationGatewayRewriteRule, Symbol("name"), name)
        setfield!(o, Symbol("name"), name)
        validate_property(ApplicationGatewayRewriteRule, Symbol("ruleSequence"), ruleSequence)
        setfield!(o, Symbol("ruleSequence"), ruleSequence)
        validate_property(ApplicationGatewayRewriteRule, Symbol("conditions"), conditions)
        setfield!(o, Symbol("conditions"), conditions)
        validate_property(ApplicationGatewayRewriteRule, Symbol("actionSet"), actionSet)
        setfield!(o, Symbol("actionSet"), actionSet)
        o
    end
end # type ApplicationGatewayRewriteRule

const _property_map_ApplicationGatewayRewriteRule = Dict{Symbol,Symbol}(Symbol("name")=>Symbol("name"), Symbol("ruleSequence")=>Symbol("ruleSequence"), Symbol("conditions")=>Symbol("conditions"), Symbol("actionSet")=>Symbol("actionSet"))
const _property_types_ApplicationGatewayRewriteRule = Dict{Symbol,String}(Symbol("name")=>"String", Symbol("ruleSequence")=>"Int32", Symbol("conditions")=>"Vector{ApplicationGatewayRewriteRuleCondition}", Symbol("actionSet")=>"ApplicationGatewayRewriteRuleActionSet")
Base.propertynames(::Type{ ApplicationGatewayRewriteRule }) = collect(keys(_property_map_ApplicationGatewayRewriteRule))
Swagger.property_type(::Type{ ApplicationGatewayRewriteRule }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_ApplicationGatewayRewriteRule[name]))}
Swagger.field_name(::Type{ ApplicationGatewayRewriteRule }, property_name::Symbol) =  _property_map_ApplicationGatewayRewriteRule[property_name]

function check_required(o::ApplicationGatewayRewriteRule)
    true
end

function validate_property(::Type{ ApplicationGatewayRewriteRule }, name::Symbol, val)
end
