public OriginGroupOverrideAction(OriginGroupOverrideActionDefinition parameters)
        {
            if (parameters == null)
            {
                throw new ArgumentNullException(nameof(parameters));
            }

            Parameters = parameters;
            Name       = DeliveryRuleActionType.OriginGroupOverride;
        }
        internal static OriginGroupOverrideAction DeserializeOriginGroupOverrideAction(JsonElement element)
        {
            OriginGroupOverrideActionDefinition parameters = default;
            DeliveryRuleActionType name = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("parameters"))
                {
                    parameters = OriginGroupOverrideActionDefinition.DeserializeOriginGroupOverrideActionDefinition(property.Value);
                    continue;
                }
                if (property.NameEquals("name"))
                {
                    name = new DeliveryRuleActionType(property.Value.GetString());
                    continue;
                }
            }
            return(new OriginGroupOverrideAction(name, parameters));
        }
 internal OriginGroupOverrideAction(DeliveryRuleActionType name, OriginGroupOverrideActionDefinition parameters) : base(name)
 {
     Parameters = parameters;
     Name       = name;
 }