/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (ExtendedLocation != null)
     {
         ExtendedLocation.Validate();
     }
     if (PrivateEndpoint != null)
     {
         PrivateEndpoint.Validate();
     }
     if (IpConfigurations != null)
     {
         foreach (var element in IpConfigurations)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
     if (TapConfigurations != null)
     {
         foreach (var element1 in TapConfigurations)
         {
             if (element1 != null)
             {
                 element1.Validate();
             }
         }
     }
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (PrivateEndpoint != null)
     {
         PrivateEndpoint.Validate();
     }
 }