Struct aws_sdk_sagemaker::model::capacity_size::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CapacitySize
.
Implementations§
source§impl 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
.