/*
Credentials API

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

API version: 2.0.0
*/

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

package credentials

import (
	"encoding/json"
)

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

// UpdateCredentialRequest struct for UpdateCredentialRequest
type UpdateCredentialRequest struct {
	Description string `json:"description"`
	Name string `json:"name"`
	Status bool `json:"status"`
}

// NewUpdateCredentialRequest instantiates a new UpdateCredentialRequest 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 NewUpdateCredentialRequest(description string, name string, status bool) *UpdateCredentialRequest {
	this := UpdateCredentialRequest{}
	this.Description = description
	this.Name = name
	this.Status = status
	return &this
}

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

// GetDescription returns the Description field value
func (o *UpdateCredentialRequest) GetDescription() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.Description
}

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

// SetDescription sets field value
func (o *UpdateCredentialRequest) SetDescription(v string) {
	o.Description = v
}

// GetName returns the Name field value
func (o *UpdateCredentialRequest) GetName() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.Name
}

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

// SetName sets field value
func (o *UpdateCredentialRequest) SetName(v string) {
	o.Name = v
}

// GetStatus returns the Status field value
func (o *UpdateCredentialRequest) GetStatus() bool {
	if o == nil {
		var ret bool
		return ret
	}

	return o.Status
}

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

// SetStatus sets field value
func (o *UpdateCredentialRequest) SetStatus(v bool) {
	o.Status = v
}

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

func (o UpdateCredentialRequest) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	toSerialize["description"] = o.Description
	toSerialize["name"] = o.Name
	toSerialize["status"] = o.Status
	return toSerialize, nil
}

type NullableUpdateCredentialRequest struct {
	value *UpdateCredentialRequest
	isSet bool
}

func (v NullableUpdateCredentialRequest) Get() *UpdateCredentialRequest {
	return v.value
}

func (v *NullableUpdateCredentialRequest) Set(val *UpdateCredentialRequest) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableUpdateCredentialRequest(val *UpdateCredentialRequest) *NullableUpdateCredentialRequest {
	return &NullableUpdateCredentialRequest{value: val, isSet: true}
}

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

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


