-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_search_job_messages_map_map.go
619 lines (525 loc) · 16.9 KB
/
model_search_job_messages_map_map.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
/*
Sumo Logic API
The Search Job API provides third-party scripts and applications access to your log data. The API follows Representational State Transfer (REST) patterns and is optimized for ease of use and consistency.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// SearchJobMessagesMapMap struct for SearchJobMessagesMapMap
type SearchJobMessagesMapMap struct {
Receipttime *string `json:"_receipttime,omitempty"`
Source *string `json:"_source,omitempty"`
Collector *string `json:"_collector,omitempty"`
Format *string `json:"_format,omitempty"`
Blockid *string `json:"_blockid,omitempty"`
Messageid *string `json:"_messageid,omitempty"`
Messagetime *string `json:"_messagetime,omitempty"`
Collectorid *string `json:"_collectorid,omitempty"`
Sourcename *string `json:"_sourcename,omitempty"`
Sourcehost *string `json:"_sourcehost,omitempty"`
Raw *string `json:"_raw,omitempty"`
Size *string `json:"_size,omitempty"`
Sourcecategory *string `json:"_sourcecategory,omitempty"`
Sourceid *string `json:"_sourceid,omitempty"`
Messagecount *string `json:"_messagecount,omitempty"`
}
// NewSearchJobMessagesMapMap instantiates a new SearchJobMessagesMapMap 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 NewSearchJobMessagesMapMap() *SearchJobMessagesMapMap {
this := SearchJobMessagesMapMap{}
return &this
}
// NewSearchJobMessagesMapMapWithDefaults instantiates a new SearchJobMessagesMapMap 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 NewSearchJobMessagesMapMapWithDefaults() *SearchJobMessagesMapMap {
this := SearchJobMessagesMapMap{}
return &this
}
// GetReceipttime returns the Receipttime field value if set, zero value otherwise.
func (o *SearchJobMessagesMapMap) GetReceipttime() string {
if o == nil || o.Receipttime == nil {
var ret string
return ret
}
return *o.Receipttime
}
// GetReceipttimeOk returns a tuple with the Receipttime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchJobMessagesMapMap) GetReceipttimeOk() (*string, bool) {
if o == nil || o.Receipttime == nil {
return nil, false
}
return o.Receipttime, true
}
// HasReceipttime returns a boolean if a field has been set.
func (o *SearchJobMessagesMapMap) HasReceipttime() bool {
if o != nil && o.Receipttime != nil {
return true
}
return false
}
// SetReceipttime gets a reference to the given string and assigns it to the Receipttime field.
func (o *SearchJobMessagesMapMap) SetReceipttime(v string) {
o.Receipttime = &v
}
// GetSource returns the Source field value if set, zero value otherwise.
func (o *SearchJobMessagesMapMap) GetSource() string {
if o == nil || o.Source == nil {
var ret string
return ret
}
return *o.Source
}
// GetSourceOk returns a tuple with the Source field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchJobMessagesMapMap) GetSourceOk() (*string, bool) {
if o == nil || o.Source == nil {
return nil, false
}
return o.Source, true
}
// HasSource returns a boolean if a field has been set.
func (o *SearchJobMessagesMapMap) HasSource() bool {
if o != nil && o.Source != nil {
return true
}
return false
}
// SetSource gets a reference to the given string and assigns it to the Source field.
func (o *SearchJobMessagesMapMap) SetSource(v string) {
o.Source = &v
}
// GetCollector returns the Collector field value if set, zero value otherwise.
func (o *SearchJobMessagesMapMap) GetCollector() string {
if o == nil || o.Collector == nil {
var ret string
return ret
}
return *o.Collector
}
// GetCollectorOk returns a tuple with the Collector field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchJobMessagesMapMap) GetCollectorOk() (*string, bool) {
if o == nil || o.Collector == nil {
return nil, false
}
return o.Collector, true
}
// HasCollector returns a boolean if a field has been set.
func (o *SearchJobMessagesMapMap) HasCollector() bool {
if o != nil && o.Collector != nil {
return true
}
return false
}
// SetCollector gets a reference to the given string and assigns it to the Collector field.
func (o *SearchJobMessagesMapMap) SetCollector(v string) {
o.Collector = &v
}
// GetFormat returns the Format field value if set, zero value otherwise.
func (o *SearchJobMessagesMapMap) GetFormat() string {
if o == nil || o.Format == nil {
var ret string
return ret
}
return *o.Format
}
// GetFormatOk returns a tuple with the Format field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchJobMessagesMapMap) GetFormatOk() (*string, bool) {
if o == nil || o.Format == nil {
return nil, false
}
return o.Format, true
}
// HasFormat returns a boolean if a field has been set.
func (o *SearchJobMessagesMapMap) HasFormat() bool {
if o != nil && o.Format != nil {
return true
}
return false
}
// SetFormat gets a reference to the given string and assigns it to the Format field.
func (o *SearchJobMessagesMapMap) SetFormat(v string) {
o.Format = &v
}
// GetBlockid returns the Blockid field value if set, zero value otherwise.
func (o *SearchJobMessagesMapMap) GetBlockid() string {
if o == nil || o.Blockid == nil {
var ret string
return ret
}
return *o.Blockid
}
// GetBlockidOk returns a tuple with the Blockid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchJobMessagesMapMap) GetBlockidOk() (*string, bool) {
if o == nil || o.Blockid == nil {
return nil, false
}
return o.Blockid, true
}
// HasBlockid returns a boolean if a field has been set.
func (o *SearchJobMessagesMapMap) HasBlockid() bool {
if o != nil && o.Blockid != nil {
return true
}
return false
}
// SetBlockid gets a reference to the given string and assigns it to the Blockid field.
func (o *SearchJobMessagesMapMap) SetBlockid(v string) {
o.Blockid = &v
}
// GetMessageid returns the Messageid field value if set, zero value otherwise.
func (o *SearchJobMessagesMapMap) GetMessageid() string {
if o == nil || o.Messageid == nil {
var ret string
return ret
}
return *o.Messageid
}
// GetMessageidOk returns a tuple with the Messageid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchJobMessagesMapMap) GetMessageidOk() (*string, bool) {
if o == nil || o.Messageid == nil {
return nil, false
}
return o.Messageid, true
}
// HasMessageid returns a boolean if a field has been set.
func (o *SearchJobMessagesMapMap) HasMessageid() bool {
if o != nil && o.Messageid != nil {
return true
}
return false
}
// SetMessageid gets a reference to the given string and assigns it to the Messageid field.
func (o *SearchJobMessagesMapMap) SetMessageid(v string) {
o.Messageid = &v
}
// GetMessagetime returns the Messagetime field value if set, zero value otherwise.
func (o *SearchJobMessagesMapMap) GetMessagetime() string {
if o == nil || o.Messagetime == nil {
var ret string
return ret
}
return *o.Messagetime
}
// GetMessagetimeOk returns a tuple with the Messagetime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchJobMessagesMapMap) GetMessagetimeOk() (*string, bool) {
if o == nil || o.Messagetime == nil {
return nil, false
}
return o.Messagetime, true
}
// HasMessagetime returns a boolean if a field has been set.
func (o *SearchJobMessagesMapMap) HasMessagetime() bool {
if o != nil && o.Messagetime != nil {
return true
}
return false
}
// SetMessagetime gets a reference to the given string and assigns it to the Messagetime field.
func (o *SearchJobMessagesMapMap) SetMessagetime(v string) {
o.Messagetime = &v
}
// GetCollectorid returns the Collectorid field value if set, zero value otherwise.
func (o *SearchJobMessagesMapMap) GetCollectorid() string {
if o == nil || o.Collectorid == nil {
var ret string
return ret
}
return *o.Collectorid
}
// GetCollectoridOk returns a tuple with the Collectorid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchJobMessagesMapMap) GetCollectoridOk() (*string, bool) {
if o == nil || o.Collectorid == nil {
return nil, false
}
return o.Collectorid, true
}
// HasCollectorid returns a boolean if a field has been set.
func (o *SearchJobMessagesMapMap) HasCollectorid() bool {
if o != nil && o.Collectorid != nil {
return true
}
return false
}
// SetCollectorid gets a reference to the given string and assigns it to the Collectorid field.
func (o *SearchJobMessagesMapMap) SetCollectorid(v string) {
o.Collectorid = &v
}
// GetSourcename returns the Sourcename field value if set, zero value otherwise.
func (o *SearchJobMessagesMapMap) GetSourcename() string {
if o == nil || o.Sourcename == nil {
var ret string
return ret
}
return *o.Sourcename
}
// GetSourcenameOk returns a tuple with the Sourcename field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchJobMessagesMapMap) GetSourcenameOk() (*string, bool) {
if o == nil || o.Sourcename == nil {
return nil, false
}
return o.Sourcename, true
}
// HasSourcename returns a boolean if a field has been set.
func (o *SearchJobMessagesMapMap) HasSourcename() bool {
if o != nil && o.Sourcename != nil {
return true
}
return false
}
// SetSourcename gets a reference to the given string and assigns it to the Sourcename field.
func (o *SearchJobMessagesMapMap) SetSourcename(v string) {
o.Sourcename = &v
}
// GetSourcehost returns the Sourcehost field value if set, zero value otherwise.
func (o *SearchJobMessagesMapMap) GetSourcehost() string {
if o == nil || o.Sourcehost == nil {
var ret string
return ret
}
return *o.Sourcehost
}
// GetSourcehostOk returns a tuple with the Sourcehost field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchJobMessagesMapMap) GetSourcehostOk() (*string, bool) {
if o == nil || o.Sourcehost == nil {
return nil, false
}
return o.Sourcehost, true
}
// HasSourcehost returns a boolean if a field has been set.
func (o *SearchJobMessagesMapMap) HasSourcehost() bool {
if o != nil && o.Sourcehost != nil {
return true
}
return false
}
// SetSourcehost gets a reference to the given string and assigns it to the Sourcehost field.
func (o *SearchJobMessagesMapMap) SetSourcehost(v string) {
o.Sourcehost = &v
}
// GetRaw returns the Raw field value if set, zero value otherwise.
func (o *SearchJobMessagesMapMap) GetRaw() string {
if o == nil || o.Raw == nil {
var ret string
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 *SearchJobMessagesMapMap) GetRawOk() (*string, bool) {
if o == nil || o.Raw == nil {
return nil, false
}
return o.Raw, true
}
// HasRaw returns a boolean if a field has been set.
func (o *SearchJobMessagesMapMap) HasRaw() bool {
if o != nil && o.Raw != nil {
return true
}
return false
}
// SetRaw gets a reference to the given string and assigns it to the Raw field.
func (o *SearchJobMessagesMapMap) SetRaw(v string) {
o.Raw = &v
}
// GetSize returns the Size field value if set, zero value otherwise.
func (o *SearchJobMessagesMapMap) GetSize() string {
if o == nil || o.Size == nil {
var ret string
return ret
}
return *o.Size
}
// GetSizeOk returns a tuple with the Size field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchJobMessagesMapMap) GetSizeOk() (*string, bool) {
if o == nil || o.Size == nil {
return nil, false
}
return o.Size, true
}
// HasSize returns a boolean if a field has been set.
func (o *SearchJobMessagesMapMap) HasSize() bool {
if o != nil && o.Size != nil {
return true
}
return false
}
// SetSize gets a reference to the given string and assigns it to the Size field.
func (o *SearchJobMessagesMapMap) SetSize(v string) {
o.Size = &v
}
// GetSourcecategory returns the Sourcecategory field value if set, zero value otherwise.
func (o *SearchJobMessagesMapMap) GetSourcecategory() string {
if o == nil || o.Sourcecategory == nil {
var ret string
return ret
}
return *o.Sourcecategory
}
// GetSourcecategoryOk returns a tuple with the Sourcecategory field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchJobMessagesMapMap) GetSourcecategoryOk() (*string, bool) {
if o == nil || o.Sourcecategory == nil {
return nil, false
}
return o.Sourcecategory, true
}
// HasSourcecategory returns a boolean if a field has been set.
func (o *SearchJobMessagesMapMap) HasSourcecategory() bool {
if o != nil && o.Sourcecategory != nil {
return true
}
return false
}
// SetSourcecategory gets a reference to the given string and assigns it to the Sourcecategory field.
func (o *SearchJobMessagesMapMap) SetSourcecategory(v string) {
o.Sourcecategory = &v
}
// GetSourceid returns the Sourceid field value if set, zero value otherwise.
func (o *SearchJobMessagesMapMap) GetSourceid() string {
if o == nil || o.Sourceid == nil {
var ret string
return ret
}
return *o.Sourceid
}
// GetSourceidOk returns a tuple with the Sourceid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchJobMessagesMapMap) GetSourceidOk() (*string, bool) {
if o == nil || o.Sourceid == nil {
return nil, false
}
return o.Sourceid, true
}
// HasSourceid returns a boolean if a field has been set.
func (o *SearchJobMessagesMapMap) HasSourceid() bool {
if o != nil && o.Sourceid != nil {
return true
}
return false
}
// SetSourceid gets a reference to the given string and assigns it to the Sourceid field.
func (o *SearchJobMessagesMapMap) SetSourceid(v string) {
o.Sourceid = &v
}
// GetMessagecount returns the Messagecount field value if set, zero value otherwise.
func (o *SearchJobMessagesMapMap) GetMessagecount() string {
if o == nil || o.Messagecount == nil {
var ret string
return ret
}
return *o.Messagecount
}
// GetMessagecountOk returns a tuple with the Messagecount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SearchJobMessagesMapMap) GetMessagecountOk() (*string, bool) {
if o == nil || o.Messagecount == nil {
return nil, false
}
return o.Messagecount, true
}
// HasMessagecount returns a boolean if a field has been set.
func (o *SearchJobMessagesMapMap) HasMessagecount() bool {
if o != nil && o.Messagecount != nil {
return true
}
return false
}
// SetMessagecount gets a reference to the given string and assigns it to the Messagecount field.
func (o *SearchJobMessagesMapMap) SetMessagecount(v string) {
o.Messagecount = &v
}
func (o SearchJobMessagesMapMap) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Receipttime != nil {
toSerialize["_receipttime"] = o.Receipttime
}
if o.Source != nil {
toSerialize["_source"] = o.Source
}
if o.Collector != nil {
toSerialize["_collector"] = o.Collector
}
if o.Format != nil {
toSerialize["_format"] = o.Format
}
if o.Blockid != nil {
toSerialize["_blockid"] = o.Blockid
}
if o.Messageid != nil {
toSerialize["_messageid"] = o.Messageid
}
if o.Messagetime != nil {
toSerialize["_messagetime"] = o.Messagetime
}
if o.Collectorid != nil {
toSerialize["_collectorid"] = o.Collectorid
}
if o.Sourcename != nil {
toSerialize["_sourcename"] = o.Sourcename
}
if o.Sourcehost != nil {
toSerialize["_sourcehost"] = o.Sourcehost
}
if o.Raw != nil {
toSerialize["_raw"] = o.Raw
}
if o.Size != nil {
toSerialize["_size"] = o.Size
}
if o.Sourcecategory != nil {
toSerialize["_sourcecategory"] = o.Sourcecategory
}
if o.Sourceid != nil {
toSerialize["_sourceid"] = o.Sourceid
}
if o.Messagecount != nil {
toSerialize["_messagecount"] = o.Messagecount
}
return json.Marshal(toSerialize)
}
type NullableSearchJobMessagesMapMap struct {
value *SearchJobMessagesMapMap
isSet bool
}
func (v NullableSearchJobMessagesMapMap) Get() *SearchJobMessagesMapMap {
return v.value
}
func (v *NullableSearchJobMessagesMapMap) Set(val *SearchJobMessagesMapMap) {
v.value = val
v.isSet = true
}
func (v NullableSearchJobMessagesMapMap) IsSet() bool {
return v.isSet
}
func (v *NullableSearchJobMessagesMapMap) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSearchJobMessagesMapMap(val *SearchJobMessagesMapMap) *NullableSearchJobMessagesMapMap {
return &NullableSearchJobMessagesMapMap{value: val, isSet: true}
}
func (v NullableSearchJobMessagesMapMap) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSearchJobMessagesMapMap) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}