-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
EntityDataSource.cs
43 lines (38 loc) · 1.57 KB
/
EntityDataSource.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using Azure.Core;
namespace Azure.AI.TextAnalytics
{
/// <summary>
/// A model representing a reference for the healthcare entity into a specific entity catalog.
/// </summary>
[CodeGenModel("HealthcareEntityLink")]
public partial class EntityDataSource
{
/// <summary> Initializes a new instance of EntityDataSource. </summary>
/// <param name="name"> Entity Catalog. Examples include: UMLS, CHV, MSH, etc. </param>
/// <param name="entityId"> Entity id in the given source catalog. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/> or <paramref name="entityId"/> is null. </exception>
internal EntityDataSource(string name, string entityId)
{
// See https://github.com/Azure/azure-sdk-for-net/issues/28323 for why this constructor was redefined.
if (name == null)
{
throw new ArgumentNullException(nameof(name));
}
if (entityId == null)
{
throw new ArgumentNullException(nameof(entityId));
}
Name = name;
EntityId = entityId;
}
/// <summary> Entity id in the given source catalog. </summary>
[CodeGenMember("Id")]
public string EntityId { get; }
/// <summary> Entity Catalog. Examples include: UMLS, CHV, MSH, etc. </summary>
[CodeGenMember("DataSource")]
public string Name { get; }
}
}