github.com/optim-corp/cios-golang-sdk@v0.5.1/cios/model_member_info_profile.go (about)

     1  /*
     2   * Cios Openapi
     3   *
     4   * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
     5   *
     6   * API version: 1.0.1
     7   */
     8  
     9  // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
    10  
    11  package cios
    12  
    13  import (
    14  	"encoding/json"
    15  )
    16  
    17  // MemberInfoProfile struct for MemberInfoProfile
    18  type MemberInfoProfile struct {
    19  	Type *string `json:"type,omitempty"`
    20  	FamilyName *string `json:"family_name,omitempty"`
    21  	GivenName *string `json:"given_name,omitempty"`
    22  	PhoneticFamilyName *string `json:"phonetic_family_name,omitempty"`
    23  	PhoneticGivenName *string `json:"phonetic_given_name,omitempty"`
    24  	Email *string `json:"email,omitempty"`
    25  	Emails *[]string `json:"emails,omitempty"`
    26  	Picture *string `json:"picture,omitempty"`
    27  	PhoneNumber *string `json:"phone_number,omitempty"`
    28  	PhoneNumber2 *string `json:"phone_number_2,omitempty"`
    29  	Language *string `json:"language,omitempty"`
    30  	Address *GroupAddress `json:"address,omitempty"`
    31  }
    32  
    33  // NewMemberInfoProfile instantiates a new MemberInfoProfile object
    34  // This constructor will assign default values to properties that have it defined,
    35  // and makes sure properties required by API are set, but the set of arguments
    36  // will change when the set of required properties is changed
    37  func NewMemberInfoProfile() *MemberInfoProfile {
    38  	this := MemberInfoProfile{}
    39  	return &this
    40  }
    41  
    42  // NewMemberInfoProfileWithDefaults instantiates a new MemberInfoProfile object
    43  // This constructor will only assign default values to properties that have it defined,
    44  // but it doesn't guarantee that properties required by API are set
    45  func NewMemberInfoProfileWithDefaults() *MemberInfoProfile {
    46  	this := MemberInfoProfile{}
    47  	return &this
    48  }
    49  
    50  // GetType returns the Type field value if set, zero value otherwise.
    51  func (o *MemberInfoProfile) GetType() string {
    52  	if o == nil || o.Type == nil {
    53  		var ret string
    54  		return ret
    55  	}
    56  	return *o.Type
    57  }
    58  
    59  // GetTypeOk returns a tuple with the Type field value if set, nil otherwise
    60  // and a boolean to check if the value has been set.
    61  func (o *MemberInfoProfile) GetTypeOk() (*string, bool) {
    62  	if o == nil || o.Type == nil {
    63  		return nil, false
    64  	}
    65  	return o.Type, true
    66  }
    67  
    68  // HasType returns a boolean if a field has been set.
    69  func (o *MemberInfoProfile) HasType() bool {
    70  	if o != nil && o.Type != nil {
    71  		return true
    72  	}
    73  
    74  	return false
    75  }
    76  
    77  // SetType gets a reference to the given string and assigns it to the Type field.
    78  func (o *MemberInfoProfile) SetType(v string) {
    79  	o.Type = &v
    80  }
    81  
    82  // GetFamilyName returns the FamilyName field value if set, zero value otherwise.
    83  func (o *MemberInfoProfile) GetFamilyName() string {
    84  	if o == nil || o.FamilyName == nil {
    85  		var ret string
    86  		return ret
    87  	}
    88  	return *o.FamilyName
    89  }
    90  
    91  // GetFamilyNameOk returns a tuple with the FamilyName field value if set, nil otherwise
    92  // and a boolean to check if the value has been set.
    93  func (o *MemberInfoProfile) GetFamilyNameOk() (*string, bool) {
    94  	if o == nil || o.FamilyName == nil {
    95  		return nil, false
    96  	}
    97  	return o.FamilyName, true
    98  }
    99  
   100  // HasFamilyName returns a boolean if a field has been set.
   101  func (o *MemberInfoProfile) HasFamilyName() bool {
   102  	if o != nil && o.FamilyName != nil {
   103  		return true
   104  	}
   105  
   106  	return false
   107  }
   108  
   109  // SetFamilyName gets a reference to the given string and assigns it to the FamilyName field.
   110  func (o *MemberInfoProfile) SetFamilyName(v string) {
   111  	o.FamilyName = &v
   112  }
   113  
   114  // GetGivenName returns the GivenName field value if set, zero value otherwise.
   115  func (o *MemberInfoProfile) GetGivenName() string {
   116  	if o == nil || o.GivenName == nil {
   117  		var ret string
   118  		return ret
   119  	}
   120  	return *o.GivenName
   121  }
   122  
   123  // GetGivenNameOk returns a tuple with the GivenName field value if set, nil otherwise
   124  // and a boolean to check if the value has been set.
   125  func (o *MemberInfoProfile) GetGivenNameOk() (*string, bool) {
   126  	if o == nil || o.GivenName == nil {
   127  		return nil, false
   128  	}
   129  	return o.GivenName, true
   130  }
   131  
   132  // HasGivenName returns a boolean if a field has been set.
   133  func (o *MemberInfoProfile) HasGivenName() bool {
   134  	if o != nil && o.GivenName != nil {
   135  		return true
   136  	}
   137  
   138  	return false
   139  }
   140  
   141  // SetGivenName gets a reference to the given string and assigns it to the GivenName field.
   142  func (o *MemberInfoProfile) SetGivenName(v string) {
   143  	o.GivenName = &v
   144  }
   145  
   146  // GetPhoneticFamilyName returns the PhoneticFamilyName field value if set, zero value otherwise.
   147  func (o *MemberInfoProfile) GetPhoneticFamilyName() string {
   148  	if o == nil || o.PhoneticFamilyName == nil {
   149  		var ret string
   150  		return ret
   151  	}
   152  	return *o.PhoneticFamilyName
   153  }
   154  
   155  // GetPhoneticFamilyNameOk returns a tuple with the PhoneticFamilyName field value if set, nil otherwise
   156  // and a boolean to check if the value has been set.
   157  func (o *MemberInfoProfile) GetPhoneticFamilyNameOk() (*string, bool) {
   158  	if o == nil || o.PhoneticFamilyName == nil {
   159  		return nil, false
   160  	}
   161  	return o.PhoneticFamilyName, true
   162  }
   163  
   164  // HasPhoneticFamilyName returns a boolean if a field has been set.
   165  func (o *MemberInfoProfile) HasPhoneticFamilyName() bool {
   166  	if o != nil && o.PhoneticFamilyName != nil {
   167  		return true
   168  	}
   169  
   170  	return false
   171  }
   172  
   173  // SetPhoneticFamilyName gets a reference to the given string and assigns it to the PhoneticFamilyName field.
   174  func (o *MemberInfoProfile) SetPhoneticFamilyName(v string) {
   175  	o.PhoneticFamilyName = &v
   176  }
   177  
   178  // GetPhoneticGivenName returns the PhoneticGivenName field value if set, zero value otherwise.
   179  func (o *MemberInfoProfile) GetPhoneticGivenName() string {
   180  	if o == nil || o.PhoneticGivenName == nil {
   181  		var ret string
   182  		return ret
   183  	}
   184  	return *o.PhoneticGivenName
   185  }
   186  
   187  // GetPhoneticGivenNameOk returns a tuple with the PhoneticGivenName field value if set, nil otherwise
   188  // and a boolean to check if the value has been set.
   189  func (o *MemberInfoProfile) GetPhoneticGivenNameOk() (*string, bool) {
   190  	if o == nil || o.PhoneticGivenName == nil {
   191  		return nil, false
   192  	}
   193  	return o.PhoneticGivenName, true
   194  }
   195  
   196  // HasPhoneticGivenName returns a boolean if a field has been set.
   197  func (o *MemberInfoProfile) HasPhoneticGivenName() bool {
   198  	if o != nil && o.PhoneticGivenName != nil {
   199  		return true
   200  	}
   201  
   202  	return false
   203  }
   204  
   205  // SetPhoneticGivenName gets a reference to the given string and assigns it to the PhoneticGivenName field.
   206  func (o *MemberInfoProfile) SetPhoneticGivenName(v string) {
   207  	o.PhoneticGivenName = &v
   208  }
   209  
   210  // GetEmail returns the Email field value if set, zero value otherwise.
   211  func (o *MemberInfoProfile) GetEmail() string {
   212  	if o == nil || o.Email == nil {
   213  		var ret string
   214  		return ret
   215  	}
   216  	return *o.Email
   217  }
   218  
   219  // GetEmailOk returns a tuple with the Email field value if set, nil otherwise
   220  // and a boolean to check if the value has been set.
   221  func (o *MemberInfoProfile) GetEmailOk() (*string, bool) {
   222  	if o == nil || o.Email == nil {
   223  		return nil, false
   224  	}
   225  	return o.Email, true
   226  }
   227  
   228  // HasEmail returns a boolean if a field has been set.
   229  func (o *MemberInfoProfile) HasEmail() bool {
   230  	if o != nil && o.Email != nil {
   231  		return true
   232  	}
   233  
   234  	return false
   235  }
   236  
   237  // SetEmail gets a reference to the given string and assigns it to the Email field.
   238  func (o *MemberInfoProfile) SetEmail(v string) {
   239  	o.Email = &v
   240  }
   241  
   242  // GetEmails returns the Emails field value if set, zero value otherwise.
   243  func (o *MemberInfoProfile) GetEmails() []string {
   244  	if o == nil || o.Emails == nil {
   245  		var ret []string
   246  		return ret
   247  	}
   248  	return *o.Emails
   249  }
   250  
   251  // GetEmailsOk returns a tuple with the Emails field value if set, nil otherwise
   252  // and a boolean to check if the value has been set.
   253  func (o *MemberInfoProfile) GetEmailsOk() (*[]string, bool) {
   254  	if o == nil || o.Emails == nil {
   255  		return nil, false
   256  	}
   257  	return o.Emails, true
   258  }
   259  
   260  // HasEmails returns a boolean if a field has been set.
   261  func (o *MemberInfoProfile) HasEmails() bool {
   262  	if o != nil && o.Emails != nil {
   263  		return true
   264  	}
   265  
   266  	return false
   267  }
   268  
   269  // SetEmails gets a reference to the given []string and assigns it to the Emails field.
   270  func (o *MemberInfoProfile) SetEmails(v []string) {
   271  	o.Emails = &v
   272  }
   273  
   274  // GetPicture returns the Picture field value if set, zero value otherwise.
   275  func (o *MemberInfoProfile) GetPicture() string {
   276  	if o == nil || o.Picture == nil {
   277  		var ret string
   278  		return ret
   279  	}
   280  	return *o.Picture
   281  }
   282  
   283  // GetPictureOk returns a tuple with the Picture field value if set, nil otherwise
   284  // and a boolean to check if the value has been set.
   285  func (o *MemberInfoProfile) GetPictureOk() (*string, bool) {
   286  	if o == nil || o.Picture == nil {
   287  		return nil, false
   288  	}
   289  	return o.Picture, true
   290  }
   291  
   292  // HasPicture returns a boolean if a field has been set.
   293  func (o *MemberInfoProfile) HasPicture() bool {
   294  	if o != nil && o.Picture != nil {
   295  		return true
   296  	}
   297  
   298  	return false
   299  }
   300  
   301  // SetPicture gets a reference to the given string and assigns it to the Picture field.
   302  func (o *MemberInfoProfile) SetPicture(v string) {
   303  	o.Picture = &v
   304  }
   305  
   306  // GetPhoneNumber returns the PhoneNumber field value if set, zero value otherwise.
   307  func (o *MemberInfoProfile) GetPhoneNumber() string {
   308  	if o == nil || o.PhoneNumber == nil {
   309  		var ret string
   310  		return ret
   311  	}
   312  	return *o.PhoneNumber
   313  }
   314  
   315  // GetPhoneNumberOk returns a tuple with the PhoneNumber field value if set, nil otherwise
   316  // and a boolean to check if the value has been set.
   317  func (o *MemberInfoProfile) GetPhoneNumberOk() (*string, bool) {
   318  	if o == nil || o.PhoneNumber == nil {
   319  		return nil, false
   320  	}
   321  	return o.PhoneNumber, true
   322  }
   323  
   324  // HasPhoneNumber returns a boolean if a field has been set.
   325  func (o *MemberInfoProfile) HasPhoneNumber() bool {
   326  	if o != nil && o.PhoneNumber != nil {
   327  		return true
   328  	}
   329  
   330  	return false
   331  }
   332  
   333  // SetPhoneNumber gets a reference to the given string and assigns it to the PhoneNumber field.
   334  func (o *MemberInfoProfile) SetPhoneNumber(v string) {
   335  	o.PhoneNumber = &v
   336  }
   337  
   338  // GetPhoneNumber2 returns the PhoneNumber2 field value if set, zero value otherwise.
   339  func (o *MemberInfoProfile) GetPhoneNumber2() string {
   340  	if o == nil || o.PhoneNumber2 == nil {
   341  		var ret string
   342  		return ret
   343  	}
   344  	return *o.PhoneNumber2
   345  }
   346  
   347  // GetPhoneNumber2Ok returns a tuple with the PhoneNumber2 field value if set, nil otherwise
   348  // and a boolean to check if the value has been set.
   349  func (o *MemberInfoProfile) GetPhoneNumber2Ok() (*string, bool) {
   350  	if o == nil || o.PhoneNumber2 == nil {
   351  		return nil, false
   352  	}
   353  	return o.PhoneNumber2, true
   354  }
   355  
   356  // HasPhoneNumber2 returns a boolean if a field has been set.
   357  func (o *MemberInfoProfile) HasPhoneNumber2() bool {
   358  	if o != nil && o.PhoneNumber2 != nil {
   359  		return true
   360  	}
   361  
   362  	return false
   363  }
   364  
   365  // SetPhoneNumber2 gets a reference to the given string and assigns it to the PhoneNumber2 field.
   366  func (o *MemberInfoProfile) SetPhoneNumber2(v string) {
   367  	o.PhoneNumber2 = &v
   368  }
   369  
   370  // GetLanguage returns the Language field value if set, zero value otherwise.
   371  func (o *MemberInfoProfile) GetLanguage() string {
   372  	if o == nil || o.Language == nil {
   373  		var ret string
   374  		return ret
   375  	}
   376  	return *o.Language
   377  }
   378  
   379  // GetLanguageOk returns a tuple with the Language field value if set, nil otherwise
   380  // and a boolean to check if the value has been set.
   381  func (o *MemberInfoProfile) GetLanguageOk() (*string, bool) {
   382  	if o == nil || o.Language == nil {
   383  		return nil, false
   384  	}
   385  	return o.Language, true
   386  }
   387  
   388  // HasLanguage returns a boolean if a field has been set.
   389  func (o *MemberInfoProfile) HasLanguage() bool {
   390  	if o != nil && o.Language != nil {
   391  		return true
   392  	}
   393  
   394  	return false
   395  }
   396  
   397  // SetLanguage gets a reference to the given string and assigns it to the Language field.
   398  func (o *MemberInfoProfile) SetLanguage(v string) {
   399  	o.Language = &v
   400  }
   401  
   402  // GetAddress returns the Address field value if set, zero value otherwise.
   403  func (o *MemberInfoProfile) GetAddress() GroupAddress {
   404  	if o == nil || o.Address == nil {
   405  		var ret GroupAddress
   406  		return ret
   407  	}
   408  	return *o.Address
   409  }
   410  
   411  // GetAddressOk returns a tuple with the Address field value if set, nil otherwise
   412  // and a boolean to check if the value has been set.
   413  func (o *MemberInfoProfile) GetAddressOk() (*GroupAddress, bool) {
   414  	if o == nil || o.Address == nil {
   415  		return nil, false
   416  	}
   417  	return o.Address, true
   418  }
   419  
   420  // HasAddress returns a boolean if a field has been set.
   421  func (o *MemberInfoProfile) HasAddress() bool {
   422  	if o != nil && o.Address != nil {
   423  		return true
   424  	}
   425  
   426  	return false
   427  }
   428  
   429  // SetAddress gets a reference to the given GroupAddress and assigns it to the Address field.
   430  func (o *MemberInfoProfile) SetAddress(v GroupAddress) {
   431  	o.Address = &v
   432  }
   433  
   434  func (o MemberInfoProfile) MarshalJSON() ([]byte, error) {
   435  	toSerialize := map[string]interface{}{}
   436  	if o.Type != nil {
   437  		toSerialize["type"] = o.Type
   438  	}
   439  	if o.FamilyName != nil {
   440  		toSerialize["family_name"] = o.FamilyName
   441  	}
   442  	if o.GivenName != nil {
   443  		toSerialize["given_name"] = o.GivenName
   444  	}
   445  	if o.PhoneticFamilyName != nil {
   446  		toSerialize["phonetic_family_name"] = o.PhoneticFamilyName
   447  	}
   448  	if o.PhoneticGivenName != nil {
   449  		toSerialize["phonetic_given_name"] = o.PhoneticGivenName
   450  	}
   451  	if o.Email != nil {
   452  		toSerialize["email"] = o.Email
   453  	}
   454  	if o.Emails != nil {
   455  		toSerialize["emails"] = o.Emails
   456  	}
   457  	if o.Picture != nil {
   458  		toSerialize["picture"] = o.Picture
   459  	}
   460  	if o.PhoneNumber != nil {
   461  		toSerialize["phone_number"] = o.PhoneNumber
   462  	}
   463  	if o.PhoneNumber2 != nil {
   464  		toSerialize["phone_number_2"] = o.PhoneNumber2
   465  	}
   466  	if o.Language != nil {
   467  		toSerialize["language"] = o.Language
   468  	}
   469  	if o.Address != nil {
   470  		toSerialize["address"] = o.Address
   471  	}
   472  	return json.Marshal(toSerialize)
   473  }
   474  
   475  type NullableMemberInfoProfile struct {
   476  	value *MemberInfoProfile
   477  	isSet bool
   478  }
   479  
   480  func (v NullableMemberInfoProfile) Get() *MemberInfoProfile {
   481  	return v.value
   482  }
   483  
   484  func (v *NullableMemberInfoProfile) Set(val *MemberInfoProfile) {
   485  	v.value = val
   486  	v.isSet = true
   487  }
   488  
   489  func (v NullableMemberInfoProfile) IsSet() bool {
   490  	return v.isSet
   491  }
   492  
   493  func (v *NullableMemberInfoProfile) Unset() {
   494  	v.value = nil
   495  	v.isSet = false
   496  }
   497  
   498  func NewNullableMemberInfoProfile(val *MemberInfoProfile) *NullableMemberInfoProfile {
   499  	return &NullableMemberInfoProfile{value: val, isSet: true}
   500  }
   501  
   502  func (v NullableMemberInfoProfile) MarshalJSON() ([]byte, error) {
   503  	return json.Marshal(v.value)
   504  }
   505  
   506  func (v *NullableMemberInfoProfile) UnmarshalJSON(src []byte) error {
   507  	v.isSet = true
   508  	return json.Unmarshal(src, &v.value)
   509  }
   510  
   511