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

// StartRecordingRequest struct for StartRecordingRequest
type StartRecordingRequest struct {
	Label *string `json:"label,omitempty"`
}

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

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

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

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

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

	return false
}

// SetLabel gets a reference to the given string and assigns it to the Label field.
func (o *StartRecordingRequest) SetLabel(v string) {
	o.Label = &v
}

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

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

type NullableStartRecordingRequest struct {
	value *StartRecordingRequest
	isSet bool
}

func (v NullableStartRecordingRequest) Get() *StartRecordingRequest {
	return v.value
}

func (v *NullableStartRecordingRequest) Set(val *StartRecordingRequest) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableStartRecordingRequest(val *StartRecordingRequest) *NullableStartRecordingRequest {
	return &NullableStartRecordingRequest{value: val, isSet: true}
}

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

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


