/*
Variables API

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

API version: 1.0.0
*/

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

package variables

import (
	"encoding/json"
	"time"
)

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

// VariableGet struct for VariableGet
type VariableGet struct {
	Uuid string `json:"uuid"`
	Key string `json:"key"`
	// Given the *incoming* primitive data, return the value for this field that should be validated and transformed to a native value.
	Value string `json:"value"`
	Secret bool `json:"secret"`
	LastEditor string `json:"last_editor"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

// NewVariableGet instantiates a new VariableGet 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 NewVariableGet(uuid string, key string, value string, secret bool, lastEditor string, createdAt time.Time, updatedAt time.Time) *VariableGet {
	this := VariableGet{}
	this.Uuid = uuid
	this.Key = key
	this.Value = value
	this.Secret = secret
	this.LastEditor = lastEditor
	this.CreatedAt = createdAt
	this.UpdatedAt = updatedAt
	return &this
}

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

// GetUuid returns the Uuid field value
func (o *VariableGet) GetUuid() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.Uuid
}

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

// SetUuid sets field value
func (o *VariableGet) SetUuid(v string) {
	o.Uuid = v
}

// GetKey returns the Key field value
func (o *VariableGet) GetKey() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.Key
}

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

// SetKey sets field value
func (o *VariableGet) SetKey(v string) {
	o.Key = v
}

// GetValue returns the Value field value
func (o *VariableGet) GetValue() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.Value
}

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

// SetValue sets field value
func (o *VariableGet) SetValue(v string) {
	o.Value = v
}

// GetSecret returns the Secret field value
func (o *VariableGet) GetSecret() bool {
	if o == nil {
		var ret bool
		return ret
	}

	return o.Secret
}

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

// SetSecret sets field value
func (o *VariableGet) SetSecret(v bool) {
	o.Secret = v
}

// GetLastEditor returns the LastEditor field value
func (o *VariableGet) GetLastEditor() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.LastEditor
}

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

// SetLastEditor sets field value
func (o *VariableGet) SetLastEditor(v string) {
	o.LastEditor = v
}

// GetCreatedAt returns the CreatedAt field value
func (o *VariableGet) GetCreatedAt() time.Time {
	if o == nil {
		var ret time.Time
		return ret
	}

	return o.CreatedAt
}

// GetCreatedAtOk returns a tuple with the CreatedAt field value
// and a boolean to check if the value has been set.
func (o *VariableGet) GetCreatedAtOk() (*time.Time, bool) {
	if o == nil {
		return nil, false
	}
	return &o.CreatedAt, true
}

// SetCreatedAt sets field value
func (o *VariableGet) SetCreatedAt(v time.Time) {
	o.CreatedAt = v
}

// GetUpdatedAt returns the UpdatedAt field value
func (o *VariableGet) GetUpdatedAt() time.Time {
	if o == nil {
		var ret time.Time
		return ret
	}

	return o.UpdatedAt
}

// GetUpdatedAtOk returns a tuple with the UpdatedAt field value
// and a boolean to check if the value has been set.
func (o *VariableGet) GetUpdatedAtOk() (*time.Time, bool) {
	if o == nil {
		return nil, false
	}
	return &o.UpdatedAt, true
}

// SetUpdatedAt sets field value
func (o *VariableGet) SetUpdatedAt(v time.Time) {
	o.UpdatedAt = v
}

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

func (o VariableGet) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	toSerialize["uuid"] = o.Uuid
	toSerialize["key"] = o.Key
	toSerialize["value"] = o.Value
	toSerialize["secret"] = o.Secret
	toSerialize["last_editor"] = o.LastEditor
	toSerialize["created_at"] = o.CreatedAt
	toSerialize["updated_at"] = o.UpdatedAt
	return toSerialize, nil
}

type NullableVariableGet struct {
	value *VariableGet
	isSet bool
}

func (v NullableVariableGet) Get() *VariableGet {
	return v.value
}

func (v *NullableVariableGet) Set(val *VariableGet) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableVariableGet(val *VariableGet) *NullableVariableGet {
	return &NullableVariableGet{value: val, isSet: true}
}

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

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


