-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_backup_restore_restore_single_member_model.go
593 lines (506 loc) · 19.3 KB
/
model_backup_restore_restore_single_member_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
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
/*
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"
"time"
)
// checks if the BackupRestoreRestoreSingleMemberModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &BackupRestoreRestoreSingleMemberModel{}
// BackupRestoreRestoreSingleMemberModel struct for BackupRestoreRestoreSingleMemberModel
type BackupRestoreRestoreSingleMemberModel struct {
// Component Name
ComponentName NullableString `json:"ComponentName,omitempty"`
// Member Name
MemberName NullableString `json:"MemberName,omitempty"`
// Member Type (Host Connections Only)
MemberType NullableString `json:"MemberType,omitempty"`
PlaybookActionState *BackupRestorePlaybookActionState `json:"PlaybookActionState,omitempty"`
// Result
Result *bool `json:"Result,omitempty"`
// Details or Error Message
Details NullableString `json:"Details,omitempty"`
// Transaction Id
TransactionId NullableString `json:"TransactionId,omitempty"`
// Date Time stamps
DateTime *time.Time `json:"DateTime,omitempty"`
// Member Count
MemberCount *int32 `json:"MemberCount,omitempty"`
CurrentMemberIndex *int32 `json:"CurrentMemberIndex,omitempty"`
// Json string containing ACT internal Fixups data. Must be exchanged with ACT to obtain human readable fixups.
Fixups NullableString `json:"Fixups,omitempty"`
// Check Mode
CheckMode *bool `json:"CheckMode,omitempty"`
}
// NewBackupRestoreRestoreSingleMemberModel instantiates a new BackupRestoreRestoreSingleMemberModel 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 NewBackupRestoreRestoreSingleMemberModel() *BackupRestoreRestoreSingleMemberModel {
this := BackupRestoreRestoreSingleMemberModel{}
return &this
}
// NewBackupRestoreRestoreSingleMemberModelWithDefaults instantiates a new BackupRestoreRestoreSingleMemberModel 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 NewBackupRestoreRestoreSingleMemberModelWithDefaults() *BackupRestoreRestoreSingleMemberModel {
this := BackupRestoreRestoreSingleMemberModel{}
return &this
}
// GetComponentName returns the ComponentName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackupRestoreRestoreSingleMemberModel) GetComponentName() string {
if o == nil || IsNil(o.ComponentName.Get()) {
var ret string
return ret
}
return *o.ComponentName.Get()
}
// GetComponentNameOk returns a tuple with the ComponentName 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 *BackupRestoreRestoreSingleMemberModel) GetComponentNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ComponentName.Get(), o.ComponentName.IsSet()
}
// HasComponentName returns a boolean if a field has been set.
func (o *BackupRestoreRestoreSingleMemberModel) HasComponentName() bool {
if o != nil && o.ComponentName.IsSet() {
return true
}
return false
}
// SetComponentName gets a reference to the given NullableString and assigns it to the ComponentName field.
func (o *BackupRestoreRestoreSingleMemberModel) SetComponentName(v string) {
o.ComponentName.Set(&v)
}
// SetComponentNameNil sets the value for ComponentName to be an explicit nil
func (o *BackupRestoreRestoreSingleMemberModel) SetComponentNameNil() {
o.ComponentName.Set(nil)
}
// UnsetComponentName ensures that no value is present for ComponentName, not even an explicit nil
func (o *BackupRestoreRestoreSingleMemberModel) UnsetComponentName() {
o.ComponentName.Unset()
}
// GetMemberName returns the MemberName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackupRestoreRestoreSingleMemberModel) GetMemberName() string {
if o == nil || IsNil(o.MemberName.Get()) {
var ret string
return ret
}
return *o.MemberName.Get()
}
// GetMemberNameOk returns a tuple with the MemberName 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 *BackupRestoreRestoreSingleMemberModel) GetMemberNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.MemberName.Get(), o.MemberName.IsSet()
}
// HasMemberName returns a boolean if a field has been set.
func (o *BackupRestoreRestoreSingleMemberModel) HasMemberName() bool {
if o != nil && o.MemberName.IsSet() {
return true
}
return false
}
// SetMemberName gets a reference to the given NullableString and assigns it to the MemberName field.
func (o *BackupRestoreRestoreSingleMemberModel) SetMemberName(v string) {
o.MemberName.Set(&v)
}
// SetMemberNameNil sets the value for MemberName to be an explicit nil
func (o *BackupRestoreRestoreSingleMemberModel) SetMemberNameNil() {
o.MemberName.Set(nil)
}
// UnsetMemberName ensures that no value is present for MemberName, not even an explicit nil
func (o *BackupRestoreRestoreSingleMemberModel) UnsetMemberName() {
o.MemberName.Unset()
}
// GetMemberType returns the MemberType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackupRestoreRestoreSingleMemberModel) GetMemberType() string {
if o == nil || IsNil(o.MemberType.Get()) {
var ret string
return ret
}
return *o.MemberType.Get()
}
// GetMemberTypeOk returns a tuple with the MemberType 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 *BackupRestoreRestoreSingleMemberModel) GetMemberTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.MemberType.Get(), o.MemberType.IsSet()
}
// HasMemberType returns a boolean if a field has been set.
func (o *BackupRestoreRestoreSingleMemberModel) HasMemberType() bool {
if o != nil && o.MemberType.IsSet() {
return true
}
return false
}
// SetMemberType gets a reference to the given NullableString and assigns it to the MemberType field.
func (o *BackupRestoreRestoreSingleMemberModel) SetMemberType(v string) {
o.MemberType.Set(&v)
}
// SetMemberTypeNil sets the value for MemberType to be an explicit nil
func (o *BackupRestoreRestoreSingleMemberModel) SetMemberTypeNil() {
o.MemberType.Set(nil)
}
// UnsetMemberType ensures that no value is present for MemberType, not even an explicit nil
func (o *BackupRestoreRestoreSingleMemberModel) UnsetMemberType() {
o.MemberType.Unset()
}
// GetPlaybookActionState returns the PlaybookActionState field value if set, zero value otherwise.
func (o *BackupRestoreRestoreSingleMemberModel) GetPlaybookActionState() BackupRestorePlaybookActionState {
if o == nil || IsNil(o.PlaybookActionState) {
var ret BackupRestorePlaybookActionState
return ret
}
return *o.PlaybookActionState
}
// GetPlaybookActionStateOk returns a tuple with the PlaybookActionState field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BackupRestoreRestoreSingleMemberModel) GetPlaybookActionStateOk() (*BackupRestorePlaybookActionState, bool) {
if o == nil || IsNil(o.PlaybookActionState) {
return nil, false
}
return o.PlaybookActionState, true
}
// HasPlaybookActionState returns a boolean if a field has been set.
func (o *BackupRestoreRestoreSingleMemberModel) HasPlaybookActionState() bool {
if o != nil && !IsNil(o.PlaybookActionState) {
return true
}
return false
}
// SetPlaybookActionState gets a reference to the given BackupRestorePlaybookActionState and assigns it to the PlaybookActionState field.
func (o *BackupRestoreRestoreSingleMemberModel) SetPlaybookActionState(v BackupRestorePlaybookActionState) {
o.PlaybookActionState = &v
}
// GetResult returns the Result field value if set, zero value otherwise.
func (o *BackupRestoreRestoreSingleMemberModel) GetResult() bool {
if o == nil || IsNil(o.Result) {
var ret bool
return ret
}
return *o.Result
}
// GetResultOk returns a tuple with the Result field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BackupRestoreRestoreSingleMemberModel) GetResultOk() (*bool, bool) {
if o == nil || IsNil(o.Result) {
return nil, false
}
return o.Result, true
}
// HasResult returns a boolean if a field has been set.
func (o *BackupRestoreRestoreSingleMemberModel) HasResult() bool {
if o != nil && !IsNil(o.Result) {
return true
}
return false
}
// SetResult gets a reference to the given bool and assigns it to the Result field.
func (o *BackupRestoreRestoreSingleMemberModel) SetResult(v bool) {
o.Result = &v
}
// GetDetails returns the Details field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackupRestoreRestoreSingleMemberModel) GetDetails() string {
if o == nil || IsNil(o.Details.Get()) {
var ret string
return ret
}
return *o.Details.Get()
}
// GetDetailsOk returns a tuple with the Details 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 *BackupRestoreRestoreSingleMemberModel) GetDetailsOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Details.Get(), o.Details.IsSet()
}
// HasDetails returns a boolean if a field has been set.
func (o *BackupRestoreRestoreSingleMemberModel) HasDetails() bool {
if o != nil && o.Details.IsSet() {
return true
}
return false
}
// SetDetails gets a reference to the given NullableString and assigns it to the Details field.
func (o *BackupRestoreRestoreSingleMemberModel) SetDetails(v string) {
o.Details.Set(&v)
}
// SetDetailsNil sets the value for Details to be an explicit nil
func (o *BackupRestoreRestoreSingleMemberModel) SetDetailsNil() {
o.Details.Set(nil)
}
// UnsetDetails ensures that no value is present for Details, not even an explicit nil
func (o *BackupRestoreRestoreSingleMemberModel) UnsetDetails() {
o.Details.Unset()
}
// GetTransactionId returns the TransactionId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackupRestoreRestoreSingleMemberModel) GetTransactionId() string {
if o == nil || IsNil(o.TransactionId.Get()) {
var ret string
return ret
}
return *o.TransactionId.Get()
}
// GetTransactionIdOk returns a tuple with the TransactionId 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 *BackupRestoreRestoreSingleMemberModel) GetTransactionIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.TransactionId.Get(), o.TransactionId.IsSet()
}
// HasTransactionId returns a boolean if a field has been set.
func (o *BackupRestoreRestoreSingleMemberModel) HasTransactionId() bool {
if o != nil && o.TransactionId.IsSet() {
return true
}
return false
}
// SetTransactionId gets a reference to the given NullableString and assigns it to the TransactionId field.
func (o *BackupRestoreRestoreSingleMemberModel) SetTransactionId(v string) {
o.TransactionId.Set(&v)
}
// SetTransactionIdNil sets the value for TransactionId to be an explicit nil
func (o *BackupRestoreRestoreSingleMemberModel) SetTransactionIdNil() {
o.TransactionId.Set(nil)
}
// UnsetTransactionId ensures that no value is present for TransactionId, not even an explicit nil
func (o *BackupRestoreRestoreSingleMemberModel) UnsetTransactionId() {
o.TransactionId.Unset()
}
// GetDateTime returns the DateTime field value if set, zero value otherwise.
func (o *BackupRestoreRestoreSingleMemberModel) GetDateTime() time.Time {
if o == nil || IsNil(o.DateTime) {
var ret time.Time
return ret
}
return *o.DateTime
}
// GetDateTimeOk returns a tuple with the DateTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BackupRestoreRestoreSingleMemberModel) GetDateTimeOk() (*time.Time, bool) {
if o == nil || IsNil(o.DateTime) {
return nil, false
}
return o.DateTime, true
}
// HasDateTime returns a boolean if a field has been set.
func (o *BackupRestoreRestoreSingleMemberModel) HasDateTime() bool {
if o != nil && !IsNil(o.DateTime) {
return true
}
return false
}
// SetDateTime gets a reference to the given time.Time and assigns it to the DateTime field.
func (o *BackupRestoreRestoreSingleMemberModel) SetDateTime(v time.Time) {
o.DateTime = &v
}
// GetMemberCount returns the MemberCount field value if set, zero value otherwise.
func (o *BackupRestoreRestoreSingleMemberModel) GetMemberCount() int32 {
if o == nil || IsNil(o.MemberCount) {
var ret int32
return ret
}
return *o.MemberCount
}
// GetMemberCountOk returns a tuple with the MemberCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BackupRestoreRestoreSingleMemberModel) GetMemberCountOk() (*int32, bool) {
if o == nil || IsNil(o.MemberCount) {
return nil, false
}
return o.MemberCount, true
}
// HasMemberCount returns a boolean if a field has been set.
func (o *BackupRestoreRestoreSingleMemberModel) HasMemberCount() bool {
if o != nil && !IsNil(o.MemberCount) {
return true
}
return false
}
// SetMemberCount gets a reference to the given int32 and assigns it to the MemberCount field.
func (o *BackupRestoreRestoreSingleMemberModel) SetMemberCount(v int32) {
o.MemberCount = &v
}
// GetCurrentMemberIndex returns the CurrentMemberIndex field value if set, zero value otherwise.
func (o *BackupRestoreRestoreSingleMemberModel) GetCurrentMemberIndex() int32 {
if o == nil || IsNil(o.CurrentMemberIndex) {
var ret int32
return ret
}
return *o.CurrentMemberIndex
}
// GetCurrentMemberIndexOk returns a tuple with the CurrentMemberIndex field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BackupRestoreRestoreSingleMemberModel) GetCurrentMemberIndexOk() (*int32, bool) {
if o == nil || IsNil(o.CurrentMemberIndex) {
return nil, false
}
return o.CurrentMemberIndex, true
}
// HasCurrentMemberIndex returns a boolean if a field has been set.
func (o *BackupRestoreRestoreSingleMemberModel) HasCurrentMemberIndex() bool {
if o != nil && !IsNil(o.CurrentMemberIndex) {
return true
}
return false
}
// SetCurrentMemberIndex gets a reference to the given int32 and assigns it to the CurrentMemberIndex field.
func (o *BackupRestoreRestoreSingleMemberModel) SetCurrentMemberIndex(v int32) {
o.CurrentMemberIndex = &v
}
// GetFixups returns the Fixups field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BackupRestoreRestoreSingleMemberModel) GetFixups() string {
if o == nil || IsNil(o.Fixups.Get()) {
var ret string
return ret
}
return *o.Fixups.Get()
}
// GetFixupsOk returns a tuple with the Fixups 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 *BackupRestoreRestoreSingleMemberModel) GetFixupsOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Fixups.Get(), o.Fixups.IsSet()
}
// HasFixups returns a boolean if a field has been set.
func (o *BackupRestoreRestoreSingleMemberModel) HasFixups() bool {
if o != nil && o.Fixups.IsSet() {
return true
}
return false
}
// SetFixups gets a reference to the given NullableString and assigns it to the Fixups field.
func (o *BackupRestoreRestoreSingleMemberModel) SetFixups(v string) {
o.Fixups.Set(&v)
}
// SetFixupsNil sets the value for Fixups to be an explicit nil
func (o *BackupRestoreRestoreSingleMemberModel) SetFixupsNil() {
o.Fixups.Set(nil)
}
// UnsetFixups ensures that no value is present for Fixups, not even an explicit nil
func (o *BackupRestoreRestoreSingleMemberModel) UnsetFixups() {
o.Fixups.Unset()
}
// GetCheckMode returns the CheckMode field value if set, zero value otherwise.
func (o *BackupRestoreRestoreSingleMemberModel) GetCheckMode() bool {
if o == nil || IsNil(o.CheckMode) {
var ret bool
return ret
}
return *o.CheckMode
}
// GetCheckModeOk returns a tuple with the CheckMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BackupRestoreRestoreSingleMemberModel) GetCheckModeOk() (*bool, bool) {
if o == nil || IsNil(o.CheckMode) {
return nil, false
}
return o.CheckMode, true
}
// HasCheckMode returns a boolean if a field has been set.
func (o *BackupRestoreRestoreSingleMemberModel) HasCheckMode() bool {
if o != nil && !IsNil(o.CheckMode) {
return true
}
return false
}
// SetCheckMode gets a reference to the given bool and assigns it to the CheckMode field.
func (o *BackupRestoreRestoreSingleMemberModel) SetCheckMode(v bool) {
o.CheckMode = &v
}
func (o BackupRestoreRestoreSingleMemberModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o BackupRestoreRestoreSingleMemberModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.ComponentName.IsSet() {
toSerialize["ComponentName"] = o.ComponentName.Get()
}
if o.MemberName.IsSet() {
toSerialize["MemberName"] = o.MemberName.Get()
}
if o.MemberType.IsSet() {
toSerialize["MemberType"] = o.MemberType.Get()
}
if !IsNil(o.PlaybookActionState) {
toSerialize["PlaybookActionState"] = o.PlaybookActionState
}
if !IsNil(o.Result) {
toSerialize["Result"] = o.Result
}
if o.Details.IsSet() {
toSerialize["Details"] = o.Details.Get()
}
if o.TransactionId.IsSet() {
toSerialize["TransactionId"] = o.TransactionId.Get()
}
if !IsNil(o.DateTime) {
toSerialize["DateTime"] = o.DateTime
}
if !IsNil(o.MemberCount) {
toSerialize["MemberCount"] = o.MemberCount
}
if !IsNil(o.CurrentMemberIndex) {
toSerialize["CurrentMemberIndex"] = o.CurrentMemberIndex
}
if o.Fixups.IsSet() {
toSerialize["Fixups"] = o.Fixups.Get()
}
if !IsNil(o.CheckMode) {
toSerialize["CheckMode"] = o.CheckMode
}
return toSerialize, nil
}
type NullableBackupRestoreRestoreSingleMemberModel struct {
value *BackupRestoreRestoreSingleMemberModel
isSet bool
}
func (v NullableBackupRestoreRestoreSingleMemberModel) Get() *BackupRestoreRestoreSingleMemberModel {
return v.value
}
func (v *NullableBackupRestoreRestoreSingleMemberModel) Set(val *BackupRestoreRestoreSingleMemberModel) {
v.value = val
v.isSet = true
}
func (v NullableBackupRestoreRestoreSingleMemberModel) IsSet() bool {
return v.isSet
}
func (v *NullableBackupRestoreRestoreSingleMemberModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableBackupRestoreRestoreSingleMemberModel(val *BackupRestoreRestoreSingleMemberModel) *NullableBackupRestoreRestoreSingleMemberModel {
return &NullableBackupRestoreRestoreSingleMemberModel{value: val, isSet: true}
}
func (v NullableBackupRestoreRestoreSingleMemberModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableBackupRestoreRestoreSingleMemberModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}