/
model_service_element.go
1078 lines (922 loc) · 29.1 KB
/
model_service_element.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
/*
* MSX SDK
*
* MSX SDK client.
*
* API version: 1.0.9
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package msxsdk
import (
"encoding/json"
)
// ServiceElement struct for ServiceElement
type ServiceElement struct {
Name *string `json:"name,omitempty"`
Label *string `json:"label,omitempty"`
Header *string `json:"header,omitempty"`
Description *string `json:"description,omitempty"`
Hint *string `json:"hint,omitempty"`
InputType *string `json:"inputType,omitempty"`
Type *string `json:"type,omitempty"`
Component *string `json:"component,omitempty"`
MaxLimit *string `json:"maxLimit,omitempty"`
MinLimit *string `json:"minLimit,omitempty"`
Value *string `json:"value,omitempty"`
ValueList []map[string]interface{} `json:"valueList,omitempty"`
AllowedOptionValues *[]string `json:"allowedOptionValues,omitempty"`
AllowedValues []map[string]interface{} `json:"allowedValues,omitempty"`
Mandatory *bool `json:"mandatory,omitempty"`
Section *string `json:"section,omitempty"`
Billable *bool `json:"billable,omitempty"`
Hidden *bool `json:"hidden,omitempty"`
ParentName *string `json:"parentName,omitempty"`
Supported *bool `json:"supported,omitempty"`
DynamicData *bool `json:"dynamicData,omitempty"`
MinValue *int32 `json:"minValue,omitempty"`
MaxValue *int32 `json:"maxValue,omitempty"`
StepSize *int32 `json:"stepSize,omitempty"`
PricingAtttributes NullableServiceElementPrice `json:"pricingAtttributes,omitempty"`
ChildElements []ServiceElement `json:"childElements,omitempty"`
AdditionalProperties map[string]interface{}
}
type _ServiceElement ServiceElement
// NewServiceElement instantiates a new ServiceElement 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 NewServiceElement() *ServiceElement {
this := ServiceElement{}
return &this
}
// NewServiceElementWithDefaults instantiates a new ServiceElement 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 NewServiceElementWithDefaults() *ServiceElement {
this := ServiceElement{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *ServiceElement) GetName() string {
if o == nil || o.Name == nil {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *ServiceElement) HasName() bool {
if o != nil && o.Name != nil {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *ServiceElement) SetName(v string) {
o.Name = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *ServiceElement) GetLabel() string {
if o == nil || o.Label == nil {
var ret string
return ret
}
return *o.Label
}
// GetLabelOk returns a tuple with the Label field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetLabelOk() (*string, bool) {
if o == nil || o.Label == nil {
return nil, false
}
return o.Label, true
}
// HasLabel returns a boolean if a field has been set.
func (o *ServiceElement) HasLabel() bool {
if o != nil && o.Label != nil {
return true
}
return false
}
// SetLabel gets a reference to the given string and assigns it to the Label field.
func (o *ServiceElement) SetLabel(v string) {
o.Label = &v
}
// GetHeader returns the Header field value if set, zero value otherwise.
func (o *ServiceElement) GetHeader() string {
if o == nil || o.Header == nil {
var ret string
return ret
}
return *o.Header
}
// GetHeaderOk returns a tuple with the Header field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetHeaderOk() (*string, bool) {
if o == nil || o.Header == nil {
return nil, false
}
return o.Header, true
}
// HasHeader returns a boolean if a field has been set.
func (o *ServiceElement) HasHeader() bool {
if o != nil && o.Header != nil {
return true
}
return false
}
// SetHeader gets a reference to the given string and assigns it to the Header field.
func (o *ServiceElement) SetHeader(v string) {
o.Header = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ServiceElement) GetDescription() string {
if o == nil || o.Description == nil {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetDescriptionOk() (*string, bool) {
if o == nil || o.Description == nil {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *ServiceElement) HasDescription() bool {
if o != nil && o.Description != nil {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *ServiceElement) SetDescription(v string) {
o.Description = &v
}
// GetHint returns the Hint field value if set, zero value otherwise.
func (o *ServiceElement) GetHint() string {
if o == nil || o.Hint == nil {
var ret string
return ret
}
return *o.Hint
}
// GetHintOk returns a tuple with the Hint field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetHintOk() (*string, bool) {
if o == nil || o.Hint == nil {
return nil, false
}
return o.Hint, true
}
// HasHint returns a boolean if a field has been set.
func (o *ServiceElement) HasHint() bool {
if o != nil && o.Hint != nil {
return true
}
return false
}
// SetHint gets a reference to the given string and assigns it to the Hint field.
func (o *ServiceElement) SetHint(v string) {
o.Hint = &v
}
// GetInputType returns the InputType field value if set, zero value otherwise.
func (o *ServiceElement) GetInputType() string {
if o == nil || o.InputType == nil {
var ret string
return ret
}
return *o.InputType
}
// GetInputTypeOk returns a tuple with the InputType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetInputTypeOk() (*string, bool) {
if o == nil || o.InputType == nil {
return nil, false
}
return o.InputType, true
}
// HasInputType returns a boolean if a field has been set.
func (o *ServiceElement) HasInputType() bool {
if o != nil && o.InputType != nil {
return true
}
return false
}
// SetInputType gets a reference to the given string and assigns it to the InputType field.
func (o *ServiceElement) SetInputType(v string) {
o.InputType = &v
}
// GetType returns the Type field value if set, zero value otherwise.
func (o *ServiceElement) GetType() string {
if o == nil || o.Type == nil {
var ret string
return ret
}
return *o.Type
}
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetTypeOk() (*string, bool) {
if o == nil || o.Type == nil {
return nil, false
}
return o.Type, true
}
// HasType returns a boolean if a field has been set.
func (o *ServiceElement) HasType() bool {
if o != nil && o.Type != nil {
return true
}
return false
}
// SetType gets a reference to the given string and assigns it to the Type field.
func (o *ServiceElement) SetType(v string) {
o.Type = &v
}
// GetComponent returns the Component field value if set, zero value otherwise.
func (o *ServiceElement) GetComponent() string {
if o == nil || o.Component == nil {
var ret string
return ret
}
return *o.Component
}
// GetComponentOk returns a tuple with the Component field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetComponentOk() (*string, bool) {
if o == nil || o.Component == nil {
return nil, false
}
return o.Component, true
}
// HasComponent returns a boolean if a field has been set.
func (o *ServiceElement) HasComponent() bool {
if o != nil && o.Component != nil {
return true
}
return false
}
// SetComponent gets a reference to the given string and assigns it to the Component field.
func (o *ServiceElement) SetComponent(v string) {
o.Component = &v
}
// GetMaxLimit returns the MaxLimit field value if set, zero value otherwise.
func (o *ServiceElement) GetMaxLimit() string {
if o == nil || o.MaxLimit == nil {
var ret string
return ret
}
return *o.MaxLimit
}
// GetMaxLimitOk returns a tuple with the MaxLimit field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetMaxLimitOk() (*string, bool) {
if o == nil || o.MaxLimit == nil {
return nil, false
}
return o.MaxLimit, true
}
// HasMaxLimit returns a boolean if a field has been set.
func (o *ServiceElement) HasMaxLimit() bool {
if o != nil && o.MaxLimit != nil {
return true
}
return false
}
// SetMaxLimit gets a reference to the given string and assigns it to the MaxLimit field.
func (o *ServiceElement) SetMaxLimit(v string) {
o.MaxLimit = &v
}
// GetMinLimit returns the MinLimit field value if set, zero value otherwise.
func (o *ServiceElement) GetMinLimit() string {
if o == nil || o.MinLimit == nil {
var ret string
return ret
}
return *o.MinLimit
}
// GetMinLimitOk returns a tuple with the MinLimit field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetMinLimitOk() (*string, bool) {
if o == nil || o.MinLimit == nil {
return nil, false
}
return o.MinLimit, true
}
// HasMinLimit returns a boolean if a field has been set.
func (o *ServiceElement) HasMinLimit() bool {
if o != nil && o.MinLimit != nil {
return true
}
return false
}
// SetMinLimit gets a reference to the given string and assigns it to the MinLimit field.
func (o *ServiceElement) SetMinLimit(v string) {
o.MinLimit = &v
}
// GetValue returns the Value field value if set, zero value otherwise.
func (o *ServiceElement) GetValue() string {
if o == nil || o.Value == nil {
var ret string
return ret
}
return *o.Value
}
// GetValueOk returns a tuple with the Value field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetValueOk() (*string, bool) {
if o == nil || o.Value == nil {
return nil, false
}
return o.Value, true
}
// HasValue returns a boolean if a field has been set.
func (o *ServiceElement) HasValue() bool {
if o != nil && o.Value != nil {
return true
}
return false
}
// SetValue gets a reference to the given string and assigns it to the Value field.
func (o *ServiceElement) SetValue(v string) {
o.Value = &v
}
// GetValueList returns the ValueList field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ServiceElement) GetValueList() []map[string]interface{} {
if o == nil {
var ret []map[string]interface{}
return ret
}
return o.ValueList
}
// GetValueListOk returns a tuple with the ValueList field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ServiceElement) GetValueListOk() (*[]map[string]interface{}, bool) {
if o == nil || o.ValueList == nil {
return nil, false
}
return &o.ValueList, true
}
// HasValueList returns a boolean if a field has been set.
func (o *ServiceElement) HasValueList() bool {
if o != nil && o.ValueList != nil {
return true
}
return false
}
// SetValueList gets a reference to the given []map[string]interface{} and assigns it to the ValueList field.
func (o *ServiceElement) SetValueList(v []map[string]interface{}) {
o.ValueList = v
}
// GetAllowedOptionValues returns the AllowedOptionValues field value if set, zero value otherwise.
func (o *ServiceElement) GetAllowedOptionValues() []string {
if o == nil || o.AllowedOptionValues == nil {
var ret []string
return ret
}
return *o.AllowedOptionValues
}
// GetAllowedOptionValuesOk returns a tuple with the AllowedOptionValues field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetAllowedOptionValuesOk() (*[]string, bool) {
if o == nil || o.AllowedOptionValues == nil {
return nil, false
}
return o.AllowedOptionValues, true
}
// HasAllowedOptionValues returns a boolean if a field has been set.
func (o *ServiceElement) HasAllowedOptionValues() bool {
if o != nil && o.AllowedOptionValues != nil {
return true
}
return false
}
// SetAllowedOptionValues gets a reference to the given []string and assigns it to the AllowedOptionValues field.
func (o *ServiceElement) SetAllowedOptionValues(v []string) {
o.AllowedOptionValues = &v
}
// GetAllowedValues returns the AllowedValues field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ServiceElement) GetAllowedValues() []map[string]interface{} {
if o == nil {
var ret []map[string]interface{}
return ret
}
return o.AllowedValues
}
// GetAllowedValuesOk returns a tuple with the AllowedValues field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ServiceElement) GetAllowedValuesOk() (*[]map[string]interface{}, bool) {
if o == nil || o.AllowedValues == nil {
return nil, false
}
return &o.AllowedValues, true
}
// HasAllowedValues returns a boolean if a field has been set.
func (o *ServiceElement) HasAllowedValues() bool {
if o != nil && o.AllowedValues != nil {
return true
}
return false
}
// SetAllowedValues gets a reference to the given []map[string]interface{} and assigns it to the AllowedValues field.
func (o *ServiceElement) SetAllowedValues(v []map[string]interface{}) {
o.AllowedValues = v
}
// GetMandatory returns the Mandatory field value if set, zero value otherwise.
func (o *ServiceElement) GetMandatory() bool {
if o == nil || o.Mandatory == nil {
var ret bool
return ret
}
return *o.Mandatory
}
// GetMandatoryOk returns a tuple with the Mandatory field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetMandatoryOk() (*bool, bool) {
if o == nil || o.Mandatory == nil {
return nil, false
}
return o.Mandatory, true
}
// HasMandatory returns a boolean if a field has been set.
func (o *ServiceElement) HasMandatory() bool {
if o != nil && o.Mandatory != nil {
return true
}
return false
}
// SetMandatory gets a reference to the given bool and assigns it to the Mandatory field.
func (o *ServiceElement) SetMandatory(v bool) {
o.Mandatory = &v
}
// GetSection returns the Section field value if set, zero value otherwise.
func (o *ServiceElement) GetSection() string {
if o == nil || o.Section == nil {
var ret string
return ret
}
return *o.Section
}
// GetSectionOk returns a tuple with the Section field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetSectionOk() (*string, bool) {
if o == nil || o.Section == nil {
return nil, false
}
return o.Section, true
}
// HasSection returns a boolean if a field has been set.
func (o *ServiceElement) HasSection() bool {
if o != nil && o.Section != nil {
return true
}
return false
}
// SetSection gets a reference to the given string and assigns it to the Section field.
func (o *ServiceElement) SetSection(v string) {
o.Section = &v
}
// GetBillable returns the Billable field value if set, zero value otherwise.
func (o *ServiceElement) GetBillable() bool {
if o == nil || o.Billable == nil {
var ret bool
return ret
}
return *o.Billable
}
// GetBillableOk returns a tuple with the Billable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetBillableOk() (*bool, bool) {
if o == nil || o.Billable == nil {
return nil, false
}
return o.Billable, true
}
// HasBillable returns a boolean if a field has been set.
func (o *ServiceElement) HasBillable() bool {
if o != nil && o.Billable != nil {
return true
}
return false
}
// SetBillable gets a reference to the given bool and assigns it to the Billable field.
func (o *ServiceElement) SetBillable(v bool) {
o.Billable = &v
}
// GetHidden returns the Hidden field value if set, zero value otherwise.
func (o *ServiceElement) GetHidden() bool {
if o == nil || o.Hidden == nil {
var ret bool
return ret
}
return *o.Hidden
}
// GetHiddenOk returns a tuple with the Hidden field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetHiddenOk() (*bool, bool) {
if o == nil || o.Hidden == nil {
return nil, false
}
return o.Hidden, true
}
// HasHidden returns a boolean if a field has been set.
func (o *ServiceElement) HasHidden() bool {
if o != nil && o.Hidden != nil {
return true
}
return false
}
// SetHidden gets a reference to the given bool and assigns it to the Hidden field.
func (o *ServiceElement) SetHidden(v bool) {
o.Hidden = &v
}
// GetParentName returns the ParentName field value if set, zero value otherwise.
func (o *ServiceElement) GetParentName() string {
if o == nil || o.ParentName == nil {
var ret string
return ret
}
return *o.ParentName
}
// GetParentNameOk returns a tuple with the ParentName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetParentNameOk() (*string, bool) {
if o == nil || o.ParentName == nil {
return nil, false
}
return o.ParentName, true
}
// HasParentName returns a boolean if a field has been set.
func (o *ServiceElement) HasParentName() bool {
if o != nil && o.ParentName != nil {
return true
}
return false
}
// SetParentName gets a reference to the given string and assigns it to the ParentName field.
func (o *ServiceElement) SetParentName(v string) {
o.ParentName = &v
}
// GetSupported returns the Supported field value if set, zero value otherwise.
func (o *ServiceElement) GetSupported() bool {
if o == nil || o.Supported == nil {
var ret bool
return ret
}
return *o.Supported
}
// GetSupportedOk returns a tuple with the Supported field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetSupportedOk() (*bool, bool) {
if o == nil || o.Supported == nil {
return nil, false
}
return o.Supported, true
}
// HasSupported returns a boolean if a field has been set.
func (o *ServiceElement) HasSupported() bool {
if o != nil && o.Supported != nil {
return true
}
return false
}
// SetSupported gets a reference to the given bool and assigns it to the Supported field.
func (o *ServiceElement) SetSupported(v bool) {
o.Supported = &v
}
// GetDynamicData returns the DynamicData field value if set, zero value otherwise.
func (o *ServiceElement) GetDynamicData() bool {
if o == nil || o.DynamicData == nil {
var ret bool
return ret
}
return *o.DynamicData
}
// GetDynamicDataOk returns a tuple with the DynamicData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetDynamicDataOk() (*bool, bool) {
if o == nil || o.DynamicData == nil {
return nil, false
}
return o.DynamicData, true
}
// HasDynamicData returns a boolean if a field has been set.
func (o *ServiceElement) HasDynamicData() bool {
if o != nil && o.DynamicData != nil {
return true
}
return false
}
// SetDynamicData gets a reference to the given bool and assigns it to the DynamicData field.
func (o *ServiceElement) SetDynamicData(v bool) {
o.DynamicData = &v
}
// GetMinValue returns the MinValue field value if set, zero value otherwise.
func (o *ServiceElement) GetMinValue() int32 {
if o == nil || o.MinValue == nil {
var ret int32
return ret
}
return *o.MinValue
}
// GetMinValueOk returns a tuple with the MinValue field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetMinValueOk() (*int32, bool) {
if o == nil || o.MinValue == nil {
return nil, false
}
return o.MinValue, true
}
// HasMinValue returns a boolean if a field has been set.
func (o *ServiceElement) HasMinValue() bool {
if o != nil && o.MinValue != nil {
return true
}
return false
}
// SetMinValue gets a reference to the given int32 and assigns it to the MinValue field.
func (o *ServiceElement) SetMinValue(v int32) {
o.MinValue = &v
}
// GetMaxValue returns the MaxValue field value if set, zero value otherwise.
func (o *ServiceElement) GetMaxValue() int32 {
if o == nil || o.MaxValue == nil {
var ret int32
return ret
}
return *o.MaxValue
}
// GetMaxValueOk returns a tuple with the MaxValue field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetMaxValueOk() (*int32, bool) {
if o == nil || o.MaxValue == nil {
return nil, false
}
return o.MaxValue, true
}
// HasMaxValue returns a boolean if a field has been set.
func (o *ServiceElement) HasMaxValue() bool {
if o != nil && o.MaxValue != nil {
return true
}
return false
}
// SetMaxValue gets a reference to the given int32 and assigns it to the MaxValue field.
func (o *ServiceElement) SetMaxValue(v int32) {
o.MaxValue = &v
}
// GetStepSize returns the StepSize field value if set, zero value otherwise.
func (o *ServiceElement) GetStepSize() int32 {
if o == nil || o.StepSize == nil {
var ret int32
return ret
}
return *o.StepSize
}
// GetStepSizeOk returns a tuple with the StepSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ServiceElement) GetStepSizeOk() (*int32, bool) {
if o == nil || o.StepSize == nil {
return nil, false
}
return o.StepSize, true
}
// HasStepSize returns a boolean if a field has been set.
func (o *ServiceElement) HasStepSize() bool {
if o != nil && o.StepSize != nil {
return true
}
return false
}
// SetStepSize gets a reference to the given int32 and assigns it to the StepSize field.
func (o *ServiceElement) SetStepSize(v int32) {
o.StepSize = &v
}
// GetPricingAtttributes returns the PricingAtttributes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ServiceElement) GetPricingAtttributes() ServiceElementPrice {
if o == nil || o.PricingAtttributes.Get() == nil {
var ret ServiceElementPrice
return ret
}
return *o.PricingAtttributes.Get()
}
// GetPricingAtttributesOk returns a tuple with the PricingAtttributes field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ServiceElement) GetPricingAtttributesOk() (*ServiceElementPrice, bool) {
if o == nil {
return nil, false
}
return o.PricingAtttributes.Get(), o.PricingAtttributes.IsSet()
}
// HasPricingAtttributes returns a boolean if a field has been set.
func (o *ServiceElement) HasPricingAtttributes() bool {
if o != nil && o.PricingAtttributes.IsSet() {
return true
}
return false
}
// SetPricingAtttributes gets a reference to the given NullableServiceElementPrice and assigns it to the PricingAtttributes field.
func (o *ServiceElement) SetPricingAtttributes(v ServiceElementPrice) {
o.PricingAtttributes.Set(&v)
}
// SetPricingAtttributesNil sets the value for PricingAtttributes to be an explicit nil
func (o *ServiceElement) SetPricingAtttributesNil() {
o.PricingAtttributes.Set(nil)
}
// UnsetPricingAtttributes ensures that no value is present for PricingAtttributes, not even an explicit nil
func (o *ServiceElement) UnsetPricingAtttributes() {
o.PricingAtttributes.Unset()
}
// GetChildElements returns the ChildElements field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ServiceElement) GetChildElements() []ServiceElement {
if o == nil {
var ret []ServiceElement
return ret
}
return o.ChildElements
}
// GetChildElementsOk returns a tuple with the ChildElements field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ServiceElement) GetChildElementsOk() (*[]ServiceElement, bool) {
if o == nil || o.ChildElements == nil {
return nil, false
}
return &o.ChildElements, true
}
// HasChildElements returns a boolean if a field has been set.
func (o *ServiceElement) HasChildElements() bool {
if o != nil && o.ChildElements != nil {
return true
}
return false
}
// SetChildElements gets a reference to the given []ServiceElement and assigns it to the ChildElements field.
func (o *ServiceElement) SetChildElements(v []ServiceElement) {
o.ChildElements = v
}
func (o ServiceElement) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Name != nil {
toSerialize["name"] = o.Name
}
if o.Label != nil {
toSerialize["label"] = o.Label
}
if o.Header != nil {
toSerialize["header"] = o.Header
}
if o.Description != nil {
toSerialize["description"] = o.Description
}
if o.Hint != nil {
toSerialize["hint"] = o.Hint
}
if o.InputType != nil {
toSerialize["inputType"] = o.InputType
}
if o.Type != nil {
toSerialize["type"] = o.Type
}
if o.Component != nil {
toSerialize["component"] = o.Component
}
if o.MaxLimit != nil {
toSerialize["maxLimit"] = o.MaxLimit
}
if o.MinLimit != nil {
toSerialize["minLimit"] = o.MinLimit
}
if o.Value != nil {
toSerialize["value"] = o.Value
}
if o.ValueList != nil {
toSerialize["valueList"] = o.ValueList
}
if o.AllowedOptionValues != nil {
toSerialize["allowedOptionValues"] = o.AllowedOptionValues
}
if o.AllowedValues != nil {
toSerialize["allowedValues"] = o.AllowedValues
}
if o.Mandatory != nil {
toSerialize["mandatory"] = o.Mandatory
}
if o.Section != nil {
toSerialize["section"] = o.Section
}
if o.Billable != nil {
toSerialize["billable"] = o.Billable
}
if o.Hidden != nil {
toSerialize["hidden"] = o.Hidden
}
if o.ParentName != nil {
toSerialize["parentName"] = o.ParentName
}
if o.Supported != nil {
toSerialize["supported"] = o.Supported
}
if o.DynamicData != nil {
toSerialize["dynamicData"] = o.DynamicData
}
if o.MinValue != nil {
toSerialize["minValue"] = o.MinValue
}
if o.MaxValue != nil {
toSerialize["maxValue"] = o.MaxValue
}
if o.StepSize != nil {
toSerialize["stepSize"] = o.StepSize
}
if o.PricingAtttributes.IsSet() {
toSerialize["pricingAtttributes"] = o.PricingAtttributes.Get()
}
if o.ChildElements != nil {
toSerialize["childElements"] = o.ChildElements
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return json.Marshal(toSerialize)
}
func (o *ServiceElement) UnmarshalJSON(bytes []byte) (err error) {