/*
 * CLOUD API
 *
 *  IONOS Enterprise-grade Infrastructure as a Service (IaaS) solutions can be managed through the Cloud API, in addition or as an alternative to the \"Data Center Designer\" (DCD) browser-based tool.    Both methods employ consistent concepts and features, deliver similar power and flexibility, and can be used to perform a multitude of management tasks, including adding servers, volumes, configuring networks, and so on.
 *
 * API version: 6.0
 */

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

package ionoscloud

import (
	"encoding/json"
)

// GpuArchitectureProperties struct for GpuArchitectureProperties
type GpuArchitectureProperties struct {
	// The vendor of the Graphics Processing Unit (GPU) card.
	Vendor *string `json:"vendor,omitempty"`
	// The model of the Graphics Processing Unit (GPU) card.
	Model *string `json:"model,omitempty"`
}

// NewGpuArchitectureProperties instantiates a new GpuArchitectureProperties 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 NewGpuArchitectureProperties() *GpuArchitectureProperties {
	this := GpuArchitectureProperties{}

	return &this
}

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

// GetVendor returns the Vendor field value
// If the value is explicit nil, nil is returned
func (o *GpuArchitectureProperties) GetVendor() *string {
	if o == nil {
		return nil
	}

	return o.Vendor

}

// GetVendorOk returns a tuple with the Vendor field value
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *GpuArchitectureProperties) GetVendorOk() (*string, bool) {
	if o == nil {
		return nil, false
	}

	return o.Vendor, true
}

// SetVendor sets field value
func (o *GpuArchitectureProperties) SetVendor(v string) {

	o.Vendor = &v

}

// HasVendor returns a boolean if a field has been set.
func (o *GpuArchitectureProperties) HasVendor() bool {
	if o != nil && o.Vendor != nil {
		return true
	}

	return false
}

// GetModel returns the Model field value
// If the value is explicit nil, nil is returned
func (o *GpuArchitectureProperties) GetModel() *string {
	if o == nil {
		return nil
	}

	return o.Model

}

// GetModelOk returns a tuple with the Model field value
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *GpuArchitectureProperties) GetModelOk() (*string, bool) {
	if o == nil {
		return nil, false
	}

	return o.Model, true
}

// SetModel sets field value
func (o *GpuArchitectureProperties) SetModel(v string) {

	o.Model = &v

}

// HasModel returns a boolean if a field has been set.
func (o *GpuArchitectureProperties) HasModel() bool {
	if o != nil && o.Model != nil {
		return true
	}

	return false
}

func (o GpuArchitectureProperties) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if o.Vendor != nil {
		toSerialize["vendor"] = o.Vendor
	}

	if o.Model != nil {
		toSerialize["model"] = o.Model
	}

	return json.Marshal(toSerialize)
}

type NullableGpuArchitectureProperties struct {
	value *GpuArchitectureProperties
	isSet bool
}

func (v NullableGpuArchitectureProperties) Get() *GpuArchitectureProperties {
	return v.value
}

func (v *NullableGpuArchitectureProperties) Set(val *GpuArchitectureProperties) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableGpuArchitectureProperties(val *GpuArchitectureProperties) *NullableGpuArchitectureProperties {
	return &NullableGpuArchitectureProperties{value: val, isSet: true}
}

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

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