Struct aws_sdk_ec2::model::cpu_options::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CpuOptions
.
Implementations§
source§impl Builder
impl Builder
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.
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 build(self) -> CpuOptions
pub fn build(self) -> CpuOptions
Consumes the builder and constructs a CpuOptions
.