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

// ProcessRestartResponse struct for ProcessRestartResponse
type ProcessRestartResponse struct {
	Message *string `json:"message,omitempty"`
	ProcessName *string `json:"processName,omitempty"`
}

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

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

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

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

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

	return false
}

// SetMessage gets a reference to the given string and assigns it to the Message field.
func (o *ProcessRestartResponse) SetMessage(v string) {
	o.Message = &v
}

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

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

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

type NullableProcessRestartResponse struct {
	value *ProcessRestartResponse
	isSet bool
}

func (v NullableProcessRestartResponse) Get() *ProcessRestartResponse {
	return v.value
}

func (v *NullableProcessRestartResponse) Set(val *ProcessRestartResponse) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableProcessRestartResponse(val *ProcessRestartResponse) *NullableProcessRestartResponse {
	return &NullableProcessRestartResponse{value: val, isSet: true}
}

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

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


