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

// ComputerUseAccessibilityNode struct for ComputerUseAccessibilityNode
type ComputerUseAccessibilityNode struct {
	Actions []string `json:"actions,omitempty"`
	Bounds *AccessibilityBounds `json:"bounds,omitempty"`
	Children []ComputerUseAccessibilityNode `json:"children,omitempty"`
	Description *string `json:"description,omitempty"`
	Id *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Role *string `json:"role,omitempty"`
	States []string `json:"states,omitempty"`
}

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

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

// GetActions returns the Actions field value if set, zero value otherwise.
func (o *ComputerUseAccessibilityNode) GetActions() []string {
	if o == nil || IsNil(o.Actions) {
		var ret []string
		return ret
	}
	return o.Actions
}

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

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

	return false
}

// SetActions gets a reference to the given []string and assigns it to the Actions field.
func (o *ComputerUseAccessibilityNode) SetActions(v []string) {
	o.Actions = v
}

// GetBounds returns the Bounds field value if set, zero value otherwise.
func (o *ComputerUseAccessibilityNode) GetBounds() AccessibilityBounds {
	if o == nil || IsNil(o.Bounds) {
		var ret AccessibilityBounds
		return ret
	}
	return *o.Bounds
}

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

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

	return false
}

// SetBounds gets a reference to the given AccessibilityBounds and assigns it to the Bounds field.
func (o *ComputerUseAccessibilityNode) SetBounds(v AccessibilityBounds) {
	o.Bounds = &v
}

// GetChildren returns the Children field value if set, zero value otherwise.
func (o *ComputerUseAccessibilityNode) GetChildren() []ComputerUseAccessibilityNode {
	if o == nil || IsNil(o.Children) {
		var ret []ComputerUseAccessibilityNode
		return ret
	}
	return o.Children
}

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

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

	return false
}

// SetChildren gets a reference to the given []ComputerUseAccessibilityNode and assigns it to the Children field.
func (o *ComputerUseAccessibilityNode) SetChildren(v []ComputerUseAccessibilityNode) {
	o.Children = v
}

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

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

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

	return false
}

// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *ComputerUseAccessibilityNode) SetDescription(v string) {
	o.Description = &v
}

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

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

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

	return false
}

// SetId gets a reference to the given string and assigns it to the Id field.
func (o *ComputerUseAccessibilityNode) SetId(v string) {
	o.Id = &v
}

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

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

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

	return false
}

// SetName gets a reference to the given string and assigns it to the Name field.
func (o *ComputerUseAccessibilityNode) SetName(v string) {
	o.Name = &v
}

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

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

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

	return false
}

// SetRole gets a reference to the given string and assigns it to the Role field.
func (o *ComputerUseAccessibilityNode) SetRole(v string) {
	o.Role = &v
}

// GetStates returns the States field value if set, zero value otherwise.
func (o *ComputerUseAccessibilityNode) GetStates() []string {
	if o == nil || IsNil(o.States) {
		var ret []string
		return ret
	}
	return o.States
}

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

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

	return false
}

// SetStates gets a reference to the given []string and assigns it to the States field.
func (o *ComputerUseAccessibilityNode) SetStates(v []string) {
	o.States = v
}

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

func (o ComputerUseAccessibilityNode) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.Actions) {
		toSerialize["actions"] = o.Actions
	}
	if !IsNil(o.Bounds) {
		toSerialize["bounds"] = o.Bounds
	}
	if !IsNil(o.Children) {
		toSerialize["children"] = o.Children
	}
	if !IsNil(o.Description) {
		toSerialize["description"] = o.Description
	}
	if !IsNil(o.Id) {
		toSerialize["id"] = o.Id
	}
	if !IsNil(o.Name) {
		toSerialize["name"] = o.Name
	}
	if !IsNil(o.Role) {
		toSerialize["role"] = o.Role
	}
	if !IsNil(o.States) {
		toSerialize["states"] = o.States
	}
	return toSerialize, nil
}

type NullableComputerUseAccessibilityNode struct {
	value *ComputerUseAccessibilityNode
	isSet bool
}

func (v NullableComputerUseAccessibilityNode) Get() *ComputerUseAccessibilityNode {
	return v.value
}

func (v *NullableComputerUseAccessibilityNode) Set(val *ComputerUseAccessibilityNode) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableComputerUseAccessibilityNode(val *ComputerUseAccessibilityNode) *NullableComputerUseAccessibilityNode {
	return &NullableComputerUseAccessibilityNode{value: val, isSet: true}
}

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

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


