/// <summary>
 /// Initializes a new instance of the CaptureDescription class.
 /// </summary>
 /// <param name="enabled">A value that indicates whether capture
 /// description is enabled. </param>
 /// <param name="encoding">Enumerates the possible values for the
 /// encoding format of capture description. Possible values include:
 /// 'Avro', 'AvroDeflate'</param>
 /// <param name="intervalInSeconds">The time window allows you to set
 /// the frequency with which the capture to Azure Blobs will happen,
 /// value should between 60 to 900 seconds</param>
 /// <param name="sizeLimitInBytes">The size window defines the amount
 /// of data built up in your Event Hub before an capture operation,
 /// value should be between 10485760 to 524288000 bytes</param>
 /// <param name="destination">Properties of Destination where capture
 /// will be stored. (Storage Account, Blob Names)</param>
 public CaptureDescriptionAttributes(Microsoft.Azure.Management.EventHub.Models.CaptureDescription captureDescResource)
 {
     Enabled           = captureDescResource.Enabled;
     Encoding          = (EnumEncodingCaptureDescription)captureDescResource.Encoding;
     IntervalInSeconds = captureDescResource.IntervalInSeconds;
     SizeLimitInBytes  = captureDescResource.SizeLimitInBytes;
     if (captureDescResource.Destination != null)
     {
         Destination = new DestinationAttributes(captureDescResource.Destination);
     }
     else
     {
         Destination = null;
     }
 }
 public CaptureDescriptionAttributes()
 {
     Destination = new DestinationAttributes();
 }