/*
Configuration API

API version: 2
*/

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

package balanceplatform

import (
	"encoding/json"

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

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

// PaymentInstrumentRevealResponse struct for PaymentInstrumentRevealResponse
type PaymentInstrumentRevealResponse struct {
	// The data encrypted using the `encryptedKey`.
	EncryptedData string `json:"encryptedData"`
}

// NewPaymentInstrumentRevealResponse instantiates a new PaymentInstrumentRevealResponse 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 NewPaymentInstrumentRevealResponse(encryptedData string) *PaymentInstrumentRevealResponse {
	this := PaymentInstrumentRevealResponse{}
	this.EncryptedData = encryptedData
	return &this
}

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

// GetEncryptedData returns the EncryptedData field value
func (o *PaymentInstrumentRevealResponse) GetEncryptedData() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.EncryptedData
}

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

// SetEncryptedData sets field value
func (o *PaymentInstrumentRevealResponse) SetEncryptedData(v string) {
	o.EncryptedData = v
}

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

func (o PaymentInstrumentRevealResponse) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	toSerialize["encryptedData"] = o.EncryptedData
	return toSerialize, nil
}

type NullablePaymentInstrumentRevealResponse struct {
	value *PaymentInstrumentRevealResponse
	isSet bool
}

func (v NullablePaymentInstrumentRevealResponse) Get() *PaymentInstrumentRevealResponse {
	return v.value
}

func (v *NullablePaymentInstrumentRevealResponse) Set(val *PaymentInstrumentRevealResponse) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullablePaymentInstrumentRevealResponse(val *PaymentInstrumentRevealResponse) *NullablePaymentInstrumentRevealResponse {
	return &NullablePaymentInstrumentRevealResponse{value: val, isSet: true}
}

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

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