/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (DeleteRetentionPolicy != null)
     {
         DeleteRetentionPolicy.Validate();
     }
     if (ChangeFeed != null)
     {
         ChangeFeed.Validate();
     }
     if (RestorePolicy != null)
     {
         RestorePolicy.Validate();
     }
     if (ContainerDeleteRetentionPolicy != null)
     {
         ContainerDeleteRetentionPolicy.Validate();
     }
     if (LastAccessTimeTrackingPolicy != null)
     {
         LastAccessTimeTrackingPolicy.Validate();
     }
     if (Sku != null)
     {
         Sku.Validate();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (DeleteRetentionPolicy != null)
     {
         DeleteRetentionPolicy.Validate();
     }
     if (RestorePolicy != null)
     {
         RestorePolicy.Validate();
     }
     if (ContainerDeleteRetentionPolicy != null)
     {
         ContainerDeleteRetentionPolicy.Validate();
     }
     if (Sku != null)
     {
         Sku.Validate();
     }
 }