github.com/optim-corp/cios-golang-sdk@v0.5.1/cios/model_group_invite_request.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  // GroupInviteRequest struct for GroupInviteRequest
    18  type GroupInviteRequest struct {
    19  	Email *string `json:"email,omitempty"`
    20  }
    21  
    22  // NewGroupInviteRequest instantiates a new GroupInviteRequest object
    23  // This constructor will assign default values to properties that have it defined,
    24  // and makes sure properties required by API are set, but the set of arguments
    25  // will change when the set of required properties is changed
    26  func NewGroupInviteRequest() *GroupInviteRequest {
    27  	this := GroupInviteRequest{}
    28  	return &this
    29  }
    30  
    31  // NewGroupInviteRequestWithDefaults instantiates a new GroupInviteRequest object
    32  // This constructor will only assign default values to properties that have it defined,
    33  // but it doesn't guarantee that properties required by API are set
    34  func NewGroupInviteRequestWithDefaults() *GroupInviteRequest {
    35  	this := GroupInviteRequest{}
    36  	return &this
    37  }
    38  
    39  // GetEmail returns the Email field value if set, zero value otherwise.
    40  func (o *GroupInviteRequest) GetEmail() string {
    41  	if o == nil || o.Email == nil {
    42  		var ret string
    43  		return ret
    44  	}
    45  	return *o.Email
    46  }
    47  
    48  // GetEmailOk returns a tuple with the Email field value if set, nil otherwise
    49  // and a boolean to check if the value has been set.
    50  func (o *GroupInviteRequest) GetEmailOk() (*string, bool) {
    51  	if o == nil || o.Email == nil {
    52  		return nil, false
    53  	}
    54  	return o.Email, true
    55  }
    56  
    57  // HasEmail returns a boolean if a field has been set.
    58  func (o *GroupInviteRequest) HasEmail() bool {
    59  	if o != nil && o.Email != nil {
    60  		return true
    61  	}
    62  
    63  	return false
    64  }
    65  
    66  // SetEmail gets a reference to the given string and assigns it to the Email field.
    67  func (o *GroupInviteRequest) SetEmail(v string) {
    68  	o.Email = &v
    69  }
    70  
    71  func (o GroupInviteRequest) MarshalJSON() ([]byte, error) {
    72  	toSerialize := map[string]interface{}{}
    73  	if o.Email != nil {
    74  		toSerialize["email"] = o.Email
    75  	}
    76  	return json.Marshal(toSerialize)
    77  }
    78  
    79  type NullableGroupInviteRequest struct {
    80  	value *GroupInviteRequest
    81  	isSet bool
    82  }
    83  
    84  func (v NullableGroupInviteRequest) Get() *GroupInviteRequest {
    85  	return v.value
    86  }
    87  
    88  func (v *NullableGroupInviteRequest) Set(val *GroupInviteRequest) {
    89  	v.value = val
    90  	v.isSet = true
    91  }
    92  
    93  func (v NullableGroupInviteRequest) IsSet() bool {
    94  	return v.isSet
    95  }
    96  
    97  func (v *NullableGroupInviteRequest) Unset() {
    98  	v.value = nil
    99  	v.isSet = false
   100  }
   101  
   102  func NewNullableGroupInviteRequest(val *GroupInviteRequest) *NullableGroupInviteRequest {
   103  	return &NullableGroupInviteRequest{value: val, isSet: true}
   104  }
   105  
   106  func (v NullableGroupInviteRequest) MarshalJSON() ([]byte, error) {
   107  	return json.Marshal(v.value)
   108  }
   109  
   110  func (v *NullableGroupInviteRequest) UnmarshalJSON(src []byte) error {
   111  	v.isSet = true
   112  	return json.Unmarshal(src, &v.value)
   113  }
   114  
   115