/*
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 AssociationInitiateResponse type satisfies the MappedNullable interface at compile time
var _ common.MappedNullable = &AssociationInitiateResponse{}

// AssociationInitiateResponse struct for AssociationInitiateResponse
type AssociationInitiateResponse struct {
	// A string that you must pass to the authentication SDK to continue with the association process.
	SdkInput *string `json:"sdkInput,omitempty"`
}

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

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

// GetSdkInput returns the SdkInput field value if set, zero value otherwise.
func (o *AssociationInitiateResponse) GetSdkInput() string {
	if o == nil || common.IsNil(o.SdkInput) {
		var ret string
		return ret
	}
	return *o.SdkInput
}

// GetSdkInputOk returns a tuple with the SdkInput field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AssociationInitiateResponse) GetSdkInputOk() (*string, bool) {
	if o == nil || common.IsNil(o.SdkInput) {
		return nil, false
	}
	return o.SdkInput, true
}

// HasSdkInput returns a boolean if a field has been set.
func (o *AssociationInitiateResponse) HasSdkInput() bool {
	if o != nil && !common.IsNil(o.SdkInput) {
		return true
	}

	return false
}

// SetSdkInput gets a reference to the given string and assigns it to the SdkInput field.
func (o *AssociationInitiateResponse) SetSdkInput(v string) {
	o.SdkInput = &v
}

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

func (o AssociationInitiateResponse) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !common.IsNil(o.SdkInput) {
		toSerialize["sdkInput"] = o.SdkInput
	}
	return toSerialize, nil
}

type NullableAssociationInitiateResponse struct {
	value *AssociationInitiateResponse
	isSet bool
}

func (v NullableAssociationInitiateResponse) Get() *AssociationInitiateResponse {
	return v.value
}

func (v *NullableAssociationInitiateResponse) Set(val *AssociationInitiateResponse) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableAssociationInitiateResponse(val *AssociationInitiateResponse) *NullableAssociationInitiateResponse {
	return &NullableAssociationInitiateResponse{value: val, isSet: true}
}

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

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