66@ javax .annotation .Generated (value  = "OracleSDKGenerator" , comments  = "API Version: 20160918" )
77@ lombok .Value 
88@ com .fasterxml .jackson .databind .annotation .JsonDeserialize (builder  = AuditEvent .Builder .class )
9+ @ com .fasterxml .jackson .annotation .JsonFilter (com .oracle .bmc .http .internal .ExplicitlySetFilter .NAME )
910public  class  AuditEvent  {
1011    @ com .fasterxml .jackson .databind .annotation .JsonPOJOBuilder (withPrefix  = "" )
1112    @ lombok .experimental .Accessors (fluent  = true )
12-     @ lombok .Setter 
1313    public  static  class  Builder  {
1414        @ com .fasterxml .jackson .annotation .JsonProperty ("tenantId" )
1515        private  String  tenantId ;
1616
17+         public  Builder  tenantId (String  tenantId ) {
18+             this .tenantId  = tenantId ;
19+             this .__explicitlySet__ .add ("tenantId" );
20+             return  this ;
21+         }
22+ 
1723        @ com .fasterxml .jackson .annotation .JsonProperty ("compartmentId" )
1824        private  String  compartmentId ;
1925
26+         public  Builder  compartmentId (String  compartmentId ) {
27+             this .compartmentId  = compartmentId ;
28+             this .__explicitlySet__ .add ("compartmentId" );
29+             return  this ;
30+         }
31+ 
2032        @ com .fasterxml .jackson .annotation .JsonProperty ("eventId" )
2133        private  String  eventId ;
2234
35+         public  Builder  eventId (String  eventId ) {
36+             this .eventId  = eventId ;
37+             this .__explicitlySet__ .add ("eventId" );
38+             return  this ;
39+         }
40+ 
2341        @ com .fasterxml .jackson .annotation .JsonProperty ("eventSource" )
2442        private  String  eventSource ;
2543
44+         public  Builder  eventSource (String  eventSource ) {
45+             this .eventSource  = eventSource ;
46+             this .__explicitlySet__ .add ("eventSource" );
47+             return  this ;
48+         }
49+ 
2650        @ com .fasterxml .jackson .annotation .JsonProperty ("eventType" )
2751        private  String  eventType ;
2852
53+         public  Builder  eventType (String  eventType ) {
54+             this .eventType  = eventType ;
55+             this .__explicitlySet__ .add ("eventType" );
56+             return  this ;
57+         }
58+ 
2959        @ com .fasterxml .jackson .annotation .JsonProperty ("eventTime" )
3060        private  java .util .Date  eventTime ;
3161
62+         public  Builder  eventTime (java .util .Date  eventTime ) {
63+             this .eventTime  = eventTime ;
64+             this .__explicitlySet__ .add ("eventTime" );
65+             return  this ;
66+         }
67+ 
3268        @ com .fasterxml .jackson .annotation .JsonProperty ("principalId" )
3369        private  String  principalId ;
3470
71+         public  Builder  principalId (String  principalId ) {
72+             this .principalId  = principalId ;
73+             this .__explicitlySet__ .add ("principalId" );
74+             return  this ;
75+         }
76+ 
3577        @ com .fasterxml .jackson .annotation .JsonProperty ("credentialId" )
3678        private  String  credentialId ;
3779
80+         public  Builder  credentialId (String  credentialId ) {
81+             this .credentialId  = credentialId ;
82+             this .__explicitlySet__ .add ("credentialId" );
83+             return  this ;
84+         }
85+ 
3886        @ com .fasterxml .jackson .annotation .JsonProperty ("requestAction" )
3987        private  String  requestAction ;
4088
89+         public  Builder  requestAction (String  requestAction ) {
90+             this .requestAction  = requestAction ;
91+             this .__explicitlySet__ .add ("requestAction" );
92+             return  this ;
93+         }
94+ 
4195        @ com .fasterxml .jackson .annotation .JsonProperty ("requestId" )
4296        private  String  requestId ;
4397
98+         public  Builder  requestId (String  requestId ) {
99+             this .requestId  = requestId ;
100+             this .__explicitlySet__ .add ("requestId" );
101+             return  this ;
102+         }
103+ 
44104        @ com .fasterxml .jackson .annotation .JsonProperty ("requestAgent" )
45105        private  String  requestAgent ;
46106
107+         public  Builder  requestAgent (String  requestAgent ) {
108+             this .requestAgent  = requestAgent ;
109+             this .__explicitlySet__ .add ("requestAgent" );
110+             return  this ;
111+         }
112+ 
47113        @ com .fasterxml .jackson .annotation .JsonProperty ("requestHeaders" )
48114        private  java .util .Map <String , java .util .List <String >> requestHeaders ;
49115
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+ 
50123        @ com .fasterxml .jackson .annotation .JsonProperty ("requestOrigin" )
51124        private  String  requestOrigin ;
52125
126+         public  Builder  requestOrigin (String  requestOrigin ) {
127+             this .requestOrigin  = requestOrigin ;
128+             this .__explicitlySet__ .add ("requestOrigin" );
129+             return  this ;
130+         }
131+ 
53132        @ com .fasterxml .jackson .annotation .JsonProperty ("requestParameters" )
54133        private  java .util .Map <String , java .util .List <String >> requestParameters ;
55134
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+ 
56142        @ com .fasterxml .jackson .annotation .JsonProperty ("requestResource" )
57143        private  String  requestResource ;
58144
145+         public  Builder  requestResource (String  requestResource ) {
146+             this .requestResource  = requestResource ;
147+             this .__explicitlySet__ .add ("requestResource" );
148+             return  this ;
149+         }
150+ 
59151        @ com .fasterxml .jackson .annotation .JsonProperty ("responseHeaders" )
60152        private  java .util .Map <String , java .util .List <String >> responseHeaders ;
61153
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+ 
62161        @ com .fasterxml .jackson .annotation .JsonProperty ("responseStatus" )
63162        private  String  responseStatus ;
64163
164+         public  Builder  responseStatus (String  responseStatus ) {
165+             this .responseStatus  = responseStatus ;
166+             this .__explicitlySet__ .add ("responseStatus" );
167+             return  this ;
168+         }
169+ 
65170        @ com .fasterxml .jackson .annotation .JsonProperty ("responseTime" )
66171        private  java .util .Date  responseTime ;
67172
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+ 
68182        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__ ;
88205        }
89206
90207        @ com .fasterxml .jackson .annotation .JsonIgnore 
@@ -121,35 +238,30 @@ public static Builder builder() {
121238     * The OCID of the tenant. 
122239     **/ 
123240    @ com .fasterxml .jackson .annotation .JsonProperty ("tenantId" )
124-     @ javax .validation .constraints .Size (min  = 1 , max  = 255 )
125241    String  tenantId ;
126242
127243    /** 
128244     * The OCID of the compartment. 
129245     **/ 
130246    @ com .fasterxml .jackson .annotation .JsonProperty ("compartmentId" )
131-     @ javax .validation .constraints .Size (min  = 1 , max  = 255 )
132247    String  compartmentId ;
133248
134249    /** 
135250     * The GUID of the event. 
136251     **/ 
137252    @ com .fasterxml .jackson .annotation .JsonProperty ("eventId" )
138-     @ javax .validation .constraints .Size (min  = 1 , max  = 255 )
139253    String  eventId ;
140254
141255    /** 
142256     * The source of the event. 
143257     **/ 
144258    @ com .fasterxml .jackson .annotation .JsonProperty ("eventSource" )
145-     @ javax .validation .constraints .Size (min  = 1 , max  = 255 )
146259    String  eventSource ;
147260
148261    /** 
149262     * The type of the event. 
150263     **/ 
151264    @ com .fasterxml .jackson .annotation .JsonProperty ("eventType" )
152-     @ javax .validation .constraints .Size (min  = 1 , max  = 255 )
153265    String  eventType ;
154266
155267    /** 
@@ -162,7 +274,6 @@ public static Builder builder() {
162274     * The OCID of the user whose action triggered the event. 
163275     **/ 
164276    @ com .fasterxml .jackson .annotation .JsonProperty ("principalId" )
165-     @ javax .validation .constraints .Size (min  = 1 , max  = 255 )
166277    String  principalId ;
167278
168279    /** 
@@ -175,7 +286,6 @@ public static Builder builder() {
175286     * The HTTP method of the request. 
176287     **/ 
177288    @ com .fasterxml .jackson .annotation .JsonProperty ("requestAction" )
178-     @ javax .validation .constraints .Size (min  = 1 , max  = 255 )
179289    String  requestAction ;
180290
181291    /** 
@@ -200,7 +310,6 @@ public static Builder builder() {
200310     * The IP address of the source of the request. 
201311     **/ 
202312    @ com .fasterxml .jackson .annotation .JsonProperty ("requestOrigin" )
203-     @ javax .validation .constraints .Size (min  = 1 , max  = 255 )
204313    String  requestOrigin ;
205314
206315    /** 
@@ -225,12 +334,14 @@ public static Builder builder() {
225334     * The status code of the response. 
226335     **/ 
227336    @ com .fasterxml .jackson .annotation .JsonProperty ("responseStatus" )
228-     @ javax .validation .constraints .Size (min  = 1 , max  = 255 )
229337    String  responseStatus ;
230338
231339    /** 
232340     * The time of the response to the audited request, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. 
233341     **/ 
234342    @ com .fasterxml .jackson .annotation .JsonProperty ("responseTime" )
235343    java .util .Date  responseTime ;
344+ 
345+     @ com .fasterxml .jackson .annotation .JsonIgnore 
346+     private  final  java .util .Set <String > __explicitlySet__  = new  java .util .HashSet <String >();
236347}
0 commit comments