Struct aws_sdk_sagemaker::model::DesiredWeightAndCapacity
source · #[non_exhaustive]pub struct DesiredWeightAndCapacity { /* private fields */ }
Expand description
Specifies weight and capacity values for a production variant.
Implementations§
source§impl DesiredWeightAndCapacity
impl DesiredWeightAndCapacity
sourcepub fn variant_name(&self) -> Option<&str>
pub fn variant_name(&self) -> Option<&str>
The name of the variant to update.
sourcepub fn desired_weight(&self) -> Option<f32>
pub fn desired_weight(&self) -> Option<f32>
The variant's weight.
sourcepub fn desired_instance_count(&self) -> Option<i32>
pub fn desired_instance_count(&self) -> Option<i32>
The variant's capacity.
source§impl DesiredWeightAndCapacity
impl DesiredWeightAndCapacity
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DesiredWeightAndCapacity
.
Trait Implementations§
source§impl Clone for DesiredWeightAndCapacity
impl Clone for DesiredWeightAndCapacity
source§fn clone(&self) -> DesiredWeightAndCapacity
fn clone(&self) -> DesiredWeightAndCapacity
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DesiredWeightAndCapacity
impl Debug for DesiredWeightAndCapacity
source§impl PartialEq<DesiredWeightAndCapacity> for DesiredWeightAndCapacity
impl PartialEq<DesiredWeightAndCapacity> for DesiredWeightAndCapacity
source§fn eq(&self, other: &DesiredWeightAndCapacity) -> bool
fn eq(&self, other: &DesiredWeightAndCapacity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.