/*
Cloud Hypervisor API

Local HTTP based API for managing and inspecting a cloud-hypervisor virtual machine.

API version: 0.3.0
*/

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

package openapi

import (
	"encoding/json"
)

// CmdLineConfig struct for CmdLineConfig
type CmdLineConfig struct {
	Args string `json:"args"`
}

// NewCmdLineConfig instantiates a new CmdLineConfig 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 NewCmdLineConfig(args string) *CmdLineConfig {
	this := CmdLineConfig{}
	this.Args = args
	return &this
}

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

// GetArgs returns the Args field value
func (o *CmdLineConfig) GetArgs() string {
	if o == nil {
		var ret string
		return ret
	}

	return o.Args
}

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

// SetArgs sets field value
func (o *CmdLineConfig) SetArgs(v string) {
	o.Args = v
}

func (o CmdLineConfig) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if true {
		toSerialize["args"] = o.Args
	}
	return json.Marshal(toSerialize)
}

type NullableCmdLineConfig struct {
	value *CmdLineConfig
	isSet bool
}

func (v NullableCmdLineConfig) Get() *CmdLineConfig {
	return v.value
}

func (v *NullableCmdLineConfig) Set(val *CmdLineConfig) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableCmdLineConfig(val *CmdLineConfig) *NullableCmdLineConfig {
	return &NullableCmdLineConfig{value: val, isSet: true}
}

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

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