-
Notifications
You must be signed in to change notification settings - Fork 5
/
model_event_view_for_nds_group.go
1235 lines (1031 loc) · 35.8 KB
/
model_event_view_for_nds_group.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
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code based on the AtlasAPI V2 OpenAPI file
package admin
import (
"encoding/json"
"time"
)
// EventViewForNdsGroup struct for EventViewForNdsGroup
type EventViewForNdsGroup 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"`
// Human-readable label of the shard associated with the event.
// Read only field.
ShardName *string `json:"shardName,omitempty"`
// Human-readable label of the collection on which the event occurred. The resource returns this parameter when the **eventTypeName** includes `DATA_EXPLORER`.
// Read only field.
Collection *string `json:"collection,omitempty"`
// Human-readable label of the database on which this incident occurred. The resource returns this parameter when `\"eventTypeName\" : \"DATA_EXPLORER\"` or `\"eventTypeName\" : \"DATA_EXPLORER_CRUD\"`.
// Read only field.
Database *string `json:"database,omitempty"`
// Action that the database attempted to execute when the event triggered. The response returns this parameter when `eventTypeName\" : \"DATA_EXPLORER\"`.
// Read only field.
OpType *string `json:"opType,omitempty"`
// IANA port on which the MongoDB process listens for requests.
// Read only field.
Port *int `json:"port,omitempty"`
// Human-readable label of the replica set associated with the event.
// Read only field.
ReplicaSetName *string `json:"replicaSetName,omitempty"`
CurrentValue *NumberMetricValue `json:"currentValue,omitempty"`
// Human-readable label of the metric associated with the **alertId**. This field may change type of **currentValue** field.
// Read only field.
MetricName *string `json:"metricName,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 endpoint associated with this event.
// Read only field.
EndpointId *string `json:"endpointId,omitempty"`
// Unique identification string that the cloud provider uses to identify the private endpoint.
// Read only field.
ProviderEndpointId *string `json:"providerEndpointId,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"`
}
// NewEventViewForNdsGroup instantiates a new EventViewForNdsGroup 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 NewEventViewForNdsGroup() *EventViewForNdsGroup {
this := EventViewForNdsGroup{}
return &this
}
// NewEventViewForNdsGroupWithDefaults instantiates a new EventViewForNdsGroup 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 NewEventViewForNdsGroupWithDefaults() *EventViewForNdsGroup {
this := EventViewForNdsGroup{}
return &this
}
// GetApiKeyId returns the ApiKeyId field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetApiKeyId(v string) {
o.ApiKeyId = &v
}
// GetCreated returns the Created field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetCreated(v time.Time) {
o.Created = &v
}
// GetEventTypeName returns the EventTypeName field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetEventTypeName(v string) {
o.EventTypeName = &v
}
// GetGroupId returns the GroupId field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetGroupId(v string) {
o.GroupId = &v
}
// GetId returns the Id field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetId(v string) {
o.Id = &v
}
// GetIsGlobalAdmin returns the IsGlobalAdmin field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetIsGlobalAdmin(v bool) {
o.IsGlobalAdmin = &v
}
// GetLinks returns the Links field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetLinks(v []Link) {
o.Links = &v
}
// GetOrgId returns the OrgId field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetOrgId(v string) {
o.OrgId = &v
}
// GetPublicKey returns the PublicKey field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetPublicKey(v string) {
o.PublicKey = &v
}
// GetRaw returns the Raw field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetRaw(v Raw) {
o.Raw = &v
}
// GetRemoteAddress returns the RemoteAddress field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetRemoteAddress(v string) {
o.RemoteAddress = &v
}
// GetUserId returns the UserId field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetUserId(v string) {
o.UserId = &v
}
// GetUsername returns the Username field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetUsername(v string) {
o.Username = &v
}
// GetAlertId returns the AlertId field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetAlertId(v string) {
o.AlertId = &v
}
// GetAlertConfigId returns the AlertConfigId field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetAlertConfigId(v string) {
o.AlertConfigId = &v
}
// GetInvoiceId returns the InvoiceId field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetInvoiceId(v string) {
o.InvoiceId = &v
}
// GetPaymentId returns the PaymentId field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetPaymentId(v string) {
o.PaymentId = &v
}
// GetShardName returns the ShardName field value if set, zero value otherwise
func (o *EventViewForNdsGroup) GetShardName() string {
if o == nil || IsNil(o.ShardName) {
var ret string
return ret
}
return *o.ShardName
}
// GetShardNameOk returns a tuple with the ShardName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForNdsGroup) GetShardNameOk() (*string, bool) {
if o == nil || IsNil(o.ShardName) {
return nil, false
}
return o.ShardName, true
}
// HasShardName returns a boolean if a field has been set.
func (o *EventViewForNdsGroup) HasShardName() bool {
if o != nil && !IsNil(o.ShardName) {
return true
}
return false
}
// SetShardName gets a reference to the given string and assigns it to the ShardName field.
func (o *EventViewForNdsGroup) SetShardName(v string) {
o.ShardName = &v
}
// GetCollection returns the Collection field value if set, zero value otherwise
func (o *EventViewForNdsGroup) GetCollection() string {
if o == nil || IsNil(o.Collection) {
var ret string
return ret
}
return *o.Collection
}
// GetCollectionOk returns a tuple with the Collection field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForNdsGroup) GetCollectionOk() (*string, bool) {
if o == nil || IsNil(o.Collection) {
return nil, false
}
return o.Collection, true
}
// HasCollection returns a boolean if a field has been set.
func (o *EventViewForNdsGroup) HasCollection() bool {
if o != nil && !IsNil(o.Collection) {
return true
}
return false
}
// SetCollection gets a reference to the given string and assigns it to the Collection field.
func (o *EventViewForNdsGroup) SetCollection(v string) {
o.Collection = &v
}
// GetDatabase returns the Database field value if set, zero value otherwise
func (o *EventViewForNdsGroup) GetDatabase() string {
if o == nil || IsNil(o.Database) {
var ret string
return ret
}
return *o.Database
}
// GetDatabaseOk returns a tuple with the Database field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForNdsGroup) GetDatabaseOk() (*string, bool) {
if o == nil || IsNil(o.Database) {
return nil, false
}
return o.Database, true
}
// HasDatabase returns a boolean if a field has been set.
func (o *EventViewForNdsGroup) HasDatabase() bool {
if o != nil && !IsNil(o.Database) {
return true
}
return false
}
// SetDatabase gets a reference to the given string and assigns it to the Database field.
func (o *EventViewForNdsGroup) SetDatabase(v string) {
o.Database = &v
}
// GetOpType returns the OpType field value if set, zero value otherwise
func (o *EventViewForNdsGroup) GetOpType() string {
if o == nil || IsNil(o.OpType) {
var ret string
return ret
}
return *o.OpType
}
// GetOpTypeOk returns a tuple with the OpType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForNdsGroup) GetOpTypeOk() (*string, bool) {
if o == nil || IsNil(o.OpType) {
return nil, false
}
return o.OpType, true
}
// HasOpType returns a boolean if a field has been set.
func (o *EventViewForNdsGroup) HasOpType() bool {
if o != nil && !IsNil(o.OpType) {
return true
}
return false
}
// SetOpType gets a reference to the given string and assigns it to the OpType field.
func (o *EventViewForNdsGroup) SetOpType(v string) {
o.OpType = &v
}
// GetPort returns the Port field value if set, zero value otherwise
func (o *EventViewForNdsGroup) GetPort() int {
if o == nil || IsNil(o.Port) {
var ret int
return ret
}
return *o.Port
}
// GetPortOk returns a tuple with the Port field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForNdsGroup) GetPortOk() (*int, bool) {
if o == nil || IsNil(o.Port) {
return nil, false
}
return o.Port, true
}
// HasPort returns a boolean if a field has been set.
func (o *EventViewForNdsGroup) HasPort() bool {
if o != nil && !IsNil(o.Port) {
return true
}
return false
}
// SetPort gets a reference to the given int and assigns it to the Port field.
func (o *EventViewForNdsGroup) SetPort(v int) {
o.Port = &v
}
// GetReplicaSetName returns the ReplicaSetName field value if set, zero value otherwise
func (o *EventViewForNdsGroup) GetReplicaSetName() string {
if o == nil || IsNil(o.ReplicaSetName) {
var ret string
return ret
}
return *o.ReplicaSetName
}
// GetReplicaSetNameOk returns a tuple with the ReplicaSetName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForNdsGroup) GetReplicaSetNameOk() (*string, bool) {
if o == nil || IsNil(o.ReplicaSetName) {
return nil, false
}
return o.ReplicaSetName, true
}
// HasReplicaSetName returns a boolean if a field has been set.
func (o *EventViewForNdsGroup) HasReplicaSetName() bool {
if o != nil && !IsNil(o.ReplicaSetName) {
return true
}
return false
}
// SetReplicaSetName gets a reference to the given string and assigns it to the ReplicaSetName field.
func (o *EventViewForNdsGroup) SetReplicaSetName(v string) {
o.ReplicaSetName = &v
}
// GetCurrentValue returns the CurrentValue field value if set, zero value otherwise
func (o *EventViewForNdsGroup) GetCurrentValue() NumberMetricValue {
if o == nil || IsNil(o.CurrentValue) {
var ret NumberMetricValue
return ret
}
return *o.CurrentValue
}
// GetCurrentValueOk returns a tuple with the CurrentValue field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForNdsGroup) GetCurrentValueOk() (*NumberMetricValue, bool) {
if o == nil || IsNil(o.CurrentValue) {
return nil, false
}
return o.CurrentValue, true
}
// HasCurrentValue returns a boolean if a field has been set.
func (o *EventViewForNdsGroup) HasCurrentValue() bool {
if o != nil && !IsNil(o.CurrentValue) {
return true
}
return false
}
// SetCurrentValue gets a reference to the given NumberMetricValue and assigns it to the CurrentValue field.
func (o *EventViewForNdsGroup) SetCurrentValue(v NumberMetricValue) {
o.CurrentValue = &v
}
// GetMetricName returns the MetricName field value if set, zero value otherwise
func (o *EventViewForNdsGroup) GetMetricName() string {
if o == nil || IsNil(o.MetricName) {
var ret string
return ret
}
return *o.MetricName
}
// GetMetricNameOk returns a tuple with the MetricName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EventViewForNdsGroup) GetMetricNameOk() (*string, bool) {
if o == nil || IsNil(o.MetricName) {
return nil, false
}
return o.MetricName, true
}
// HasMetricName returns a boolean if a field has been set.
func (o *EventViewForNdsGroup) HasMetricName() bool {
if o != nil && !IsNil(o.MetricName) {
return true
}
return false
}
// SetMetricName gets a reference to the given string and assigns it to the MetricName field.
func (o *EventViewForNdsGroup) SetMetricName(v string) {
o.MetricName = &v
}
// GetDbUserUsername returns the DbUserUsername field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) 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 *EventViewForNdsGroup) SetDbUserUsername(v string) {
o.DbUserUsername = &v
}
// GetWhitelistEntry returns the WhitelistEntry field value if set, zero value otherwise
func (o *EventViewForNdsGroup) 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 *EventViewForNdsGroup) GetWhitelistEntryOk() (*string, bool) {
if o == nil || IsNil(o.WhitelistEntry) {
return nil, false
}
return o.WhitelistEntry, true
}