/*
1Backend

AI-native microservices platform.

API version: 0.8.2
Contact: sales@singulatron.com
*/

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

package openapi

import (
	"encoding/json"
)

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

// ProxySvcSaveCertsRequest struct for ProxySvcSaveCertsRequest
type ProxySvcSaveCertsRequest struct {
	Certs []ProxySvcCertInput `json:"certs,omitempty"`
}

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

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

// GetCerts returns the Certs field value if set, zero value otherwise.
func (o *ProxySvcSaveCertsRequest) GetCerts() []ProxySvcCertInput {
	if o == nil || IsNil(o.Certs) {
		var ret []ProxySvcCertInput
		return ret
	}
	return o.Certs
}

// GetCertsOk returns a tuple with the Certs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProxySvcSaveCertsRequest) GetCertsOk() ([]ProxySvcCertInput, bool) {
	if o == nil || IsNil(o.Certs) {
		return nil, false
	}
	return o.Certs, true
}

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

	return false
}

// SetCerts gets a reference to the given []ProxySvcCertInput and assigns it to the Certs field.
func (o *ProxySvcSaveCertsRequest) SetCerts(v []ProxySvcCertInput) {
	o.Certs = v
}

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

func (o ProxySvcSaveCertsRequest) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.Certs) {
		toSerialize["certs"] = o.Certs
	}
	return toSerialize, nil
}

type NullableProxySvcSaveCertsRequest struct {
	value *ProxySvcSaveCertsRequest
	isSet bool
}

func (v NullableProxySvcSaveCertsRequest) Get() *ProxySvcSaveCertsRequest {
	return v.value
}

func (v *NullableProxySvcSaveCertsRequest) Set(val *ProxySvcSaveCertsRequest) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableProxySvcSaveCertsRequest(val *ProxySvcSaveCertsRequest) *NullableProxySvcSaveCertsRequest {
	return &NullableProxySvcSaveCertsRequest{value: val, isSet: true}
}

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

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


