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

// SetWAFRuleSetBehaviorArgument struct for SetWAFRuleSetBehaviorArgument
type SetWAFRuleSetBehaviorArgument struct {
	WafId *int32 `json:"waf_id,omitempty"`
	Mode *string `json:"mode,omitempty"`
}

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

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

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

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

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

	return false
}

// SetWafId gets a reference to the given int32 and assigns it to the WafId field.
func (o *SetWAFRuleSetBehaviorArgument) SetWafId(v int32) {
	o.WafId = &v
}

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

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

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

	return false
}

// SetMode gets a reference to the given string and assigns it to the Mode field.
func (o *SetWAFRuleSetBehaviorArgument) SetMode(v string) {
	o.Mode = &v
}

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

func (o SetWAFRuleSetBehaviorArgument) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.WafId) {
		toSerialize["waf_id"] = o.WafId
	}
	if !IsNil(o.Mode) {
		toSerialize["mode"] = o.Mode
	}
	return toSerialize, nil
}

type NullableSetWAFRuleSetBehaviorArgument struct {
	value *SetWAFRuleSetBehaviorArgument
	isSet bool
}

func (v NullableSetWAFRuleSetBehaviorArgument) Get() *SetWAFRuleSetBehaviorArgument {
	return v.value
}

func (v *NullableSetWAFRuleSetBehaviorArgument) Set(val *SetWAFRuleSetBehaviorArgument) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableSetWAFRuleSetBehaviorArgument(val *SetWAFRuleSetBehaviorArgument) *NullableSetWAFRuleSetBehaviorArgument {
	return &NullableSetWAFRuleSetBehaviorArgument{value: val, isSet: true}
}

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

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


