Struct aws_sdk_sagemaker::model::capacity_size::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for CapacitySize.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn type(self, input: CapacitySizeType) -> Self
pub fn type(self, input: CapacitySizeType) -> Self
Specifies the endpoint capacity type.
-
INSTANCE_COUNT: The endpoint activates based on the number of instances. -
CAPACITY_PERCENT: The endpoint activates based on the specified percentage of capacity.
sourcepub fn set_type(self, input: Option<CapacitySizeType>) -> Self
pub fn set_type(self, input: Option<CapacitySizeType>) -> Self
Specifies the endpoint capacity type.
-
INSTANCE_COUNT: The endpoint activates based on the number of instances. -
CAPACITY_PERCENT: The endpoint activates based on the specified percentage of capacity.
sourcepub fn value(self, input: i32) -> Self
pub fn value(self, input: i32) -> Self
Defines the capacity size, either as a number of instances or a capacity percentage.
sourcepub fn set_value(self, input: Option<i32>) -> Self
pub fn set_value(self, input: Option<i32>) -> Self
Defines the capacity size, either as a number of instances or a capacity percentage.
sourcepub fn build(self) -> CapacitySize
pub fn build(self) -> CapacitySize
Consumes the builder and constructs a CapacitySize.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more