/*
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 HandlersUpdateMeRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &HandlersUpdateMeRequest{}

// HandlersUpdateMeRequest struct for HandlersUpdateMeRequest
type HandlersUpdateMeRequest struct {
	DisplayName *string `json:"display_name,omitempty"`
}

// NewHandlersUpdateMeRequest instantiates a new HandlersUpdateMeRequest 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 NewHandlersUpdateMeRequest() *HandlersUpdateMeRequest {
	this := HandlersUpdateMeRequest{}
	return &this
}

// NewHandlersUpdateMeRequestWithDefaults instantiates a new HandlersUpdateMeRequest 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 NewHandlersUpdateMeRequestWithDefaults() *HandlersUpdateMeRequest {
	this := HandlersUpdateMeRequest{}
	return &this
}

// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *HandlersUpdateMeRequest) GetDisplayName() string {
	if o == nil || IsNil(o.DisplayName) {
		var ret string
		return ret
	}
	return *o.DisplayName
}

// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HandlersUpdateMeRequest) GetDisplayNameOk() (*string, bool) {
	if o == nil || IsNil(o.DisplayName) {
		return nil, false
	}
	return o.DisplayName, true
}

// HasDisplayName returns a boolean if a field has been set.
func (o *HandlersUpdateMeRequest) HasDisplayName() bool {
	if o != nil && !IsNil(o.DisplayName) {
		return true
	}

	return false
}

// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *HandlersUpdateMeRequest) SetDisplayName(v string) {
	o.DisplayName = &v
}

func (o HandlersUpdateMeRequest) MarshalJSON() ([]byte, error) {
	toSerialize, err := o.ToMap()
	if err != nil {
		return []byte{}, err
	}
	return json.Marshal(toSerialize)
}

func (o HandlersUpdateMeRequest) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.DisplayName) {
		toSerialize["display_name"] = o.DisplayName
	}
	return toSerialize, nil
}

type NullableHandlersUpdateMeRequest struct {
	value *HandlersUpdateMeRequest
	isSet bool
}

func (v NullableHandlersUpdateMeRequest) Get() *HandlersUpdateMeRequest {
	return v.value
}

func (v *NullableHandlersUpdateMeRequest) Set(val *HandlersUpdateMeRequest) {
	v.value = val
	v.isSet = true
}

func (v NullableHandlersUpdateMeRequest) IsSet() bool {
	return v.isSet
}

func (v *NullableHandlersUpdateMeRequest) Unset() {
	v.value = nil
	v.isSet = false
}

func NewNullableHandlersUpdateMeRequest(val *HandlersUpdateMeRequest) *NullableHandlersUpdateMeRequest {
	return &NullableHandlersUpdateMeRequest{value: val, isSet: true}
}

func (v NullableHandlersUpdateMeRequest) MarshalJSON() ([]byte, error) {
	return json.Marshal(v.value)
}

func (v *NullableHandlersUpdateMeRequest) UnmarshalJSON(src []byte) error {
	v.isSet = true
	return json.Unmarshal(src, &v.value)
}
