Files
autoglue/sdk/go/model_handlers_org_update_req.go
2025-11-02 22:37:41 +00:00

161 lines
4.1 KiB
Go

/*
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"
)
// checks if the HandlersOrgUpdateReq type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &HandlersOrgUpdateReq{}
// HandlersOrgUpdateReq struct for HandlersOrgUpdateReq
type HandlersOrgUpdateReq struct {
Domain *string `json:"domain,omitempty"`
Name *string `json:"name,omitempty"`
}
// NewHandlersOrgUpdateReq instantiates a new HandlersOrgUpdateReq 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 NewHandlersOrgUpdateReq() *HandlersOrgUpdateReq {
this := HandlersOrgUpdateReq{}
return &this
}
// NewHandlersOrgUpdateReqWithDefaults instantiates a new HandlersOrgUpdateReq 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 NewHandlersOrgUpdateReqWithDefaults() *HandlersOrgUpdateReq {
this := HandlersOrgUpdateReq{}
return &this
}
// GetDomain returns the Domain field value if set, zero value otherwise.
func (o *HandlersOrgUpdateReq) 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 *HandlersOrgUpdateReq) 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 *HandlersOrgUpdateReq) 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 *HandlersOrgUpdateReq) SetDomain(v string) {
o.Domain = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *HandlersOrgUpdateReq) 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 *HandlersOrgUpdateReq) 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 *HandlersOrgUpdateReq) 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 *HandlersOrgUpdateReq) SetName(v string) {
o.Name = &v
}
func (o HandlersOrgUpdateReq) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o HandlersOrgUpdateReq) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Domain) {
toSerialize["domain"] = o.Domain
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
return toSerialize, nil
}
type NullableHandlersOrgUpdateReq struct {
value *HandlersOrgUpdateReq
isSet bool
}
func (v NullableHandlersOrgUpdateReq) Get() *HandlersOrgUpdateReq {
return v.value
}
func (v *NullableHandlersOrgUpdateReq) Set(val *HandlersOrgUpdateReq) {
v.value = val
v.isSet = true
}
func (v NullableHandlersOrgUpdateReq) IsSet() bool {
return v.isSet
}
func (v *NullableHandlersOrgUpdateReq) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableHandlersOrgUpdateReq(val *HandlersOrgUpdateReq) *NullableHandlersOrgUpdateReq {
return &NullableHandlersOrgUpdateReq{value: val, isSet: true}
}
func (v NullableHandlersOrgUpdateReq) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableHandlersOrgUpdateReq) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}