-
Notifications
You must be signed in to change notification settings - Fork 5
/
model_event_view_for_org.go
874 lines (730 loc) · 24.7 KB
/
model_event_view_for_org.go
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
// Code based on the AtlasAPI V2 OpenAPI file
package admin
import (
"encoding/json"
"time"
)
// EventViewForOrg struct for EventViewForOrg
type EventViewForOrg struct {
// Unique 24-hexadecimal digit string that identifies the [API Key](https://dochub.mongodb.org/core/atlas-create-prog-api-key) that triggered the event. If this resource returns this parameter, it doesn't return the **userId** parameter.
// Read only field.
ApiKeyId *string `json:"apiKeyId,omitempty"`
// Date and time when this event occurred. This parameter expresses its value in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\" rel=\"noopener noreferrer\">ISO 8601</a> timestamp format in UTC.
// Read only field.
Created *time.Time `json:"created,omitempty"`
// Unique identifier of event type.
EventTypeName *string `json:"eventTypeName,omitempty"`
// Unique 24-hexadecimal digit string that identifies the project in which the event occurred. The **eventId** identifies the specific event.
// Read only field.
GroupId *string `json:"groupId,omitempty"`
// Unique 24-hexadecimal digit string that identifies the event.
// Read only field.
Id *string `json:"id,omitempty"`
// Flag that indicates whether a MongoDB employee triggered the specified event.
// Read only field.
IsGlobalAdmin *bool `json:"isGlobalAdmin,omitempty"`
// List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships.
// Read only field.
Links *[]Link `json:"links,omitempty"`
// Unique 24-hexadecimal digit string that identifies the organization to which these events apply.
// Read only field.
OrgId *string `json:"orgId,omitempty"`
// Public part of the [API Key](https://dochub.mongodb.org/core/atlas-create-prog-api-key) that triggered the event. If this resource returns this parameter, it doesn't return the **username** parameter.
// Read only field.
PublicKey *string `json:"publicKey,omitempty"`
Raw *Raw `json:"raw,omitempty"`
// IPv4 or IPv6 address from which the user triggered this event.
// Read only field.
RemoteAddress *string `json:"remoteAddress,omitempty"`
// Unique 24-hexadecimal digit string that identifies the console user who triggered the event. If this resource returns this parameter, it doesn't return the **apiKeyId** parameter.
// Read only field.
UserId *string `json:"userId,omitempty"`
// Email address for the user who triggered this event. If this resource returns this parameter, it doesn't return the **publicApiKey** parameter.
// Read only field.
Username *string `json:"username,omitempty"`
// Unique 24-hexadecimal digit string that identifies the alert associated with the event.
// Read only field.
AlertId *string `json:"alertId,omitempty"`
// Unique 24-hexadecimal digit string that identifies the alert configuration associated with the **alertId**.
// Read only field.
AlertConfigId *string `json:"alertConfigId,omitempty"`
// Unique 24-hexadecimal digit string that identifies of the invoice associated with the event.
// Read only field.
InvoiceId *string `json:"invoiceId,omitempty"`
// Unique 24-hexadecimal digit string that identifies the invoice payment associated with this event.
// Read only field.
PaymentId *string `json:"paymentId,omitempty"`
// The username of the MongoDB User that was created, deleted, or edited.
// Read only field.
DbUserUsername *string `json:"dbUserUsername,omitempty"`
// Entry in the list of source host addresses that the API key accepts and this event targets.
// Read only field.
WhitelistEntry *string `json:"whitelistEntry,omitempty"`
// Unique 24-hexadecimal digit string that identifies the organization team associated with this event.
// Read only field.
TeamId *string `json:"teamId,omitempty"`
// Email address for the console user that this event targets. The resource returns this parameter when `\"eventTypeName\" : \"USER\"`.
// Read only field.
TargetUsername *string `json:"targetUsername,omitempty"`
// Unique 24-hexadecimal digit string that identifies the resource associated with the event.
// Read only field.
ResourceId *string `json:"resourceId,omitempty"`
// Unique identifier of resource type.
ResourceType *string `json:"resourceType,omitempty"`
}
// NewEventViewForOrg instantiates a new EventViewForOrg object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewEventViewForOrg() *EventViewForOrg {
this := EventViewForOrg{}
return &this
}
// NewEventViewForOrgWithDefaults instantiates a new EventViewForOrg object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewEventViewForOrgWithDefaults() *EventViewForOrg {
this := EventViewForOrg{}
return &this
}
// GetApiKeyId returns the ApiKeyId field value if set, zero value otherwise
func (o *EventViewForOrg) GetApiKeyId() string {
if o == nil || IsNil(o.ApiKeyId) {
var ret string
return ret
}
return *o.ApiKeyId
}
// GetApiKeyIdOk returns a tuple with the ApiKeyId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetApiKeyIdOk() (*string, bool) {
if o == nil || IsNil(o.ApiKeyId) {
return nil, false
}
return o.ApiKeyId, true
}
// HasApiKeyId returns a boolean if a field has been set.
func (o *EventViewForOrg) HasApiKeyId() bool {
if o != nil && !IsNil(o.ApiKeyId) {
return true
}
return false
}
// SetApiKeyId gets a reference to the given string and assigns it to the ApiKeyId field.
func (o *EventViewForOrg) SetApiKeyId(v string) {
o.ApiKeyId = &v
}
// GetCreated returns the Created field value if set, zero value otherwise
func (o *EventViewForOrg) GetCreated() time.Time {
if o == nil || IsNil(o.Created) {
var ret time.Time
return ret
}
return *o.Created
}
// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetCreatedOk() (*time.Time, bool) {
if o == nil || IsNil(o.Created) {
return nil, false
}
return o.Created, true
}
// HasCreated returns a boolean if a field has been set.
func (o *EventViewForOrg) HasCreated() bool {
if o != nil && !IsNil(o.Created) {
return true
}
return false
}
// SetCreated gets a reference to the given time.Time and assigns it to the Created field.
func (o *EventViewForOrg) SetCreated(v time.Time) {
o.Created = &v
}
// GetEventTypeName returns the EventTypeName field value if set, zero value otherwise
func (o *EventViewForOrg) GetEventTypeName() string {
if o == nil || IsNil(o.EventTypeName) {
var ret string
return ret
}
return *o.EventTypeName
}
// GetEventTypeNameOk returns a tuple with the EventTypeName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetEventTypeNameOk() (*string, bool) {
if o == nil || IsNil(o.EventTypeName) {
return nil, false
}
return o.EventTypeName, true
}
// HasEventTypeName returns a boolean if a field has been set.
func (o *EventViewForOrg) HasEventTypeName() bool {
if o != nil && !IsNil(o.EventTypeName) {
return true
}
return false
}
// SetEventTypeName gets a reference to the given string and assigns it to the EventTypeName field.
func (o *EventViewForOrg) SetEventTypeName(v string) {
o.EventTypeName = &v
}
// GetGroupId returns the GroupId field value if set, zero value otherwise
func (o *EventViewForOrg) GetGroupId() string {
if o == nil || IsNil(o.GroupId) {
var ret string
return ret
}
return *o.GroupId
}
// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetGroupIdOk() (*string, bool) {
if o == nil || IsNil(o.GroupId) {
return nil, false
}
return o.GroupId, true
}
// HasGroupId returns a boolean if a field has been set.
func (o *EventViewForOrg) HasGroupId() bool {
if o != nil && !IsNil(o.GroupId) {
return true
}
return false
}
// SetGroupId gets a reference to the given string and assigns it to the GroupId field.
func (o *EventViewForOrg) SetGroupId(v string) {
o.GroupId = &v
}
// GetId returns the Id field value if set, zero value otherwise
func (o *EventViewForOrg) GetId() string {
if o == nil || IsNil(o.Id) {
var ret string
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetIdOk() (*string, bool) {
if o == nil || IsNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *EventViewForOrg) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *EventViewForOrg) SetId(v string) {
o.Id = &v
}
// GetIsGlobalAdmin returns the IsGlobalAdmin field value if set, zero value otherwise
func (o *EventViewForOrg) GetIsGlobalAdmin() bool {
if o == nil || IsNil(o.IsGlobalAdmin) {
var ret bool
return ret
}
return *o.IsGlobalAdmin
}
// GetIsGlobalAdminOk returns a tuple with the IsGlobalAdmin field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetIsGlobalAdminOk() (*bool, bool) {
if o == nil || IsNil(o.IsGlobalAdmin) {
return nil, false
}
return o.IsGlobalAdmin, true
}
// HasIsGlobalAdmin returns a boolean if a field has been set.
func (o *EventViewForOrg) HasIsGlobalAdmin() bool {
if o != nil && !IsNil(o.IsGlobalAdmin) {
return true
}
return false
}
// SetIsGlobalAdmin gets a reference to the given bool and assigns it to the IsGlobalAdmin field.
func (o *EventViewForOrg) SetIsGlobalAdmin(v bool) {
o.IsGlobalAdmin = &v
}
// GetLinks returns the Links field value if set, zero value otherwise
func (o *EventViewForOrg) GetLinks() []Link {
if o == nil || IsNil(o.Links) {
var ret []Link
return ret
}
return *o.Links
}
// GetLinksOk returns a tuple with the Links field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetLinksOk() (*[]Link, bool) {
if o == nil || IsNil(o.Links) {
return nil, false
}
return o.Links, true
}
// HasLinks returns a boolean if a field has been set.
func (o *EventViewForOrg) HasLinks() bool {
if o != nil && !IsNil(o.Links) {
return true
}
return false
}
// SetLinks gets a reference to the given []Link and assigns it to the Links field.
func (o *EventViewForOrg) SetLinks(v []Link) {
o.Links = &v
}
// GetOrgId returns the OrgId field value if set, zero value otherwise
func (o *EventViewForOrg) GetOrgId() string {
if o == nil || IsNil(o.OrgId) {
var ret string
return ret
}
return *o.OrgId
}
// GetOrgIdOk returns a tuple with the OrgId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetOrgIdOk() (*string, bool) {
if o == nil || IsNil(o.OrgId) {
return nil, false
}
return o.OrgId, true
}
// HasOrgId returns a boolean if a field has been set.
func (o *EventViewForOrg) HasOrgId() bool {
if o != nil && !IsNil(o.OrgId) {
return true
}
return false
}
// SetOrgId gets a reference to the given string and assigns it to the OrgId field.
func (o *EventViewForOrg) SetOrgId(v string) {
o.OrgId = &v
}
// GetPublicKey returns the PublicKey field value if set, zero value otherwise
func (o *EventViewForOrg) GetPublicKey() string {
if o == nil || IsNil(o.PublicKey) {
var ret string
return ret
}
return *o.PublicKey
}
// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetPublicKeyOk() (*string, bool) {
if o == nil || IsNil(o.PublicKey) {
return nil, false
}
return o.PublicKey, true
}
// HasPublicKey returns a boolean if a field has been set.
func (o *EventViewForOrg) HasPublicKey() bool {
if o != nil && !IsNil(o.PublicKey) {
return true
}
return false
}
// SetPublicKey gets a reference to the given string and assigns it to the PublicKey field.
func (o *EventViewForOrg) SetPublicKey(v string) {
o.PublicKey = &v
}
// GetRaw returns the Raw field value if set, zero value otherwise
func (o *EventViewForOrg) GetRaw() Raw {
if o == nil || IsNil(o.Raw) {
var ret Raw
return ret
}
return *o.Raw
}
// GetRawOk returns a tuple with the Raw field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetRawOk() (*Raw, bool) {
if o == nil || IsNil(o.Raw) {
return nil, false
}
return o.Raw, true
}
// HasRaw returns a boolean if a field has been set.
func (o *EventViewForOrg) HasRaw() bool {
if o != nil && !IsNil(o.Raw) {
return true
}
return false
}
// SetRaw gets a reference to the given Raw and assigns it to the Raw field.
func (o *EventViewForOrg) SetRaw(v Raw) {
o.Raw = &v
}
// GetRemoteAddress returns the RemoteAddress field value if set, zero value otherwise
func (o *EventViewForOrg) GetRemoteAddress() string {
if o == nil || IsNil(o.RemoteAddress) {
var ret string
return ret
}
return *o.RemoteAddress
}
// GetRemoteAddressOk returns a tuple with the RemoteAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetRemoteAddressOk() (*string, bool) {
if o == nil || IsNil(o.RemoteAddress) {
return nil, false
}
return o.RemoteAddress, true
}
// HasRemoteAddress returns a boolean if a field has been set.
func (o *EventViewForOrg) HasRemoteAddress() bool {
if o != nil && !IsNil(o.RemoteAddress) {
return true
}
return false
}
// SetRemoteAddress gets a reference to the given string and assigns it to the RemoteAddress field.
func (o *EventViewForOrg) SetRemoteAddress(v string) {
o.RemoteAddress = &v
}
// GetUserId returns the UserId field value if set, zero value otherwise
func (o *EventViewForOrg) GetUserId() string {
if o == nil || IsNil(o.UserId) {
var ret string
return ret
}
return *o.UserId
}
// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetUserIdOk() (*string, bool) {
if o == nil || IsNil(o.UserId) {
return nil, false
}
return o.UserId, true
}
// HasUserId returns a boolean if a field has been set.
func (o *EventViewForOrg) HasUserId() bool {
if o != nil && !IsNil(o.UserId) {
return true
}
return false
}
// SetUserId gets a reference to the given string and assigns it to the UserId field.
func (o *EventViewForOrg) SetUserId(v string) {
o.UserId = &v
}
// GetUsername returns the Username field value if set, zero value otherwise
func (o *EventViewForOrg) GetUsername() string {
if o == nil || IsNil(o.Username) {
var ret string
return ret
}
return *o.Username
}
// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetUsernameOk() (*string, bool) {
if o == nil || IsNil(o.Username) {
return nil, false
}
return o.Username, true
}
// HasUsername returns a boolean if a field has been set.
func (o *EventViewForOrg) HasUsername() bool {
if o != nil && !IsNil(o.Username) {
return true
}
return false
}
// SetUsername gets a reference to the given string and assigns it to the Username field.
func (o *EventViewForOrg) SetUsername(v string) {
o.Username = &v
}
// GetAlertId returns the AlertId field value if set, zero value otherwise
func (o *EventViewForOrg) GetAlertId() string {
if o == nil || IsNil(o.AlertId) {
var ret string
return ret
}
return *o.AlertId
}
// GetAlertIdOk returns a tuple with the AlertId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetAlertIdOk() (*string, bool) {
if o == nil || IsNil(o.AlertId) {
return nil, false
}
return o.AlertId, true
}
// HasAlertId returns a boolean if a field has been set.
func (o *EventViewForOrg) HasAlertId() bool {
if o != nil && !IsNil(o.AlertId) {
return true
}
return false
}
// SetAlertId gets a reference to the given string and assigns it to the AlertId field.
func (o *EventViewForOrg) SetAlertId(v string) {
o.AlertId = &v
}
// GetAlertConfigId returns the AlertConfigId field value if set, zero value otherwise
func (o *EventViewForOrg) GetAlertConfigId() string {
if o == nil || IsNil(o.AlertConfigId) {
var ret string
return ret
}
return *o.AlertConfigId
}
// GetAlertConfigIdOk returns a tuple with the AlertConfigId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetAlertConfigIdOk() (*string, bool) {
if o == nil || IsNil(o.AlertConfigId) {
return nil, false
}
return o.AlertConfigId, true
}
// HasAlertConfigId returns a boolean if a field has been set.
func (o *EventViewForOrg) HasAlertConfigId() bool {
if o != nil && !IsNil(o.AlertConfigId) {
return true
}
return false
}
// SetAlertConfigId gets a reference to the given string and assigns it to the AlertConfigId field.
func (o *EventViewForOrg) SetAlertConfigId(v string) {
o.AlertConfigId = &v
}
// GetInvoiceId returns the InvoiceId field value if set, zero value otherwise
func (o *EventViewForOrg) GetInvoiceId() string {
if o == nil || IsNil(o.InvoiceId) {
var ret string
return ret
}
return *o.InvoiceId
}
// GetInvoiceIdOk returns a tuple with the InvoiceId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetInvoiceIdOk() (*string, bool) {
if o == nil || IsNil(o.InvoiceId) {
return nil, false
}
return o.InvoiceId, true
}
// HasInvoiceId returns a boolean if a field has been set.
func (o *EventViewForOrg) HasInvoiceId() bool {
if o != nil && !IsNil(o.InvoiceId) {
return true
}
return false
}
// SetInvoiceId gets a reference to the given string and assigns it to the InvoiceId field.
func (o *EventViewForOrg) SetInvoiceId(v string) {
o.InvoiceId = &v
}
// GetPaymentId returns the PaymentId field value if set, zero value otherwise
func (o *EventViewForOrg) GetPaymentId() string {
if o == nil || IsNil(o.PaymentId) {
var ret string
return ret
}
return *o.PaymentId
}
// GetPaymentIdOk returns a tuple with the PaymentId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetPaymentIdOk() (*string, bool) {
if o == nil || IsNil(o.PaymentId) {
return nil, false
}
return o.PaymentId, true
}
// HasPaymentId returns a boolean if a field has been set.
func (o *EventViewForOrg) HasPaymentId() bool {
if o != nil && !IsNil(o.PaymentId) {
return true
}
return false
}
// SetPaymentId gets a reference to the given string and assigns it to the PaymentId field.
func (o *EventViewForOrg) SetPaymentId(v string) {
o.PaymentId = &v
}
// GetDbUserUsername returns the DbUserUsername field value if set, zero value otherwise
func (o *EventViewForOrg) GetDbUserUsername() string {
if o == nil || IsNil(o.DbUserUsername) {
var ret string
return ret
}
return *o.DbUserUsername
}
// GetDbUserUsernameOk returns a tuple with the DbUserUsername field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetDbUserUsernameOk() (*string, bool) {
if o == nil || IsNil(o.DbUserUsername) {
return nil, false
}
return o.DbUserUsername, true
}
// HasDbUserUsername returns a boolean if a field has been set.
func (o *EventViewForOrg) HasDbUserUsername() bool {
if o != nil && !IsNil(o.DbUserUsername) {
return true
}
return false
}
// SetDbUserUsername gets a reference to the given string and assigns it to the DbUserUsername field.
func (o *EventViewForOrg) SetDbUserUsername(v string) {
o.DbUserUsername = &v
}
// GetWhitelistEntry returns the WhitelistEntry field value if set, zero value otherwise
func (o *EventViewForOrg) GetWhitelistEntry() string {
if o == nil || IsNil(o.WhitelistEntry) {
var ret string
return ret
}
return *o.WhitelistEntry
}
// GetWhitelistEntryOk returns a tuple with the WhitelistEntry field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetWhitelistEntryOk() (*string, bool) {
if o == nil || IsNil(o.WhitelistEntry) {
return nil, false
}
return o.WhitelistEntry, true
}
// HasWhitelistEntry returns a boolean if a field has been set.
func (o *EventViewForOrg) HasWhitelistEntry() bool {
if o != nil && !IsNil(o.WhitelistEntry) {
return true
}
return false
}
// SetWhitelistEntry gets a reference to the given string and assigns it to the WhitelistEntry field.
func (o *EventViewForOrg) SetWhitelistEntry(v string) {
o.WhitelistEntry = &v
}
// GetTeamId returns the TeamId field value if set, zero value otherwise
func (o *EventViewForOrg) GetTeamId() string {
if o == nil || IsNil(o.TeamId) {
var ret string
return ret
}
return *o.TeamId
}
// GetTeamIdOk returns a tuple with the TeamId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetTeamIdOk() (*string, bool) {
if o == nil || IsNil(o.TeamId) {
return nil, false
}
return o.TeamId, true
}
// HasTeamId returns a boolean if a field has been set.
func (o *EventViewForOrg) HasTeamId() bool {
if o != nil && !IsNil(o.TeamId) {
return true
}
return false
}
// SetTeamId gets a reference to the given string and assigns it to the TeamId field.
func (o *EventViewForOrg) SetTeamId(v string) {
o.TeamId = &v
}
// GetTargetUsername returns the TargetUsername field value if set, zero value otherwise
func (o *EventViewForOrg) GetTargetUsername() string {
if o == nil || IsNil(o.TargetUsername) {
var ret string
return ret
}
return *o.TargetUsername
}
// GetTargetUsernameOk returns a tuple with the TargetUsername field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetTargetUsernameOk() (*string, bool) {
if o == nil || IsNil(o.TargetUsername) {
return nil, false
}
return o.TargetUsername, true
}
// HasTargetUsername returns a boolean if a field has been set.
func (o *EventViewForOrg) HasTargetUsername() bool {
if o != nil && !IsNil(o.TargetUsername) {
return true
}
return false
}
// SetTargetUsername gets a reference to the given string and assigns it to the TargetUsername field.
func (o *EventViewForOrg) SetTargetUsername(v string) {
o.TargetUsername = &v
}
// GetResourceId returns the ResourceId field value if set, zero value otherwise
func (o *EventViewForOrg) GetResourceId() string {
if o == nil || IsNil(o.ResourceId) {
var ret string
return ret
}
return *o.ResourceId
}
// GetResourceIdOk returns a tuple with the ResourceId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetResourceIdOk() (*string, bool) {
if o == nil || IsNil(o.ResourceId) {
return nil, false
}
return o.ResourceId, true
}
// HasResourceId returns a boolean if a field has been set.
func (o *EventViewForOrg) HasResourceId() bool {
if o != nil && !IsNil(o.ResourceId) {
return true
}
return false
}
// SetResourceId gets a reference to the given string and assigns it to the ResourceId field.
func (o *EventViewForOrg) SetResourceId(v string) {
o.ResourceId = &v
}
// GetResourceType returns the ResourceType field value if set, zero value otherwise
func (o *EventViewForOrg) GetResourceType() string {
if o == nil || IsNil(o.ResourceType) {
var ret string
return ret
}
return *o.ResourceType
}
// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForOrg) GetResourceTypeOk() (*string, bool) {
if o == nil || IsNil(o.ResourceType) {
return nil, false
}
return o.ResourceType, true
}
// HasResourceType returns a boolean if a field has been set.
func (o *EventViewForOrg) HasResourceType() bool {
if o != nil && !IsNil(o.ResourceType) {
return true
}
return false
}
// SetResourceType gets a reference to the given string and assigns it to the ResourceType field.
func (o *EventViewForOrg) SetResourceType(v string) {
o.ResourceType = &v
}
func (o EventViewForOrg) MarshalJSONWithoutReadOnly() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o EventViewForOrg) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.EventTypeName) {
toSerialize["eventTypeName"] = o.EventTypeName
}
if !IsNil(o.Raw) {
toSerialize["raw"] = o.Raw
}
if !IsNil(o.ResourceType) {
toSerialize["resourceType"] = o.ResourceType
}
return toSerialize, nil
}