/*
Web Application 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 waf

import (
	"encoding/json"
)

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

// WAFEvents404 struct for WAFEvents404
type WAFEvents404 struct {
	Errors []map[string]interface{} `json:"errors,omitempty"`
	SchemaVersion *int64 `json:"schema_version,omitempty"`
}

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

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

// GetErrors returns the Errors field value if set, zero value otherwise.
func (o *WAFEvents404) GetErrors() []map[string]interface{} {
	if o == nil || IsNil(o.Errors) {
		var ret []map[string]interface{}
		return ret
	}
	return o.Errors
}

// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *WAFEvents404) GetErrorsOk() ([]map[string]interface{}, bool) {
	if o == nil || IsNil(o.Errors) {
		return nil, false
	}
	return o.Errors, true
}

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

	return false
}

// SetErrors gets a reference to the given []map[string]interface{} and assigns it to the Errors field.
func (o *WAFEvents404) SetErrors(v []map[string]interface{}) {
	o.Errors = v
}

// GetSchemaVersion returns the SchemaVersion field value if set, zero value otherwise.
func (o *WAFEvents404) GetSchemaVersion() int64 {
	if o == nil || IsNil(o.SchemaVersion) {
		var ret int64
		return ret
	}
	return *o.SchemaVersion
}

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

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

	return false
}

// SetSchemaVersion gets a reference to the given int64 and assigns it to the SchemaVersion field.
func (o *WAFEvents404) SetSchemaVersion(v int64) {
	o.SchemaVersion = &v
}

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

func (o WAFEvents404) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.Errors) {
		toSerialize["errors"] = o.Errors
	}
	if !IsNil(o.SchemaVersion) {
		toSerialize["schema_version"] = o.SchemaVersion
	}
	return toSerialize, nil
}

type NullableWAFEvents404 struct {
	value *WAFEvents404
	isSet bool
}

func (v NullableWAFEvents404) Get() *WAFEvents404 {
	return v.value
}

func (v *NullableWAFEvents404) Set(val *WAFEvents404) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableWAFEvents404(val *WAFEvents404) *NullableWAFEvents404 {
	return &NullableWAFEvents404{value: val, isSet: true}
}

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

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


