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

// FindAccessibilityNodesRequest struct for FindAccessibilityNodesRequest
type FindAccessibilityNodesRequest struct {
	Limit *int32 `json:"limit,omitempty"`
	Name *string `json:"name,omitempty"`
	// \"exact\" | \"substring\" | \"regex\"
	NameMatch *string `json:"nameMatch,omitempty"`
	Pid *int32 `json:"pid,omitempty"`
	Role *string `json:"role,omitempty"`
	Scope *string `json:"scope,omitempty"`
	States []string `json:"states,omitempty"`
}

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

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

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

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

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

	return false
}

// SetLimit gets a reference to the given int32 and assigns it to the Limit field.
func (o *FindAccessibilityNodesRequest) SetLimit(v int32) {
	o.Limit = &v
}

// GetName returns the Name field value if set, zero value otherwise.
func (o *FindAccessibilityNodesRequest) 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 *FindAccessibilityNodesRequest) 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 *FindAccessibilityNodesRequest) 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 *FindAccessibilityNodesRequest) SetName(v string) {
	o.Name = &v
}

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

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

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

	return false
}

// SetNameMatch gets a reference to the given string and assigns it to the NameMatch field.
func (o *FindAccessibilityNodesRequest) SetNameMatch(v string) {
	o.NameMatch = &v
}

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

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

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

	return false
}

// SetPid gets a reference to the given int32 and assigns it to the Pid field.
func (o *FindAccessibilityNodesRequest) SetPid(v int32) {
	o.Pid = &v
}

// GetRole returns the Role field value if set, zero value otherwise.
func (o *FindAccessibilityNodesRequest) 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 *FindAccessibilityNodesRequest) 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 *FindAccessibilityNodesRequest) 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 *FindAccessibilityNodesRequest) SetRole(v string) {
	o.Role = &v
}

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

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

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

	return false
}

// SetScope gets a reference to the given string and assigns it to the Scope field.
func (o *FindAccessibilityNodesRequest) SetScope(v string) {
	o.Scope = &v
}

// GetStates returns the States field value if set, zero value otherwise.
func (o *FindAccessibilityNodesRequest) 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 *FindAccessibilityNodesRequest) 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 *FindAccessibilityNodesRequest) 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 *FindAccessibilityNodesRequest) SetStates(v []string) {
	o.States = v
}

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

func (o FindAccessibilityNodesRequest) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.Limit) {
		toSerialize["limit"] = o.Limit
	}
	if !IsNil(o.Name) {
		toSerialize["name"] = o.Name
	}
	if !IsNil(o.NameMatch) {
		toSerialize["nameMatch"] = o.NameMatch
	}
	if !IsNil(o.Pid) {
		toSerialize["pid"] = o.Pid
	}
	if !IsNil(o.Role) {
		toSerialize["role"] = o.Role
	}
	if !IsNil(o.Scope) {
		toSerialize["scope"] = o.Scope
	}
	if !IsNil(o.States) {
		toSerialize["states"] = o.States
	}
	return toSerialize, nil
}

type NullableFindAccessibilityNodesRequest struct {
	value *FindAccessibilityNodesRequest
	isSet bool
}

func (v NullableFindAccessibilityNodesRequest) Get() *FindAccessibilityNodesRequest {
	return v.value
}

func (v *NullableFindAccessibilityNodesRequest) Set(val *FindAccessibilityNodesRequest) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableFindAccessibilityNodesRequest(val *FindAccessibilityNodesRequest) *NullableFindAccessibilityNodesRequest {
	return &NullableFindAccessibilityNodesRequest{value: val, isSet: true}
}

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

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


