| | | 1 | | // <auto-generated> |
| | | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | | 4 | | // license information. |
| | | 5 | | // |
| | | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 8 | | // regenerated. |
| | | 9 | | // </auto-generated> |
| | | 10 | | |
| | | 11 | | namespace Microsoft.Azure.EventGrid.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Collections; |
| | | 15 | | using System.Collections.Generic; |
| | | 16 | | using System.Linq; |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Schema of the Data property of an EventGridEvent for a |
| | | 20 | | /// Microsoft.Media.JobStateChange event. |
| | | 21 | | /// </summary> |
| | | 22 | | public partial class MediaJobStateChangeEventData |
| | | 23 | | { |
| | | 24 | | /// <summary> |
| | | 25 | | /// Initializes a new instance of the MediaJobStateChangeEventData |
| | | 26 | | /// class. |
| | | 27 | | /// </summary> |
| | 7 | 28 | | public MediaJobStateChangeEventData() |
| | | 29 | | { |
| | | 30 | | CustomInit(); |
| | 7 | 31 | | } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Initializes a new instance of the MediaJobStateChangeEventData |
| | | 35 | | /// class. |
| | | 36 | | /// </summary> |
| | | 37 | | /// <param name="previousState">The previous state of the Job. Possible |
| | | 38 | | /// values include: 'Canceled', 'Canceling', 'Error', 'Finished', |
| | | 39 | | /// 'Processing', 'Queued', 'Scheduled'</param> |
| | | 40 | | /// <param name="state">The new state of the Job. Possible values |
| | | 41 | | /// include: 'Canceled', 'Canceling', 'Error', 'Finished', |
| | | 42 | | /// 'Processing', 'Queued', 'Scheduled'</param> |
| | | 43 | | /// <param name="correlationData">Gets the Job correlation |
| | | 44 | | /// data.</param> |
| | 0 | 45 | | public MediaJobStateChangeEventData(MediaJobState previousState = default(MediaJobState), MediaJobState state = |
| | | 46 | | { |
| | 0 | 47 | | PreviousState = previousState; |
| | 0 | 48 | | State = state; |
| | 0 | 49 | | CorrelationData = correlationData; |
| | | 50 | | CustomInit(); |
| | 0 | 51 | | } |
| | | 52 | | |
| | | 53 | | /// <summary> |
| | | 54 | | /// An initialization method that performs custom operations like setting defaults |
| | | 55 | | /// </summary> |
| | | 56 | | partial void CustomInit(); |
| | | 57 | | |
| | | 58 | | /// <summary> |
| | | 59 | | /// Gets the previous state of the Job. Possible values include: |
| | | 60 | | /// 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', |
| | | 61 | | /// 'Queued', 'Scheduled' |
| | | 62 | | /// </summary> |
| | | 63 | | [JsonProperty(PropertyName = "previousState")] |
| | 21 | 64 | | public MediaJobState PreviousState { get; private set; } |
| | | 65 | | |
| | | 66 | | /// <summary> |
| | | 67 | | /// Gets the new state of the Job. Possible values include: 'Canceled', |
| | | 68 | | /// 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', |
| | | 69 | | /// 'Scheduled' |
| | | 70 | | /// </summary> |
| | | 71 | | [JsonProperty(PropertyName = "state")] |
| | 21 | 72 | | public MediaJobState State { get; private set; } |
| | | 73 | | |
| | | 74 | | /// <summary> |
| | | 75 | | /// Gets the Job correlation data. |
| | | 76 | | /// </summary> |
| | | 77 | | [JsonProperty(PropertyName = "correlationData")] |
| | 14 | 78 | | public IDictionary<string, string> CorrelationData { get; set; } |
| | | 79 | | |
| | | 80 | | } |
| | | 81 | | } |