| | 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; |
| | 9 | |
|
| | 10 | | namespace Azure.AI.TextAnalytics.Models |
| | 11 | | { |
| | 12 | | /// <summary> The AspectRelation. </summary> |
| | 13 | | internal partial class AspectRelation |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of AspectRelation. </summary> |
| | 16 | | /// <param name="relationType"> The type related to the aspect. </param> |
| | 17 | | /// <param name="ref"> The JSON pointer indicating the linked object. </param> |
| | 18 | | /// <exception cref="ArgumentNullException"> <paramref name="ref"/> is null. </exception> |
| 0 | 19 | | internal AspectRelation(AspectRelationType relationType, string @ref) |
| | 20 | | { |
| 0 | 21 | | if (@ref == null) |
| | 22 | | { |
| 0 | 23 | | throw new ArgumentNullException(nameof(@ref)); |
| | 24 | | } |
| | 25 | |
|
| 0 | 26 | | RelationType = relationType; |
| 0 | 27 | | Ref = @ref; |
| 0 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> The type related to the aspect. </summary> |
| 0 | 31 | | public AspectRelationType RelationType { get; } |
| | 32 | | /// <summary> The JSON pointer indicating the linked object. </summary> |
| 0 | 33 | | public string Ref { get; } |
| | 34 | | } |
| | 35 | | } |