#[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<LaunchTemplateCpuOptionsBuilder> for LaunchTemplateCpuOptionsBuilder
impl PartialEq<LaunchTemplateCpuOptionsBuilder> 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 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