#[non_exhaustive]pub struct LaunchTemplateCpuOptionsRequestBuilder { /* private fields */ }
Expand description
A builder for LaunchTemplateCpuOptionsRequest
.
Implementations§
source§impl LaunchTemplateCpuOptionsRequestBuilder
impl LaunchTemplateCpuOptionsRequestBuilder
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) -> LaunchTemplateCpuOptionsRequest
pub fn build(self) -> LaunchTemplateCpuOptionsRequest
Consumes the builder and constructs a LaunchTemplateCpuOptionsRequest
.
Trait Implementations§
source§impl Clone for LaunchTemplateCpuOptionsRequestBuilder
impl Clone for LaunchTemplateCpuOptionsRequestBuilder
source§fn clone(&self) -> LaunchTemplateCpuOptionsRequestBuilder
fn clone(&self) -> LaunchTemplateCpuOptionsRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for LaunchTemplateCpuOptionsRequestBuilder
impl Default for LaunchTemplateCpuOptionsRequestBuilder
source§fn default() -> LaunchTemplateCpuOptionsRequestBuilder
fn default() -> LaunchTemplateCpuOptionsRequestBuilder
source§impl PartialEq for LaunchTemplateCpuOptionsRequestBuilder
impl PartialEq for LaunchTemplateCpuOptionsRequestBuilder
source§fn eq(&self, other: &LaunchTemplateCpuOptionsRequestBuilder) -> bool
fn eq(&self, other: &LaunchTemplateCpuOptionsRequestBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LaunchTemplateCpuOptionsRequestBuilder
Auto Trait Implementations§
impl Freeze for LaunchTemplateCpuOptionsRequestBuilder
impl RefUnwindSafe for LaunchTemplateCpuOptionsRequestBuilder
impl Send for LaunchTemplateCpuOptionsRequestBuilder
impl Sync for LaunchTemplateCpuOptionsRequestBuilder
impl Unpin for LaunchTemplateCpuOptionsRequestBuilder
impl UnwindSafe for LaunchTemplateCpuOptionsRequestBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more