/*
Management API

API version: 3
*/

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

package management

import (
	"encoding/json"

	"github.com/adyen/adyen-go-api-library/v21/src/common"
)

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

// GenerateClientKeyResponse struct for GenerateClientKeyResponse
type GenerateClientKeyResponse struct {
	// Generated client key
	ClientKey string `json:"clientKey"`
}

// NewGenerateClientKeyResponse instantiates a new GenerateClientKeyResponse 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 NewGenerateClientKeyResponse(clientKey string) *GenerateClientKeyResponse {
	this := GenerateClientKeyResponse{}
	this.ClientKey = clientKey
	return &this
}

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

// GetClientKey returns the ClientKey field value
func (o *GenerateClientKeyResponse) GetClientKey() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.ClientKey
}

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

// SetClientKey sets field value
func (o *GenerateClientKeyResponse) SetClientKey(v string) {
	o.ClientKey = v
}

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

func (o GenerateClientKeyResponse) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	toSerialize["clientKey"] = o.ClientKey
	return toSerialize, nil
}

type NullableGenerateClientKeyResponse struct {
	value *GenerateClientKeyResponse
	isSet bool
}

func (v NullableGenerateClientKeyResponse) Get() *GenerateClientKeyResponse {
	return v.value
}

func (v *NullableGenerateClientKeyResponse) Set(val *GenerateClientKeyResponse) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableGenerateClientKeyResponse(val *GenerateClientKeyResponse) *NullableGenerateClientKeyResponse {
	return &NullableGenerateClientKeyResponse{value: val, isSet: true}
}

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

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