6
6
@ javax .annotation .Generated (value = "OracleSDKGenerator" , comments = "API Version: 20160918" )
7
7
@ lombok .Value
8
8
@ com .fasterxml .jackson .databind .annotation .JsonDeserialize (builder = AuditEvent .Builder .class )
9
+ @ com .fasterxml .jackson .annotation .JsonFilter (com .oracle .bmc .http .internal .ExplicitlySetFilter .NAME )
9
10
public class AuditEvent {
10
11
@ com .fasterxml .jackson .databind .annotation .JsonPOJOBuilder (withPrefix = "" )
11
12
@ lombok .experimental .Accessors (fluent = true )
12
- @ lombok .Setter
13
13
public static class Builder {
14
14
@ com .fasterxml .jackson .annotation .JsonProperty ("tenantId" )
15
15
private String tenantId ;
16
16
17
+ public Builder tenantId (String tenantId ) {
18
+ this .tenantId = tenantId ;
19
+ this .__explicitlySet__ .add ("tenantId" );
20
+ return this ;
21
+ }
22
+
17
23
@ com .fasterxml .jackson .annotation .JsonProperty ("compartmentId" )
18
24
private String compartmentId ;
19
25
26
+ public Builder compartmentId (String compartmentId ) {
27
+ this .compartmentId = compartmentId ;
28
+ this .__explicitlySet__ .add ("compartmentId" );
29
+ return this ;
30
+ }
31
+
20
32
@ com .fasterxml .jackson .annotation .JsonProperty ("eventId" )
21
33
private String eventId ;
22
34
35
+ public Builder eventId (String eventId ) {
36
+ this .eventId = eventId ;
37
+ this .__explicitlySet__ .add ("eventId" );
38
+ return this ;
39
+ }
40
+
23
41
@ com .fasterxml .jackson .annotation .JsonProperty ("eventSource" )
24
42
private String eventSource ;
25
43
44
+ public Builder eventSource (String eventSource ) {
45
+ this .eventSource = eventSource ;
46
+ this .__explicitlySet__ .add ("eventSource" );
47
+ return this ;
48
+ }
49
+
26
50
@ com .fasterxml .jackson .annotation .JsonProperty ("eventType" )
27
51
private String eventType ;
28
52
53
+ public Builder eventType (String eventType ) {
54
+ this .eventType = eventType ;
55
+ this .__explicitlySet__ .add ("eventType" );
56
+ return this ;
57
+ }
58
+
29
59
@ com .fasterxml .jackson .annotation .JsonProperty ("eventTime" )
30
60
private java .util .Date eventTime ;
31
61
62
+ public Builder eventTime (java .util .Date eventTime ) {
63
+ this .eventTime = eventTime ;
64
+ this .__explicitlySet__ .add ("eventTime" );
65
+ return this ;
66
+ }
67
+
32
68
@ com .fasterxml .jackson .annotation .JsonProperty ("principalId" )
33
69
private String principalId ;
34
70
71
+ public Builder principalId (String principalId ) {
72
+ this .principalId = principalId ;
73
+ this .__explicitlySet__ .add ("principalId" );
74
+ return this ;
75
+ }
76
+
35
77
@ com .fasterxml .jackson .annotation .JsonProperty ("credentialId" )
36
78
private String credentialId ;
37
79
80
+ public Builder credentialId (String credentialId ) {
81
+ this .credentialId = credentialId ;
82
+ this .__explicitlySet__ .add ("credentialId" );
83
+ return this ;
84
+ }
85
+
38
86
@ com .fasterxml .jackson .annotation .JsonProperty ("requestAction" )
39
87
private String requestAction ;
40
88
89
+ public Builder requestAction (String requestAction ) {
90
+ this .requestAction = requestAction ;
91
+ this .__explicitlySet__ .add ("requestAction" );
92
+ return this ;
93
+ }
94
+
41
95
@ com .fasterxml .jackson .annotation .JsonProperty ("requestId" )
42
96
private String requestId ;
43
97
98
+ public Builder requestId (String requestId ) {
99
+ this .requestId = requestId ;
100
+ this .__explicitlySet__ .add ("requestId" );
101
+ return this ;
102
+ }
103
+
44
104
@ com .fasterxml .jackson .annotation .JsonProperty ("requestAgent" )
45
105
private String requestAgent ;
46
106
107
+ public Builder requestAgent (String requestAgent ) {
108
+ this .requestAgent = requestAgent ;
109
+ this .__explicitlySet__ .add ("requestAgent" );
110
+ return this ;
111
+ }
112
+
47
113
@ com .fasterxml .jackson .annotation .JsonProperty ("requestHeaders" )
48
114
private java .util .Map <String , java .util .List <String >> requestHeaders ;
49
115
116
+ public Builder requestHeaders (
117
+ java .util .Map <String , java .util .List <String >> requestHeaders ) {
118
+ this .requestHeaders = requestHeaders ;
119
+ this .__explicitlySet__ .add ("requestHeaders" );
120
+ return this ;
121
+ }
122
+
50
123
@ com .fasterxml .jackson .annotation .JsonProperty ("requestOrigin" )
51
124
private String requestOrigin ;
52
125
126
+ public Builder requestOrigin (String requestOrigin ) {
127
+ this .requestOrigin = requestOrigin ;
128
+ this .__explicitlySet__ .add ("requestOrigin" );
129
+ return this ;
130
+ }
131
+
53
132
@ com .fasterxml .jackson .annotation .JsonProperty ("requestParameters" )
54
133
private java .util .Map <String , java .util .List <String >> requestParameters ;
55
134
135
+ public Builder requestParameters (
136
+ java .util .Map <String , java .util .List <String >> requestParameters ) {
137
+ this .requestParameters = requestParameters ;
138
+ this .__explicitlySet__ .add ("requestParameters" );
139
+ return this ;
140
+ }
141
+
56
142
@ com .fasterxml .jackson .annotation .JsonProperty ("requestResource" )
57
143
private String requestResource ;
58
144
145
+ public Builder requestResource (String requestResource ) {
146
+ this .requestResource = requestResource ;
147
+ this .__explicitlySet__ .add ("requestResource" );
148
+ return this ;
149
+ }
150
+
59
151
@ com .fasterxml .jackson .annotation .JsonProperty ("responseHeaders" )
60
152
private java .util .Map <String , java .util .List <String >> responseHeaders ;
61
153
154
+ public Builder responseHeaders (
155
+ java .util .Map <String , java .util .List <String >> responseHeaders ) {
156
+ this .responseHeaders = responseHeaders ;
157
+ this .__explicitlySet__ .add ("responseHeaders" );
158
+ return this ;
159
+ }
160
+
62
161
@ com .fasterxml .jackson .annotation .JsonProperty ("responseStatus" )
63
162
private String responseStatus ;
64
163
164
+ public Builder responseStatus (String responseStatus ) {
165
+ this .responseStatus = responseStatus ;
166
+ this .__explicitlySet__ .add ("responseStatus" );
167
+ return this ;
168
+ }
169
+
65
170
@ com .fasterxml .jackson .annotation .JsonProperty ("responseTime" )
66
171
private java .util .Date responseTime ;
67
172
173
+ public Builder responseTime (java .util .Date responseTime ) {
174
+ this .responseTime = responseTime ;
175
+ this .__explicitlySet__ .add ("responseTime" );
176
+ return this ;
177
+ }
178
+
179
+ @ com .fasterxml .jackson .annotation .JsonIgnore
180
+ private final java .util .Set <String > __explicitlySet__ = new java .util .HashSet <String >();
181
+
68
182
public AuditEvent build () {
69
- return new AuditEvent (
70
- tenantId ,
71
- compartmentId ,
72
- eventId ,
73
- eventSource ,
74
- eventType ,
75
- eventTime ,
76
- principalId ,
77
- credentialId ,
78
- requestAction ,
79
- requestId ,
80
- requestAgent ,
81
- requestHeaders ,
82
- requestOrigin ,
83
- requestParameters ,
84
- requestResource ,
85
- responseHeaders ,
86
- responseStatus ,
87
- responseTime );
183
+ AuditEvent __instance__ =
184
+ new AuditEvent (
185
+ tenantId ,
186
+ compartmentId ,
187
+ eventId ,
188
+ eventSource ,
189
+ eventType ,
190
+ eventTime ,
191
+ principalId ,
192
+ credentialId ,
193
+ requestAction ,
194
+ requestId ,
195
+ requestAgent ,
196
+ requestHeaders ,
197
+ requestOrigin ,
198
+ requestParameters ,
199
+ requestResource ,
200
+ responseHeaders ,
201
+ responseStatus ,
202
+ responseTime );
203
+ __instance__ .__explicitlySet__ .addAll (__explicitlySet__ );
204
+ return __instance__ ;
88
205
}
89
206
90
207
@ com .fasterxml .jackson .annotation .JsonIgnore
@@ -121,35 +238,30 @@ public static Builder builder() {
121
238
* The OCID of the tenant.
122
239
**/
123
240
@ com .fasterxml .jackson .annotation .JsonProperty ("tenantId" )
124
- @ javax .validation .constraints .Size (min = 1 , max = 255 )
125
241
String tenantId ;
126
242
127
243
/**
128
244
* The OCID of the compartment.
129
245
**/
130
246
@ com .fasterxml .jackson .annotation .JsonProperty ("compartmentId" )
131
- @ javax .validation .constraints .Size (min = 1 , max = 255 )
132
247
String compartmentId ;
133
248
134
249
/**
135
250
* The GUID of the event.
136
251
**/
137
252
@ com .fasterxml .jackson .annotation .JsonProperty ("eventId" )
138
- @ javax .validation .constraints .Size (min = 1 , max = 255 )
139
253
String eventId ;
140
254
141
255
/**
142
256
* The source of the event.
143
257
**/
144
258
@ com .fasterxml .jackson .annotation .JsonProperty ("eventSource" )
145
- @ javax .validation .constraints .Size (min = 1 , max = 255 )
146
259
String eventSource ;
147
260
148
261
/**
149
262
* The type of the event.
150
263
**/
151
264
@ com .fasterxml .jackson .annotation .JsonProperty ("eventType" )
152
- @ javax .validation .constraints .Size (min = 1 , max = 255 )
153
265
String eventType ;
154
266
155
267
/**
@@ -162,7 +274,6 @@ public static Builder builder() {
162
274
* The OCID of the user whose action triggered the event.
163
275
**/
164
276
@ com .fasterxml .jackson .annotation .JsonProperty ("principalId" )
165
- @ javax .validation .constraints .Size (min = 1 , max = 255 )
166
277
String principalId ;
167
278
168
279
/**
@@ -175,7 +286,6 @@ public static Builder builder() {
175
286
* The HTTP method of the request.
176
287
**/
177
288
@ com .fasterxml .jackson .annotation .JsonProperty ("requestAction" )
178
- @ javax .validation .constraints .Size (min = 1 , max = 255 )
179
289
String requestAction ;
180
290
181
291
/**
@@ -200,7 +310,6 @@ public static Builder builder() {
200
310
* The IP address of the source of the request.
201
311
**/
202
312
@ com .fasterxml .jackson .annotation .JsonProperty ("requestOrigin" )
203
- @ javax .validation .constraints .Size (min = 1 , max = 255 )
204
313
String requestOrigin ;
205
314
206
315
/**
@@ -225,12 +334,14 @@ public static Builder builder() {
225
334
* The status code of the response.
226
335
**/
227
336
@ com .fasterxml .jackson .annotation .JsonProperty ("responseStatus" )
228
- @ javax .validation .constraints .Size (min = 1 , max = 255 )
229
337
String responseStatus ;
230
338
231
339
/**
232
340
* The time of the response to the audited request, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
233
341
**/
234
342
@ com .fasterxml .jackson .annotation .JsonProperty ("responseTime" )
235
343
java .util .Date responseTime ;
344
+
345
+ @ com .fasterxml .jackson .annotation .JsonIgnore
346
+ private final java .util .Set <String > __explicitlySet__ = new java .util .HashSet <String >();
236
347
}
0 commit comments