-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_fast_application_settings_request_model.go
434 lines (372 loc) · 18.2 KB
/
model_fast_application_settings_request_model.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
/*
Citrix Virtual Apps and Desktops Rest API for Developer Portal
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: devportal-onprem-ga
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package citrixorchestration
import (
"encoding/json"
)
// checks if the FastApplicationSettingsRequestModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &FastApplicationSettingsRequestModel{}
// FastApplicationSettingsRequestModel Request object for session prelaunch and lingering settings.
type FastApplicationSettingsRequestModel struct {
// Indicates if the pre-launch or lingering settings are enabled.
Enabled NullableBool `json:"Enabled,omitempty"`
// Specifies the average load threshold across the delivery group before pre-launched or lingering sessions will be terminated. When the threshold hits, sessions which have been pre-launched or which have lingered the longest will be terminated to reduce load.
MaxAverageLoadThreshold NullableInt32 `json:"MaxAverageLoadThreshold,omitempty"`
// Specifies the maximum load threshold per machine in the delivery group before pre-launched or lingering sessions will be terminated. When the threshold hits, sessions which have been pre-launched or which have lingered the longest on each loaded machine will be terminated to reduce load. Was: public int? MaxPerDesktopLoadThreshold { get; set; }
MaxLoadPerMachineThreshold NullableInt32 `json:"MaxLoadPerMachineThreshold,omitempty"`
// Specifies the time by which a pre-launched or lingering session will be disconnected.
MaxTimeBeforeDisconnectMinutes NullableInt32 `json:"MaxTimeBeforeDisconnectMinutes,omitempty"`
// Specifies the time by which a pre-launched or lingering session will be terminated.
MaxTimeBeforeTerminateMinutes NullableInt32 `json:"MaxTimeBeforeTerminateMinutes,omitempty"`
// Specifies whether the IncludedUsers filter is enabled or disabled. When the user filter is enabled, pre-launch or lingering are enabled only to users who appear in the filter (either explicitly or by virtue of group membership). Was: UserFilterEnabled
IncludedUserFilterEnabled NullableBool `json:"IncludedUserFilterEnabled,omitempty"`
// Specifies the users and user groups to whom the pre-launch or lingering settings apply. Was: users
IncludedUsers []string `json:"IncludedUsers,omitempty"`
}
// NewFastApplicationSettingsRequestModel instantiates a new FastApplicationSettingsRequestModel 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 NewFastApplicationSettingsRequestModel() *FastApplicationSettingsRequestModel {
this := FastApplicationSettingsRequestModel{}
var enabled bool = true
this.Enabled = *NewNullableBool(&enabled)
var maxAverageLoadThreshold int32 = 0
this.MaxAverageLoadThreshold = *NewNullableInt32(&maxAverageLoadThreshold)
var maxLoadPerMachineThreshold int32 = 0
this.MaxLoadPerMachineThreshold = *NewNullableInt32(&maxLoadPerMachineThreshold)
var maxTimeBeforeDisconnectMinutes int32 = 0
this.MaxTimeBeforeDisconnectMinutes = *NewNullableInt32(&maxTimeBeforeDisconnectMinutes)
var maxTimeBeforeTerminateMinutes int32 = 0
this.MaxTimeBeforeTerminateMinutes = *NewNullableInt32(&maxTimeBeforeTerminateMinutes)
var includedUserFilterEnabled bool = false
this.IncludedUserFilterEnabled = *NewNullableBool(&includedUserFilterEnabled)
return &this
}
// NewFastApplicationSettingsRequestModelWithDefaults instantiates a new FastApplicationSettingsRequestModel 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 NewFastApplicationSettingsRequestModelWithDefaults() *FastApplicationSettingsRequestModel {
this := FastApplicationSettingsRequestModel{}
var enabled bool = true
this.Enabled = *NewNullableBool(&enabled)
var maxAverageLoadThreshold int32 = 0
this.MaxAverageLoadThreshold = *NewNullableInt32(&maxAverageLoadThreshold)
var maxLoadPerMachineThreshold int32 = 0
this.MaxLoadPerMachineThreshold = *NewNullableInt32(&maxLoadPerMachineThreshold)
var maxTimeBeforeDisconnectMinutes int32 = 0
this.MaxTimeBeforeDisconnectMinutes = *NewNullableInt32(&maxTimeBeforeDisconnectMinutes)
var maxTimeBeforeTerminateMinutes int32 = 0
this.MaxTimeBeforeTerminateMinutes = *NewNullableInt32(&maxTimeBeforeTerminateMinutes)
var includedUserFilterEnabled bool = false
this.IncludedUserFilterEnabled = *NewNullableBool(&includedUserFilterEnabled)
return &this
}
// GetEnabled returns the Enabled field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FastApplicationSettingsRequestModel) GetEnabled() bool {
if o == nil || IsNil(o.Enabled.Get()) {
var ret bool
return ret
}
return *o.Enabled.Get()
}
// GetEnabledOk returns a tuple with the Enabled 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 *FastApplicationSettingsRequestModel) GetEnabledOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.Enabled.Get(), o.Enabled.IsSet()
}
// HasEnabled returns a boolean if a field has been set.
func (o *FastApplicationSettingsRequestModel) HasEnabled() bool {
if o != nil && o.Enabled.IsSet() {
return true
}
return false
}
// SetEnabled gets a reference to the given NullableBool and assigns it to the Enabled field.
func (o *FastApplicationSettingsRequestModel) SetEnabled(v bool) {
o.Enabled.Set(&v)
}
// SetEnabledNil sets the value for Enabled to be an explicit nil
func (o *FastApplicationSettingsRequestModel) SetEnabledNil() {
o.Enabled.Set(nil)
}
// UnsetEnabled ensures that no value is present for Enabled, not even an explicit nil
func (o *FastApplicationSettingsRequestModel) UnsetEnabled() {
o.Enabled.Unset()
}
// GetMaxAverageLoadThreshold returns the MaxAverageLoadThreshold field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FastApplicationSettingsRequestModel) GetMaxAverageLoadThreshold() int32 {
if o == nil || IsNil(o.MaxAverageLoadThreshold.Get()) {
var ret int32
return ret
}
return *o.MaxAverageLoadThreshold.Get()
}
// GetMaxAverageLoadThresholdOk returns a tuple with the MaxAverageLoadThreshold 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 *FastApplicationSettingsRequestModel) GetMaxAverageLoadThresholdOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.MaxAverageLoadThreshold.Get(), o.MaxAverageLoadThreshold.IsSet()
}
// HasMaxAverageLoadThreshold returns a boolean if a field has been set.
func (o *FastApplicationSettingsRequestModel) HasMaxAverageLoadThreshold() bool {
if o != nil && o.MaxAverageLoadThreshold.IsSet() {
return true
}
return false
}
// SetMaxAverageLoadThreshold gets a reference to the given NullableInt32 and assigns it to the MaxAverageLoadThreshold field.
func (o *FastApplicationSettingsRequestModel) SetMaxAverageLoadThreshold(v int32) {
o.MaxAverageLoadThreshold.Set(&v)
}
// SetMaxAverageLoadThresholdNil sets the value for MaxAverageLoadThreshold to be an explicit nil
func (o *FastApplicationSettingsRequestModel) SetMaxAverageLoadThresholdNil() {
o.MaxAverageLoadThreshold.Set(nil)
}
// UnsetMaxAverageLoadThreshold ensures that no value is present for MaxAverageLoadThreshold, not even an explicit nil
func (o *FastApplicationSettingsRequestModel) UnsetMaxAverageLoadThreshold() {
o.MaxAverageLoadThreshold.Unset()
}
// GetMaxLoadPerMachineThreshold returns the MaxLoadPerMachineThreshold field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FastApplicationSettingsRequestModel) GetMaxLoadPerMachineThreshold() int32 {
if o == nil || IsNil(o.MaxLoadPerMachineThreshold.Get()) {
var ret int32
return ret
}
return *o.MaxLoadPerMachineThreshold.Get()
}
// GetMaxLoadPerMachineThresholdOk returns a tuple with the MaxLoadPerMachineThreshold 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 *FastApplicationSettingsRequestModel) GetMaxLoadPerMachineThresholdOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.MaxLoadPerMachineThreshold.Get(), o.MaxLoadPerMachineThreshold.IsSet()
}
// HasMaxLoadPerMachineThreshold returns a boolean if a field has been set.
func (o *FastApplicationSettingsRequestModel) HasMaxLoadPerMachineThreshold() bool {
if o != nil && o.MaxLoadPerMachineThreshold.IsSet() {
return true
}
return false
}
// SetMaxLoadPerMachineThreshold gets a reference to the given NullableInt32 and assigns it to the MaxLoadPerMachineThreshold field.
func (o *FastApplicationSettingsRequestModel) SetMaxLoadPerMachineThreshold(v int32) {
o.MaxLoadPerMachineThreshold.Set(&v)
}
// SetMaxLoadPerMachineThresholdNil sets the value for MaxLoadPerMachineThreshold to be an explicit nil
func (o *FastApplicationSettingsRequestModel) SetMaxLoadPerMachineThresholdNil() {
o.MaxLoadPerMachineThreshold.Set(nil)
}
// UnsetMaxLoadPerMachineThreshold ensures that no value is present for MaxLoadPerMachineThreshold, not even an explicit nil
func (o *FastApplicationSettingsRequestModel) UnsetMaxLoadPerMachineThreshold() {
o.MaxLoadPerMachineThreshold.Unset()
}
// GetMaxTimeBeforeDisconnectMinutes returns the MaxTimeBeforeDisconnectMinutes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FastApplicationSettingsRequestModel) GetMaxTimeBeforeDisconnectMinutes() int32 {
if o == nil || IsNil(o.MaxTimeBeforeDisconnectMinutes.Get()) {
var ret int32
return ret
}
return *o.MaxTimeBeforeDisconnectMinutes.Get()
}
// GetMaxTimeBeforeDisconnectMinutesOk returns a tuple with the MaxTimeBeforeDisconnectMinutes 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 *FastApplicationSettingsRequestModel) GetMaxTimeBeforeDisconnectMinutesOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.MaxTimeBeforeDisconnectMinutes.Get(), o.MaxTimeBeforeDisconnectMinutes.IsSet()
}
// HasMaxTimeBeforeDisconnectMinutes returns a boolean if a field has been set.
func (o *FastApplicationSettingsRequestModel) HasMaxTimeBeforeDisconnectMinutes() bool {
if o != nil && o.MaxTimeBeforeDisconnectMinutes.IsSet() {
return true
}
return false
}
// SetMaxTimeBeforeDisconnectMinutes gets a reference to the given NullableInt32 and assigns it to the MaxTimeBeforeDisconnectMinutes field.
func (o *FastApplicationSettingsRequestModel) SetMaxTimeBeforeDisconnectMinutes(v int32) {
o.MaxTimeBeforeDisconnectMinutes.Set(&v)
}
// SetMaxTimeBeforeDisconnectMinutesNil sets the value for MaxTimeBeforeDisconnectMinutes to be an explicit nil
func (o *FastApplicationSettingsRequestModel) SetMaxTimeBeforeDisconnectMinutesNil() {
o.MaxTimeBeforeDisconnectMinutes.Set(nil)
}
// UnsetMaxTimeBeforeDisconnectMinutes ensures that no value is present for MaxTimeBeforeDisconnectMinutes, not even an explicit nil
func (o *FastApplicationSettingsRequestModel) UnsetMaxTimeBeforeDisconnectMinutes() {
o.MaxTimeBeforeDisconnectMinutes.Unset()
}
// GetMaxTimeBeforeTerminateMinutes returns the MaxTimeBeforeTerminateMinutes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FastApplicationSettingsRequestModel) GetMaxTimeBeforeTerminateMinutes() int32 {
if o == nil || IsNil(o.MaxTimeBeforeTerminateMinutes.Get()) {
var ret int32
return ret
}
return *o.MaxTimeBeforeTerminateMinutes.Get()
}
// GetMaxTimeBeforeTerminateMinutesOk returns a tuple with the MaxTimeBeforeTerminateMinutes 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 *FastApplicationSettingsRequestModel) GetMaxTimeBeforeTerminateMinutesOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.MaxTimeBeforeTerminateMinutes.Get(), o.MaxTimeBeforeTerminateMinutes.IsSet()
}
// HasMaxTimeBeforeTerminateMinutes returns a boolean if a field has been set.
func (o *FastApplicationSettingsRequestModel) HasMaxTimeBeforeTerminateMinutes() bool {
if o != nil && o.MaxTimeBeforeTerminateMinutes.IsSet() {
return true
}
return false
}
// SetMaxTimeBeforeTerminateMinutes gets a reference to the given NullableInt32 and assigns it to the MaxTimeBeforeTerminateMinutes field.
func (o *FastApplicationSettingsRequestModel) SetMaxTimeBeforeTerminateMinutes(v int32) {
o.MaxTimeBeforeTerminateMinutes.Set(&v)
}
// SetMaxTimeBeforeTerminateMinutesNil sets the value for MaxTimeBeforeTerminateMinutes to be an explicit nil
func (o *FastApplicationSettingsRequestModel) SetMaxTimeBeforeTerminateMinutesNil() {
o.MaxTimeBeforeTerminateMinutes.Set(nil)
}
// UnsetMaxTimeBeforeTerminateMinutes ensures that no value is present for MaxTimeBeforeTerminateMinutes, not even an explicit nil
func (o *FastApplicationSettingsRequestModel) UnsetMaxTimeBeforeTerminateMinutes() {
o.MaxTimeBeforeTerminateMinutes.Unset()
}
// GetIncludedUserFilterEnabled returns the IncludedUserFilterEnabled field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FastApplicationSettingsRequestModel) GetIncludedUserFilterEnabled() bool {
if o == nil || IsNil(o.IncludedUserFilterEnabled.Get()) {
var ret bool
return ret
}
return *o.IncludedUserFilterEnabled.Get()
}
// GetIncludedUserFilterEnabledOk returns a tuple with the IncludedUserFilterEnabled 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 *FastApplicationSettingsRequestModel) GetIncludedUserFilterEnabledOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.IncludedUserFilterEnabled.Get(), o.IncludedUserFilterEnabled.IsSet()
}
// HasIncludedUserFilterEnabled returns a boolean if a field has been set.
func (o *FastApplicationSettingsRequestModel) HasIncludedUserFilterEnabled() bool {
if o != nil && o.IncludedUserFilterEnabled.IsSet() {
return true
}
return false
}
// SetIncludedUserFilterEnabled gets a reference to the given NullableBool and assigns it to the IncludedUserFilterEnabled field.
func (o *FastApplicationSettingsRequestModel) SetIncludedUserFilterEnabled(v bool) {
o.IncludedUserFilterEnabled.Set(&v)
}
// SetIncludedUserFilterEnabledNil sets the value for IncludedUserFilterEnabled to be an explicit nil
func (o *FastApplicationSettingsRequestModel) SetIncludedUserFilterEnabledNil() {
o.IncludedUserFilterEnabled.Set(nil)
}
// UnsetIncludedUserFilterEnabled ensures that no value is present for IncludedUserFilterEnabled, not even an explicit nil
func (o *FastApplicationSettingsRequestModel) UnsetIncludedUserFilterEnabled() {
o.IncludedUserFilterEnabled.Unset()
}
// GetIncludedUsers returns the IncludedUsers field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *FastApplicationSettingsRequestModel) GetIncludedUsers() []string {
if o == nil {
var ret []string
return ret
}
return o.IncludedUsers
}
// GetIncludedUsersOk returns a tuple with the IncludedUsers 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 *FastApplicationSettingsRequestModel) GetIncludedUsersOk() ([]string, bool) {
if o == nil || IsNil(o.IncludedUsers) {
return nil, false
}
return o.IncludedUsers, true
}
// HasIncludedUsers returns a boolean if a field has been set.
func (o *FastApplicationSettingsRequestModel) HasIncludedUsers() bool {
if o != nil && IsNil(o.IncludedUsers) {
return true
}
return false
}
// SetIncludedUsers gets a reference to the given []string and assigns it to the IncludedUsers field.
func (o *FastApplicationSettingsRequestModel) SetIncludedUsers(v []string) {
o.IncludedUsers = v
}
func (o FastApplicationSettingsRequestModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o FastApplicationSettingsRequestModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.Enabled.IsSet() {
toSerialize["Enabled"] = o.Enabled.Get()
}
if o.MaxAverageLoadThreshold.IsSet() {
toSerialize["MaxAverageLoadThreshold"] = o.MaxAverageLoadThreshold.Get()
}
if o.MaxLoadPerMachineThreshold.IsSet() {
toSerialize["MaxLoadPerMachineThreshold"] = o.MaxLoadPerMachineThreshold.Get()
}
if o.MaxTimeBeforeDisconnectMinutes.IsSet() {
toSerialize["MaxTimeBeforeDisconnectMinutes"] = o.MaxTimeBeforeDisconnectMinutes.Get()
}
if o.MaxTimeBeforeTerminateMinutes.IsSet() {
toSerialize["MaxTimeBeforeTerminateMinutes"] = o.MaxTimeBeforeTerminateMinutes.Get()
}
if o.IncludedUserFilterEnabled.IsSet() {
toSerialize["IncludedUserFilterEnabled"] = o.IncludedUserFilterEnabled.Get()
}
if o.IncludedUsers != nil {
toSerialize["IncludedUsers"] = o.IncludedUsers
}
return toSerialize, nil
}
type NullableFastApplicationSettingsRequestModel struct {
value *FastApplicationSettingsRequestModel
isSet bool
}
func (v NullableFastApplicationSettingsRequestModel) Get() *FastApplicationSettingsRequestModel {
return v.value
}
func (v *NullableFastApplicationSettingsRequestModel) Set(val *FastApplicationSettingsRequestModel) {
v.value = val
v.isSet = true
}
func (v NullableFastApplicationSettingsRequestModel) IsSet() bool {
return v.isSet
}
func (v *NullableFastApplicationSettingsRequestModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableFastApplicationSettingsRequestModel(val *FastApplicationSettingsRequestModel) *NullableFastApplicationSettingsRequestModel {
return &NullableFastApplicationSettingsRequestModel{value: val, isSet: true}
}
func (v NullableFastApplicationSettingsRequestModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableFastApplicationSettingsRequestModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}