/*
 * Turing Minimal Openapi Spec for SDK
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * API version: 0.0.1
 */

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

package openapi

import (
	"encoding/json"
)

// MountedMLPSecret struct for MountedMLPSecret
type MountedMLPSecret struct {
	MlpSecretName string `json:"mlp_secret_name"`
	EnvVarName    string `json:"env_var_name"`
}

// NewMountedMLPSecret instantiates a new MountedMLPSecret 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 NewMountedMLPSecret(mlpSecretName string, envVarName string) *MountedMLPSecret {
	this := MountedMLPSecret{}
	this.MlpSecretName = mlpSecretName
	this.EnvVarName = envVarName
	return &this
}

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

// GetMlpSecretName returns the MlpSecretName field value
func (o *MountedMLPSecret) GetMlpSecretName() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.MlpSecretName
}

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

// SetMlpSecretName sets field value
func (o *MountedMLPSecret) SetMlpSecretName(v string) {
	o.MlpSecretName = v
}

// GetEnvVarName returns the EnvVarName field value
func (o *MountedMLPSecret) GetEnvVarName() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.EnvVarName
}

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

// SetEnvVarName sets field value
func (o *MountedMLPSecret) SetEnvVarName(v string) {
	o.EnvVarName = v
}

func (o MountedMLPSecret) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if true {
		toSerialize["mlp_secret_name"] = o.MlpSecretName
	}
	if true {
		toSerialize["env_var_name"] = o.EnvVarName
	}
	return json.Marshal(toSerialize)
}

type NullableMountedMLPSecret struct {
	value *MountedMLPSecret
	isSet bool
}

func (v NullableMountedMLPSecret) Get() *MountedMLPSecret {
	return v.value
}

func (v *NullableMountedMLPSecret) Set(val *MountedMLPSecret) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableMountedMLPSecret(val *MountedMLPSecret) *NullableMountedMLPSecret {
	return &NullableMountedMLPSecret{value: val, isSet: true}
}

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

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