Struct aws_sdk_emr::types::builders::ComputeLimitsBuilder
source · #[non_exhaustive]pub struct ComputeLimitsBuilder { /* private fields */ }
Expand description
A builder for ComputeLimits
.
Implementations§
source§impl ComputeLimitsBuilder
impl ComputeLimitsBuilder
sourcepub fn unit_type(self, input: ComputeLimitsUnitType) -> Self
pub fn unit_type(self, input: ComputeLimitsUnitType) -> Self
The unit type used for specifying a managed scaling policy.
This field is required.sourcepub fn set_unit_type(self, input: Option<ComputeLimitsUnitType>) -> Self
pub fn set_unit_type(self, input: Option<ComputeLimitsUnitType>) -> Self
The unit type used for specifying a managed scaling policy.
sourcepub fn get_unit_type(&self) -> &Option<ComputeLimitsUnitType>
pub fn get_unit_type(&self) -> &Option<ComputeLimitsUnitType>
The unit type used for specifying a managed scaling policy.
sourcepub fn minimum_capacity_units(self, input: i32) -> Self
pub fn minimum_capacity_units(self, input: i32) -> Self
The lower boundary of Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
This field is required.sourcepub fn set_minimum_capacity_units(self, input: Option<i32>) -> Self
pub fn set_minimum_capacity_units(self, input: Option<i32>) -> Self
The lower boundary of Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
sourcepub fn get_minimum_capacity_units(&self) -> &Option<i32>
pub fn get_minimum_capacity_units(&self) -> &Option<i32>
The lower boundary of Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
sourcepub fn maximum_capacity_units(self, input: i32) -> Self
pub fn maximum_capacity_units(self, input: i32) -> Self
The upper boundary of Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
This field is required.sourcepub fn set_maximum_capacity_units(self, input: Option<i32>) -> Self
pub fn set_maximum_capacity_units(self, input: Option<i32>) -> Self
The upper boundary of Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
sourcepub fn get_maximum_capacity_units(&self) -> &Option<i32>
pub fn get_maximum_capacity_units(&self) -> &Option<i32>
The upper boundary of Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. Managed scaling activities are not allowed beyond this boundary. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
sourcepub fn maximum_on_demand_capacity_units(self, input: i32) -> Self
pub fn maximum_on_demand_capacity_units(self, input: i32) -> Self
The upper boundary of On-Demand Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The On-Demand units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between On-Demand and Spot Instances.
sourcepub fn set_maximum_on_demand_capacity_units(self, input: Option<i32>) -> Self
pub fn set_maximum_on_demand_capacity_units(self, input: Option<i32>) -> Self
The upper boundary of On-Demand Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The On-Demand units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between On-Demand and Spot Instances.
sourcepub fn get_maximum_on_demand_capacity_units(&self) -> &Option<i32>
pub fn get_maximum_on_demand_capacity_units(&self) -> &Option<i32>
The upper boundary of On-Demand Amazon EC2 units. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The On-Demand units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between On-Demand and Spot Instances.
sourcepub fn maximum_core_capacity_units(self, input: i32) -> Self
pub fn maximum_core_capacity_units(self, input: i32) -> Self
The upper boundary of Amazon EC2 units for core node type in a cluster. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The core units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between core and task nodes.
sourcepub fn set_maximum_core_capacity_units(self, input: Option<i32>) -> Self
pub fn set_maximum_core_capacity_units(self, input: Option<i32>) -> Self
The upper boundary of Amazon EC2 units for core node type in a cluster. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The core units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between core and task nodes.
sourcepub fn get_maximum_core_capacity_units(&self) -> &Option<i32>
pub fn get_maximum_core_capacity_units(&self) -> &Option<i32>
The upper boundary of Amazon EC2 units for core node type in a cluster. It is measured through vCPU cores or instances for instance groups and measured through units for instance fleets. The core units are not allowed to scale beyond this boundary. The parameter is used to split capacity allocation between core and task nodes.
sourcepub fn build(self) -> ComputeLimits
pub fn build(self) -> ComputeLimits
Consumes the builder and constructs a ComputeLimits
.
Trait Implementations§
source§impl Clone for ComputeLimitsBuilder
impl Clone for ComputeLimitsBuilder
source§fn clone(&self) -> ComputeLimitsBuilder
fn clone(&self) -> ComputeLimitsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComputeLimitsBuilder
impl Debug for ComputeLimitsBuilder
source§impl Default for ComputeLimitsBuilder
impl Default for ComputeLimitsBuilder
source§fn default() -> ComputeLimitsBuilder
fn default() -> ComputeLimitsBuilder
source§impl PartialEq for ComputeLimitsBuilder
impl PartialEq for ComputeLimitsBuilder
source§fn eq(&self, other: &ComputeLimitsBuilder) -> bool
fn eq(&self, other: &ComputeLimitsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.