Name | Type | Description | Notes |
---|---|---|---|
Vcpu | int32 | ||
HostCpus | []int32 |
func NewCpuAffinity(vcpu int32, hostCpus []int32, ) *CpuAffinity
NewCpuAffinity instantiates a new CpuAffinity 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 NewCpuAffinityWithDefaults() *CpuAffinity
NewCpuAffinityWithDefaults instantiates a new CpuAffinity 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 (o *CpuAffinity) GetVcpu() int32
GetVcpu returns the Vcpu field if non-nil, zero value otherwise.
func (o *CpuAffinity) GetVcpuOk() (*int32, bool)
GetVcpuOk returns a tuple with the Vcpu field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CpuAffinity) SetVcpu(v int32)
SetVcpu sets Vcpu field to given value.
func (o *CpuAffinity) GetHostCpus() []int32
GetHostCpus returns the HostCpus field if non-nil, zero value otherwise.
func (o *CpuAffinity) GetHostCpusOk() (*[]int32, bool)
GetHostCpusOk returns a tuple with the HostCpus field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CpuAffinity) SetHostCpus(v []int32)
SetHostCpus sets HostCpus field to given value.