pub struct Builder { /* private fields */ }
Expand description
A builder for DesiredWeightAndCapacity
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn variant_name(self, input: impl Into<String>) -> Self
pub fn variant_name(self, input: impl Into<String>) -> Self
The name of the variant to update.
sourcepub fn set_variant_name(self, input: Option<String>) -> Self
pub fn set_variant_name(self, input: Option<String>) -> Self
The name of the variant to update.
sourcepub fn desired_weight(self, input: f32) -> Self
pub fn desired_weight(self, input: f32) -> Self
The variant's weight.
sourcepub fn set_desired_weight(self, input: Option<f32>) -> Self
pub fn set_desired_weight(self, input: Option<f32>) -> Self
The variant's weight.
sourcepub fn desired_instance_count(self, input: i32) -> Self
pub fn desired_instance_count(self, input: i32) -> Self
The variant's capacity.
sourcepub fn set_desired_instance_count(self, input: Option<i32>) -> Self
pub fn set_desired_instance_count(self, input: Option<i32>) -> Self
The variant's capacity.
sourcepub fn build(self) -> DesiredWeightAndCapacity
pub fn build(self) -> DesiredWeightAndCapacity
Consumes the builder and constructs a DesiredWeightAndCapacity
.