-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmodel_domain_summary.go
801 lines (686 loc) · 23.1 KB
/
model_domain_summary.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
/*
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package godaddy
import (
"encoding/json"
"time"
)
// DomainSummary struct for DomainSummary
type DomainSummary struct {
// Authorization code for transferring the Domain
AuthCode *string `json:"authCode,omitempty"`
ContactAdmin *Contact `json:"contactAdmin,omitempty"`
ContactBilling *Contact `json:"contactBilling,omitempty"`
ContactRegistrant Contact `json:"contactRegistrant"`
ContactTech *Contact `json:"contactTech,omitempty"`
// Date and time when this domain was created
CreatedAt time.Time `json:"createdAt"`
// Date and time when this domain was deleted
DeletedAt *time.Time `json:"deletedAt,omitempty"`
// Date and time when this domain is eligible to transfer
TransferAwayEligibleAt *time.Time `json:"transferAwayEligibleAt,omitempty"`
// Name of the domain
Domain string `json:"domain"`
// Unique identifier for this Domain
DomainId float64 `json:"domainId"`
// Whether or not the domain is protected from expiration
ExpirationProtected bool `json:"expirationProtected"`
// Date and time when this domain will expire
Expires *time.Time `json:"expires,omitempty"`
// Whether or not the domain contact details should be shown in the WHOIS
ExposeWhois *bool `json:"exposeWhois,omitempty"`
// Whether or not the domain is on-hold by the registrar
HoldRegistrar bool `json:"holdRegistrar"`
// Whether or not the domain is locked to prevent transfers
Locked bool `json:"locked"`
// Fully-qualified domain names for DNS servers
NameServers *[]string `json:"nameServers,omitempty"`
// Whether or not the domain has privacy protection
Privacy bool `json:"privacy"`
// Whether or not the domain is configured to automatically renew
RenewAuto bool `json:"renewAuto"`
// Date the domain must renew on
RenewDeadline time.Time `json:"renewDeadline"`
// Whether or not the domain is eligble for renewal based on status
Renewable *bool `json:"renewable,omitempty"`
// Processing status of the domain<br/><ul> <li><strong style='margin-left: 12px;'>ACTIVE</strong> - All is well</li> <li><strong style='margin-left: 12px;'>AWAITING*</strong> - System is waiting for the end-user to complete an action</li> <li><strong style='margin-left: 12px;'>CANCELLED*</strong> - Domain has been cancelled, and may or may not be reclaimable</li> <li><strong style='margin-left: 12px;'>CONFISCATED</strong> - Domain has been confiscated, usually for abuse, chargeback, or fraud</li> <li><strong style='margin-left: 12px;'>DISABLED*</strong> - Domain has been disabled</li> <li><strong style='margin-left: 12px;'>EXCLUDED*</strong> - Domain has been excluded from Firehose registration</li> <li><strong style='margin-left: 12px;'>EXPIRED*</strong> - Domain has expired</li> <li><strong style='margin-left: 12px;'>FAILED*</strong> - Domain has failed a required action, and the system is no longer retrying</li> <li><strong style='margin-left: 12px;'>HELD*</strong> - Domain has been placed on hold, and likely requires intervention from Support</li> <li><strong style='margin-left: 12px;'>LOCKED*</strong> - Domain has been locked, and likely requires intervention from Support</li> <li><strong style='margin-left: 12px;'>PARKED*</strong> - Domain has been parked, and likely requires intervention from Support</li> <li><strong style='margin-left: 12px;'>PENDING*</strong> - Domain is working its way through an automated workflow</li> <li><strong style='margin-left: 12px;'>RESERVED*</strong> - Domain is reserved, and likely requires intervention from Support</li> <li><strong style='margin-left: 12px;'>REVERTED</strong> - Domain has been reverted, and likely requires intervention from Support</li> <li><strong style='margin-left: 12px;'>SUSPENDED*</strong> - Domain has been suspended, and likely requires intervention from Support</li> <li><strong style='margin-left: 12px;'>TRANSFERRED*</strong> - Domain has been transferred out</li> <li><strong style='margin-left: 12px;'>UNKNOWN</strong> - Domain is in an unknown state</li> <li><strong style='margin-left: 12px;'>UNLOCKED*</strong> - Domain has been unlocked, and likely requires intervention from Support</li> <li><strong style='margin-left: 12px;'>UNPARKED*</strong> - Domain has been unparked, and likely requires intervention from Support</li> <li><strong style='margin-left: 12px;'>UPDATED*</strong> - Domain ownership has been transferred to another account</li> </ul>
Status string `json:"status"`
// Whether or not the domain is protected from transfer
TransferProtected bool `json:"transferProtected"`
}
// NewDomainSummary instantiates a new DomainSummary 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 NewDomainSummary(contactRegistrant Contact, createdAt time.Time, domain string, domainId float64, expirationProtected bool, holdRegistrar bool, locked bool, privacy bool, renewAuto bool, renewDeadline time.Time, status string, transferProtected bool, ) *DomainSummary {
this := DomainSummary{}
this.ContactRegistrant = contactRegistrant
this.CreatedAt = createdAt
this.Domain = domain
this.DomainId = domainId
this.ExpirationProtected = expirationProtected
this.HoldRegistrar = holdRegistrar
this.Locked = locked
this.Privacy = privacy
this.RenewAuto = renewAuto
this.RenewDeadline = renewDeadline
this.Status = status
this.TransferProtected = transferProtected
return &this
}
// NewDomainSummaryWithDefaults instantiates a new DomainSummary 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 NewDomainSummaryWithDefaults() *DomainSummary {
this := DomainSummary{}
return &this
}
// GetAuthCode returns the AuthCode field value if set, zero value otherwise.
func (o *DomainSummary) GetAuthCode() string {
if o == nil || o.AuthCode == nil {
var ret string
return ret
}
return *o.AuthCode
}
// GetAuthCodeOk returns a tuple with the AuthCode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetAuthCodeOk() (*string, bool) {
if o == nil || o.AuthCode == nil {
return nil, false
}
return o.AuthCode, true
}
// HasAuthCode returns a boolean if a field has been set.
func (o *DomainSummary) HasAuthCode() bool {
if o != nil && o.AuthCode != nil {
return true
}
return false
}
// SetAuthCode gets a reference to the given string and assigns it to the AuthCode field.
func (o *DomainSummary) SetAuthCode(v string) {
o.AuthCode = &v
}
// GetContactAdmin returns the ContactAdmin field value if set, zero value otherwise.
func (o *DomainSummary) GetContactAdmin() Contact {
if o == nil || o.ContactAdmin == nil {
var ret Contact
return ret
}
return *o.ContactAdmin
}
// GetContactAdminOk returns a tuple with the ContactAdmin field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetContactAdminOk() (*Contact, bool) {
if o == nil || o.ContactAdmin == nil {
return nil, false
}
return o.ContactAdmin, true
}
// HasContactAdmin returns a boolean if a field has been set.
func (o *DomainSummary) HasContactAdmin() bool {
if o != nil && o.ContactAdmin != nil {
return true
}
return false
}
// SetContactAdmin gets a reference to the given Contact and assigns it to the ContactAdmin field.
func (o *DomainSummary) SetContactAdmin(v Contact) {
o.ContactAdmin = &v
}
// GetContactBilling returns the ContactBilling field value if set, zero value otherwise.
func (o *DomainSummary) GetContactBilling() Contact {
if o == nil || o.ContactBilling == nil {
var ret Contact
return ret
}
return *o.ContactBilling
}
// GetContactBillingOk returns a tuple with the ContactBilling field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetContactBillingOk() (*Contact, bool) {
if o == nil || o.ContactBilling == nil {
return nil, false
}
return o.ContactBilling, true
}
// HasContactBilling returns a boolean if a field has been set.
func (o *DomainSummary) HasContactBilling() bool {
if o != nil && o.ContactBilling != nil {
return true
}
return false
}
// SetContactBilling gets a reference to the given Contact and assigns it to the ContactBilling field.
func (o *DomainSummary) SetContactBilling(v Contact) {
o.ContactBilling = &v
}
// GetContactRegistrant returns the ContactRegistrant field value
func (o *DomainSummary) GetContactRegistrant() Contact {
if o == nil {
var ret Contact
return ret
}
return o.ContactRegistrant
}
// GetContactRegistrantOk returns a tuple with the ContactRegistrant field value
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetContactRegistrantOk() (*Contact, bool) {
if o == nil {
return nil, false
}
return &o.ContactRegistrant, true
}
// SetContactRegistrant sets field value
func (o *DomainSummary) SetContactRegistrant(v Contact) {
o.ContactRegistrant = v
}
// GetContactTech returns the ContactTech field value if set, zero value otherwise.
func (o *DomainSummary) GetContactTech() Contact {
if o == nil || o.ContactTech == nil {
var ret Contact
return ret
}
return *o.ContactTech
}
// GetContactTechOk returns a tuple with the ContactTech field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetContactTechOk() (*Contact, bool) {
if o == nil || o.ContactTech == nil {
return nil, false
}
return o.ContactTech, true
}
// HasContactTech returns a boolean if a field has been set.
func (o *DomainSummary) HasContactTech() bool {
if o != nil && o.ContactTech != nil {
return true
}
return false
}
// SetContactTech gets a reference to the given Contact and assigns it to the ContactTech field.
func (o *DomainSummary) SetContactTech(v Contact) {
o.ContactTech = &v
}
// GetCreatedAt returns the CreatedAt field value
func (o *DomainSummary) GetCreatedAt() time.Time {
if o == nil {
var ret time.Time
return ret
}
return o.CreatedAt
}
// GetCreatedAtOk returns a tuple with the CreatedAt field value
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetCreatedAtOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return &o.CreatedAt, true
}
// SetCreatedAt sets field value
func (o *DomainSummary) SetCreatedAt(v time.Time) {
o.CreatedAt = v
}
// GetDeletedAt returns the DeletedAt field value if set, zero value otherwise.
func (o *DomainSummary) GetDeletedAt() time.Time {
if o == nil || o.DeletedAt == nil {
var ret time.Time
return ret
}
return *o.DeletedAt
}
// GetDeletedAtOk returns a tuple with the DeletedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetDeletedAtOk() (*time.Time, bool) {
if o == nil || o.DeletedAt == nil {
return nil, false
}
return o.DeletedAt, true
}
// HasDeletedAt returns a boolean if a field has been set.
func (o *DomainSummary) HasDeletedAt() bool {
if o != nil && o.DeletedAt != nil {
return true
}
return false
}
// SetDeletedAt gets a reference to the given time.Time and assigns it to the DeletedAt field.
func (o *DomainSummary) SetDeletedAt(v time.Time) {
o.DeletedAt = &v
}
// GetTransferAwayEligibleAt returns the TransferAwayEligibleAt field value if set, zero value otherwise.
func (o *DomainSummary) GetTransferAwayEligibleAt() time.Time {
if o == nil || o.TransferAwayEligibleAt == nil {
var ret time.Time
return ret
}
return *o.TransferAwayEligibleAt
}
// GetTransferAwayEligibleAtOk returns a tuple with the TransferAwayEligibleAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetTransferAwayEligibleAtOk() (*time.Time, bool) {
if o == nil || o.TransferAwayEligibleAt == nil {
return nil, false
}
return o.TransferAwayEligibleAt, true
}
// HasTransferAwayEligibleAt returns a boolean if a field has been set.
func (o *DomainSummary) HasTransferAwayEligibleAt() bool {
if o != nil && o.TransferAwayEligibleAt != nil {
return true
}
return false
}
// SetTransferAwayEligibleAt gets a reference to the given time.Time and assigns it to the TransferAwayEligibleAt field.
func (o *DomainSummary) SetTransferAwayEligibleAt(v time.Time) {
o.TransferAwayEligibleAt = &v
}
// GetDomain returns the Domain field value
func (o *DomainSummary) GetDomain() string {
if o == nil {
var ret string
return ret
}
return o.Domain
}
// GetDomainOk returns a tuple with the Domain field value
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetDomainOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Domain, true
}
// SetDomain sets field value
func (o *DomainSummary) SetDomain(v string) {
o.Domain = v
}
// GetDomainId returns the DomainId field value
func (o *DomainSummary) GetDomainId() float64 {
if o == nil {
var ret float64
return ret
}
return o.DomainId
}
// GetDomainIdOk returns a tuple with the DomainId field value
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetDomainIdOk() (*float64, bool) {
if o == nil {
return nil, false
}
return &o.DomainId, true
}
// SetDomainId sets field value
func (o *DomainSummary) SetDomainId(v float64) {
o.DomainId = v
}
// GetExpirationProtected returns the ExpirationProtected field value
func (o *DomainSummary) GetExpirationProtected() bool {
if o == nil {
var ret bool
return ret
}
return o.ExpirationProtected
}
// GetExpirationProtectedOk returns a tuple with the ExpirationProtected field value
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetExpirationProtectedOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.ExpirationProtected, true
}
// SetExpirationProtected sets field value
func (o *DomainSummary) SetExpirationProtected(v bool) {
o.ExpirationProtected = v
}
// GetExpires returns the Expires field value if set, zero value otherwise.
func (o *DomainSummary) GetExpires() time.Time {
if o == nil || o.Expires == nil {
var ret time.Time
return ret
}
return *o.Expires
}
// GetExpiresOk returns a tuple with the Expires field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetExpiresOk() (*time.Time, bool) {
if o == nil || o.Expires == nil {
return nil, false
}
return o.Expires, true
}
// HasExpires returns a boolean if a field has been set.
func (o *DomainSummary) HasExpires() bool {
if o != nil && o.Expires != nil {
return true
}
return false
}
// SetExpires gets a reference to the given time.Time and assigns it to the Expires field.
func (o *DomainSummary) SetExpires(v time.Time) {
o.Expires = &v
}
// GetExposeWhois returns the ExposeWhois field value if set, zero value otherwise.
func (o *DomainSummary) GetExposeWhois() bool {
if o == nil || o.ExposeWhois == nil {
var ret bool
return ret
}
return *o.ExposeWhois
}
// GetExposeWhoisOk returns a tuple with the ExposeWhois field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetExposeWhoisOk() (*bool, bool) {
if o == nil || o.ExposeWhois == nil {
return nil, false
}
return o.ExposeWhois, true
}
// HasExposeWhois returns a boolean if a field has been set.
func (o *DomainSummary) HasExposeWhois() bool {
if o != nil && o.ExposeWhois != nil {
return true
}
return false
}
// SetExposeWhois gets a reference to the given bool and assigns it to the ExposeWhois field.
func (o *DomainSummary) SetExposeWhois(v bool) {
o.ExposeWhois = &v
}
// GetHoldRegistrar returns the HoldRegistrar field value
func (o *DomainSummary) GetHoldRegistrar() bool {
if o == nil {
var ret bool
return ret
}
return o.HoldRegistrar
}
// GetHoldRegistrarOk returns a tuple with the HoldRegistrar field value
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetHoldRegistrarOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.HoldRegistrar, true
}
// SetHoldRegistrar sets field value
func (o *DomainSummary) SetHoldRegistrar(v bool) {
o.HoldRegistrar = v
}
// GetLocked returns the Locked field value
func (o *DomainSummary) GetLocked() bool {
if o == nil {
var ret bool
return ret
}
return o.Locked
}
// GetLockedOk returns a tuple with the Locked field value
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetLockedOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.Locked, true
}
// SetLocked sets field value
func (o *DomainSummary) SetLocked(v bool) {
o.Locked = v
}
// GetNameServers returns the NameServers field value if set, zero value otherwise.
func (o *DomainSummary) GetNameServers() []string {
if o == nil || o.NameServers == nil {
var ret []string
return ret
}
return *o.NameServers
}
// GetNameServersOk returns a tuple with the NameServers field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetNameServersOk() (*[]string, bool) {
if o == nil || o.NameServers == nil {
return nil, false
}
return o.NameServers, true
}
// HasNameServers returns a boolean if a field has been set.
func (o *DomainSummary) HasNameServers() bool {
if o != nil && o.NameServers != nil {
return true
}
return false
}
// SetNameServers gets a reference to the given []string and assigns it to the NameServers field.
func (o *DomainSummary) SetNameServers(v []string) {
o.NameServers = &v
}
// GetPrivacy returns the Privacy field value
func (o *DomainSummary) GetPrivacy() bool {
if o == nil {
var ret bool
return ret
}
return o.Privacy
}
// GetPrivacyOk returns a tuple with the Privacy field value
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetPrivacyOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.Privacy, true
}
// SetPrivacy sets field value
func (o *DomainSummary) SetPrivacy(v bool) {
o.Privacy = v
}
// GetRenewAuto returns the RenewAuto field value
func (o *DomainSummary) GetRenewAuto() bool {
if o == nil {
var ret bool
return ret
}
return o.RenewAuto
}
// GetRenewAutoOk returns a tuple with the RenewAuto field value
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetRenewAutoOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.RenewAuto, true
}
// SetRenewAuto sets field value
func (o *DomainSummary) SetRenewAuto(v bool) {
o.RenewAuto = v
}
// GetRenewDeadline returns the RenewDeadline field value
func (o *DomainSummary) GetRenewDeadline() time.Time {
if o == nil {
var ret time.Time
return ret
}
return o.RenewDeadline
}
// GetRenewDeadlineOk returns a tuple with the RenewDeadline field value
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetRenewDeadlineOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return &o.RenewDeadline, true
}
// SetRenewDeadline sets field value
func (o *DomainSummary) SetRenewDeadline(v time.Time) {
o.RenewDeadline = v
}
// GetRenewable returns the Renewable field value if set, zero value otherwise.
func (o *DomainSummary) GetRenewable() bool {
if o == nil || o.Renewable == nil {
var ret bool
return ret
}
return *o.Renewable
}
// GetRenewableOk returns a tuple with the Renewable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetRenewableOk() (*bool, bool) {
if o == nil || o.Renewable == nil {
return nil, false
}
return o.Renewable, true
}
// HasRenewable returns a boolean if a field has been set.
func (o *DomainSummary) HasRenewable() bool {
if o != nil && o.Renewable != nil {
return true
}
return false
}
// SetRenewable gets a reference to the given bool and assigns it to the Renewable field.
func (o *DomainSummary) SetRenewable(v bool) {
o.Renewable = &v
}
// GetStatus returns the Status field value
func (o *DomainSummary) GetStatus() string {
if o == nil {
var ret string
return ret
}
return o.Status
}
// GetStatusOk returns a tuple with the Status field value
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetStatusOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Status, true
}
// SetStatus sets field value
func (o *DomainSummary) SetStatus(v string) {
o.Status = v
}
// GetTransferProtected returns the TransferProtected field value
func (o *DomainSummary) GetTransferProtected() bool {
if o == nil {
var ret bool
return ret
}
return o.TransferProtected
}
// GetTransferProtectedOk returns a tuple with the TransferProtected field value
// and a boolean to check if the value has been set.
func (o *DomainSummary) GetTransferProtectedOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.TransferProtected, true
}
// SetTransferProtected sets field value
func (o *DomainSummary) SetTransferProtected(v bool) {
o.TransferProtected = v
}
func (o DomainSummary) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.AuthCode != nil {
toSerialize["authCode"] = o.AuthCode
}
if o.ContactAdmin != nil {
toSerialize["contactAdmin"] = o.ContactAdmin
}
if o.ContactBilling != nil {
toSerialize["contactBilling"] = o.ContactBilling
}
if true {
toSerialize["contactRegistrant"] = o.ContactRegistrant
}
if o.ContactTech != nil {
toSerialize["contactTech"] = o.ContactTech
}
if true {
toSerialize["createdAt"] = o.CreatedAt
}
if o.DeletedAt != nil {
toSerialize["deletedAt"] = o.DeletedAt
}
if o.TransferAwayEligibleAt != nil {
toSerialize["transferAwayEligibleAt"] = o.TransferAwayEligibleAt
}
if true {
toSerialize["domain"] = o.Domain
}
if true {
toSerialize["domainId"] = o.DomainId
}
if true {
toSerialize["expirationProtected"] = o.ExpirationProtected
}
if o.Expires != nil {
toSerialize["expires"] = o.Expires
}
if o.ExposeWhois != nil {
toSerialize["exposeWhois"] = o.ExposeWhois
}
if true {
toSerialize["holdRegistrar"] = o.HoldRegistrar
}
if true {
toSerialize["locked"] = o.Locked
}
if o.NameServers != nil {
toSerialize["nameServers"] = o.NameServers
}
if true {
toSerialize["privacy"] = o.Privacy
}
if true {
toSerialize["renewAuto"] = o.RenewAuto
}
if true {
toSerialize["renewDeadline"] = o.RenewDeadline
}
if o.Renewable != nil {
toSerialize["renewable"] = o.Renewable
}
if true {
toSerialize["status"] = o.Status
}
if true {
toSerialize["transferProtected"] = o.TransferProtected
}
return json.Marshal(toSerialize)
}
type NullableDomainSummary struct {
value *DomainSummary
isSet bool
}
func (v NullableDomainSummary) Get() *DomainSummary {
return v.value
}
func (v *NullableDomainSummary) Set(val *DomainSummary) {
v.value = val
v.isSet = true
}
func (v NullableDomainSummary) IsSet() bool {
return v.isSet
}
func (v *NullableDomainSummary) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDomainSummary(val *DomainSummary) *NullableDomainSummary {
return &NullableDomainSummary{value: val, isSet: true}
}
func (v NullableDomainSummary) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDomainSummary) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}