Struct aws_sdk_ec2::types::builders::CpuOptionsRequestBuilder
source · #[non_exhaustive]pub struct CpuOptionsRequestBuilder { /* private fields */ }
Expand description
A builder for CpuOptionsRequest
.
Implementations§
source§impl CpuOptionsRequestBuilder
impl CpuOptionsRequestBuilder
sourcepub fn core_count(self, input: i32) -> Self
pub fn core_count(self, input: i32) -> Self
The number of CPU cores for the instance.
sourcepub fn set_core_count(self, input: Option<i32>) -> Self
pub fn set_core_count(self, input: Option<i32>) -> Self
The number of CPU cores for the instance.
sourcepub fn get_core_count(&self) -> &Option<i32>
pub fn get_core_count(&self) -> &Option<i32>
The number of CPU cores for the instance.
sourcepub fn threads_per_core(self, input: i32) -> Self
pub fn threads_per_core(self, input: i32) -> Self
The number of threads per CPU core. To disable multithreading for the instance, specify a value of 1
. Otherwise, specify the default value of 2
.
sourcepub fn set_threads_per_core(self, input: Option<i32>) -> Self
pub fn set_threads_per_core(self, input: Option<i32>) -> Self
The number of threads per CPU core. To disable multithreading for the instance, specify a value of 1
. Otherwise, specify the default value of 2
.
sourcepub fn get_threads_per_core(&self) -> &Option<i32>
pub fn get_threads_per_core(&self) -> &Option<i32>
The number of threads per CPU core. To disable multithreading for the instance, specify a value of 1
. Otherwise, specify the default value of 2
.
sourcepub fn amd_sev_snp(self, input: AmdSevSnpSpecification) -> Self
pub fn amd_sev_snp(self, input: AmdSevSnpSpecification) -> Self
Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP.
sourcepub fn set_amd_sev_snp(self, input: Option<AmdSevSnpSpecification>) -> Self
pub fn set_amd_sev_snp(self, input: Option<AmdSevSnpSpecification>) -> Self
Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP.
sourcepub fn get_amd_sev_snp(&self) -> &Option<AmdSevSnpSpecification>
pub fn get_amd_sev_snp(&self) -> &Option<AmdSevSnpSpecification>
Indicates whether to enable the instance for AMD SEV-SNP. AMD SEV-SNP is supported with M6a, R6a, and C6a instance types only. For more information, see AMD SEV-SNP.
sourcepub fn build(self) -> CpuOptionsRequest
pub fn build(self) -> CpuOptionsRequest
Consumes the builder and constructs a CpuOptionsRequest
.
Trait Implementations§
source§impl Clone for CpuOptionsRequestBuilder
impl Clone for CpuOptionsRequestBuilder
source§fn clone(&self) -> CpuOptionsRequestBuilder
fn clone(&self) -> CpuOptionsRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CpuOptionsRequestBuilder
impl Debug for CpuOptionsRequestBuilder
source§impl Default for CpuOptionsRequestBuilder
impl Default for CpuOptionsRequestBuilder
source§fn default() -> CpuOptionsRequestBuilder
fn default() -> CpuOptionsRequestBuilder
source§impl PartialEq<CpuOptionsRequestBuilder> for CpuOptionsRequestBuilder
impl PartialEq<CpuOptionsRequestBuilder> for CpuOptionsRequestBuilder
source§fn eq(&self, other: &CpuOptionsRequestBuilder) -> bool
fn eq(&self, other: &CpuOptionsRequestBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.