/*
Purge 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 realtimepurge

import (
	"encoding/json"
)

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

// PurgeWildcardRequest struct for PurgeWildcardRequest
type PurgeWildcardRequest struct {
	Urls []string `json:"urls"`
	Method string `json:"method"`
}

// NewPurgeWildcardRequest instantiates a new PurgeWildcardRequest 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 NewPurgeWildcardRequest(urls []string, method string) *PurgeWildcardRequest {
	this := PurgeWildcardRequest{}
	this.Urls = urls
	this.Method = method
	return &this
}

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

// GetUrls returns the Urls field value
func (o *PurgeWildcardRequest) GetUrls() []string {
	if o == nil {
		var ret []string
		return ret
	}

	return o.Urls
}

// GetUrlsOk returns a tuple with the Urls field value
// and a boolean to check if the value has been set.
func (o *PurgeWildcardRequest) GetUrlsOk() ([]string, bool) {
	if o == nil {
		return nil, false
	}
	return o.Urls, true
}

// SetUrls sets field value
func (o *PurgeWildcardRequest) SetUrls(v []string) {
	o.Urls = v
}

// GetMethod returns the Method field value
func (o *PurgeWildcardRequest) GetMethod() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.Method
}

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

// SetMethod sets field value
func (o *PurgeWildcardRequest) SetMethod(v string) {
	o.Method = v
}

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

func (o PurgeWildcardRequest) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	toSerialize["urls"] = o.Urls
	toSerialize["method"] = o.Method
	return toSerialize, nil
}

type NullablePurgeWildcardRequest struct {
	value *PurgeWildcardRequest
	isSet bool
}

func (v NullablePurgeWildcardRequest) Get() *PurgeWildcardRequest {
	return v.value
}

func (v *NullablePurgeWildcardRequest) Set(val *PurgeWildcardRequest) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullablePurgeWildcardRequest(val *PurgeWildcardRequest) *NullablePurgeWildcardRequest {
	return &NullablePurgeWildcardRequest{value: val, isSet: true}
}

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

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


