File: model_resource_limits.go

package info (click to toggle)
golang-github-ionos-cloud-sdk-go 6.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 6,332 kB
  • sloc: sh: 35; makefile: 3
file content (1204 lines) | stat: -rw-r--r-- 32,744 bytes parent folder | download
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
/*
 * CLOUD API
 *
 *  IONOS Enterprise-grade Infrastructure as a Service (IaaS) solutions can be managed through the Cloud API, in addition or as an alternative to the \"Data Center Designer\" (DCD) browser-based tool.    Both methods employ consistent concepts and features, deliver similar power and flexibility, and can be used to perform a multitude of management tasks, including adding servers, volumes, configuring networks, and so on.
 *
 * API version: 6.0
 */

// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

package ionoscloud

import (
	"encoding/json"
)

// ResourceLimits struct for ResourceLimits
type ResourceLimits struct {
	// The maximum number of CPU cores per server.
	CoresPerServer *int32 `json:"coresPerServer"`
	// The maximum number of CPU cores per contract.
	CoresPerContract *int32 `json:"coresPerContract"`
	// The number of CPU cores provisioned.
	CoresProvisioned *int32 `json:"coresProvisioned"`
	// The maximum amount of RAM (in MB) that can be provisioned for a particular server under this contract.
	RamPerServer *int32 `json:"ramPerServer"`
	// The maximum amount of RAM (in MB) that can be provisioned under this contract.
	RamPerContract *int32 `json:"ramPerContract"`
	// The amount of RAM (in MB) provisioned under this contract.
	RamProvisioned *int32 `json:"ramProvisioned"`
	// The maximum size (in MB) of an idividual hard disk volume.
	HddLimitPerVolume *int64 `json:"hddLimitPerVolume"`
	// The maximum amount of disk space (in MB) that can be provided under this contract.
	HddLimitPerContract *int64 `json:"hddLimitPerContract"`
	// The amount of hard disk space (in MB) that is currently provisioned.
	HddVolumeProvisioned *int64 `json:"hddVolumeProvisioned"`
	// The maximum size (in MB) of an individual solid state disk volume.
	SsdLimitPerVolume *int64 `json:"ssdLimitPerVolume"`
	// The maximum amount of solid state disk space (in MB) that can be provisioned under this contract.
	SsdLimitPerContract *int64 `json:"ssdLimitPerContract"`
	// The amount of solid state disk space (in MB) that is currently provisioned.
	SsdVolumeProvisioned *int64 `json:"ssdVolumeProvisioned"`
	// The amount of DAS disk space (in MB) in a Cube server that is currently provisioned.
	DasVolumeProvisioned *int64 `json:"dasVolumeProvisioned"`
	// The maximum number of static public IP addresses that can be reserved by this customer across contracts.
	ReservableIps *int32 `json:"reservableIps"`
	// The maximum number of static public IP addresses that can be reserved for this contract.
	ReservedIpsOnContract *int32 `json:"reservedIpsOnContract"`
	// The number of static public IP addresses in use.
	ReservedIpsInUse *int32 `json:"reservedIpsInUse"`
	// The maximum number of Kubernetes clusters that can be created under this contract.
	K8sClusterLimitTotal *int32 `json:"k8sClusterLimitTotal"`
	// The amount of Kubernetes clusters that is currently provisioned.
	K8sClustersProvisioned *int32 `json:"k8sClustersProvisioned"`
	// The NLB total limit.
	NlbLimitTotal *int32 `json:"nlbLimitTotal"`
	// The NLBs provisioned.
	NlbProvisioned *int32 `json:"nlbProvisioned"`
	// The NAT Gateway total limit.
	NatGatewayLimitTotal *int32 `json:"natGatewayLimitTotal"`
	// The NAT Gateways provisioned.
	NatGatewayProvisioned *int32 `json:"natGatewayProvisioned"`
	// The maximum number of security groups per VDC.
	SecurityGroupsPerVdc *int32 `json:"securityGroupsPerVdc"`
	// The maximum number of security groups that can be attached to a NIC or a VM individually. For example, a user can have maximum 10 security groups per NIC and 10 per VM.
	SecurityGroupsPerResource *int32 `json:"securityGroupsPerResource"`
	// The maximum number of rules per security group.
	RulesPerSecurityGroup *int32 `json:"rulesPerSecurityGroup"`
}

// NewResourceLimits instantiates a new ResourceLimits 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 NewResourceLimits(coresPerServer int32, coresPerContract int32, coresProvisioned int32, ramPerServer int32, ramPerContract int32, ramProvisioned int32, hddLimitPerVolume int64, hddLimitPerContract int64, hddVolumeProvisioned int64, ssdLimitPerVolume int64, ssdLimitPerContract int64, ssdVolumeProvisioned int64, dasVolumeProvisioned int64, reservableIps int32, reservedIpsOnContract int32, reservedIpsInUse int32, k8sClusterLimitTotal int32, k8sClustersProvisioned int32, nlbLimitTotal int32, nlbProvisioned int32, natGatewayLimitTotal int32, natGatewayProvisioned int32, securityGroupsPerVdc int32, securityGroupsPerResource int32, rulesPerSecurityGroup int32) *ResourceLimits {
	this := ResourceLimits{}

	this.CoresPerServer = &coresPerServer
	this.CoresPerContract = &coresPerContract
	this.CoresProvisioned = &coresProvisioned
	this.RamPerServer = &ramPerServer
	this.RamPerContract = &ramPerContract
	this.RamProvisioned = &ramProvisioned
	this.HddLimitPerVolume = &hddLimitPerVolume
	this.HddLimitPerContract = &hddLimitPerContract
	this.HddVolumeProvisioned = &hddVolumeProvisioned
	this.SsdLimitPerVolume = &ssdLimitPerVolume
	this.SsdLimitPerContract = &ssdLimitPerContract
	this.SsdVolumeProvisioned = &ssdVolumeProvisioned
	this.DasVolumeProvisioned = &dasVolumeProvisioned
	this.ReservableIps = &reservableIps
	this.ReservedIpsOnContract = &reservedIpsOnContract
	this.ReservedIpsInUse = &reservedIpsInUse
	this.K8sClusterLimitTotal = &k8sClusterLimitTotal
	this.K8sClustersProvisioned = &k8sClustersProvisioned
	this.NlbLimitTotal = &nlbLimitTotal
	this.NlbProvisioned = &nlbProvisioned
	this.NatGatewayLimitTotal = &natGatewayLimitTotal
	this.NatGatewayProvisioned = &natGatewayProvisioned
	this.SecurityGroupsPerVdc = &securityGroupsPerVdc
	this.SecurityGroupsPerResource = &securityGroupsPerResource
	this.RulesPerSecurityGroup = &rulesPerSecurityGroup

	return &this
}

// NewResourceLimitsWithDefaults instantiates a new ResourceLimits 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 NewResourceLimitsWithDefaults() *ResourceLimits {
	this := ResourceLimits{}
	return &this
}

// GetCoresPerServer returns the CoresPerServer field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetCoresPerServer() *int32 {
	if o == nil {
		return nil
	}

	return o.CoresPerServer

}

// GetCoresPerServerOk returns a tuple with the CoresPerServer field value
// 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 *ResourceLimits) GetCoresPerServerOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.CoresPerServer, true
}

// SetCoresPerServer sets field value
func (o *ResourceLimits) SetCoresPerServer(v int32) {

	o.CoresPerServer = &v

}

// HasCoresPerServer returns a boolean if a field has been set.
func (o *ResourceLimits) HasCoresPerServer() bool {
	if o != nil && o.CoresPerServer != nil {
		return true
	}

	return false
}

// GetCoresPerContract returns the CoresPerContract field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetCoresPerContract() *int32 {
	if o == nil {
		return nil
	}

	return o.CoresPerContract

}

// GetCoresPerContractOk returns a tuple with the CoresPerContract field value
// 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 *ResourceLimits) GetCoresPerContractOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.CoresPerContract, true
}

// SetCoresPerContract sets field value
func (o *ResourceLimits) SetCoresPerContract(v int32) {

	o.CoresPerContract = &v

}

// HasCoresPerContract returns a boolean if a field has been set.
func (o *ResourceLimits) HasCoresPerContract() bool {
	if o != nil && o.CoresPerContract != nil {
		return true
	}

	return false
}

// GetCoresProvisioned returns the CoresProvisioned field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetCoresProvisioned() *int32 {
	if o == nil {
		return nil
	}

	return o.CoresProvisioned

}

// GetCoresProvisionedOk returns a tuple with the CoresProvisioned field value
// 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 *ResourceLimits) GetCoresProvisionedOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.CoresProvisioned, true
}

// SetCoresProvisioned sets field value
func (o *ResourceLimits) SetCoresProvisioned(v int32) {

	o.CoresProvisioned = &v

}

// HasCoresProvisioned returns a boolean if a field has been set.
func (o *ResourceLimits) HasCoresProvisioned() bool {
	if o != nil && o.CoresProvisioned != nil {
		return true
	}

	return false
}

// GetRamPerServer returns the RamPerServer field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetRamPerServer() *int32 {
	if o == nil {
		return nil
	}

	return o.RamPerServer

}

// GetRamPerServerOk returns a tuple with the RamPerServer field value
// 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 *ResourceLimits) GetRamPerServerOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.RamPerServer, true
}

// SetRamPerServer sets field value
func (o *ResourceLimits) SetRamPerServer(v int32) {

	o.RamPerServer = &v

}

// HasRamPerServer returns a boolean if a field has been set.
func (o *ResourceLimits) HasRamPerServer() bool {
	if o != nil && o.RamPerServer != nil {
		return true
	}

	return false
}

// GetRamPerContract returns the RamPerContract field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetRamPerContract() *int32 {
	if o == nil {
		return nil
	}

	return o.RamPerContract

}

// GetRamPerContractOk returns a tuple with the RamPerContract field value
// 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 *ResourceLimits) GetRamPerContractOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.RamPerContract, true
}

// SetRamPerContract sets field value
func (o *ResourceLimits) SetRamPerContract(v int32) {

	o.RamPerContract = &v

}

// HasRamPerContract returns a boolean if a field has been set.
func (o *ResourceLimits) HasRamPerContract() bool {
	if o != nil && o.RamPerContract != nil {
		return true
	}

	return false
}

// GetRamProvisioned returns the RamProvisioned field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetRamProvisioned() *int32 {
	if o == nil {
		return nil
	}

	return o.RamProvisioned

}

// GetRamProvisionedOk returns a tuple with the RamProvisioned field value
// 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 *ResourceLimits) GetRamProvisionedOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.RamProvisioned, true
}

// SetRamProvisioned sets field value
func (o *ResourceLimits) SetRamProvisioned(v int32) {

	o.RamProvisioned = &v

}

// HasRamProvisioned returns a boolean if a field has been set.
func (o *ResourceLimits) HasRamProvisioned() bool {
	if o != nil && o.RamProvisioned != nil {
		return true
	}

	return false
}

// GetHddLimitPerVolume returns the HddLimitPerVolume field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetHddLimitPerVolume() *int64 {
	if o == nil {
		return nil
	}

	return o.HddLimitPerVolume

}

// GetHddLimitPerVolumeOk returns a tuple with the HddLimitPerVolume field value
// 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 *ResourceLimits) GetHddLimitPerVolumeOk() (*int64, bool) {
	if o == nil {
		return nil, false
	}

	return o.HddLimitPerVolume, true
}

// SetHddLimitPerVolume sets field value
func (o *ResourceLimits) SetHddLimitPerVolume(v int64) {

	o.HddLimitPerVolume = &v

}

// HasHddLimitPerVolume returns a boolean if a field has been set.
func (o *ResourceLimits) HasHddLimitPerVolume() bool {
	if o != nil && o.HddLimitPerVolume != nil {
		return true
	}

	return false
}

// GetHddLimitPerContract returns the HddLimitPerContract field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetHddLimitPerContract() *int64 {
	if o == nil {
		return nil
	}

	return o.HddLimitPerContract

}

// GetHddLimitPerContractOk returns a tuple with the HddLimitPerContract field value
// 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 *ResourceLimits) GetHddLimitPerContractOk() (*int64, bool) {
	if o == nil {
		return nil, false
	}

	return o.HddLimitPerContract, true
}

// SetHddLimitPerContract sets field value
func (o *ResourceLimits) SetHddLimitPerContract(v int64) {

	o.HddLimitPerContract = &v

}

// HasHddLimitPerContract returns a boolean if a field has been set.
func (o *ResourceLimits) HasHddLimitPerContract() bool {
	if o != nil && o.HddLimitPerContract != nil {
		return true
	}

	return false
}

// GetHddVolumeProvisioned returns the HddVolumeProvisioned field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetHddVolumeProvisioned() *int64 {
	if o == nil {
		return nil
	}

	return o.HddVolumeProvisioned

}

// GetHddVolumeProvisionedOk returns a tuple with the HddVolumeProvisioned field value
// 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 *ResourceLimits) GetHddVolumeProvisionedOk() (*int64, bool) {
	if o == nil {
		return nil, false
	}

	return o.HddVolumeProvisioned, true
}

// SetHddVolumeProvisioned sets field value
func (o *ResourceLimits) SetHddVolumeProvisioned(v int64) {

	o.HddVolumeProvisioned = &v

}

// HasHddVolumeProvisioned returns a boolean if a field has been set.
func (o *ResourceLimits) HasHddVolumeProvisioned() bool {
	if o != nil && o.HddVolumeProvisioned != nil {
		return true
	}

	return false
}

// GetSsdLimitPerVolume returns the SsdLimitPerVolume field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetSsdLimitPerVolume() *int64 {
	if o == nil {
		return nil
	}

	return o.SsdLimitPerVolume

}

// GetSsdLimitPerVolumeOk returns a tuple with the SsdLimitPerVolume field value
// 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 *ResourceLimits) GetSsdLimitPerVolumeOk() (*int64, bool) {
	if o == nil {
		return nil, false
	}

	return o.SsdLimitPerVolume, true
}

// SetSsdLimitPerVolume sets field value
func (o *ResourceLimits) SetSsdLimitPerVolume(v int64) {

	o.SsdLimitPerVolume = &v

}

// HasSsdLimitPerVolume returns a boolean if a field has been set.
func (o *ResourceLimits) HasSsdLimitPerVolume() bool {
	if o != nil && o.SsdLimitPerVolume != nil {
		return true
	}

	return false
}

// GetSsdLimitPerContract returns the SsdLimitPerContract field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetSsdLimitPerContract() *int64 {
	if o == nil {
		return nil
	}

	return o.SsdLimitPerContract

}

// GetSsdLimitPerContractOk returns a tuple with the SsdLimitPerContract field value
// 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 *ResourceLimits) GetSsdLimitPerContractOk() (*int64, bool) {
	if o == nil {
		return nil, false
	}

	return o.SsdLimitPerContract, true
}

// SetSsdLimitPerContract sets field value
func (o *ResourceLimits) SetSsdLimitPerContract(v int64) {

	o.SsdLimitPerContract = &v

}

// HasSsdLimitPerContract returns a boolean if a field has been set.
func (o *ResourceLimits) HasSsdLimitPerContract() bool {
	if o != nil && o.SsdLimitPerContract != nil {
		return true
	}

	return false
}

// GetSsdVolumeProvisioned returns the SsdVolumeProvisioned field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetSsdVolumeProvisioned() *int64 {
	if o == nil {
		return nil
	}

	return o.SsdVolumeProvisioned

}

// GetSsdVolumeProvisionedOk returns a tuple with the SsdVolumeProvisioned field value
// 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 *ResourceLimits) GetSsdVolumeProvisionedOk() (*int64, bool) {
	if o == nil {
		return nil, false
	}

	return o.SsdVolumeProvisioned, true
}

// SetSsdVolumeProvisioned sets field value
func (o *ResourceLimits) SetSsdVolumeProvisioned(v int64) {

	o.SsdVolumeProvisioned = &v

}

// HasSsdVolumeProvisioned returns a boolean if a field has been set.
func (o *ResourceLimits) HasSsdVolumeProvisioned() bool {
	if o != nil && o.SsdVolumeProvisioned != nil {
		return true
	}

	return false
}

// GetDasVolumeProvisioned returns the DasVolumeProvisioned field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetDasVolumeProvisioned() *int64 {
	if o == nil {
		return nil
	}

	return o.DasVolumeProvisioned

}

// GetDasVolumeProvisionedOk returns a tuple with the DasVolumeProvisioned field value
// 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 *ResourceLimits) GetDasVolumeProvisionedOk() (*int64, bool) {
	if o == nil {
		return nil, false
	}

	return o.DasVolumeProvisioned, true
}

// SetDasVolumeProvisioned sets field value
func (o *ResourceLimits) SetDasVolumeProvisioned(v int64) {

	o.DasVolumeProvisioned = &v

}

// HasDasVolumeProvisioned returns a boolean if a field has been set.
func (o *ResourceLimits) HasDasVolumeProvisioned() bool {
	if o != nil && o.DasVolumeProvisioned != nil {
		return true
	}

	return false
}

// GetReservableIps returns the ReservableIps field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetReservableIps() *int32 {
	if o == nil {
		return nil
	}

	return o.ReservableIps

}

// GetReservableIpsOk returns a tuple with the ReservableIps field value
// 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 *ResourceLimits) GetReservableIpsOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.ReservableIps, true
}

// SetReservableIps sets field value
func (o *ResourceLimits) SetReservableIps(v int32) {

	o.ReservableIps = &v

}

// HasReservableIps returns a boolean if a field has been set.
func (o *ResourceLimits) HasReservableIps() bool {
	if o != nil && o.ReservableIps != nil {
		return true
	}

	return false
}

// GetReservedIpsOnContract returns the ReservedIpsOnContract field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetReservedIpsOnContract() *int32 {
	if o == nil {
		return nil
	}

	return o.ReservedIpsOnContract

}

// GetReservedIpsOnContractOk returns a tuple with the ReservedIpsOnContract field value
// 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 *ResourceLimits) GetReservedIpsOnContractOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.ReservedIpsOnContract, true
}

// SetReservedIpsOnContract sets field value
func (o *ResourceLimits) SetReservedIpsOnContract(v int32) {

	o.ReservedIpsOnContract = &v

}

// HasReservedIpsOnContract returns a boolean if a field has been set.
func (o *ResourceLimits) HasReservedIpsOnContract() bool {
	if o != nil && o.ReservedIpsOnContract != nil {
		return true
	}

	return false
}

// GetReservedIpsInUse returns the ReservedIpsInUse field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetReservedIpsInUse() *int32 {
	if o == nil {
		return nil
	}

	return o.ReservedIpsInUse

}

// GetReservedIpsInUseOk returns a tuple with the ReservedIpsInUse field value
// 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 *ResourceLimits) GetReservedIpsInUseOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.ReservedIpsInUse, true
}

// SetReservedIpsInUse sets field value
func (o *ResourceLimits) SetReservedIpsInUse(v int32) {

	o.ReservedIpsInUse = &v

}

// HasReservedIpsInUse returns a boolean if a field has been set.
func (o *ResourceLimits) HasReservedIpsInUse() bool {
	if o != nil && o.ReservedIpsInUse != nil {
		return true
	}

	return false
}

// GetK8sClusterLimitTotal returns the K8sClusterLimitTotal field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetK8sClusterLimitTotal() *int32 {
	if o == nil {
		return nil
	}

	return o.K8sClusterLimitTotal

}

// GetK8sClusterLimitTotalOk returns a tuple with the K8sClusterLimitTotal field value
// 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 *ResourceLimits) GetK8sClusterLimitTotalOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.K8sClusterLimitTotal, true
}

// SetK8sClusterLimitTotal sets field value
func (o *ResourceLimits) SetK8sClusterLimitTotal(v int32) {

	o.K8sClusterLimitTotal = &v

}

// HasK8sClusterLimitTotal returns a boolean if a field has been set.
func (o *ResourceLimits) HasK8sClusterLimitTotal() bool {
	if o != nil && o.K8sClusterLimitTotal != nil {
		return true
	}

	return false
}

// GetK8sClustersProvisioned returns the K8sClustersProvisioned field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetK8sClustersProvisioned() *int32 {
	if o == nil {
		return nil
	}

	return o.K8sClustersProvisioned

}

// GetK8sClustersProvisionedOk returns a tuple with the K8sClustersProvisioned field value
// 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 *ResourceLimits) GetK8sClustersProvisionedOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.K8sClustersProvisioned, true
}

// SetK8sClustersProvisioned sets field value
func (o *ResourceLimits) SetK8sClustersProvisioned(v int32) {

	o.K8sClustersProvisioned = &v

}

// HasK8sClustersProvisioned returns a boolean if a field has been set.
func (o *ResourceLimits) HasK8sClustersProvisioned() bool {
	if o != nil && o.K8sClustersProvisioned != nil {
		return true
	}

	return false
}

// GetNlbLimitTotal returns the NlbLimitTotal field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetNlbLimitTotal() *int32 {
	if o == nil {
		return nil
	}

	return o.NlbLimitTotal

}

// GetNlbLimitTotalOk returns a tuple with the NlbLimitTotal field value
// 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 *ResourceLimits) GetNlbLimitTotalOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.NlbLimitTotal, true
}

// SetNlbLimitTotal sets field value
func (o *ResourceLimits) SetNlbLimitTotal(v int32) {

	o.NlbLimitTotal = &v

}

// HasNlbLimitTotal returns a boolean if a field has been set.
func (o *ResourceLimits) HasNlbLimitTotal() bool {
	if o != nil && o.NlbLimitTotal != nil {
		return true
	}

	return false
}

// GetNlbProvisioned returns the NlbProvisioned field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetNlbProvisioned() *int32 {
	if o == nil {
		return nil
	}

	return o.NlbProvisioned

}

// GetNlbProvisionedOk returns a tuple with the NlbProvisioned field value
// 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 *ResourceLimits) GetNlbProvisionedOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.NlbProvisioned, true
}

// SetNlbProvisioned sets field value
func (o *ResourceLimits) SetNlbProvisioned(v int32) {

	o.NlbProvisioned = &v

}

// HasNlbProvisioned returns a boolean if a field has been set.
func (o *ResourceLimits) HasNlbProvisioned() bool {
	if o != nil && o.NlbProvisioned != nil {
		return true
	}

	return false
}

// GetNatGatewayLimitTotal returns the NatGatewayLimitTotal field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetNatGatewayLimitTotal() *int32 {
	if o == nil {
		return nil
	}

	return o.NatGatewayLimitTotal

}

// GetNatGatewayLimitTotalOk returns a tuple with the NatGatewayLimitTotal field value
// 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 *ResourceLimits) GetNatGatewayLimitTotalOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.NatGatewayLimitTotal, true
}

// SetNatGatewayLimitTotal sets field value
func (o *ResourceLimits) SetNatGatewayLimitTotal(v int32) {

	o.NatGatewayLimitTotal = &v

}

// HasNatGatewayLimitTotal returns a boolean if a field has been set.
func (o *ResourceLimits) HasNatGatewayLimitTotal() bool {
	if o != nil && o.NatGatewayLimitTotal != nil {
		return true
	}

	return false
}

// GetNatGatewayProvisioned returns the NatGatewayProvisioned field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetNatGatewayProvisioned() *int32 {
	if o == nil {
		return nil
	}

	return o.NatGatewayProvisioned

}

// GetNatGatewayProvisionedOk returns a tuple with the NatGatewayProvisioned field value
// 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 *ResourceLimits) GetNatGatewayProvisionedOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.NatGatewayProvisioned, true
}

// SetNatGatewayProvisioned sets field value
func (o *ResourceLimits) SetNatGatewayProvisioned(v int32) {

	o.NatGatewayProvisioned = &v

}

// HasNatGatewayProvisioned returns a boolean if a field has been set.
func (o *ResourceLimits) HasNatGatewayProvisioned() bool {
	if o != nil && o.NatGatewayProvisioned != nil {
		return true
	}

	return false
}

// GetSecurityGroupsPerVdc returns the SecurityGroupsPerVdc field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetSecurityGroupsPerVdc() *int32 {
	if o == nil {
		return nil
	}

	return o.SecurityGroupsPerVdc

}

// GetSecurityGroupsPerVdcOk returns a tuple with the SecurityGroupsPerVdc field value
// 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 *ResourceLimits) GetSecurityGroupsPerVdcOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.SecurityGroupsPerVdc, true
}

// SetSecurityGroupsPerVdc sets field value
func (o *ResourceLimits) SetSecurityGroupsPerVdc(v int32) {

	o.SecurityGroupsPerVdc = &v

}

// HasSecurityGroupsPerVdc returns a boolean if a field has been set.
func (o *ResourceLimits) HasSecurityGroupsPerVdc() bool {
	if o != nil && o.SecurityGroupsPerVdc != nil {
		return true
	}

	return false
}

// GetSecurityGroupsPerResource returns the SecurityGroupsPerResource field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetSecurityGroupsPerResource() *int32 {
	if o == nil {
		return nil
	}

	return o.SecurityGroupsPerResource

}

// GetSecurityGroupsPerResourceOk returns a tuple with the SecurityGroupsPerResource field value
// 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 *ResourceLimits) GetSecurityGroupsPerResourceOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.SecurityGroupsPerResource, true
}

// SetSecurityGroupsPerResource sets field value
func (o *ResourceLimits) SetSecurityGroupsPerResource(v int32) {

	o.SecurityGroupsPerResource = &v

}

// HasSecurityGroupsPerResource returns a boolean if a field has been set.
func (o *ResourceLimits) HasSecurityGroupsPerResource() bool {
	if o != nil && o.SecurityGroupsPerResource != nil {
		return true
	}

	return false
}

// GetRulesPerSecurityGroup returns the RulesPerSecurityGroup field value
// If the value is explicit nil, nil is returned
func (o *ResourceLimits) GetRulesPerSecurityGroup() *int32 {
	if o == nil {
		return nil
	}

	return o.RulesPerSecurityGroup

}

// GetRulesPerSecurityGroupOk returns a tuple with the RulesPerSecurityGroup field value
// 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 *ResourceLimits) GetRulesPerSecurityGroupOk() (*int32, bool) {
	if o == nil {
		return nil, false
	}

	return o.RulesPerSecurityGroup, true
}

// SetRulesPerSecurityGroup sets field value
func (o *ResourceLimits) SetRulesPerSecurityGroup(v int32) {

	o.RulesPerSecurityGroup = &v

}

// HasRulesPerSecurityGroup returns a boolean if a field has been set.
func (o *ResourceLimits) HasRulesPerSecurityGroup() bool {
	if o != nil && o.RulesPerSecurityGroup != nil {
		return true
	}

	return false
}

func (o ResourceLimits) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if o.CoresPerServer != nil {
		toSerialize["coresPerServer"] = o.CoresPerServer
	}

	if o.CoresPerContract != nil {
		toSerialize["coresPerContract"] = o.CoresPerContract
	}

	if o.CoresProvisioned != nil {
		toSerialize["coresProvisioned"] = o.CoresProvisioned
	}

	if o.RamPerServer != nil {
		toSerialize["ramPerServer"] = o.RamPerServer
	}

	if o.RamPerContract != nil {
		toSerialize["ramPerContract"] = o.RamPerContract
	}

	if o.RamProvisioned != nil {
		toSerialize["ramProvisioned"] = o.RamProvisioned
	}

	if o.HddLimitPerVolume != nil {
		toSerialize["hddLimitPerVolume"] = o.HddLimitPerVolume
	}

	if o.HddLimitPerContract != nil {
		toSerialize["hddLimitPerContract"] = o.HddLimitPerContract
	}

	if o.HddVolumeProvisioned != nil {
		toSerialize["hddVolumeProvisioned"] = o.HddVolumeProvisioned
	}

	if o.SsdLimitPerVolume != nil {
		toSerialize["ssdLimitPerVolume"] = o.SsdLimitPerVolume
	}

	if o.SsdLimitPerContract != nil {
		toSerialize["ssdLimitPerContract"] = o.SsdLimitPerContract
	}

	if o.SsdVolumeProvisioned != nil {
		toSerialize["ssdVolumeProvisioned"] = o.SsdVolumeProvisioned
	}

	if o.DasVolumeProvisioned != nil {
		toSerialize["dasVolumeProvisioned"] = o.DasVolumeProvisioned
	}

	if o.ReservableIps != nil {
		toSerialize["reservableIps"] = o.ReservableIps
	}

	if o.ReservedIpsOnContract != nil {
		toSerialize["reservedIpsOnContract"] = o.ReservedIpsOnContract
	}

	if o.ReservedIpsInUse != nil {
		toSerialize["reservedIpsInUse"] = o.ReservedIpsInUse
	}

	if o.K8sClusterLimitTotal != nil {
		toSerialize["k8sClusterLimitTotal"] = o.K8sClusterLimitTotal
	}

	if o.K8sClustersProvisioned != nil {
		toSerialize["k8sClustersProvisioned"] = o.K8sClustersProvisioned
	}

	if o.NlbLimitTotal != nil {
		toSerialize["nlbLimitTotal"] = o.NlbLimitTotal
	}

	if o.NlbProvisioned != nil {
		toSerialize["nlbProvisioned"] = o.NlbProvisioned
	}

	if o.NatGatewayLimitTotal != nil {
		toSerialize["natGatewayLimitTotal"] = o.NatGatewayLimitTotal
	}

	if o.NatGatewayProvisioned != nil {
		toSerialize["natGatewayProvisioned"] = o.NatGatewayProvisioned
	}

	if o.SecurityGroupsPerVdc != nil {
		toSerialize["securityGroupsPerVdc"] = o.SecurityGroupsPerVdc
	}

	if o.SecurityGroupsPerResource != nil {
		toSerialize["securityGroupsPerResource"] = o.SecurityGroupsPerResource
	}

	if o.RulesPerSecurityGroup != nil {
		toSerialize["rulesPerSecurityGroup"] = o.RulesPerSecurityGroup
	}

	return json.Marshal(toSerialize)
}

type NullableResourceLimits struct {
	value *ResourceLimits
	isSet bool
}

func (v NullableResourceLimits) Get() *ResourceLimits {
	return v.value
}

func (v *NullableResourceLimits) Set(val *ResourceLimits) {
	v.value = val
	v.isSet = true
}

func (v NullableResourceLimits) IsSet() bool {
	return v.isSet
}

func (v *NullableResourceLimits) Unset() {
	v.value = nil
	v.isSet = false
}

func NewNullableResourceLimits(val *ResourceLimits) *NullableResourceLimits {
	return &NullableResourceLimits{value: val, isSet: true}
}

func (v NullableResourceLimits) MarshalJSON() ([]byte, error) {
	return json.Marshal(v.value)
}

func (v *NullableResourceLimits) UnmarshalJSON(src []byte) error {
	v.isSet = true
	return json.Unmarshal(src, &v.value)
}