Struct aws_sdk_securityhub::types::builders::AwsEcsServiceCapacityProviderStrategyDetailsBuilder
source · #[non_exhaustive]pub struct AwsEcsServiceCapacityProviderStrategyDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsEcsServiceCapacityProviderStrategyDetails
.
Implementations§
source§impl AwsEcsServiceCapacityProviderStrategyDetailsBuilder
impl AwsEcsServiceCapacityProviderStrategyDetailsBuilder
sourcepub fn base(self, input: i32) -> Self
pub fn base(self, input: i32) -> Self
The minimum number of tasks to run on the capacity provider. Only one strategy item can specify a value for Base
.
The value must be between 0 and 100000.
sourcepub fn set_base(self, input: Option<i32>) -> Self
pub fn set_base(self, input: Option<i32>) -> Self
The minimum number of tasks to run on the capacity provider. Only one strategy item can specify a value for Base
.
The value must be between 0 and 100000.
sourcepub fn get_base(&self) -> &Option<i32>
pub fn get_base(&self) -> &Option<i32>
The minimum number of tasks to run on the capacity provider. Only one strategy item can specify a value for Base
.
The value must be between 0 and 100000.
sourcepub fn capacity_provider(self, input: impl Into<String>) -> Self
pub fn capacity_provider(self, input: impl Into<String>) -> Self
The short name of the capacity provider.
sourcepub fn set_capacity_provider(self, input: Option<String>) -> Self
pub fn set_capacity_provider(self, input: Option<String>) -> Self
The short name of the capacity provider.
sourcepub fn get_capacity_provider(&self) -> &Option<String>
pub fn get_capacity_provider(&self) -> &Option<String>
The short name of the capacity provider.
sourcepub fn weight(self, input: i32) -> Self
pub fn weight(self, input: i32) -> Self
The relative percentage of the total number of tasks that should use the capacity provider.
If no weight is specified, the default value is 0. At least one capacity provider must have a weight greater than 0.
The value can be between 0 and 1000.
sourcepub fn set_weight(self, input: Option<i32>) -> Self
pub fn set_weight(self, input: Option<i32>) -> Self
The relative percentage of the total number of tasks that should use the capacity provider.
If no weight is specified, the default value is 0. At least one capacity provider must have a weight greater than 0.
The value can be between 0 and 1000.
sourcepub fn get_weight(&self) -> &Option<i32>
pub fn get_weight(&self) -> &Option<i32>
The relative percentage of the total number of tasks that should use the capacity provider.
If no weight is specified, the default value is 0. At least one capacity provider must have a weight greater than 0.
The value can be between 0 and 1000.
sourcepub fn build(self) -> AwsEcsServiceCapacityProviderStrategyDetails
pub fn build(self) -> AwsEcsServiceCapacityProviderStrategyDetails
Consumes the builder and constructs a AwsEcsServiceCapacityProviderStrategyDetails
.
Trait Implementations§
source§impl Clone for AwsEcsServiceCapacityProviderStrategyDetailsBuilder
impl Clone for AwsEcsServiceCapacityProviderStrategyDetailsBuilder
source§fn clone(&self) -> AwsEcsServiceCapacityProviderStrategyDetailsBuilder
fn clone(&self) -> AwsEcsServiceCapacityProviderStrategyDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsEcsServiceCapacityProviderStrategyDetailsBuilder
impl Default for AwsEcsServiceCapacityProviderStrategyDetailsBuilder
source§fn default() -> AwsEcsServiceCapacityProviderStrategyDetailsBuilder
fn default() -> AwsEcsServiceCapacityProviderStrategyDetailsBuilder
source§impl PartialEq for AwsEcsServiceCapacityProviderStrategyDetailsBuilder
impl PartialEq for AwsEcsServiceCapacityProviderStrategyDetailsBuilder
source§fn eq(
&self,
other: &AwsEcsServiceCapacityProviderStrategyDetailsBuilder
) -> bool
fn eq( &self, other: &AwsEcsServiceCapacityProviderStrategyDetailsBuilder ) -> bool
self
and other
values to be equal, and is used
by ==
.