forked from mspnp/AzureNamingTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ResourceLocation.cs
39 lines (34 loc) · 1.07 KB
/
ResourceLocation.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
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
namespace AzureNamingTool.Models
{
/// <summary>
/// Represents a resource location.
/// </summary>
public class ResourceLocation
{
/// <summary>
/// Gets or sets the ID of the resource location.
/// </summary>
public long Id { get; set; }
/// <summary>
/// Gets or sets the name of the resource location.
/// </summary>
[Required()]
public string Name { get; set; } = String.Empty;
private string _ShortName = String.Empty;
/// <summary>
/// Gets or sets the short name of the resource location.
/// </summary>
[Required()]
public string ShortName
{
get { return _ShortName; } // get method
set => _ShortName = value; // set method
}
/// <summary>
/// Gets or sets a value indicating whether the resource location is enabled.
/// </summary>
public bool Enabled { get; set; } = true;
}
}