/*
Edge Node API

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

API version: 1.0.0
*/

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

package edgenode

import (
	"encoding/json"
)

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

// EdgeNodeModules struct for EdgeNodeModules
type EdgeNodeModules struct {
	AddServices bool `json:"add_services"`
}

// NewEdgeNodeModules instantiates a new EdgeNodeModules 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 NewEdgeNodeModules(addServices bool) *EdgeNodeModules {
	this := EdgeNodeModules{}
	this.AddServices = addServices
	return &this
}

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

// GetAddServices returns the AddServices field value
func (o *EdgeNodeModules) GetAddServices() bool {
	if o == nil {
		var ret bool
		return ret
	}

	return o.AddServices
}

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

// SetAddServices sets field value
func (o *EdgeNodeModules) SetAddServices(v bool) {
	o.AddServices = v
}

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

func (o EdgeNodeModules) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	toSerialize["add_services"] = o.AddServices
	return toSerialize, nil
}

type NullableEdgeNodeModules struct {
	value *EdgeNodeModules
	isSet bool
}

func (v NullableEdgeNodeModules) Get() *EdgeNodeModules {
	return v.value
}

func (v *NullableEdgeNodeModules) Set(val *EdgeNodeModules) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableEdgeNodeModules(val *EdgeNodeModules) *NullableEdgeNodeModules {
	return &NullableEdgeNodeModules{value: val, isSet: true}
}

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

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


