/* AutoGlue API API for managing K3s clusters across cloud providers API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package autoglue import ( "encoding/json" "time" ) // checks if the ModelsOrganization type satisfies the MappedNullable interface at compile time var _ MappedNullable = &ModelsOrganization{} // ModelsOrganization struct for ModelsOrganization type ModelsOrganization struct { CreatedAt *time.Time `json:"created_at,omitempty"` Domain *string `json:"domain,omitempty"` // example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` } // NewModelsOrganization instantiates a new ModelsOrganization 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 NewModelsOrganization() *ModelsOrganization { this := ModelsOrganization{} return &this } // NewModelsOrganizationWithDefaults instantiates a new ModelsOrganization 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 NewModelsOrganizationWithDefaults() *ModelsOrganization { this := ModelsOrganization{} return &this } // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. func (o *ModelsOrganization) 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 *ModelsOrganization) 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 *ModelsOrganization) 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 *ModelsOrganization) SetCreatedAt(v time.Time) { o.CreatedAt = &v } // GetDomain returns the Domain field value if set, zero value otherwise. func (o *ModelsOrganization) GetDomain() string { if o == nil || IsNil(o.Domain) { var ret string return ret } return *o.Domain } // GetDomainOk returns a tuple with the Domain field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ModelsOrganization) GetDomainOk() (*string, bool) { if o == nil || IsNil(o.Domain) { return nil, false } return o.Domain, true } // HasDomain returns a boolean if a field has been set. func (o *ModelsOrganization) HasDomain() bool { if o != nil && !IsNil(o.Domain) { return true } return false } // SetDomain gets a reference to the given string and assigns it to the Domain field. func (o *ModelsOrganization) SetDomain(v string) { o.Domain = &v } // GetId returns the Id field value if set, zero value otherwise. func (o *ModelsOrganization) GetId() string { if o == nil || IsNil(o.Id) { var ret string return ret } return *o.Id } // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ModelsOrganization) GetIdOk() (*string, bool) { if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true } // HasId returns a boolean if a field has been set. func (o *ModelsOrganization) HasId() bool { if o != nil && !IsNil(o.Id) { return true } return false } // SetId gets a reference to the given string and assigns it to the Id field. func (o *ModelsOrganization) SetId(v string) { o.Id = &v } // GetName returns the Name field value if set, zero value otherwise. func (o *ModelsOrganization) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret } return *o.Name } // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ModelsOrganization) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true } // HasName returns a boolean if a field has been set. func (o *ModelsOrganization) HasName() bool { if o != nil && !IsNil(o.Name) { return true } return false } // SetName gets a reference to the given string and assigns it to the Name field. func (o *ModelsOrganization) SetName(v string) { o.Name = &v } // GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. func (o *ModelsOrganization) 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 *ModelsOrganization) 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 *ModelsOrganization) 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 *ModelsOrganization) SetUpdatedAt(v time.Time) { o.UpdatedAt = &v } func (o ModelsOrganization) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o ModelsOrganization) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.CreatedAt) { toSerialize["created_at"] = o.CreatedAt } if !IsNil(o.Domain) { toSerialize["domain"] = o.Domain } if !IsNil(o.Id) { toSerialize["id"] = o.Id } if !IsNil(o.Name) { toSerialize["name"] = o.Name } if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } return toSerialize, nil } type NullableModelsOrganization struct { value *ModelsOrganization isSet bool } func (v NullableModelsOrganization) Get() *ModelsOrganization { return v.value } func (v *NullableModelsOrganization) Set(val *ModelsOrganization) { v.value = val v.isSet = true } func (v NullableModelsOrganization) IsSet() bool { return v.isSet } func (v *NullableModelsOrganization) Unset() { v.value = nil v.isSet = false } func NewNullableModelsOrganization(val *ModelsOrganization) *NullableModelsOrganization { return &NullableModelsOrganization{value: val, isSet: true} } func (v NullableModelsOrganization) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableModelsOrganization) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }