/*
Daytona Toolbox API

Daytona Toolbox API

API version: v0.0.0-dev
*/

// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

package toolbox

import (
	"encoding/json"
)

// checks if the CreateContextRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CreateContextRequest{}

// CreateContextRequest struct for CreateContextRequest
type CreateContextRequest struct {
	Cwd *string `json:"cwd,omitempty"`
	Language *string `json:"language,omitempty"`
}

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

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

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

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

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

	return false
}

// SetCwd gets a reference to the given string and assigns it to the Cwd field.
func (o *CreateContextRequest) SetCwd(v string) {
	o.Cwd = &v
}

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

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

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

	return false
}

// SetLanguage gets a reference to the given string and assigns it to the Language field.
func (o *CreateContextRequest) SetLanguage(v string) {
	o.Language = &v
}

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

func (o CreateContextRequest) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.Cwd) {
		toSerialize["cwd"] = o.Cwd
	}
	if !IsNil(o.Language) {
		toSerialize["language"] = o.Language
	}
	return toSerialize, nil
}

type NullableCreateContextRequest struct {
	value *CreateContextRequest
	isSet bool
}

func (v NullableCreateContextRequest) Get() *CreateContextRequest {
	return v.value
}

func (v *NullableCreateContextRequest) Set(val *CreateContextRequest) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableCreateContextRequest(val *CreateContextRequest) *NullableCreateContextRequest {
	return &NullableCreateContextRequest{value: val, isSet: true}
}

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

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


