#[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 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 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
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 LaunchTemplateCpuOptionsRequestBuilder
impl Default for LaunchTemplateCpuOptionsRequestBuilder
source§fn default() -> LaunchTemplateCpuOptionsRequestBuilder
fn default() -> LaunchTemplateCpuOptionsRequestBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<LaunchTemplateCpuOptionsRequestBuilder> for LaunchTemplateCpuOptionsRequestBuilder
impl PartialEq<LaunchTemplateCpuOptionsRequestBuilder> for LaunchTemplateCpuOptionsRequestBuilder
source§fn eq(&self, other: &LaunchTemplateCpuOptionsRequestBuilder) -> bool
fn eq(&self, other: &LaunchTemplateCpuOptionsRequestBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.