/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (Probes != null)
     {
         foreach (var element in Probes)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
     if (BackendHttpSettingsCollection != null)
     {
         foreach (var element1 in BackendHttpSettingsCollection)
         {
             if (element1 != null)
             {
                 element1.Validate();
             }
         }
     }
     if (WebApplicationFirewallConfiguration != null)
     {
         WebApplicationFirewallConfiguration.Validate();
     }
     if (AutoscaleConfiguration != null)
     {
         AutoscaleConfiguration.Validate();
     }
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (Probes != null)
     {
         foreach (var element in Probes)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
     if (BackendHttpSettingsCollection != null)
     {
         foreach (var element1 in BackendHttpSettingsCollection)
         {
             if (element1 != null)
             {
                 element1.Validate();
             }
         }
     }
     if (RequestRoutingRules != null)
     {
         foreach (var element2 in RequestRoutingRules)
         {
             if (element2 != null)
             {
                 element2.Validate();
             }
         }
     }
     if (WebApplicationFirewallConfiguration != null)
     {
         WebApplicationFirewallConfiguration.Validate();
     }
     if (AutoscaleConfiguration != null)
     {
         AutoscaleConfiguration.Validate();
     }
     if (PrivateEndpointConnections != null)
     {
         foreach (var element3 in PrivateEndpointConnections)
         {
             if (element3 != null)
             {
                 element3.Validate();
             }
         }
     }
 }