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

// ProcessLogsResponse struct for ProcessLogsResponse
type ProcessLogsResponse struct {
	Logs *string `json:"logs,omitempty"`
	ProcessName *string `json:"processName,omitempty"`
}

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

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

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

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

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

	return false
}

// SetLogs gets a reference to the given string and assigns it to the Logs field.
func (o *ProcessLogsResponse) SetLogs(v string) {
	o.Logs = &v
}

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

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

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

type NullableProcessLogsResponse struct {
	value *ProcessLogsResponse
	isSet bool
}

func (v NullableProcessLogsResponse) Get() *ProcessLogsResponse {
	return v.value
}

func (v *NullableProcessLogsResponse) Set(val *ProcessLogsResponse) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableProcessLogsResponse(val *ProcessLogsResponse) *NullableProcessLogsResponse {
	return &NullableProcessLogsResponse{value: val, isSet: true}
}

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

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


