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

// ProcessErrorsResponse struct for ProcessErrorsResponse
type ProcessErrorsResponse struct {
	Errors *string `json:"errors,omitempty"`
	ProcessName *string `json:"processName,omitempty"`
}

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

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

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

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

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

	return false
}

// SetErrors gets a reference to the given string and assigns it to the Errors field.
func (o *ProcessErrorsResponse) SetErrors(v string) {
	o.Errors = &v
}

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

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

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

	return false
}

// SetProcessName gets a reference to the given string and assigns it to the ProcessName field.
func (o *ProcessErrorsResponse) SetProcessName(v string) {
	o.ProcessName = &v
}

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

func (o ProcessErrorsResponse) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.Errors) {
		toSerialize["errors"] = o.Errors
	}
	if !IsNil(o.ProcessName) {
		toSerialize["processName"] = o.ProcessName
	}
	return toSerialize, nil
}

type NullableProcessErrorsResponse struct {
	value *ProcessErrorsResponse
	isSet bool
}

func (v NullableProcessErrorsResponse) Get() *ProcessErrorsResponse {
	return v.value
}

func (v *NullableProcessErrorsResponse) Set(val *ProcessErrorsResponse) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableProcessErrorsResponse(val *ProcessErrorsResponse) *NullableProcessErrorsResponse {
	return &NullableProcessErrorsResponse{value: val, isSet: true}
}

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

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


