|  |  | 1 |  | // <auto-generated> | 
|  |  | 2 |  | // Code generated by Microsoft (R) AutoRest Code Generator. | 
|  |  | 3 |  | // Changes may cause incorrect behavior and will be lost if the code is | 
|  |  | 4 |  | // regenerated. | 
|  |  | 5 |  | // </auto-generated> | 
|  |  | 6 |  |  | 
|  |  | 7 |  | namespace Microsoft.Azure.CognitiveServices.ContentModerator.Models | 
|  |  | 8 |  | { | 
|  |  | 9 |  |     using Microsoft.Rest; | 
|  |  | 10 |  |     using Newtonsoft.Json; | 
|  |  | 11 |  |     using System.Linq; | 
|  |  | 12 |  |  | 
|  |  | 13 |  |     public partial class VideoFrameBodyItemMetadataItem | 
|  |  | 14 |  |     { | 
|  |  | 15 |  |         /// <summary> | 
|  |  | 16 |  |         /// Initializes a new instance of the VideoFrameBodyItemMetadataItem | 
|  |  | 17 |  |         /// class. | 
|  |  | 18 |  |         /// </summary> | 
|  | 0 | 19 |  |         public VideoFrameBodyItemMetadataItem() | 
|  |  | 20 |  |         { | 
|  |  | 21 |  |             CustomInit(); | 
|  | 0 | 22 |  |         } | 
|  |  | 23 |  |  | 
|  |  | 24 |  |         /// <summary> | 
|  |  | 25 |  |         /// Initializes a new instance of the VideoFrameBodyItemMetadataItem | 
|  |  | 26 |  |         /// class. | 
|  |  | 27 |  |         /// </summary> | 
|  |  | 28 |  |         /// <param name="key">Your key parameter.</param> | 
|  |  | 29 |  |         /// <param name="value">Your value parameter.</param> | 
|  | 5 | 30 |  |         public VideoFrameBodyItemMetadataItem(string key, string value) | 
|  |  | 31 |  |         { | 
|  | 5 | 32 |  |             Key = key; | 
|  | 5 | 33 |  |             Value = value; | 
|  |  | 34 |  |             CustomInit(); | 
|  | 5 | 35 |  |         } | 
|  |  | 36 |  |  | 
|  |  | 37 |  |         /// <summary> | 
|  |  | 38 |  |         /// An initialization method that performs custom operations like setting defaults | 
|  |  | 39 |  |         /// </summary> | 
|  |  | 40 |  |         partial void CustomInit(); | 
|  |  | 41 |  |  | 
|  |  | 42 |  |         /// <summary> | 
|  |  | 43 |  |         /// Gets or sets your key parameter. | 
|  |  | 44 |  |         /// </summary> | 
|  |  | 45 |  |         [JsonProperty(PropertyName = "Key")] | 
|  | 0 | 46 |  |         public string Key { get; set; } | 
|  |  | 47 |  |  | 
|  |  | 48 |  |         /// <summary> | 
|  |  | 49 |  |         /// Gets or sets your value parameter. | 
|  |  | 50 |  |         /// </summary> | 
|  |  | 51 |  |         [JsonProperty(PropertyName = "Value")] | 
|  | 0 | 52 |  |         public string Value { get; set; } | 
|  |  | 53 |  |  | 
|  |  | 54 |  |         /// <summary> | 
|  |  | 55 |  |         /// Validate the object. | 
|  |  | 56 |  |         /// </summary> | 
|  |  | 57 |  |         /// <exception cref="ValidationException"> | 
|  |  | 58 |  |         /// Thrown if validation fails | 
|  |  | 59 |  |         /// </exception> | 
|  |  | 60 |  |         public virtual void Validate() | 
|  |  | 61 |  |         { | 
|  | 0 | 62 |  |             if (Key == null) | 
|  |  | 63 |  |             { | 
|  | 0 | 64 |  |                 throw new ValidationException(ValidationRules.CannotBeNull, "Key"); | 
|  |  | 65 |  |             } | 
|  | 0 | 66 |  |             if (Value == null) | 
|  |  | 67 |  |             { | 
|  | 0 | 68 |  |                 throw new ValidationException(ValidationRules.CannotBeNull, "Value"); | 
|  |  | 69 |  |             } | 
|  | 0 | 70 |  |         } | 
|  |  | 71 |  |     } | 
|  |  | 72 |  | } |