/*
Cloud Hypervisor API

Local HTTP based API for managing and inspecting a cloud-hypervisor virtual machine.

API version: 0.3.0
*/

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

package openapi

import (
	"encoding/json"
)

// NumaDistance struct for NumaDistance
type NumaDistance struct {
	Destination int32 `json:"destination"`
	Distance    int32 `json:"distance"`
}

// NewNumaDistance instantiates a new NumaDistance 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 NewNumaDistance(destination int32, distance int32) *NumaDistance {
	this := NumaDistance{}
	this.Destination = destination
	this.Distance = distance
	return &this
}

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

// GetDestination returns the Destination field value
func (o *NumaDistance) GetDestination() int32 {
	if o == nil {
		var ret int32
		return ret
	}

	return o.Destination
}

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

// SetDestination sets field value
func (o *NumaDistance) SetDestination(v int32) {
	o.Destination = v
}

// GetDistance returns the Distance field value
func (o *NumaDistance) GetDistance() int32 {
	if o == nil {
		var ret int32
		return ret
	}

	return o.Distance
}

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

// SetDistance sets field value
func (o *NumaDistance) SetDistance(v int32) {
	o.Distance = v
}

func (o NumaDistance) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if true {
		toSerialize["destination"] = o.Destination
	}
	if true {
		toSerialize["distance"] = o.Distance
	}
	return json.Marshal(toSerialize)
}

type NullableNumaDistance struct {
	value *NumaDistance
	isSet bool
}

func (v NullableNumaDistance) Get() *NumaDistance {
	return v.value
}

func (v *NullableNumaDistance) Set(val *NumaDistance) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableNumaDistance(val *NumaDistance) *NullableNumaDistance {
	return &NullableNumaDistance{value: val, isSet: true}
}

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

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