-
Notifications
You must be signed in to change notification settings - Fork 865
/
Copy pathAWSPropertyAttribute.cs
46 lines (41 loc) · 1.08 KB
/
AWSPropertyAttribute.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
44
45
46
using System;
namespace Amazon.Runtime.Internal
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class AWSPropertyAttribute : Attribute
{
private long min;
private long max;
public bool Sensitive { get; set; }
public bool Required { get; set; }
public bool PaginationInputToken { get; set; }
public bool PaginationOutputToken { get; set; }
public bool PaginationLimitKey { get; set; }
public bool IsMinSet { get; private set; }
public long Min
{
get
{
return IsMinSet ? min : long.MinValue;
}
set
{
IsMinSet = true;
min = value;
}
}
public bool IsMaxSet { get; private set; }
public long Max
{
get
{
return IsMaxSet ? max : long.MaxValue;
}
set
{
IsMaxSet = true;
max = value;
}
}
}
}