| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System.Collections.Generic; |
| | 9 | | using Azure.Core; |
| | 10 | |
|
| | 11 | | namespace Azure.Messaging.EventGrid.SystemEvents |
| | 12 | | { |
| | 13 | | /// <summary> Schema of the Data property of an EventGridEvent for a Microsoft.Media.JobStateChange event. </summary |
| | 14 | | public partial class MediaJobStateChangeEventData |
| | 15 | | { |
| | 16 | | /// <summary> Initializes a new instance of MediaJobStateChangeEventData. </summary> |
| 0 | 17 | | internal MediaJobStateChangeEventData() |
| | 18 | | { |
| 0 | 19 | | CorrelationData = new ChangeTrackingDictionary<string, string>(); |
| 0 | 20 | | } |
| | 21 | |
|
| | 22 | | /// <summary> Initializes a new instance of MediaJobStateChangeEventData. </summary> |
| | 23 | | /// <param name="previousState"> The previous state of the Job. </param> |
| | 24 | | /// <param name="state"> The new state of the Job. </param> |
| | 25 | | /// <param name="correlationData"> Gets the Job correlation data. </param> |
| 14 | 26 | | internal MediaJobStateChangeEventData(MediaJobState? previousState, MediaJobState? state, IReadOnlyDictionary<st |
| | 27 | | { |
| 14 | 28 | | PreviousState = previousState; |
| 14 | 29 | | State = state; |
| 14 | 30 | | CorrelationData = correlationData; |
| 14 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> The previous state of the Job. </summary> |
| 14 | 34 | | public MediaJobState? PreviousState { get; } |
| | 35 | | /// <summary> The new state of the Job. </summary> |
| 14 | 36 | | public MediaJobState? State { get; } |
| | 37 | | /// <summary> Gets the Job correlation data. </summary> |
| 0 | 38 | | public IReadOnlyDictionary<string, string> CorrelationData { get; } |
| | 39 | | } |
| | 40 | | } |