/
model_user_profile.go
1585 lines (1350 loc) · 48.7 KB
/
model_user_profile.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
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Okta Admin Management
Allows customers to easily access the Okta Management APIs
Copyright 2018 - Present Okta, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
API version: 5.1.0
Contact: devex-public@okta.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package okta
import (
"encoding/json"
)
// UserProfile Specifies the default and custom profile properties for a user. The default user profile is based on the [System for Cross-domain Identity Management: Core Schema](https://datatracker.ietf.org/doc/html/rfc7643). The only permitted customizations of the default profile are to update permissions, change whether the `firstName` and `lastName` properties are nullable, and specify a [pattern](https://developer.okta.com/docs/reference/api/schemas/#login-pattern-validation) for `login`. You can use the Profile Editor in the administrator UI or the [Schemas API](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UISchema/#tag/UISchema) to make schema modifications. You can extend user profiles with custom properties. You must first add the custom property to the user profile schema before you reference it. You can use the Profile Editor in the Admin console or the [Schemas API](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UISchema/#tag/UISchema) to manage schema extensions. Custom attributes may contain HTML tags. It's the client's responsibility to escape or encode this data before displaying it. Use [best-practices](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html) to prevent cross-site scripting.
type UserProfile struct {
// The city or locality of the user's address (`locality`)
City NullableString `json:"city,omitempty"`
// Name of the cost center assigned to a user
CostCenter NullableString `json:"costCenter,omitempty"`
// The country name component of the user's address (`country`)
CountryCode NullableString `json:"countryCode,omitempty"`
// Name of the user's department
Department *string `json:"department,omitempty"`
// Name of the user suitable for display to end users
DisplayName NullableString `json:"displayName,omitempty"`
// Name of the user's division
Division NullableString `json:"division,omitempty"`
// The primary email address of the user. For validation, see [RFC 5322 Section 3.2.3](https://datatracker.ietf.org/doc/html/rfc5322#section-3.2.3).
Email *string `json:"email,omitempty"`
// The organization or company assigned unique identifier for the user
EmployeeNumber *string `json:"employeeNumber,omitempty"`
// Given name of the user (`givenName`)
FirstName NullableString `json:"firstName,omitempty"`
// Honorific prefix(es) of the user, or title in most Western languages
HonorificPrefix NullableString `json:"honorificPrefix,omitempty"`
// Honorific suffix(es) of the user
HonorificSuffix NullableString `json:"honorificSuffix,omitempty"`
// The family name of the user (`familyName`)
LastName NullableString `json:"lastName,omitempty"`
// The user's default location for purposes of localizing items such as currency, date time format, numerical representations, and so on. A locale value is a concatenation of the ISO 639-1 two-letter language code, an underscore, and the ISO 3166-1 two-letter country code. For example, en_US specifies the language English and country US. This value is `en_US` by default.
Locale *string `json:"locale,omitempty"`
// The unique identifier for the user (`username`). For validation, see [Login pattern validation](https://developer.okta.com/docs/reference/api/schemas/#login-pattern-validation). See also [Okta login](https://developer.okta.com/docs/reference/api/users/#okta-login).
Login *string `json:"login,omitempty"`
// The `displayName` of the user's manager
Manager NullableString `json:"manager,omitempty"`
// The `id` of the user's manager
ManagerId NullableString `json:"managerId,omitempty"`
// The middle name of the user
MiddleName NullableString `json:"middleName,omitempty"`
// The mobile phone number of the user
MobilePhone NullableString `json:"mobilePhone,omitempty"`
// The casual way to address the user in real life
NickName NullableString `json:"nickName,omitempty"`
// Name of the the user's organization
Organization NullableString `json:"organization,omitempty"`
// Mailing address component of the user's address
PostalAddress NullableString `json:"postalAddress,omitempty"`
// The user's preferred written or spoken language
PreferredLanguage NullableString `json:"preferredLanguage,omitempty"`
// The primary phone number of the user such as a home number
PrimaryPhone NullableString `json:"primaryPhone,omitempty"`
// The URL of the user's online profile. For example, a web page. See [URL](https://datatracker.ietf.org/doc/html/rfc1808).
ProfileUrl NullableString `json:"profileUrl,omitempty"`
// The secondary email address of the user typically used for account recovery
SecondEmail NullableString `json:"secondEmail,omitempty"`
// The state or region component of the user's address (`region`)
State NullableString `json:"state,omitempty"`
// The full street address component of the user's address
StreetAddress NullableString `json:"streetAddress,omitempty"`
// The user's time zone
Timezone NullableString `json:"timezone,omitempty"`
// The user's title, such as Vice President
Title NullableString `json:"title,omitempty"`
// The property used to describe the organization-to-user relationship, such as employee or contractor
UserType NullableString `json:"userType,omitempty"`
// The ZIP code or postal code component of the user's address (`postalCode`)
ZipCode NullableString `json:"zipCode,omitempty"`
AdditionalProperties map[string]interface{}
}
type _UserProfile UserProfile
// NewUserProfile instantiates a new UserProfile 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 NewUserProfile() *UserProfile {
this := UserProfile{}
return &this
}
// NewUserProfileWithDefaults instantiates a new UserProfile 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 NewUserProfileWithDefaults() *UserProfile {
this := UserProfile{}
return &this
}
// GetCity returns the City field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetCity() string {
if o == nil || o.City.Get() == nil {
var ret string
return ret
}
return *o.City.Get()
}
// GetCityOk returns a tuple with the City 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 *UserProfile) GetCityOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.City.Get(), o.City.IsSet()
}
// HasCity returns a boolean if a field has been set.
func (o *UserProfile) HasCity() bool {
if o != nil && o.City.IsSet() {
return true
}
return false
}
// SetCity gets a reference to the given NullableString and assigns it to the City field.
func (o *UserProfile) SetCity(v string) {
o.City.Set(&v)
}
// SetCityNil sets the value for City to be an explicit nil
func (o *UserProfile) SetCityNil() {
o.City.Set(nil)
}
// UnsetCity ensures that no value is present for City, not even an explicit nil
func (o *UserProfile) UnsetCity() {
o.City.Unset()
}
// GetCostCenter returns the CostCenter field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetCostCenter() string {
if o == nil || o.CostCenter.Get() == nil {
var ret string
return ret
}
return *o.CostCenter.Get()
}
// GetCostCenterOk returns a tuple with the CostCenter 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 *UserProfile) GetCostCenterOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CostCenter.Get(), o.CostCenter.IsSet()
}
// HasCostCenter returns a boolean if a field has been set.
func (o *UserProfile) HasCostCenter() bool {
if o != nil && o.CostCenter.IsSet() {
return true
}
return false
}
// SetCostCenter gets a reference to the given NullableString and assigns it to the CostCenter field.
func (o *UserProfile) SetCostCenter(v string) {
o.CostCenter.Set(&v)
}
// SetCostCenterNil sets the value for CostCenter to be an explicit nil
func (o *UserProfile) SetCostCenterNil() {
o.CostCenter.Set(nil)
}
// UnsetCostCenter ensures that no value is present for CostCenter, not even an explicit nil
func (o *UserProfile) UnsetCostCenter() {
o.CostCenter.Unset()
}
// GetCountryCode returns the CountryCode field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetCountryCode() string {
if o == nil || o.CountryCode.Get() == nil {
var ret string
return ret
}
return *o.CountryCode.Get()
}
// GetCountryCodeOk returns a tuple with the CountryCode 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 *UserProfile) GetCountryCodeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CountryCode.Get(), o.CountryCode.IsSet()
}
// HasCountryCode returns a boolean if a field has been set.
func (o *UserProfile) HasCountryCode() bool {
if o != nil && o.CountryCode.IsSet() {
return true
}
return false
}
// SetCountryCode gets a reference to the given NullableString and assigns it to the CountryCode field.
func (o *UserProfile) SetCountryCode(v string) {
o.CountryCode.Set(&v)
}
// SetCountryCodeNil sets the value for CountryCode to be an explicit nil
func (o *UserProfile) SetCountryCodeNil() {
o.CountryCode.Set(nil)
}
// UnsetCountryCode ensures that no value is present for CountryCode, not even an explicit nil
func (o *UserProfile) UnsetCountryCode() {
o.CountryCode.Unset()
}
// GetDepartment returns the Department field value if set, zero value otherwise.
func (o *UserProfile) GetDepartment() string {
if o == nil || o.Department == nil {
var ret string
return ret
}
return *o.Department
}
// GetDepartmentOk returns a tuple with the Department field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UserProfile) GetDepartmentOk() (*string, bool) {
if o == nil || o.Department == nil {
return nil, false
}
return o.Department, true
}
// HasDepartment returns a boolean if a field has been set.
func (o *UserProfile) HasDepartment() bool {
if o != nil && o.Department != nil {
return true
}
return false
}
// SetDepartment gets a reference to the given string and assigns it to the Department field.
func (o *UserProfile) SetDepartment(v string) {
o.Department = &v
}
// GetDisplayName returns the DisplayName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetDisplayName() string {
if o == nil || o.DisplayName.Get() == nil {
var ret string
return ret
}
return *o.DisplayName.Get()
}
// GetDisplayNameOk returns a tuple with the DisplayName 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 *UserProfile) GetDisplayNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.DisplayName.Get(), o.DisplayName.IsSet()
}
// HasDisplayName returns a boolean if a field has been set.
func (o *UserProfile) HasDisplayName() bool {
if o != nil && o.DisplayName.IsSet() {
return true
}
return false
}
// SetDisplayName gets a reference to the given NullableString and assigns it to the DisplayName field.
func (o *UserProfile) SetDisplayName(v string) {
o.DisplayName.Set(&v)
}
// SetDisplayNameNil sets the value for DisplayName to be an explicit nil
func (o *UserProfile) SetDisplayNameNil() {
o.DisplayName.Set(nil)
}
// UnsetDisplayName ensures that no value is present for DisplayName, not even an explicit nil
func (o *UserProfile) UnsetDisplayName() {
o.DisplayName.Unset()
}
// GetDivision returns the Division field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetDivision() string {
if o == nil || o.Division.Get() == nil {
var ret string
return ret
}
return *o.Division.Get()
}
// GetDivisionOk returns a tuple with the Division 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 *UserProfile) GetDivisionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Division.Get(), o.Division.IsSet()
}
// HasDivision returns a boolean if a field has been set.
func (o *UserProfile) HasDivision() bool {
if o != nil && o.Division.IsSet() {
return true
}
return false
}
// SetDivision gets a reference to the given NullableString and assigns it to the Division field.
func (o *UserProfile) SetDivision(v string) {
o.Division.Set(&v)
}
// SetDivisionNil sets the value for Division to be an explicit nil
func (o *UserProfile) SetDivisionNil() {
o.Division.Set(nil)
}
// UnsetDivision ensures that no value is present for Division, not even an explicit nil
func (o *UserProfile) UnsetDivision() {
o.Division.Unset()
}
// GetEmail returns the Email field value if set, zero value otherwise.
func (o *UserProfile) GetEmail() string {
if o == nil || o.Email == nil {
var ret string
return ret
}
return *o.Email
}
// GetEmailOk returns a tuple with the Email field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UserProfile) GetEmailOk() (*string, bool) {
if o == nil || o.Email == nil {
return nil, false
}
return o.Email, true
}
// HasEmail returns a boolean if a field has been set.
func (o *UserProfile) HasEmail() bool {
if o != nil && o.Email != nil {
return true
}
return false
}
// SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *UserProfile) SetEmail(v string) {
o.Email = &v
}
// GetEmployeeNumber returns the EmployeeNumber field value if set, zero value otherwise.
func (o *UserProfile) GetEmployeeNumber() string {
if o == nil || o.EmployeeNumber == nil {
var ret string
return ret
}
return *o.EmployeeNumber
}
// GetEmployeeNumberOk returns a tuple with the EmployeeNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UserProfile) GetEmployeeNumberOk() (*string, bool) {
if o == nil || o.EmployeeNumber == nil {
return nil, false
}
return o.EmployeeNumber, true
}
// HasEmployeeNumber returns a boolean if a field has been set.
func (o *UserProfile) HasEmployeeNumber() bool {
if o != nil && o.EmployeeNumber != nil {
return true
}
return false
}
// SetEmployeeNumber gets a reference to the given string and assigns it to the EmployeeNumber field.
func (o *UserProfile) SetEmployeeNumber(v string) {
o.EmployeeNumber = &v
}
// GetFirstName returns the FirstName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetFirstName() string {
if o == nil || o.FirstName.Get() == nil {
var ret string
return ret
}
return *o.FirstName.Get()
}
// GetFirstNameOk returns a tuple with the FirstName 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 *UserProfile) GetFirstNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.FirstName.Get(), o.FirstName.IsSet()
}
// HasFirstName returns a boolean if a field has been set.
func (o *UserProfile) HasFirstName() bool {
if o != nil && o.FirstName.IsSet() {
return true
}
return false
}
// SetFirstName gets a reference to the given NullableString and assigns it to the FirstName field.
func (o *UserProfile) SetFirstName(v string) {
o.FirstName.Set(&v)
}
// SetFirstNameNil sets the value for FirstName to be an explicit nil
func (o *UserProfile) SetFirstNameNil() {
o.FirstName.Set(nil)
}
// UnsetFirstName ensures that no value is present for FirstName, not even an explicit nil
func (o *UserProfile) UnsetFirstName() {
o.FirstName.Unset()
}
// GetHonorificPrefix returns the HonorificPrefix field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetHonorificPrefix() string {
if o == nil || o.HonorificPrefix.Get() == nil {
var ret string
return ret
}
return *o.HonorificPrefix.Get()
}
// GetHonorificPrefixOk returns a tuple with the HonorificPrefix 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 *UserProfile) GetHonorificPrefixOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.HonorificPrefix.Get(), o.HonorificPrefix.IsSet()
}
// HasHonorificPrefix returns a boolean if a field has been set.
func (o *UserProfile) HasHonorificPrefix() bool {
if o != nil && o.HonorificPrefix.IsSet() {
return true
}
return false
}
// SetHonorificPrefix gets a reference to the given NullableString and assigns it to the HonorificPrefix field.
func (o *UserProfile) SetHonorificPrefix(v string) {
o.HonorificPrefix.Set(&v)
}
// SetHonorificPrefixNil sets the value for HonorificPrefix to be an explicit nil
func (o *UserProfile) SetHonorificPrefixNil() {
o.HonorificPrefix.Set(nil)
}
// UnsetHonorificPrefix ensures that no value is present for HonorificPrefix, not even an explicit nil
func (o *UserProfile) UnsetHonorificPrefix() {
o.HonorificPrefix.Unset()
}
// GetHonorificSuffix returns the HonorificSuffix field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetHonorificSuffix() string {
if o == nil || o.HonorificSuffix.Get() == nil {
var ret string
return ret
}
return *o.HonorificSuffix.Get()
}
// GetHonorificSuffixOk returns a tuple with the HonorificSuffix 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 *UserProfile) GetHonorificSuffixOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.HonorificSuffix.Get(), o.HonorificSuffix.IsSet()
}
// HasHonorificSuffix returns a boolean if a field has been set.
func (o *UserProfile) HasHonorificSuffix() bool {
if o != nil && o.HonorificSuffix.IsSet() {
return true
}
return false
}
// SetHonorificSuffix gets a reference to the given NullableString and assigns it to the HonorificSuffix field.
func (o *UserProfile) SetHonorificSuffix(v string) {
o.HonorificSuffix.Set(&v)
}
// SetHonorificSuffixNil sets the value for HonorificSuffix to be an explicit nil
func (o *UserProfile) SetHonorificSuffixNil() {
o.HonorificSuffix.Set(nil)
}
// UnsetHonorificSuffix ensures that no value is present for HonorificSuffix, not even an explicit nil
func (o *UserProfile) UnsetHonorificSuffix() {
o.HonorificSuffix.Unset()
}
// GetLastName returns the LastName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetLastName() string {
if o == nil || o.LastName.Get() == nil {
var ret string
return ret
}
return *o.LastName.Get()
}
// GetLastNameOk returns a tuple with the LastName 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 *UserProfile) GetLastNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.LastName.Get(), o.LastName.IsSet()
}
// HasLastName returns a boolean if a field has been set.
func (o *UserProfile) HasLastName() bool {
if o != nil && o.LastName.IsSet() {
return true
}
return false
}
// SetLastName gets a reference to the given NullableString and assigns it to the LastName field.
func (o *UserProfile) SetLastName(v string) {
o.LastName.Set(&v)
}
// SetLastNameNil sets the value for LastName to be an explicit nil
func (o *UserProfile) SetLastNameNil() {
o.LastName.Set(nil)
}
// UnsetLastName ensures that no value is present for LastName, not even an explicit nil
func (o *UserProfile) UnsetLastName() {
o.LastName.Unset()
}
// GetLocale returns the Locale field value if set, zero value otherwise.
func (o *UserProfile) GetLocale() string {
if o == nil || o.Locale == nil {
var ret string
return ret
}
return *o.Locale
}
// GetLocaleOk returns a tuple with the Locale field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UserProfile) GetLocaleOk() (*string, bool) {
if o == nil || o.Locale == nil {
return nil, false
}
return o.Locale, true
}
// HasLocale returns a boolean if a field has been set.
func (o *UserProfile) HasLocale() bool {
if o != nil && o.Locale != nil {
return true
}
return false
}
// SetLocale gets a reference to the given string and assigns it to the Locale field.
func (o *UserProfile) SetLocale(v string) {
o.Locale = &v
}
// GetLogin returns the Login field value if set, zero value otherwise.
func (o *UserProfile) GetLogin() string {
if o == nil || o.Login == nil {
var ret string
return ret
}
return *o.Login
}
// GetLoginOk returns a tuple with the Login field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UserProfile) GetLoginOk() (*string, bool) {
if o == nil || o.Login == nil {
return nil, false
}
return o.Login, true
}
// HasLogin returns a boolean if a field has been set.
func (o *UserProfile) HasLogin() bool {
if o != nil && o.Login != nil {
return true
}
return false
}
// SetLogin gets a reference to the given string and assigns it to the Login field.
func (o *UserProfile) SetLogin(v string) {
o.Login = &v
}
// GetManager returns the Manager field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetManager() string {
if o == nil || o.Manager.Get() == nil {
var ret string
return ret
}
return *o.Manager.Get()
}
// GetManagerOk returns a tuple with the Manager 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 *UserProfile) GetManagerOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Manager.Get(), o.Manager.IsSet()
}
// HasManager returns a boolean if a field has been set.
func (o *UserProfile) HasManager() bool {
if o != nil && o.Manager.IsSet() {
return true
}
return false
}
// SetManager gets a reference to the given NullableString and assigns it to the Manager field.
func (o *UserProfile) SetManager(v string) {
o.Manager.Set(&v)
}
// SetManagerNil sets the value for Manager to be an explicit nil
func (o *UserProfile) SetManagerNil() {
o.Manager.Set(nil)
}
// UnsetManager ensures that no value is present for Manager, not even an explicit nil
func (o *UserProfile) UnsetManager() {
o.Manager.Unset()
}
// GetManagerId returns the ManagerId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetManagerId() string {
if o == nil || o.ManagerId.Get() == nil {
var ret string
return ret
}
return *o.ManagerId.Get()
}
// GetManagerIdOk returns a tuple with the ManagerId 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 *UserProfile) GetManagerIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ManagerId.Get(), o.ManagerId.IsSet()
}
// HasManagerId returns a boolean if a field has been set.
func (o *UserProfile) HasManagerId() bool {
if o != nil && o.ManagerId.IsSet() {
return true
}
return false
}
// SetManagerId gets a reference to the given NullableString and assigns it to the ManagerId field.
func (o *UserProfile) SetManagerId(v string) {
o.ManagerId.Set(&v)
}
// SetManagerIdNil sets the value for ManagerId to be an explicit nil
func (o *UserProfile) SetManagerIdNil() {
o.ManagerId.Set(nil)
}
// UnsetManagerId ensures that no value is present for ManagerId, not even an explicit nil
func (o *UserProfile) UnsetManagerId() {
o.ManagerId.Unset()
}
// GetMiddleName returns the MiddleName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetMiddleName() string {
if o == nil || o.MiddleName.Get() == nil {
var ret string
return ret
}
return *o.MiddleName.Get()
}
// GetMiddleNameOk returns a tuple with the MiddleName 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 *UserProfile) GetMiddleNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.MiddleName.Get(), o.MiddleName.IsSet()
}
// HasMiddleName returns a boolean if a field has been set.
func (o *UserProfile) HasMiddleName() bool {
if o != nil && o.MiddleName.IsSet() {
return true
}
return false
}
// SetMiddleName gets a reference to the given NullableString and assigns it to the MiddleName field.
func (o *UserProfile) SetMiddleName(v string) {
o.MiddleName.Set(&v)
}
// SetMiddleNameNil sets the value for MiddleName to be an explicit nil
func (o *UserProfile) SetMiddleNameNil() {
o.MiddleName.Set(nil)
}
// UnsetMiddleName ensures that no value is present for MiddleName, not even an explicit nil
func (o *UserProfile) UnsetMiddleName() {
o.MiddleName.Unset()
}
// GetMobilePhone returns the MobilePhone field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetMobilePhone() string {
if o == nil || o.MobilePhone.Get() == nil {
var ret string
return ret
}
return *o.MobilePhone.Get()
}
// GetMobilePhoneOk returns a tuple with the MobilePhone 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 *UserProfile) GetMobilePhoneOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.MobilePhone.Get(), o.MobilePhone.IsSet()
}
// HasMobilePhone returns a boolean if a field has been set.
func (o *UserProfile) HasMobilePhone() bool {
if o != nil && o.MobilePhone.IsSet() {
return true
}
return false
}
// SetMobilePhone gets a reference to the given NullableString and assigns it to the MobilePhone field.
func (o *UserProfile) SetMobilePhone(v string) {
o.MobilePhone.Set(&v)
}
// SetMobilePhoneNil sets the value for MobilePhone to be an explicit nil
func (o *UserProfile) SetMobilePhoneNil() {
o.MobilePhone.Set(nil)
}
// UnsetMobilePhone ensures that no value is present for MobilePhone, not even an explicit nil
func (o *UserProfile) UnsetMobilePhone() {
o.MobilePhone.Unset()
}
// GetNickName returns the NickName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetNickName() string {
if o == nil || o.NickName.Get() == nil {
var ret string
return ret
}
return *o.NickName.Get()
}
// GetNickNameOk returns a tuple with the NickName 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 *UserProfile) GetNickNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.NickName.Get(), o.NickName.IsSet()
}
// HasNickName returns a boolean if a field has been set.
func (o *UserProfile) HasNickName() bool {
if o != nil && o.NickName.IsSet() {
return true
}
return false
}
// SetNickName gets a reference to the given NullableString and assigns it to the NickName field.
func (o *UserProfile) SetNickName(v string) {
o.NickName.Set(&v)
}
// SetNickNameNil sets the value for NickName to be an explicit nil
func (o *UserProfile) SetNickNameNil() {
o.NickName.Set(nil)
}
// UnsetNickName ensures that no value is present for NickName, not even an explicit nil
func (o *UserProfile) UnsetNickName() {
o.NickName.Unset()
}
// GetOrganization returns the Organization field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetOrganization() string {
if o == nil || o.Organization.Get() == nil {
var ret string
return ret
}
return *o.Organization.Get()
}
// GetOrganizationOk returns a tuple with the Organization 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 *UserProfile) GetOrganizationOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Organization.Get(), o.Organization.IsSet()
}
// HasOrganization returns a boolean if a field has been set.
func (o *UserProfile) HasOrganization() bool {
if o != nil && o.Organization.IsSet() {
return true
}
return false
}
// SetOrganization gets a reference to the given NullableString and assigns it to the Organization field.
func (o *UserProfile) SetOrganization(v string) {
o.Organization.Set(&v)
}
// SetOrganizationNil sets the value for Organization to be an explicit nil
func (o *UserProfile) SetOrganizationNil() {
o.Organization.Set(nil)
}
// UnsetOrganization ensures that no value is present for Organization, not even an explicit nil
func (o *UserProfile) UnsetOrganization() {
o.Organization.Unset()
}
// GetPostalAddress returns the PostalAddress field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetPostalAddress() string {
if o == nil || o.PostalAddress.Get() == nil {
var ret string
return ret
}
return *o.PostalAddress.Get()
}
// GetPostalAddressOk returns a tuple with the PostalAddress 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 *UserProfile) GetPostalAddressOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.PostalAddress.Get(), o.PostalAddress.IsSet()
}
// HasPostalAddress returns a boolean if a field has been set.
func (o *UserProfile) HasPostalAddress() bool {
if o != nil && o.PostalAddress.IsSet() {
return true
}
return false
}
// SetPostalAddress gets a reference to the given NullableString and assigns it to the PostalAddress field.
func (o *UserProfile) SetPostalAddress(v string) {
o.PostalAddress.Set(&v)
}
// SetPostalAddressNil sets the value for PostalAddress to be an explicit nil
func (o *UserProfile) SetPostalAddressNil() {
o.PostalAddress.Set(nil)
}
// UnsetPostalAddress ensures that no value is present for PostalAddress, not even an explicit nil
func (o *UserProfile) UnsetPostalAddress() {
o.PostalAddress.Unset()
}
// GetPreferredLanguage returns the PreferredLanguage field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UserProfile) GetPreferredLanguage() string {
if o == nil || o.PreferredLanguage.Get() == nil {
var ret string
return ret
}
return *o.PreferredLanguage.Get()
}
// GetPreferredLanguageOk returns a tuple with the PreferredLanguage 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 *UserProfile) GetPreferredLanguageOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.PreferredLanguage.Get(), o.PreferredLanguage.IsSet()
}
// HasPreferredLanguage returns a boolean if a field has been set.
func (o *UserProfile) HasPreferredLanguage() bool {
if o != nil && o.PreferredLanguage.IsSet() {
return true
}
return false
}
// SetPreferredLanguage gets a reference to the given NullableString and assigns it to the PreferredLanguage field.
func (o *UserProfile) SetPreferredLanguage(v string) {
o.PreferredLanguage.Set(&v)
}
// SetPreferredLanguageNil sets the value for PreferredLanguage to be an explicit nil
func (o *UserProfile) SetPreferredLanguageNil() {
o.PreferredLanguage.Set(nil)