-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodel_segment_model_haljson.go
687 lines (588 loc) · 23.4 KB
/
model_segment_model_haljson.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
/*
ConfigCat Public Management API
**Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.json) You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). <!-- ReDoc-Inject: <security-definitions> --> # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header.
API version: v1
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package configcatpublicapi
import (
"encoding/json"
"time"
)
// checks if the SegmentModelHaljson type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SegmentModelHaljson{}
// SegmentModelHaljson struct for SegmentModelHaljson
type SegmentModelHaljson struct {
Embedded *ConfigModelHaljsonEmbedded `json:"_embedded,omitempty"`
// Identifier of the Segment.
SegmentId *string `json:"segmentId,omitempty"`
// Name of the Segment.
Name NullableString `json:"name,omitempty"`
// Description of the Segment.
Description NullableString `json:"description,omitempty"`
// The email of the user who created the Segment.
CreatorEmail NullableString `json:"creatorEmail,omitempty"`
// The name of the user who created the Segment.
CreatorFullName NullableString `json:"creatorFullName,omitempty"`
// The date and time when the Segment was created.
CreatedAt *time.Time `json:"createdAt,omitempty"`
// The email of the user who last updated the Segment.
LastUpdaterEmail NullableString `json:"lastUpdaterEmail,omitempty"`
// The name of the user who last updated the Segment.
LastUpdaterFullName NullableString `json:"lastUpdaterFullName,omitempty"`
// The date and time when the Segment was last updated.
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
// The user's attribute the evaluation process must take into account.
ComparisonAttribute NullableString `json:"comparisonAttribute,omitempty"`
Comparator *RolloutRuleComparator `json:"comparator,omitempty"`
// The value to compare with the given user attribute's value.
ComparisonValue NullableString `json:"comparisonValue,omitempty"`
Links *ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks `json:"_links,omitempty"`
}
// NewSegmentModelHaljson instantiates a new SegmentModelHaljson 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 NewSegmentModelHaljson() *SegmentModelHaljson {
this := SegmentModelHaljson{}
return &this
}
// NewSegmentModelHaljsonWithDefaults instantiates a new SegmentModelHaljson 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 NewSegmentModelHaljsonWithDefaults() *SegmentModelHaljson {
this := SegmentModelHaljson{}
return &this
}
// GetEmbedded returns the Embedded field value if set, zero value otherwise.
func (o *SegmentModelHaljson) GetEmbedded() ConfigModelHaljsonEmbedded {
if o == nil || IsNil(o.Embedded) {
var ret ConfigModelHaljsonEmbedded
return ret
}
return *o.Embedded
}
// GetEmbeddedOk returns a tuple with the Embedded field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SegmentModelHaljson) GetEmbeddedOk() (*ConfigModelHaljsonEmbedded, bool) {
if o == nil || IsNil(o.Embedded) {
return nil, false
}
return o.Embedded, true
}
// HasEmbedded returns a boolean if a field has been set.
func (o *SegmentModelHaljson) HasEmbedded() bool {
if o != nil && !IsNil(o.Embedded) {
return true
}
return false
}
// SetEmbedded gets a reference to the given ConfigModelHaljsonEmbedded and assigns it to the Embedded field.
func (o *SegmentModelHaljson) SetEmbedded(v ConfigModelHaljsonEmbedded) {
o.Embedded = &v
}
// GetSegmentId returns the SegmentId field value if set, zero value otherwise.
func (o *SegmentModelHaljson) GetSegmentId() string {
if o == nil || IsNil(o.SegmentId) {
var ret string
return ret
}
return *o.SegmentId
}
// GetSegmentIdOk returns a tuple with the SegmentId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SegmentModelHaljson) GetSegmentIdOk() (*string, bool) {
if o == nil || IsNil(o.SegmentId) {
return nil, false
}
return o.SegmentId, true
}
// HasSegmentId returns a boolean if a field has been set.
func (o *SegmentModelHaljson) HasSegmentId() bool {
if o != nil && !IsNil(o.SegmentId) {
return true
}
return false
}
// SetSegmentId gets a reference to the given string and assigns it to the SegmentId field.
func (o *SegmentModelHaljson) SetSegmentId(v string) {
o.SegmentId = &v
}
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SegmentModelHaljson) GetName() string {
if o == nil || IsNil(o.Name.Get()) {
var ret string
return ret
}
return *o.Name.Get()
}
// GetNameOk returns a tuple with the Name 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 *SegmentModelHaljson) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Name.Get(), o.Name.IsSet()
}
// HasName returns a boolean if a field has been set.
func (o *SegmentModelHaljson) HasName() bool {
if o != nil && o.Name.IsSet() {
return true
}
return false
}
// SetName gets a reference to the given NullableString and assigns it to the Name field.
func (o *SegmentModelHaljson) SetName(v string) {
o.Name.Set(&v)
}
// SetNameNil sets the value for Name to be an explicit nil
func (o *SegmentModelHaljson) SetNameNil() {
o.Name.Set(nil)
}
// UnsetName ensures that no value is present for Name, not even an explicit nil
func (o *SegmentModelHaljson) UnsetName() {
o.Name.Unset()
}
// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SegmentModelHaljson) GetDescription() string {
if o == nil || IsNil(o.Description.Get()) {
var ret string
return ret
}
return *o.Description.Get()
}
// GetDescriptionOk returns a tuple with the Description 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 *SegmentModelHaljson) GetDescriptionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Description.Get(), o.Description.IsSet()
}
// HasDescription returns a boolean if a field has been set.
func (o *SegmentModelHaljson) HasDescription() bool {
if o != nil && o.Description.IsSet() {
return true
}
return false
}
// SetDescription gets a reference to the given NullableString and assigns it to the Description field.
func (o *SegmentModelHaljson) SetDescription(v string) {
o.Description.Set(&v)
}
// SetDescriptionNil sets the value for Description to be an explicit nil
func (o *SegmentModelHaljson) SetDescriptionNil() {
o.Description.Set(nil)
}
// UnsetDescription ensures that no value is present for Description, not even an explicit nil
func (o *SegmentModelHaljson) UnsetDescription() {
o.Description.Unset()
}
// GetCreatorEmail returns the CreatorEmail field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SegmentModelHaljson) GetCreatorEmail() string {
if o == nil || IsNil(o.CreatorEmail.Get()) {
var ret string
return ret
}
return *o.CreatorEmail.Get()
}
// GetCreatorEmailOk returns a tuple with the CreatorEmail 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 *SegmentModelHaljson) GetCreatorEmailOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CreatorEmail.Get(), o.CreatorEmail.IsSet()
}
// HasCreatorEmail returns a boolean if a field has been set.
func (o *SegmentModelHaljson) HasCreatorEmail() bool {
if o != nil && o.CreatorEmail.IsSet() {
return true
}
return false
}
// SetCreatorEmail gets a reference to the given NullableString and assigns it to the CreatorEmail field.
func (o *SegmentModelHaljson) SetCreatorEmail(v string) {
o.CreatorEmail.Set(&v)
}
// SetCreatorEmailNil sets the value for CreatorEmail to be an explicit nil
func (o *SegmentModelHaljson) SetCreatorEmailNil() {
o.CreatorEmail.Set(nil)
}
// UnsetCreatorEmail ensures that no value is present for CreatorEmail, not even an explicit nil
func (o *SegmentModelHaljson) UnsetCreatorEmail() {
o.CreatorEmail.Unset()
}
// GetCreatorFullName returns the CreatorFullName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SegmentModelHaljson) GetCreatorFullName() string {
if o == nil || IsNil(o.CreatorFullName.Get()) {
var ret string
return ret
}
return *o.CreatorFullName.Get()
}
// GetCreatorFullNameOk returns a tuple with the CreatorFullName 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 *SegmentModelHaljson) GetCreatorFullNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CreatorFullName.Get(), o.CreatorFullName.IsSet()
}
// HasCreatorFullName returns a boolean if a field has been set.
func (o *SegmentModelHaljson) HasCreatorFullName() bool {
if o != nil && o.CreatorFullName.IsSet() {
return true
}
return false
}
// SetCreatorFullName gets a reference to the given NullableString and assigns it to the CreatorFullName field.
func (o *SegmentModelHaljson) SetCreatorFullName(v string) {
o.CreatorFullName.Set(&v)
}
// SetCreatorFullNameNil sets the value for CreatorFullName to be an explicit nil
func (o *SegmentModelHaljson) SetCreatorFullNameNil() {
o.CreatorFullName.Set(nil)
}
// UnsetCreatorFullName ensures that no value is present for CreatorFullName, not even an explicit nil
func (o *SegmentModelHaljson) UnsetCreatorFullName() {
o.CreatorFullName.Unset()
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *SegmentModelHaljson) GetCreatedAt() time.Time {
if o == nil || IsNil(o.CreatedAt) {
var ret time.Time
return ret
}
return *o.CreatedAt
}
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SegmentModelHaljson) GetCreatedAtOk() (*time.Time, bool) {
if o == nil || IsNil(o.CreatedAt) {
return nil, false
}
return o.CreatedAt, true
}
// HasCreatedAt returns a boolean if a field has been set.
func (o *SegmentModelHaljson) HasCreatedAt() bool {
if o != nil && !IsNil(o.CreatedAt) {
return true
}
return false
}
// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *SegmentModelHaljson) SetCreatedAt(v time.Time) {
o.CreatedAt = &v
}
// GetLastUpdaterEmail returns the LastUpdaterEmail field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SegmentModelHaljson) GetLastUpdaterEmail() string {
if o == nil || IsNil(o.LastUpdaterEmail.Get()) {
var ret string
return ret
}
return *o.LastUpdaterEmail.Get()
}
// GetLastUpdaterEmailOk returns a tuple with the LastUpdaterEmail 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 *SegmentModelHaljson) GetLastUpdaterEmailOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.LastUpdaterEmail.Get(), o.LastUpdaterEmail.IsSet()
}
// HasLastUpdaterEmail returns a boolean if a field has been set.
func (o *SegmentModelHaljson) HasLastUpdaterEmail() bool {
if o != nil && o.LastUpdaterEmail.IsSet() {
return true
}
return false
}
// SetLastUpdaterEmail gets a reference to the given NullableString and assigns it to the LastUpdaterEmail field.
func (o *SegmentModelHaljson) SetLastUpdaterEmail(v string) {
o.LastUpdaterEmail.Set(&v)
}
// SetLastUpdaterEmailNil sets the value for LastUpdaterEmail to be an explicit nil
func (o *SegmentModelHaljson) SetLastUpdaterEmailNil() {
o.LastUpdaterEmail.Set(nil)
}
// UnsetLastUpdaterEmail ensures that no value is present for LastUpdaterEmail, not even an explicit nil
func (o *SegmentModelHaljson) UnsetLastUpdaterEmail() {
o.LastUpdaterEmail.Unset()
}
// GetLastUpdaterFullName returns the LastUpdaterFullName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SegmentModelHaljson) GetLastUpdaterFullName() string {
if o == nil || IsNil(o.LastUpdaterFullName.Get()) {
var ret string
return ret
}
return *o.LastUpdaterFullName.Get()
}
// GetLastUpdaterFullNameOk returns a tuple with the LastUpdaterFullName 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 *SegmentModelHaljson) GetLastUpdaterFullNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.LastUpdaterFullName.Get(), o.LastUpdaterFullName.IsSet()
}
// HasLastUpdaterFullName returns a boolean if a field has been set.
func (o *SegmentModelHaljson) HasLastUpdaterFullName() bool {
if o != nil && o.LastUpdaterFullName.IsSet() {
return true
}
return false
}
// SetLastUpdaterFullName gets a reference to the given NullableString and assigns it to the LastUpdaterFullName field.
func (o *SegmentModelHaljson) SetLastUpdaterFullName(v string) {
o.LastUpdaterFullName.Set(&v)
}
// SetLastUpdaterFullNameNil sets the value for LastUpdaterFullName to be an explicit nil
func (o *SegmentModelHaljson) SetLastUpdaterFullNameNil() {
o.LastUpdaterFullName.Set(nil)
}
// UnsetLastUpdaterFullName ensures that no value is present for LastUpdaterFullName, not even an explicit nil
func (o *SegmentModelHaljson) UnsetLastUpdaterFullName() {
o.LastUpdaterFullName.Unset()
}
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
func (o *SegmentModelHaljson) GetUpdatedAt() time.Time {
if o == nil || IsNil(o.UpdatedAt) {
var ret time.Time
return ret
}
return *o.UpdatedAt
}
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SegmentModelHaljson) GetUpdatedAtOk() (*time.Time, bool) {
if o == nil || IsNil(o.UpdatedAt) {
return nil, false
}
return o.UpdatedAt, true
}
// HasUpdatedAt returns a boolean if a field has been set.
func (o *SegmentModelHaljson) HasUpdatedAt() bool {
if o != nil && !IsNil(o.UpdatedAt) {
return true
}
return false
}
// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.
func (o *SegmentModelHaljson) SetUpdatedAt(v time.Time) {
o.UpdatedAt = &v
}
// GetComparisonAttribute returns the ComparisonAttribute field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SegmentModelHaljson) GetComparisonAttribute() string {
if o == nil || IsNil(o.ComparisonAttribute.Get()) {
var ret string
return ret
}
return *o.ComparisonAttribute.Get()
}
// GetComparisonAttributeOk returns a tuple with the ComparisonAttribute 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 *SegmentModelHaljson) GetComparisonAttributeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ComparisonAttribute.Get(), o.ComparisonAttribute.IsSet()
}
// HasComparisonAttribute returns a boolean if a field has been set.
func (o *SegmentModelHaljson) HasComparisonAttribute() bool {
if o != nil && o.ComparisonAttribute.IsSet() {
return true
}
return false
}
// SetComparisonAttribute gets a reference to the given NullableString and assigns it to the ComparisonAttribute field.
func (o *SegmentModelHaljson) SetComparisonAttribute(v string) {
o.ComparisonAttribute.Set(&v)
}
// SetComparisonAttributeNil sets the value for ComparisonAttribute to be an explicit nil
func (o *SegmentModelHaljson) SetComparisonAttributeNil() {
o.ComparisonAttribute.Set(nil)
}
// UnsetComparisonAttribute ensures that no value is present for ComparisonAttribute, not even an explicit nil
func (o *SegmentModelHaljson) UnsetComparisonAttribute() {
o.ComparisonAttribute.Unset()
}
// GetComparator returns the Comparator field value if set, zero value otherwise.
func (o *SegmentModelHaljson) GetComparator() RolloutRuleComparator {
if o == nil || IsNil(o.Comparator) {
var ret RolloutRuleComparator
return ret
}
return *o.Comparator
}
// GetComparatorOk returns a tuple with the Comparator field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SegmentModelHaljson) GetComparatorOk() (*RolloutRuleComparator, bool) {
if o == nil || IsNil(o.Comparator) {
return nil, false
}
return o.Comparator, true
}
// HasComparator returns a boolean if a field has been set.
func (o *SegmentModelHaljson) HasComparator() bool {
if o != nil && !IsNil(o.Comparator) {
return true
}
return false
}
// SetComparator gets a reference to the given RolloutRuleComparator and assigns it to the Comparator field.
func (o *SegmentModelHaljson) SetComparator(v RolloutRuleComparator) {
o.Comparator = &v
}
// GetComparisonValue returns the ComparisonValue field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *SegmentModelHaljson) GetComparisonValue() string {
if o == nil || IsNil(o.ComparisonValue.Get()) {
var ret string
return ret
}
return *o.ComparisonValue.Get()
}
// GetComparisonValueOk returns a tuple with the ComparisonValue 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 *SegmentModelHaljson) GetComparisonValueOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ComparisonValue.Get(), o.ComparisonValue.IsSet()
}
// HasComparisonValue returns a boolean if a field has been set.
func (o *SegmentModelHaljson) HasComparisonValue() bool {
if o != nil && o.ComparisonValue.IsSet() {
return true
}
return false
}
// SetComparisonValue gets a reference to the given NullableString and assigns it to the ComparisonValue field.
func (o *SegmentModelHaljson) SetComparisonValue(v string) {
o.ComparisonValue.Set(&v)
}
// SetComparisonValueNil sets the value for ComparisonValue to be an explicit nil
func (o *SegmentModelHaljson) SetComparisonValueNil() {
o.ComparisonValue.Set(nil)
}
// UnsetComparisonValue ensures that no value is present for ComparisonValue, not even an explicit nil
func (o *SegmentModelHaljson) UnsetComparisonValue() {
o.ComparisonValue.Unset()
}
// GetLinks returns the Links field value if set, zero value otherwise.
func (o *SegmentModelHaljson) GetLinks() ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks {
if o == nil || IsNil(o.Links) {
var ret ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks
return ret
}
return *o.Links
}
// GetLinksOk returns a tuple with the Links field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SegmentModelHaljson) GetLinksOk() (*ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks, bool) {
if o == nil || IsNil(o.Links) {
return nil, false
}
return o.Links, true
}
// HasLinks returns a boolean if a field has been set.
func (o *SegmentModelHaljson) HasLinks() bool {
if o != nil && !IsNil(o.Links) {
return true
}
return false
}
// SetLinks gets a reference to the given ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks and assigns it to the Links field.
func (o *SegmentModelHaljson) SetLinks(v ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks) {
o.Links = &v
}
func (o SegmentModelHaljson) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SegmentModelHaljson) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Embedded) {
toSerialize["_embedded"] = o.Embedded
}
if !IsNil(o.SegmentId) {
toSerialize["segmentId"] = o.SegmentId
}
if o.Name.IsSet() {
toSerialize["name"] = o.Name.Get()
}
if o.Description.IsSet() {
toSerialize["description"] = o.Description.Get()
}
if o.CreatorEmail.IsSet() {
toSerialize["creatorEmail"] = o.CreatorEmail.Get()
}
if o.CreatorFullName.IsSet() {
toSerialize["creatorFullName"] = o.CreatorFullName.Get()
}
if !IsNil(o.CreatedAt) {
toSerialize["createdAt"] = o.CreatedAt
}
if o.LastUpdaterEmail.IsSet() {
toSerialize["lastUpdaterEmail"] = o.LastUpdaterEmail.Get()
}
if o.LastUpdaterFullName.IsSet() {
toSerialize["lastUpdaterFullName"] = o.LastUpdaterFullName.Get()
}
if !IsNil(o.UpdatedAt) {
toSerialize["updatedAt"] = o.UpdatedAt
}
if o.ComparisonAttribute.IsSet() {
toSerialize["comparisonAttribute"] = o.ComparisonAttribute.Get()
}
if !IsNil(o.Comparator) {
toSerialize["comparator"] = o.Comparator
}
if o.ComparisonValue.IsSet() {
toSerialize["comparisonValue"] = o.ComparisonValue.Get()
}
if !IsNil(o.Links) {
toSerialize["_links"] = o.Links
}
return toSerialize, nil
}
type NullableSegmentModelHaljson struct {
value *SegmentModelHaljson
isSet bool
}
func (v NullableSegmentModelHaljson) Get() *SegmentModelHaljson {
return v.value
}
func (v *NullableSegmentModelHaljson) Set(val *SegmentModelHaljson) {
v.value = val
v.isSet = true
}
func (v NullableSegmentModelHaljson) IsSet() bool {
return v.isSet
}
func (v *NullableSegmentModelHaljson) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSegmentModelHaljson(val *SegmentModelHaljson) *NullableSegmentModelHaljson {
return &NullableSegmentModelHaljson{value: val, isSet: true}
}
func (v NullableSegmentModelHaljson) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSegmentModelHaljson) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}