/*
Daytona

Daytona AI platform API Docs

API version: 1.0
Contact: support@daytona.com
*/

// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

package apiclient

import (
	"encoding/json"
	"fmt"
)

// checks if the RunnerFull type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &RunnerFull{}

// RunnerFull struct for RunnerFull
type RunnerFull struct {
	// The ID of the runner
	Id string `json:"id"`
	// The domain of the runner
	Domain *string `json:"domain,omitempty"`
	// The API URL of the runner
	ApiUrl *string `json:"apiUrl,omitempty"`
	// The proxy URL of the runner
	ProxyUrl *string `json:"proxyUrl,omitempty"`
	// The CPU capacity of the runner
	Cpu float32 `json:"cpu"`
	// The memory capacity of the runner in GiB
	Memory float32 `json:"memory"`
	// The disk capacity of the runner in GiB
	Disk float32 `json:"disk"`
	// The GPU capacity of the runner
	Gpu *float32 `json:"gpu,omitempty"`
	// The type of GPU
	GpuType *string `json:"gpuType,omitempty"`
	// The class of the runner
	Class SandboxClass `json:"class"`
	// Current CPU usage percentage
	CurrentCpuUsagePercentage *float32 `json:"currentCpuUsagePercentage,omitempty"`
	// Current RAM usage percentage
	CurrentMemoryUsagePercentage *float32 `json:"currentMemoryUsagePercentage,omitempty"`
	// Current disk usage percentage
	CurrentDiskUsagePercentage *float32 `json:"currentDiskUsagePercentage,omitempty"`
	// Current allocated CPU
	CurrentAllocatedCpu *float32 `json:"currentAllocatedCpu,omitempty"`
	// Current allocated memory in GiB
	CurrentAllocatedMemoryGiB *float32 `json:"currentAllocatedMemoryGiB,omitempty"`
	// Current allocated disk in GiB
	CurrentAllocatedDiskGiB *float32 `json:"currentAllocatedDiskGiB,omitempty"`
	// Current snapshot count
	CurrentSnapshotCount *float32 `json:"currentSnapshotCount,omitempty"`
	// Current number of started sandboxes
	CurrentStartedSandboxes *float32 `json:"currentStartedSandboxes,omitempty"`
	// Runner availability score
	AvailabilityScore *float32 `json:"availabilityScore,omitempty"`
	// The region of the runner
	Region string `json:"region"`
	// The name of the runner
	Name string `json:"name"`
	// The state of the runner
	State RunnerState `json:"state"`
	// The last time the runner was checked
	LastChecked *string `json:"lastChecked,omitempty"`
	// Whether the runner is unschedulable
	Unschedulable bool `json:"unschedulable"`
	// The creation timestamp of the runner
	CreatedAt string `json:"createdAt"`
	// The last update timestamp of the runner
	UpdatedAt string `json:"updatedAt"`
	// The version of the runner (deprecated in favor of apiVersion)
	// Deprecated
	Version string `json:"version"`
	// The api version of the runner
	// Deprecated
	ApiVersion string `json:"apiVersion"`
	// The class of the runner
	RunnerClass RunnerClass `json:"runnerClass"`
	// The app version of the runner
	// Deprecated
	AppVersion *string `json:"appVersion,omitempty"`
	// The API key for the runner
	ApiKey string `json:"apiKey"`
	// The region type of the runner
	RegionType *RegionType `json:"regionType,omitempty"`
	AdditionalProperties map[string]interface{}
}

type _RunnerFull RunnerFull

// NewRunnerFull instantiates a new RunnerFull 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 NewRunnerFull(id string, cpu float32, memory float32, disk float32, class SandboxClass, region string, name string, state RunnerState, unschedulable bool, createdAt string, updatedAt string, version string, apiVersion string, runnerClass RunnerClass, apiKey string) *RunnerFull {
	this := RunnerFull{}
	this.Id = id
	this.Cpu = cpu
	this.Memory = memory
	this.Disk = disk
	this.Class = class
	this.Region = region
	this.Name = name
	this.State = state
	this.Unschedulable = unschedulable
	this.CreatedAt = createdAt
	this.UpdatedAt = updatedAt
	this.Version = version
	this.ApiVersion = apiVersion
	this.RunnerClass = runnerClass
	this.ApiKey = apiKey
	return &this
}

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

// GetId returns the Id field value
func (o *RunnerFull) GetId() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.Id
}

// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *RunnerFull) GetIdOk() (*string, bool) {
	if o == nil {
		return nil, false
	}
	return &o.Id, true
}

// SetId sets field value
func (o *RunnerFull) SetId(v string) {
	o.Id = v
}

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

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

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

	return false
}

// SetDomain gets a reference to the given string and assigns it to the Domain field.
func (o *RunnerFull) SetDomain(v string) {
	o.Domain = &v
}

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

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

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

	return false
}

// SetApiUrl gets a reference to the given string and assigns it to the ApiUrl field.
func (o *RunnerFull) SetApiUrl(v string) {
	o.ApiUrl = &v
}

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

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

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

	return false
}

// SetProxyUrl gets a reference to the given string and assigns it to the ProxyUrl field.
func (o *RunnerFull) SetProxyUrl(v string) {
	o.ProxyUrl = &v
}

// GetCpu returns the Cpu field value
func (o *RunnerFull) GetCpu() float32 {
	if o == nil {
		var ret float32
		return ret
	}

	return o.Cpu
}

// GetCpuOk returns a tuple with the Cpu field value
// and a boolean to check if the value has been set.
func (o *RunnerFull) GetCpuOk() (*float32, bool) {
	if o == nil {
		return nil, false
	}
	return &o.Cpu, true
}

// SetCpu sets field value
func (o *RunnerFull) SetCpu(v float32) {
	o.Cpu = v
}

// GetMemory returns the Memory field value
func (o *RunnerFull) GetMemory() float32 {
	if o == nil {
		var ret float32
		return ret
	}

	return o.Memory
}

// GetMemoryOk returns a tuple with the Memory field value
// and a boolean to check if the value has been set.
func (o *RunnerFull) GetMemoryOk() (*float32, bool) {
	if o == nil {
		return nil, false
	}
	return &o.Memory, true
}

// SetMemory sets field value
func (o *RunnerFull) SetMemory(v float32) {
	o.Memory = v
}

// GetDisk returns the Disk field value
func (o *RunnerFull) GetDisk() float32 {
	if o == nil {
		var ret float32
		return ret
	}

	return o.Disk
}

// GetDiskOk returns a tuple with the Disk field value
// and a boolean to check if the value has been set.
func (o *RunnerFull) GetDiskOk() (*float32, bool) {
	if o == nil {
		return nil, false
	}
	return &o.Disk, true
}

// SetDisk sets field value
func (o *RunnerFull) SetDisk(v float32) {
	o.Disk = v
}

// GetGpu returns the Gpu field value if set, zero value otherwise.
func (o *RunnerFull) GetGpu() float32 {
	if o == nil || IsNil(o.Gpu) {
		var ret float32
		return ret
	}
	return *o.Gpu
}

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

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

	return false
}

// SetGpu gets a reference to the given float32 and assigns it to the Gpu field.
func (o *RunnerFull) SetGpu(v float32) {
	o.Gpu = &v
}

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

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

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

	return false
}

// SetGpuType gets a reference to the given string and assigns it to the GpuType field.
func (o *RunnerFull) SetGpuType(v string) {
	o.GpuType = &v
}

// GetClass returns the Class field value
func (o *RunnerFull) GetClass() SandboxClass {
	if o == nil {
		var ret SandboxClass
		return ret
	}

	return o.Class
}

// GetClassOk returns a tuple with the Class field value
// and a boolean to check if the value has been set.
func (o *RunnerFull) GetClassOk() (*SandboxClass, bool) {
	if o == nil {
		return nil, false
	}
	return &o.Class, true
}

// SetClass sets field value
func (o *RunnerFull) SetClass(v SandboxClass) {
	o.Class = v
}

// GetCurrentCpuUsagePercentage returns the CurrentCpuUsagePercentage field value if set, zero value otherwise.
func (o *RunnerFull) GetCurrentCpuUsagePercentage() float32 {
	if o == nil || IsNil(o.CurrentCpuUsagePercentage) {
		var ret float32
		return ret
	}
	return *o.CurrentCpuUsagePercentage
}

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

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

	return false
}

// SetCurrentCpuUsagePercentage gets a reference to the given float32 and assigns it to the CurrentCpuUsagePercentage field.
func (o *RunnerFull) SetCurrentCpuUsagePercentage(v float32) {
	o.CurrentCpuUsagePercentage = &v
}

// GetCurrentMemoryUsagePercentage returns the CurrentMemoryUsagePercentage field value if set, zero value otherwise.
func (o *RunnerFull) GetCurrentMemoryUsagePercentage() float32 {
	if o == nil || IsNil(o.CurrentMemoryUsagePercentage) {
		var ret float32
		return ret
	}
	return *o.CurrentMemoryUsagePercentage
}

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

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

	return false
}

// SetCurrentMemoryUsagePercentage gets a reference to the given float32 and assigns it to the CurrentMemoryUsagePercentage field.
func (o *RunnerFull) SetCurrentMemoryUsagePercentage(v float32) {
	o.CurrentMemoryUsagePercentage = &v
}

// GetCurrentDiskUsagePercentage returns the CurrentDiskUsagePercentage field value if set, zero value otherwise.
func (o *RunnerFull) GetCurrentDiskUsagePercentage() float32 {
	if o == nil || IsNil(o.CurrentDiskUsagePercentage) {
		var ret float32
		return ret
	}
	return *o.CurrentDiskUsagePercentage
}

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

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

	return false
}

// SetCurrentDiskUsagePercentage gets a reference to the given float32 and assigns it to the CurrentDiskUsagePercentage field.
func (o *RunnerFull) SetCurrentDiskUsagePercentage(v float32) {
	o.CurrentDiskUsagePercentage = &v
}

// GetCurrentAllocatedCpu returns the CurrentAllocatedCpu field value if set, zero value otherwise.
func (o *RunnerFull) GetCurrentAllocatedCpu() float32 {
	if o == nil || IsNil(o.CurrentAllocatedCpu) {
		var ret float32
		return ret
	}
	return *o.CurrentAllocatedCpu
}

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

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

	return false
}

// SetCurrentAllocatedCpu gets a reference to the given float32 and assigns it to the CurrentAllocatedCpu field.
func (o *RunnerFull) SetCurrentAllocatedCpu(v float32) {
	o.CurrentAllocatedCpu = &v
}

// GetCurrentAllocatedMemoryGiB returns the CurrentAllocatedMemoryGiB field value if set, zero value otherwise.
func (o *RunnerFull) GetCurrentAllocatedMemoryGiB() float32 {
	if o == nil || IsNil(o.CurrentAllocatedMemoryGiB) {
		var ret float32
		return ret
	}
	return *o.CurrentAllocatedMemoryGiB
}

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

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

	return false
}

// SetCurrentAllocatedMemoryGiB gets a reference to the given float32 and assigns it to the CurrentAllocatedMemoryGiB field.
func (o *RunnerFull) SetCurrentAllocatedMemoryGiB(v float32) {
	o.CurrentAllocatedMemoryGiB = &v
}

// GetCurrentAllocatedDiskGiB returns the CurrentAllocatedDiskGiB field value if set, zero value otherwise.
func (o *RunnerFull) GetCurrentAllocatedDiskGiB() float32 {
	if o == nil || IsNil(o.CurrentAllocatedDiskGiB) {
		var ret float32
		return ret
	}
	return *o.CurrentAllocatedDiskGiB
}

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

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

	return false
}

// SetCurrentAllocatedDiskGiB gets a reference to the given float32 and assigns it to the CurrentAllocatedDiskGiB field.
func (o *RunnerFull) SetCurrentAllocatedDiskGiB(v float32) {
	o.CurrentAllocatedDiskGiB = &v
}

// GetCurrentSnapshotCount returns the CurrentSnapshotCount field value if set, zero value otherwise.
func (o *RunnerFull) GetCurrentSnapshotCount() float32 {
	if o == nil || IsNil(o.CurrentSnapshotCount) {
		var ret float32
		return ret
	}
	return *o.CurrentSnapshotCount
}

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

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

	return false
}

// SetCurrentSnapshotCount gets a reference to the given float32 and assigns it to the CurrentSnapshotCount field.
func (o *RunnerFull) SetCurrentSnapshotCount(v float32) {
	o.CurrentSnapshotCount = &v
}

// GetCurrentStartedSandboxes returns the CurrentStartedSandboxes field value if set, zero value otherwise.
func (o *RunnerFull) GetCurrentStartedSandboxes() float32 {
	if o == nil || IsNil(o.CurrentStartedSandboxes) {
		var ret float32
		return ret
	}
	return *o.CurrentStartedSandboxes
}

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

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

	return false
}

// SetCurrentStartedSandboxes gets a reference to the given float32 and assigns it to the CurrentStartedSandboxes field.
func (o *RunnerFull) SetCurrentStartedSandboxes(v float32) {
	o.CurrentStartedSandboxes = &v
}

// GetAvailabilityScore returns the AvailabilityScore field value if set, zero value otherwise.
func (o *RunnerFull) GetAvailabilityScore() float32 {
	if o == nil || IsNil(o.AvailabilityScore) {
		var ret float32
		return ret
	}
	return *o.AvailabilityScore
}

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

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

	return false
}

// SetAvailabilityScore gets a reference to the given float32 and assigns it to the AvailabilityScore field.
func (o *RunnerFull) SetAvailabilityScore(v float32) {
	o.AvailabilityScore = &v
}

// GetRegion returns the Region field value
func (o *RunnerFull) GetRegion() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.Region
}

// GetRegionOk returns a tuple with the Region field value
// and a boolean to check if the value has been set.
func (o *RunnerFull) GetRegionOk() (*string, bool) {
	if o == nil {
		return nil, false
	}
	return &o.Region, true
}

// SetRegion sets field value
func (o *RunnerFull) SetRegion(v string) {
	o.Region = v
}

// GetName returns the Name field value
func (o *RunnerFull) GetName() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.Name
}

// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
func (o *RunnerFull) GetNameOk() (*string, bool) {
	if o == nil {
		return nil, false
	}
	return &o.Name, true
}

// SetName sets field value
func (o *RunnerFull) SetName(v string) {
	o.Name = v
}

// GetState returns the State field value
func (o *RunnerFull) GetState() RunnerState {
	if o == nil {
		var ret RunnerState
		return ret
	}

	return o.State
}

// GetStateOk returns a tuple with the State field value
// and a boolean to check if the value has been set.
func (o *RunnerFull) GetStateOk() (*RunnerState, bool) {
	if o == nil {
		return nil, false
	}
	return &o.State, true
}

// SetState sets field value
func (o *RunnerFull) SetState(v RunnerState) {
	o.State = v
}

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

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

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

	return false
}

// SetLastChecked gets a reference to the given string and assigns it to the LastChecked field.
func (o *RunnerFull) SetLastChecked(v string) {
	o.LastChecked = &v
}

// GetUnschedulable returns the Unschedulable field value
func (o *RunnerFull) GetUnschedulable() bool {
	if o == nil {
		var ret bool
		return ret
	}

	return o.Unschedulable
}

// GetUnschedulableOk returns a tuple with the Unschedulable field value
// and a boolean to check if the value has been set.
func (o *RunnerFull) GetUnschedulableOk() (*bool, bool) {
	if o == nil {
		return nil, false
	}
	return &o.Unschedulable, true
}

// SetUnschedulable sets field value
func (o *RunnerFull) SetUnschedulable(v bool) {
	o.Unschedulable = v
}

// GetCreatedAt returns the CreatedAt field value
func (o *RunnerFull) GetCreatedAt() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.CreatedAt
}

// GetCreatedAtOk returns a tuple with the CreatedAt field value
// and a boolean to check if the value has been set.
func (o *RunnerFull) GetCreatedAtOk() (*string, bool) {
	if o == nil {
		return nil, false
	}
	return &o.CreatedAt, true
}

// SetCreatedAt sets field value
func (o *RunnerFull) SetCreatedAt(v string) {
	o.CreatedAt = v
}

// GetUpdatedAt returns the UpdatedAt field value
func (o *RunnerFull) GetUpdatedAt() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.UpdatedAt
}

// GetUpdatedAtOk returns a tuple with the UpdatedAt field value
// and a boolean to check if the value has been set.
func (o *RunnerFull) GetUpdatedAtOk() (*string, bool) {
	if o == nil {
		return nil, false
	}
	return &o.UpdatedAt, true
}

// SetUpdatedAt sets field value
func (o *RunnerFull) SetUpdatedAt(v string) {
	o.UpdatedAt = v
}

// GetVersion returns the Version field value
// Deprecated
func (o *RunnerFull) GetVersion() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.Version
}

// GetVersionOk returns a tuple with the Version field value
// and a boolean to check if the value has been set.
// Deprecated
func (o *RunnerFull) GetVersionOk() (*string, bool) {
	if o == nil {
		return nil, false
	}
	return &o.Version, true
}

// SetVersion sets field value
// Deprecated
func (o *RunnerFull) SetVersion(v string) {
	o.Version = v
}

// GetApiVersion returns the ApiVersion field value
// Deprecated
func (o *RunnerFull) GetApiVersion() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.ApiVersion
}

// GetApiVersionOk returns a tuple with the ApiVersion field value
// and a boolean to check if the value has been set.
// Deprecated
func (o *RunnerFull) GetApiVersionOk() (*string, bool) {
	if o == nil {
		return nil, false
	}
	return &o.ApiVersion, true
}

// SetApiVersion sets field value
// Deprecated
func (o *RunnerFull) SetApiVersion(v string) {
	o.ApiVersion = v
}

// GetRunnerClass returns the RunnerClass field value
func (o *RunnerFull) GetRunnerClass() RunnerClass {
	if o == nil {
		var ret RunnerClass
		return ret
	}

	return o.RunnerClass
}

// GetRunnerClassOk returns a tuple with the RunnerClass field value
// and a boolean to check if the value has been set.
func (o *RunnerFull) GetRunnerClassOk() (*RunnerClass, bool) {
	if o == nil {
		return nil, false
	}
	return &o.RunnerClass, true
}

// SetRunnerClass sets field value
func (o *RunnerFull) SetRunnerClass(v RunnerClass) {
	o.RunnerClass = v
}

// GetAppVersion returns the AppVersion field value if set, zero value otherwise.
// Deprecated
func (o *RunnerFull) GetAppVersion() string {
	if o == nil || IsNil(o.AppVersion) {
		var ret string
		return ret
	}
	return *o.AppVersion
}

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

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

	return false
}

// SetAppVersion gets a reference to the given string and assigns it to the AppVersion field.
// Deprecated
func (o *RunnerFull) SetAppVersion(v string) {
	o.AppVersion = &v
}

// GetApiKey returns the ApiKey field value
func (o *RunnerFull) GetApiKey() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.ApiKey
}

// GetApiKeyOk returns a tuple with the ApiKey field value
// and a boolean to check if the value has been set.
func (o *RunnerFull) GetApiKeyOk() (*string, bool) {
	if o == nil {
		return nil, false
	}
	return &o.ApiKey, true
}

// SetApiKey sets field value
func (o *RunnerFull) SetApiKey(v string) {
	o.ApiKey = v
}

// GetRegionType returns the RegionType field value if set, zero value otherwise.
func (o *RunnerFull) GetRegionType() RegionType {
	if o == nil || IsNil(o.RegionType) {
		var ret RegionType
		return ret
	}
	return *o.RegionType
}

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

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

	return false
}

// SetRegionType gets a reference to the given RegionType and assigns it to the RegionType field.
func (o *RunnerFull) SetRegionType(v RegionType) {
	o.RegionType = &v
}

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

func (o RunnerFull) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	toSerialize["id"] = o.Id
	if !IsNil(o.Domain) {
		toSerialize["domain"] = o.Domain
	}
	if !IsNil(o.ApiUrl) {
		toSerialize["apiUrl"] = o.ApiUrl
	}
	if !IsNil(o.ProxyUrl) {
		toSerialize["proxyUrl"] = o.ProxyUrl
	}
	toSerialize["cpu"] = o.Cpu
	toSerialize["memory"] = o.Memory
	toSerialize["disk"] = o.Disk
	if !IsNil(o.Gpu) {
		toSerialize["gpu"] = o.Gpu
	}
	if !IsNil(o.GpuType) {
		toSerialize["gpuType"] = o.GpuType
	}
	toSerialize["class"] = o.Class
	if !IsNil(o.CurrentCpuUsagePercentage) {
		toSerialize["currentCpuUsagePercentage"] = o.CurrentCpuUsagePercentage
	}
	if !IsNil(o.CurrentMemoryUsagePercentage) {
		toSerialize["currentMemoryUsagePercentage"] = o.CurrentMemoryUsagePercentage
	}
	if !IsNil(o.CurrentDiskUsagePercentage) {
		toSerialize["currentDiskUsagePercentage"] = o.CurrentDiskUsagePercentage
	}
	if !IsNil(o.CurrentAllocatedCpu) {
		toSerialize["currentAllocatedCpu"] = o.CurrentAllocatedCpu
	}
	if !IsNil(o.CurrentAllocatedMemoryGiB) {
		toSerialize["currentAllocatedMemoryGiB"] = o.CurrentAllocatedMemoryGiB
	}
	if !IsNil(o.CurrentAllocatedDiskGiB) {
		toSerialize["currentAllocatedDiskGiB"] = o.CurrentAllocatedDiskGiB
	}
	if !IsNil(o.CurrentSnapshotCount) {
		toSerialize["currentSnapshotCount"] = o.CurrentSnapshotCount
	}
	if !IsNil(o.CurrentStartedSandboxes) {
		toSerialize["currentStartedSandboxes"] = o.CurrentStartedSandboxes
	}
	if !IsNil(o.AvailabilityScore) {
		toSerialize["availabilityScore"] = o.AvailabilityScore
	}
	toSerialize["region"] = o.Region
	toSerialize["name"] = o.Name
	toSerialize["state"] = o.State
	if !IsNil(o.LastChecked) {
		toSerialize["lastChecked"] = o.LastChecked
	}
	toSerialize["unschedulable"] = o.Unschedulable
	toSerialize["createdAt"] = o.CreatedAt
	toSerialize["updatedAt"] = o.UpdatedAt
	toSerialize["version"] = o.Version
	toSerialize["apiVersion"] = o.ApiVersion
	toSerialize["runnerClass"] = o.RunnerClass
	if !IsNil(o.AppVersion) {
		toSerialize["appVersion"] = o.AppVersion
	}
	toSerialize["apiKey"] = o.ApiKey
	if !IsNil(o.RegionType) {
		toSerialize["regionType"] = o.RegionType
	}

	for key, value := range o.AdditionalProperties {
		toSerialize[key] = value
	}

	return toSerialize, nil
}

func (o *RunnerFull) UnmarshalJSON(data []byte) (err error) {
	// This validates that all required properties are included in the JSON object
	// by unmarshalling the object into a generic map with string keys and checking
	// that every required field exists as a key in the generic map.
	requiredProperties := []string{
		"id",
		"cpu",
		"memory",
		"disk",
		"class",
		"region",
		"name",
		"state",
		"unschedulable",
		"createdAt",
		"updatedAt",
		"version",
		"apiVersion",
		"runnerClass",
		"apiKey",
	}

	allProperties := make(map[string]interface{})

	err = json.Unmarshal(data, &allProperties)

	if err != nil {
		return err;
	}

	for _, requiredProperty := range(requiredProperties) {
		if _, exists := allProperties[requiredProperty]; !exists {
			return fmt.Errorf("no value given for required property %v", requiredProperty)
		}
	}

	varRunnerFull := _RunnerFull{}

	err = json.Unmarshal(data, &varRunnerFull)

	if err != nil {
		return err
	}

	*o = RunnerFull(varRunnerFull)

	additionalProperties := make(map[string]interface{})

	if err = json.Unmarshal(data, &additionalProperties); err == nil {
		delete(additionalProperties, "id")
		delete(additionalProperties, "domain")
		delete(additionalProperties, "apiUrl")
		delete(additionalProperties, "proxyUrl")
		delete(additionalProperties, "cpu")
		delete(additionalProperties, "memory")
		delete(additionalProperties, "disk")
		delete(additionalProperties, "gpu")
		delete(additionalProperties, "gpuType")
		delete(additionalProperties, "class")
		delete(additionalProperties, "currentCpuUsagePercentage")
		delete(additionalProperties, "currentMemoryUsagePercentage")
		delete(additionalProperties, "currentDiskUsagePercentage")
		delete(additionalProperties, "currentAllocatedCpu")
		delete(additionalProperties, "currentAllocatedMemoryGiB")
		delete(additionalProperties, "currentAllocatedDiskGiB")
		delete(additionalProperties, "currentSnapshotCount")
		delete(additionalProperties, "currentStartedSandboxes")
		delete(additionalProperties, "availabilityScore")
		delete(additionalProperties, "region")
		delete(additionalProperties, "name")
		delete(additionalProperties, "state")
		delete(additionalProperties, "lastChecked")
		delete(additionalProperties, "unschedulable")
		delete(additionalProperties, "createdAt")
		delete(additionalProperties, "updatedAt")
		delete(additionalProperties, "version")
		delete(additionalProperties, "apiVersion")
		delete(additionalProperties, "runnerClass")
		delete(additionalProperties, "appVersion")
		delete(additionalProperties, "apiKey")
		delete(additionalProperties, "regionType")
		o.AdditionalProperties = additionalProperties
	}

	return err
}

type NullableRunnerFull struct {
	value *RunnerFull
	isSet bool
}

func (v NullableRunnerFull) Get() *RunnerFull {
	return v.value
}

func (v *NullableRunnerFull) Set(val *RunnerFull) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableRunnerFull(val *RunnerFull) *NullableRunnerFull {
	return &NullableRunnerFull{value: val, isSet: true}
}

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

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


