#[non_exhaustive]pub struct CapacityProviderStrategyItemBuilder { /* private fields */ }
Expand description
A builder for CapacityProviderStrategyItem
.
Implementations§
source§impl CapacityProviderStrategyItemBuilder
impl CapacityProviderStrategyItemBuilder
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.
This field is required.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 weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied.
sourcepub fn set_weight(self, input: Option<i32>) -> Self
pub fn set_weight(self, input: Option<i32>) -> Self
The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied.
sourcepub fn get_weight(&self) -> &Option<i32>
pub fn get_weight(&self) -> &Option<i32>
The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied.
sourcepub fn base(self, input: i32) -> Self
pub fn base(self, input: i32) -> Self
The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0 is used.
sourcepub fn set_base(self, input: Option<i32>) -> Self
pub fn set_base(self, input: Option<i32>) -> Self
The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0 is used.
sourcepub fn get_base(&self) -> &Option<i32>
pub fn get_base(&self) -> &Option<i32>
The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0 is used.
sourcepub fn build(self) -> Result<CapacityProviderStrategyItem, BuildError>
pub fn build(self) -> Result<CapacityProviderStrategyItem, BuildError>
Consumes the builder and constructs a CapacityProviderStrategyItem
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CapacityProviderStrategyItemBuilder
impl Clone for CapacityProviderStrategyItemBuilder
source§fn clone(&self) -> CapacityProviderStrategyItemBuilder
fn clone(&self) -> CapacityProviderStrategyItemBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CapacityProviderStrategyItemBuilder
impl Default for CapacityProviderStrategyItemBuilder
source§fn default() -> CapacityProviderStrategyItemBuilder
fn default() -> CapacityProviderStrategyItemBuilder
source§impl PartialEq for CapacityProviderStrategyItemBuilder
impl PartialEq for CapacityProviderStrategyItemBuilder
source§fn eq(&self, other: &CapacityProviderStrategyItemBuilder) -> bool
fn eq(&self, other: &CapacityProviderStrategyItemBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.