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

// ProcessStatusResponse struct for ProcessStatusResponse
type ProcessStatusResponse struct {
	ProcessName *string `json:"processName,omitempty"`
	Running *bool `json:"running,omitempty"`
}

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

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

// GetProcessName returns the ProcessName field value if set, zero value otherwise.
func (o *ProcessStatusResponse) 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 *ProcessStatusResponse) 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 *ProcessStatusResponse) 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 *ProcessStatusResponse) SetProcessName(v string) {
	o.ProcessName = &v
}

// GetRunning returns the Running field value if set, zero value otherwise.
func (o *ProcessStatusResponse) GetRunning() bool {
	if o == nil || IsNil(o.Running) {
		var ret bool
		return ret
	}
	return *o.Running
}

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

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

	return false
}

// SetRunning gets a reference to the given bool and assigns it to the Running field.
func (o *ProcessStatusResponse) SetRunning(v bool) {
	o.Running = &v
}

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

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

type NullableProcessStatusResponse struct {
	value *ProcessStatusResponse
	isSet bool
}

func (v NullableProcessStatusResponse) Get() *ProcessStatusResponse {
	return v.value
}

func (v *NullableProcessStatusResponse) Set(val *ProcessStatusResponse) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableProcessStatusResponse(val *ProcessStatusResponse) *NullableProcessStatusResponse {
	return &NullableProcessStatusResponse{value: val, isSet: true}
}

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

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


