/*
Edge Firewall API

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

API version: 2.0.0
*/

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

package edgefirewall

import (
	"encoding/json"
)

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

// SetWAFRuleSetAndWafModeBehaviorArgument struct for SetWAFRuleSetAndWafModeBehaviorArgument
type SetWAFRuleSetAndWafModeBehaviorArgument struct {
	SetWafRulesetAndWafMode int32 `json:"set_waf_ruleset_and_waf_mode"`
	WafMode string `json:"waf_mode"`
}

// NewSetWAFRuleSetAndWafModeBehaviorArgument instantiates a new SetWAFRuleSetAndWafModeBehaviorArgument 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 NewSetWAFRuleSetAndWafModeBehaviorArgument(setWafRulesetAndWafMode int32, wafMode string) *SetWAFRuleSetAndWafModeBehaviorArgument {
	this := SetWAFRuleSetAndWafModeBehaviorArgument{}
	this.SetWafRulesetAndWafMode = setWafRulesetAndWafMode
	this.WafMode = wafMode
	return &this
}

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

// GetSetWafRulesetAndWafMode returns the SetWafRulesetAndWafMode field value
func (o *SetWAFRuleSetAndWafModeBehaviorArgument) GetSetWafRulesetAndWafMode() int32 {
	if o == nil {
		var ret int32
		return ret
	}

	return o.SetWafRulesetAndWafMode
}

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

// SetSetWafRulesetAndWafMode sets field value
func (o *SetWAFRuleSetAndWafModeBehaviorArgument) SetSetWafRulesetAndWafMode(v int32) {
	o.SetWafRulesetAndWafMode = v
}

// GetWafMode returns the WafMode field value
func (o *SetWAFRuleSetAndWafModeBehaviorArgument) GetWafMode() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.WafMode
}

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

// SetWafMode sets field value
func (o *SetWAFRuleSetAndWafModeBehaviorArgument) SetWafMode(v string) {
	o.WafMode = v
}

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

func (o SetWAFRuleSetAndWafModeBehaviorArgument) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	toSerialize["set_waf_ruleset_and_waf_mode"] = o.SetWafRulesetAndWafMode
	toSerialize["waf_mode"] = o.WafMode
	return toSerialize, nil
}

type NullableSetWAFRuleSetAndWafModeBehaviorArgument struct {
	value *SetWAFRuleSetAndWafModeBehaviorArgument
	isSet bool
}

func (v NullableSetWAFRuleSetAndWafModeBehaviorArgument) Get() *SetWAFRuleSetAndWafModeBehaviorArgument {
	return v.value
}

func (v *NullableSetWAFRuleSetAndWafModeBehaviorArgument) Set(val *SetWAFRuleSetAndWafModeBehaviorArgument) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableSetWAFRuleSetAndWafModeBehaviorArgument(val *SetWAFRuleSetAndWafModeBehaviorArgument) *NullableSetWAFRuleSetAndWafModeBehaviorArgument {
	return &NullableSetWAFRuleSetAndWafModeBehaviorArgument{value: val, isSet: true}
}

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

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


