Struct aws_sdk_securityhub::types::builders::AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
source · #[non_exhaustive]pub struct AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsEc2LaunchTemplateDataCpuOptionsDetails
.
Implementations§
source§impl AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
impl AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
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. A value of 1
disables multithreading for the instance, The default value is 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. A value of 1
disables multithreading for the instance, The default value is 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. A value of 1
disables multithreading for the instance, The default value is 2
.
sourcepub fn build(self) -> AwsEc2LaunchTemplateDataCpuOptionsDetails
pub fn build(self) -> AwsEc2LaunchTemplateDataCpuOptionsDetails
Consumes the builder and constructs a AwsEc2LaunchTemplateDataCpuOptionsDetails
.
Trait Implementations§
source§impl Clone for AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
impl Clone for AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
source§fn clone(&self) -> AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
fn clone(&self) -> AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
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 AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
impl Default for AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
source§fn default() -> AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
fn default() -> AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
impl PartialEq for AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
source§fn eq(&self, other: &AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder) -> bool
fn eq(&self, other: &AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
impl Send for AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
impl Sync for AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
impl Unpin for AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
impl UnwindSafe for AwsEc2LaunchTemplateDataCpuOptionsDetailsBuilder
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>
Creates a shared type from an unshared type.