-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathmodel_instance_parameters.go
More file actions
712 lines (586 loc) · 26.6 KB
/
model_instance_parameters.go
File metadata and controls
712 lines (586 loc) · 26.6 KB
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
/*
STACKIT RabbitMQ API
The STACKIT RabbitMQ API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects.
API version: 1.1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package rabbitmq
import (
"encoding/json"
)
// checks if the InstanceParameters type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &InstanceParameters{}
/*
types and functions for consumer_timeout
*/
// isInteger
type InstanceParametersGetConsumerTimeoutAttributeType = *int64
type InstanceParametersGetConsumerTimeoutArgType = int64
type InstanceParametersGetConsumerTimeoutRetType = int64
func getInstanceParametersGetConsumerTimeoutAttributeTypeOk(arg InstanceParametersGetConsumerTimeoutAttributeType) (ret InstanceParametersGetConsumerTimeoutRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setInstanceParametersGetConsumerTimeoutAttributeType(arg *InstanceParametersGetConsumerTimeoutAttributeType, val InstanceParametersGetConsumerTimeoutRetType) {
*arg = &val
}
/*
types and functions for enable_monitoring
*/
// isBoolean
type InstanceParametersgetEnableMonitoringAttributeType = *bool
type InstanceParametersgetEnableMonitoringArgType = bool
type InstanceParametersgetEnableMonitoringRetType = bool
func getInstanceParametersgetEnableMonitoringAttributeTypeOk(arg InstanceParametersgetEnableMonitoringAttributeType) (ret InstanceParametersgetEnableMonitoringRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setInstanceParametersgetEnableMonitoringAttributeType(arg *InstanceParametersgetEnableMonitoringAttributeType, val InstanceParametersgetEnableMonitoringRetType) {
*arg = &val
}
/*
types and functions for graphite
*/
// isNotNullableString
type InstanceParametersGetGraphiteAttributeType = *string
func getInstanceParametersGetGraphiteAttributeTypeOk(arg InstanceParametersGetGraphiteAttributeType) (ret InstanceParametersGetGraphiteRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setInstanceParametersGetGraphiteAttributeType(arg *InstanceParametersGetGraphiteAttributeType, val InstanceParametersGetGraphiteRetType) {
*arg = &val
}
type InstanceParametersGetGraphiteArgType = string
type InstanceParametersGetGraphiteRetType = string
/*
types and functions for max_disk_threshold
*/
// isInteger
type InstanceParametersGetMaxDiskThresholdAttributeType = *int64
type InstanceParametersGetMaxDiskThresholdArgType = int64
type InstanceParametersGetMaxDiskThresholdRetType = int64
func getInstanceParametersGetMaxDiskThresholdAttributeTypeOk(arg InstanceParametersGetMaxDiskThresholdAttributeType) (ret InstanceParametersGetMaxDiskThresholdRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setInstanceParametersGetMaxDiskThresholdAttributeType(arg *InstanceParametersGetMaxDiskThresholdAttributeType, val InstanceParametersGetMaxDiskThresholdRetType) {
*arg = &val
}
/*
types and functions for metrics_frequency
*/
// isInteger
type InstanceParametersGetMetricsFrequencyAttributeType = *int64
type InstanceParametersGetMetricsFrequencyArgType = int64
type InstanceParametersGetMetricsFrequencyRetType = int64
func getInstanceParametersGetMetricsFrequencyAttributeTypeOk(arg InstanceParametersGetMetricsFrequencyAttributeType) (ret InstanceParametersGetMetricsFrequencyRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setInstanceParametersGetMetricsFrequencyAttributeType(arg *InstanceParametersGetMetricsFrequencyAttributeType, val InstanceParametersGetMetricsFrequencyRetType) {
*arg = &val
}
/*
types and functions for metrics_prefix
*/
// isNotNullableString
type InstanceParametersGetMetricsPrefixAttributeType = *string
func getInstanceParametersGetMetricsPrefixAttributeTypeOk(arg InstanceParametersGetMetricsPrefixAttributeType) (ret InstanceParametersGetMetricsPrefixRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setInstanceParametersGetMetricsPrefixAttributeType(arg *InstanceParametersGetMetricsPrefixAttributeType, val InstanceParametersGetMetricsPrefixRetType) {
*arg = &val
}
type InstanceParametersGetMetricsPrefixArgType = string
type InstanceParametersGetMetricsPrefixRetType = string
/*
types and functions for monitoring_instance_id
*/
// isNotNullableString
type InstanceParametersGetMonitoringInstanceIdAttributeType = *string
func getInstanceParametersGetMonitoringInstanceIdAttributeTypeOk(arg InstanceParametersGetMonitoringInstanceIdAttributeType) (ret InstanceParametersGetMonitoringInstanceIdRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setInstanceParametersGetMonitoringInstanceIdAttributeType(arg *InstanceParametersGetMonitoringInstanceIdAttributeType, val InstanceParametersGetMonitoringInstanceIdRetType) {
*arg = &val
}
type InstanceParametersGetMonitoringInstanceIdArgType = string
type InstanceParametersGetMonitoringInstanceIdRetType = string
/*
types and functions for plugins
*/
// isArray
type InstanceParametersGetPluginsAttributeType = *[]string
type InstanceParametersGetPluginsArgType = []string
type InstanceParametersGetPluginsRetType = []string
func getInstanceParametersGetPluginsAttributeTypeOk(arg InstanceParametersGetPluginsAttributeType) (ret InstanceParametersGetPluginsRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setInstanceParametersGetPluginsAttributeType(arg *InstanceParametersGetPluginsAttributeType, val InstanceParametersGetPluginsRetType) {
*arg = &val
}
/*
types and functions for roles
*/
// isArray
type InstanceParametersGetRolesAttributeType = *[]string
type InstanceParametersGetRolesArgType = []string
type InstanceParametersGetRolesRetType = []string
func getInstanceParametersGetRolesAttributeTypeOk(arg InstanceParametersGetRolesAttributeType) (ret InstanceParametersGetRolesRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setInstanceParametersGetRolesAttributeType(arg *InstanceParametersGetRolesAttributeType, val InstanceParametersGetRolesRetType) {
*arg = &val
}
/*
types and functions for sgw_acl
*/
// isNotNullableString
type InstanceParametersGetSgwAclAttributeType = *string
func getInstanceParametersGetSgwAclAttributeTypeOk(arg InstanceParametersGetSgwAclAttributeType) (ret InstanceParametersGetSgwAclRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setInstanceParametersGetSgwAclAttributeType(arg *InstanceParametersGetSgwAclAttributeType, val InstanceParametersGetSgwAclRetType) {
*arg = &val
}
type InstanceParametersGetSgwAclArgType = string
type InstanceParametersGetSgwAclRetType = string
/*
types and functions for syslog
*/
// isArray
type InstanceParametersGetSyslogAttributeType = *[]string
type InstanceParametersGetSyslogArgType = []string
type InstanceParametersGetSyslogRetType = []string
func getInstanceParametersGetSyslogAttributeTypeOk(arg InstanceParametersGetSyslogAttributeType) (ret InstanceParametersGetSyslogRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setInstanceParametersGetSyslogAttributeType(arg *InstanceParametersGetSyslogAttributeType, val InstanceParametersGetSyslogRetType) {
*arg = &val
}
/*
types and functions for tls-ciphers
*/
// isArray
type InstanceParametersGetTlsCiphersAttributeType = *[]string
type InstanceParametersGetTlsCiphersArgType = []string
type InstanceParametersGetTlsCiphersRetType = []string
func getInstanceParametersGetTlsCiphersAttributeTypeOk(arg InstanceParametersGetTlsCiphersAttributeType) (ret InstanceParametersGetTlsCiphersRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setInstanceParametersGetTlsCiphersAttributeType(arg *InstanceParametersGetTlsCiphersAttributeType, val InstanceParametersGetTlsCiphersRetType) {
*arg = &val
}
/*
types and functions for tls-protocols
*/
// isArray
type InstanceParametersGetTlsProtocolsAttributeType = *[]string
type InstanceParametersGetTlsProtocolsArgType = []string
type InstanceParametersGetTlsProtocolsRetType = []string
func getInstanceParametersGetTlsProtocolsAttributeTypeOk(arg InstanceParametersGetTlsProtocolsAttributeType) (ret InstanceParametersGetTlsProtocolsRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setInstanceParametersGetTlsProtocolsAttributeType(arg *InstanceParametersGetTlsProtocolsAttributeType, val InstanceParametersGetTlsProtocolsRetType) {
*arg = &val
}
// InstanceParameters struct for InstanceParameters
type InstanceParameters struct {
// The unit is milliseconds.
// Can be cast to int32 without loss of precision.
ConsumerTimeout InstanceParametersGetConsumerTimeoutAttributeType `json:"consumer_timeout,omitempty"`
EnableMonitoring InstanceParametersgetEnableMonitoringAttributeType `json:"enable_monitoring,omitempty"`
// If you want to monitor your service with Graphite, you can set the custom parameter graphite. It expects the host and port where the Graphite metrics should be sent to.
Graphite InstanceParametersGetGraphiteAttributeType `json:"graphite,omitempty"`
// This component monitors ephemeral and persistent disk usage. If one of these disk usages reaches the default configured threshold of 80%, the a9s Parachute stops all processes on that node.
// Can be cast to int32 without loss of precision.
MaxDiskThreshold InstanceParametersGetMaxDiskThresholdAttributeType `json:"max_disk_threshold,omitempty"`
// Frequency of metrics being emitted in seconds
// Can be cast to int32 without loss of precision.
MetricsFrequency InstanceParametersGetMetricsFrequencyAttributeType `json:"metrics_frequency,omitempty"`
// Depending on your graphite provider, you might need to prefix the metrics with a certain value, like an API key for example.
MetricsPrefix InstanceParametersGetMetricsPrefixAttributeType `json:"metrics_prefix,omitempty"`
MonitoringInstanceId InstanceParametersGetMonitoringInstanceIdAttributeType `json:"monitoring_instance_id,omitempty"`
Plugins InstanceParametersGetPluginsAttributeType `json:"plugins,omitempty"`
Roles InstanceParametersGetRolesAttributeType `json:"roles,omitempty"`
// Comma separated list of IP networks in CIDR notation which are allowed to access this instance.
SgwAcl InstanceParametersGetSgwAclAttributeType `json:"sgw_acl,omitempty"`
Syslog InstanceParametersGetSyslogAttributeType `json:"syslog,omitempty"`
TlsCiphers InstanceParametersGetTlsCiphersAttributeType `json:"tls-ciphers,omitempty"`
TlsProtocols InstanceParametersGetTlsProtocolsAttributeType `json:"tls-protocols,omitempty"`
}
// NewInstanceParameters instantiates a new InstanceParameters 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 NewInstanceParameters() *InstanceParameters {
this := InstanceParameters{}
return &this
}
// NewInstanceParametersWithDefaults instantiates a new InstanceParameters 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 NewInstanceParametersWithDefaults() *InstanceParameters {
this := InstanceParameters{}
var consumerTimeout int64 = 1800000
this.ConsumerTimeout = &consumerTimeout
var enableMonitoring bool = false
this.EnableMonitoring = &enableMonitoring
var maxDiskThreshold int64 = 80
this.MaxDiskThreshold = &maxDiskThreshold
var metricsFrequency int64 = 10
this.MetricsFrequency = &metricsFrequency
return &this
}
// GetConsumerTimeout returns the ConsumerTimeout field value if set, zero value otherwise.
func (o *InstanceParameters) GetConsumerTimeout() (res InstanceParametersGetConsumerTimeoutRetType) {
res, _ = o.GetConsumerTimeoutOk()
return
}
// GetConsumerTimeoutOk returns a tuple with the ConsumerTimeout field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceParameters) GetConsumerTimeoutOk() (ret InstanceParametersGetConsumerTimeoutRetType, ok bool) {
return getInstanceParametersGetConsumerTimeoutAttributeTypeOk(o.ConsumerTimeout)
}
// HasConsumerTimeout returns a boolean if a field has been set.
func (o *InstanceParameters) HasConsumerTimeout() bool {
_, ok := o.GetConsumerTimeoutOk()
return ok
}
// SetConsumerTimeout gets a reference to the given int64 and assigns it to the ConsumerTimeout field.
func (o *InstanceParameters) SetConsumerTimeout(v InstanceParametersGetConsumerTimeoutRetType) {
setInstanceParametersGetConsumerTimeoutAttributeType(&o.ConsumerTimeout, v)
}
// GetEnableMonitoring returns the EnableMonitoring field value if set, zero value otherwise.
func (o *InstanceParameters) GetEnableMonitoring() (res InstanceParametersgetEnableMonitoringRetType) {
res, _ = o.GetEnableMonitoringOk()
return
}
// GetEnableMonitoringOk returns a tuple with the EnableMonitoring field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceParameters) GetEnableMonitoringOk() (ret InstanceParametersgetEnableMonitoringRetType, ok bool) {
return getInstanceParametersgetEnableMonitoringAttributeTypeOk(o.EnableMonitoring)
}
// HasEnableMonitoring returns a boolean if a field has been set.
func (o *InstanceParameters) HasEnableMonitoring() bool {
_, ok := o.GetEnableMonitoringOk()
return ok
}
// SetEnableMonitoring gets a reference to the given bool and assigns it to the EnableMonitoring field.
func (o *InstanceParameters) SetEnableMonitoring(v InstanceParametersgetEnableMonitoringRetType) {
setInstanceParametersgetEnableMonitoringAttributeType(&o.EnableMonitoring, v)
}
// GetGraphite returns the Graphite field value if set, zero value otherwise.
func (o *InstanceParameters) GetGraphite() (res InstanceParametersGetGraphiteRetType) {
res, _ = o.GetGraphiteOk()
return
}
// GetGraphiteOk returns a tuple with the Graphite field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceParameters) GetGraphiteOk() (ret InstanceParametersGetGraphiteRetType, ok bool) {
return getInstanceParametersGetGraphiteAttributeTypeOk(o.Graphite)
}
// HasGraphite returns a boolean if a field has been set.
func (o *InstanceParameters) HasGraphite() bool {
_, ok := o.GetGraphiteOk()
return ok
}
// SetGraphite gets a reference to the given string and assigns it to the Graphite field.
func (o *InstanceParameters) SetGraphite(v InstanceParametersGetGraphiteRetType) {
setInstanceParametersGetGraphiteAttributeType(&o.Graphite, v)
}
// GetMaxDiskThreshold returns the MaxDiskThreshold field value if set, zero value otherwise.
func (o *InstanceParameters) GetMaxDiskThreshold() (res InstanceParametersGetMaxDiskThresholdRetType) {
res, _ = o.GetMaxDiskThresholdOk()
return
}
// GetMaxDiskThresholdOk returns a tuple with the MaxDiskThreshold field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceParameters) GetMaxDiskThresholdOk() (ret InstanceParametersGetMaxDiskThresholdRetType, ok bool) {
return getInstanceParametersGetMaxDiskThresholdAttributeTypeOk(o.MaxDiskThreshold)
}
// HasMaxDiskThreshold returns a boolean if a field has been set.
func (o *InstanceParameters) HasMaxDiskThreshold() bool {
_, ok := o.GetMaxDiskThresholdOk()
return ok
}
// SetMaxDiskThreshold gets a reference to the given int64 and assigns it to the MaxDiskThreshold field.
func (o *InstanceParameters) SetMaxDiskThreshold(v InstanceParametersGetMaxDiskThresholdRetType) {
setInstanceParametersGetMaxDiskThresholdAttributeType(&o.MaxDiskThreshold, v)
}
// GetMetricsFrequency returns the MetricsFrequency field value if set, zero value otherwise.
func (o *InstanceParameters) GetMetricsFrequency() (res InstanceParametersGetMetricsFrequencyRetType) {
res, _ = o.GetMetricsFrequencyOk()
return
}
// GetMetricsFrequencyOk returns a tuple with the MetricsFrequency field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceParameters) GetMetricsFrequencyOk() (ret InstanceParametersGetMetricsFrequencyRetType, ok bool) {
return getInstanceParametersGetMetricsFrequencyAttributeTypeOk(o.MetricsFrequency)
}
// HasMetricsFrequency returns a boolean if a field has been set.
func (o *InstanceParameters) HasMetricsFrequency() bool {
_, ok := o.GetMetricsFrequencyOk()
return ok
}
// SetMetricsFrequency gets a reference to the given int64 and assigns it to the MetricsFrequency field.
func (o *InstanceParameters) SetMetricsFrequency(v InstanceParametersGetMetricsFrequencyRetType) {
setInstanceParametersGetMetricsFrequencyAttributeType(&o.MetricsFrequency, v)
}
// GetMetricsPrefix returns the MetricsPrefix field value if set, zero value otherwise.
func (o *InstanceParameters) GetMetricsPrefix() (res InstanceParametersGetMetricsPrefixRetType) {
res, _ = o.GetMetricsPrefixOk()
return
}
// GetMetricsPrefixOk returns a tuple with the MetricsPrefix field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceParameters) GetMetricsPrefixOk() (ret InstanceParametersGetMetricsPrefixRetType, ok bool) {
return getInstanceParametersGetMetricsPrefixAttributeTypeOk(o.MetricsPrefix)
}
// HasMetricsPrefix returns a boolean if a field has been set.
func (o *InstanceParameters) HasMetricsPrefix() bool {
_, ok := o.GetMetricsPrefixOk()
return ok
}
// SetMetricsPrefix gets a reference to the given string and assigns it to the MetricsPrefix field.
func (o *InstanceParameters) SetMetricsPrefix(v InstanceParametersGetMetricsPrefixRetType) {
setInstanceParametersGetMetricsPrefixAttributeType(&o.MetricsPrefix, v)
}
// GetMonitoringInstanceId returns the MonitoringInstanceId field value if set, zero value otherwise.
func (o *InstanceParameters) GetMonitoringInstanceId() (res InstanceParametersGetMonitoringInstanceIdRetType) {
res, _ = o.GetMonitoringInstanceIdOk()
return
}
// GetMonitoringInstanceIdOk returns a tuple with the MonitoringInstanceId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceParameters) GetMonitoringInstanceIdOk() (ret InstanceParametersGetMonitoringInstanceIdRetType, ok bool) {
return getInstanceParametersGetMonitoringInstanceIdAttributeTypeOk(o.MonitoringInstanceId)
}
// HasMonitoringInstanceId returns a boolean if a field has been set.
func (o *InstanceParameters) HasMonitoringInstanceId() bool {
_, ok := o.GetMonitoringInstanceIdOk()
return ok
}
// SetMonitoringInstanceId gets a reference to the given string and assigns it to the MonitoringInstanceId field.
func (o *InstanceParameters) SetMonitoringInstanceId(v InstanceParametersGetMonitoringInstanceIdRetType) {
setInstanceParametersGetMonitoringInstanceIdAttributeType(&o.MonitoringInstanceId, v)
}
// GetPlugins returns the Plugins field value if set, zero value otherwise.
func (o *InstanceParameters) GetPlugins() (res InstanceParametersGetPluginsRetType) {
res, _ = o.GetPluginsOk()
return
}
// GetPluginsOk returns a tuple with the Plugins field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceParameters) GetPluginsOk() (ret InstanceParametersGetPluginsRetType, ok bool) {
return getInstanceParametersGetPluginsAttributeTypeOk(o.Plugins)
}
// HasPlugins returns a boolean if a field has been set.
func (o *InstanceParameters) HasPlugins() bool {
_, ok := o.GetPluginsOk()
return ok
}
// SetPlugins gets a reference to the given []string and assigns it to the Plugins field.
func (o *InstanceParameters) SetPlugins(v InstanceParametersGetPluginsRetType) {
setInstanceParametersGetPluginsAttributeType(&o.Plugins, v)
}
// GetRoles returns the Roles field value if set, zero value otherwise.
func (o *InstanceParameters) GetRoles() (res InstanceParametersGetRolesRetType) {
res, _ = o.GetRolesOk()
return
}
// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceParameters) GetRolesOk() (ret InstanceParametersGetRolesRetType, ok bool) {
return getInstanceParametersGetRolesAttributeTypeOk(o.Roles)
}
// HasRoles returns a boolean if a field has been set.
func (o *InstanceParameters) HasRoles() bool {
_, ok := o.GetRolesOk()
return ok
}
// SetRoles gets a reference to the given []string and assigns it to the Roles field.
func (o *InstanceParameters) SetRoles(v InstanceParametersGetRolesRetType) {
setInstanceParametersGetRolesAttributeType(&o.Roles, v)
}
// GetSgwAcl returns the SgwAcl field value if set, zero value otherwise.
func (o *InstanceParameters) GetSgwAcl() (res InstanceParametersGetSgwAclRetType) {
res, _ = o.GetSgwAclOk()
return
}
// GetSgwAclOk returns a tuple with the SgwAcl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceParameters) GetSgwAclOk() (ret InstanceParametersGetSgwAclRetType, ok bool) {
return getInstanceParametersGetSgwAclAttributeTypeOk(o.SgwAcl)
}
// HasSgwAcl returns a boolean if a field has been set.
func (o *InstanceParameters) HasSgwAcl() bool {
_, ok := o.GetSgwAclOk()
return ok
}
// SetSgwAcl gets a reference to the given string and assigns it to the SgwAcl field.
func (o *InstanceParameters) SetSgwAcl(v InstanceParametersGetSgwAclRetType) {
setInstanceParametersGetSgwAclAttributeType(&o.SgwAcl, v)
}
// GetSyslog returns the Syslog field value if set, zero value otherwise.
func (o *InstanceParameters) GetSyslog() (res InstanceParametersGetSyslogRetType) {
res, _ = o.GetSyslogOk()
return
}
// GetSyslogOk returns a tuple with the Syslog field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceParameters) GetSyslogOk() (ret InstanceParametersGetSyslogRetType, ok bool) {
return getInstanceParametersGetSyslogAttributeTypeOk(o.Syslog)
}
// HasSyslog returns a boolean if a field has been set.
func (o *InstanceParameters) HasSyslog() bool {
_, ok := o.GetSyslogOk()
return ok
}
// SetSyslog gets a reference to the given []string and assigns it to the Syslog field.
func (o *InstanceParameters) SetSyslog(v InstanceParametersGetSyslogRetType) {
setInstanceParametersGetSyslogAttributeType(&o.Syslog, v)
}
// GetTlsCiphers returns the TlsCiphers field value if set, zero value otherwise.
func (o *InstanceParameters) GetTlsCiphers() (res InstanceParametersGetTlsCiphersRetType) {
res, _ = o.GetTlsCiphersOk()
return
}
// GetTlsCiphersOk returns a tuple with the TlsCiphers field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceParameters) GetTlsCiphersOk() (ret InstanceParametersGetTlsCiphersRetType, ok bool) {
return getInstanceParametersGetTlsCiphersAttributeTypeOk(o.TlsCiphers)
}
// HasTlsCiphers returns a boolean if a field has been set.
func (o *InstanceParameters) HasTlsCiphers() bool {
_, ok := o.GetTlsCiphersOk()
return ok
}
// SetTlsCiphers gets a reference to the given []string and assigns it to the TlsCiphers field.
func (o *InstanceParameters) SetTlsCiphers(v InstanceParametersGetTlsCiphersRetType) {
setInstanceParametersGetTlsCiphersAttributeType(&o.TlsCiphers, v)
}
// GetTlsProtocols returns the TlsProtocols field value if set, zero value otherwise.
func (o *InstanceParameters) GetTlsProtocols() (res InstanceParametersGetTlsProtocolsRetType) {
res, _ = o.GetTlsProtocolsOk()
return
}
// GetTlsProtocolsOk returns a tuple with the TlsProtocols field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstanceParameters) GetTlsProtocolsOk() (ret InstanceParametersGetTlsProtocolsRetType, ok bool) {
return getInstanceParametersGetTlsProtocolsAttributeTypeOk(o.TlsProtocols)
}
// HasTlsProtocols returns a boolean if a field has been set.
func (o *InstanceParameters) HasTlsProtocols() bool {
_, ok := o.GetTlsProtocolsOk()
return ok
}
// SetTlsProtocols gets a reference to the given []string and assigns it to the TlsProtocols field.
func (o *InstanceParameters) SetTlsProtocols(v InstanceParametersGetTlsProtocolsRetType) {
setInstanceParametersGetTlsProtocolsAttributeType(&o.TlsProtocols, v)
}
func (o InstanceParameters) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getInstanceParametersGetConsumerTimeoutAttributeTypeOk(o.ConsumerTimeout); ok {
toSerialize["ConsumerTimeout"] = val
}
if val, ok := getInstanceParametersgetEnableMonitoringAttributeTypeOk(o.EnableMonitoring); ok {
toSerialize["EnableMonitoring"] = val
}
if val, ok := getInstanceParametersGetGraphiteAttributeTypeOk(o.Graphite); ok {
toSerialize["Graphite"] = val
}
if val, ok := getInstanceParametersGetMaxDiskThresholdAttributeTypeOk(o.MaxDiskThreshold); ok {
toSerialize["MaxDiskThreshold"] = val
}
if val, ok := getInstanceParametersGetMetricsFrequencyAttributeTypeOk(o.MetricsFrequency); ok {
toSerialize["MetricsFrequency"] = val
}
if val, ok := getInstanceParametersGetMetricsPrefixAttributeTypeOk(o.MetricsPrefix); ok {
toSerialize["MetricsPrefix"] = val
}
if val, ok := getInstanceParametersGetMonitoringInstanceIdAttributeTypeOk(o.MonitoringInstanceId); ok {
toSerialize["MonitoringInstanceId"] = val
}
if val, ok := getInstanceParametersGetPluginsAttributeTypeOk(o.Plugins); ok {
toSerialize["Plugins"] = val
}
if val, ok := getInstanceParametersGetRolesAttributeTypeOk(o.Roles); ok {
toSerialize["Roles"] = val
}
if val, ok := getInstanceParametersGetSgwAclAttributeTypeOk(o.SgwAcl); ok {
toSerialize["SgwAcl"] = val
}
if val, ok := getInstanceParametersGetSyslogAttributeTypeOk(o.Syslog); ok {
toSerialize["Syslog"] = val
}
if val, ok := getInstanceParametersGetTlsCiphersAttributeTypeOk(o.TlsCiphers); ok {
toSerialize["TlsCiphers"] = val
}
if val, ok := getInstanceParametersGetTlsProtocolsAttributeTypeOk(o.TlsProtocols); ok {
toSerialize["TlsProtocols"] = val
}
return toSerialize, nil
}
type NullableInstanceParameters struct {
value *InstanceParameters
isSet bool
}
func (v NullableInstanceParameters) Get() *InstanceParameters {
return v.value
}
func (v *NullableInstanceParameters) Set(val *InstanceParameters) {
v.value = val
v.isSet = true
}
func (v NullableInstanceParameters) IsSet() bool {
return v.isSet
}
func (v *NullableInstanceParameters) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableInstanceParameters(val *InstanceParameters) *NullableInstanceParameters {
return &NullableInstanceParameters{value: val, isSet: true}
}
func (v NullableInstanceParameters) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableInstanceParameters) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}