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

// ScreenshotResponse struct for ScreenshotResponse
type ScreenshotResponse struct {
	CursorPosition *Position `json:"cursorPosition,omitempty"`
	Screenshot *string `json:"screenshot,omitempty"`
	SizeBytes *int32 `json:"sizeBytes,omitempty"`
}

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

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

// GetCursorPosition returns the CursorPosition field value if set, zero value otherwise.
func (o *ScreenshotResponse) GetCursorPosition() Position {
	if o == nil || IsNil(o.CursorPosition) {
		var ret Position
		return ret
	}
	return *o.CursorPosition
}

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

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

	return false
}

// SetCursorPosition gets a reference to the given Position and assigns it to the CursorPosition field.
func (o *ScreenshotResponse) SetCursorPosition(v Position) {
	o.CursorPosition = &v
}

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

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

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

	return false
}

// SetScreenshot gets a reference to the given string and assigns it to the Screenshot field.
func (o *ScreenshotResponse) SetScreenshot(v string) {
	o.Screenshot = &v
}

// GetSizeBytes returns the SizeBytes field value if set, zero value otherwise.
func (o *ScreenshotResponse) GetSizeBytes() int32 {
	if o == nil || IsNil(o.SizeBytes) {
		var ret int32
		return ret
	}
	return *o.SizeBytes
}

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

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

	return false
}

// SetSizeBytes gets a reference to the given int32 and assigns it to the SizeBytes field.
func (o *ScreenshotResponse) SetSizeBytes(v int32) {
	o.SizeBytes = &v
}

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

func (o ScreenshotResponse) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.CursorPosition) {
		toSerialize["cursorPosition"] = o.CursorPosition
	}
	if !IsNil(o.Screenshot) {
		toSerialize["screenshot"] = o.Screenshot
	}
	if !IsNil(o.SizeBytes) {
		toSerialize["sizeBytes"] = o.SizeBytes
	}
	return toSerialize, nil
}

type NullableScreenshotResponse struct {
	value *ScreenshotResponse
	isSet bool
}

func (v NullableScreenshotResponse) Get() *ScreenshotResponse {
	return v.value
}

func (v *NullableScreenshotResponse) Set(val *ScreenshotResponse) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableScreenshotResponse(val *ScreenshotResponse) *NullableScreenshotResponse {
	return &NullableScreenshotResponse{value: val, isSet: true}
}

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

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


