#[non_exhaustive]pub struct LaunchTemplateCpuOptionsBuilder { /* private fields */ }
Expand description
A builder for LaunchTemplateCpuOptions
.
Implementations§
source§impl LaunchTemplateCpuOptionsBuilder
impl LaunchTemplateCpuOptionsBuilder
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.
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.
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.
sourcepub fn amd_sev_snp(self, input: AmdSevSnpSpecification) -> Self
pub fn amd_sev_snp(self, input: AmdSevSnpSpecification) -> Self
Indicates whether the instance is enabled for AMD SEV-SNP. 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 the instance is enabled for AMD SEV-SNP. 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 the instance is enabled for AMD SEV-SNP. For more information, see AMD SEV-SNP.
sourcepub fn build(self) -> LaunchTemplateCpuOptions
pub fn build(self) -> LaunchTemplateCpuOptions
Consumes the builder and constructs a LaunchTemplateCpuOptions
.
Trait Implementations§
source§impl Clone for LaunchTemplateCpuOptionsBuilder
impl Clone for LaunchTemplateCpuOptionsBuilder
source§fn clone(&self) -> LaunchTemplateCpuOptionsBuilder
fn clone(&self) -> LaunchTemplateCpuOptionsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for LaunchTemplateCpuOptionsBuilder
impl Default for LaunchTemplateCpuOptionsBuilder
source§fn default() -> LaunchTemplateCpuOptionsBuilder
fn default() -> LaunchTemplateCpuOptionsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for LaunchTemplateCpuOptionsBuilder
impl PartialEq for LaunchTemplateCpuOptionsBuilder
source§fn eq(&self, other: &LaunchTemplateCpuOptionsBuilder) -> bool
fn eq(&self, other: &LaunchTemplateCpuOptionsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LaunchTemplateCpuOptionsBuilder
Auto Trait Implementations§
impl Freeze for LaunchTemplateCpuOptionsBuilder
impl RefUnwindSafe for LaunchTemplateCpuOptionsBuilder
impl Send for LaunchTemplateCpuOptionsBuilder
impl Sync for LaunchTemplateCpuOptionsBuilder
impl Unpin for LaunchTemplateCpuOptionsBuilder
impl UnwindSafe for LaunchTemplateCpuOptionsBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.