Repository navigation
Expand file tree
/
Copy pathToken.java
More file actions
149 lines (118 loc) · 2.8 KB
/
Copy pathToken.java
File metadata and controls
149 lines (118 loc) · 2.8 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
package model;
import java.util.List;
import com.fasterxml.jackson.annotation.*;
public class Token {
private String _guid;
private String _id = "";
private String _pairingCode = "";
private long _pairingExpiration;
private String _facade = "";
private String _label = "";
private int _count = 0;
private List<Policy> _policies;
private String _resource;
private String _value;
private long _dateCreated;
public Token() {}
// API fields
//
@JsonProperty("guid")
public String getGuid() {
return _guid;
}
@JsonProperty("guid")
public void setGuid(String guid) {
this._guid = guid;
}
// Required fields
//
@JsonProperty("id")
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public String getId() {
return _id;
}
@JsonProperty("id")
public void setId(String id) {
this._id = id;
}
// Optional fields
//
@JsonProperty("pairingCode")
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public String getPairingCode() {
return _pairingCode;
}
@JsonProperty("pairingCode")
public void setPairingCode(String pairingCode) {
this._pairingCode = pairingCode;
}
@JsonProperty("facade")
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public String getFacade() {
return _facade;
}
@JsonProperty("facade")
public void setFacade(String facade) {
this._facade = facade;
}
@JsonProperty("label")
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public String getLabel() {
return _label;
}
@JsonProperty("label")
public void setLabel(String label) {
this._label = label;
}
@JsonProperty("count")
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public int getCount() {
return _count;
}
@JsonProperty("count")
public void setCount(int count) {
this._count = count;
}
// Response fields
//
@JsonIgnore
public long getPairingExpiration() {
return _pairingExpiration;
}
@JsonProperty("pairingExpiration")
public void setPairingExpiration(long pairingExpiration) {
this._pairingExpiration = pairingExpiration;
}
@JsonIgnore
public List<Policy> getPolicies() {
return _policies;
}
@JsonProperty("policies")
public void setPolicies(List<Policy> policies) {
this._policies = policies;
}
@JsonIgnore
public String getResource() {
return _resource;
}
@JsonProperty("resource")
public void setResource(String resource) {
this._resource = resource;
}
@JsonIgnore
public String getValue() {
return _value;
}
@JsonProperty("token")
public void setValue(String value) {
this._value = value;
}
@JsonIgnore
public long getDateCreated() {
return _dateCreated;
}
@JsonProperty("dateCreated")
public void setDateCreated(long dateCreated) {
this._dateCreated = dateCreated;
}
}