Struct aws_sdk_sagemaker::types::builders::VariantPropertyBuilder
source · #[non_exhaustive]pub struct VariantPropertyBuilder { /* private fields */ }Expand description
A builder for VariantProperty.
Implementations§
source§impl VariantPropertyBuilder
impl VariantPropertyBuilder
sourcepub fn variant_property_type(self, input: VariantPropertyType) -> Self
pub fn variant_property_type(self, input: VariantPropertyType) -> Self
The type of variant property. The supported values are:
-
DesiredInstanceCount: Overrides the existing variant instance counts using theInitialInstanceCountvalues in theProductionVariantsof CreateEndpointConfig. -
DesiredWeight: Overrides the existing variant weights using theInitialVariantWeightvalues in theProductionVariantsof CreateEndpointConfig. -
DataCaptureConfig: (Not currently supported.)
sourcepub fn set_variant_property_type(
self,
input: Option<VariantPropertyType>
) -> Self
pub fn set_variant_property_type( self, input: Option<VariantPropertyType> ) -> Self
The type of variant property. The supported values are:
-
DesiredInstanceCount: Overrides the existing variant instance counts using theInitialInstanceCountvalues in theProductionVariantsof CreateEndpointConfig. -
DesiredWeight: Overrides the existing variant weights using theInitialVariantWeightvalues in theProductionVariantsof CreateEndpointConfig. -
DataCaptureConfig: (Not currently supported.)
sourcepub fn get_variant_property_type(&self) -> &Option<VariantPropertyType>
pub fn get_variant_property_type(&self) -> &Option<VariantPropertyType>
The type of variant property. The supported values are:
-
DesiredInstanceCount: Overrides the existing variant instance counts using theInitialInstanceCountvalues in theProductionVariantsof CreateEndpointConfig. -
DesiredWeight: Overrides the existing variant weights using theInitialVariantWeightvalues in theProductionVariantsof CreateEndpointConfig. -
DataCaptureConfig: (Not currently supported.)
sourcepub fn build(self) -> VariantProperty
pub fn build(self) -> VariantProperty
Consumes the builder and constructs a VariantProperty.
Trait Implementations§
source§impl Clone for VariantPropertyBuilder
impl Clone for VariantPropertyBuilder
source§fn clone(&self) -> VariantPropertyBuilder
fn clone(&self) -> VariantPropertyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for VariantPropertyBuilder
impl Debug for VariantPropertyBuilder
source§impl Default for VariantPropertyBuilder
impl Default for VariantPropertyBuilder
source§fn default() -> VariantPropertyBuilder
fn default() -> VariantPropertyBuilder
source§impl PartialEq for VariantPropertyBuilder
impl PartialEq for VariantPropertyBuilder
source§fn eq(&self, other: &VariantPropertyBuilder) -> bool
fn eq(&self, other: &VariantPropertyBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for VariantPropertyBuilder
Auto Trait Implementations§
impl Freeze for VariantPropertyBuilder
impl RefUnwindSafe for VariantPropertyBuilder
impl Send for VariantPropertyBuilder
impl Sync for VariantPropertyBuilder
impl Unpin for VariantPropertyBuilder
impl UnwindSafe for VariantPropertyBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more