pub struct Builder { /* private fields */ }
Expand description
A builder for ProductionVariantSummary
.
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.
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.
sourcepub fn deployed_images(self, input: DeployedImage) -> Self
pub fn deployed_images(self, input: DeployedImage) -> Self
Appends an item to deployed_images
.
To override the contents of this collection use set_deployed_images
.
An array of DeployedImage
objects that specify the Amazon EC2 Container Registry paths of the inference images deployed on instances of this ProductionVariant
.
sourcepub fn set_deployed_images(self, input: Option<Vec<DeployedImage>>) -> Self
pub fn set_deployed_images(self, input: Option<Vec<DeployedImage>>) -> Self
An array of DeployedImage
objects that specify the Amazon EC2 Container Registry paths of the inference images deployed on instances of this ProductionVariant
.
sourcepub fn current_weight(self, input: f32) -> Self
pub fn current_weight(self, input: f32) -> Self
The weight associated with the variant.
sourcepub fn set_current_weight(self, input: Option<f32>) -> Self
pub fn set_current_weight(self, input: Option<f32>) -> Self
The weight associated with the variant.
sourcepub fn desired_weight(self, input: f32) -> Self
pub fn desired_weight(self, input: f32) -> Self
The requested weight, as specified in the UpdateEndpointWeightsAndCapacities
request.
sourcepub fn set_desired_weight(self, input: Option<f32>) -> Self
pub fn set_desired_weight(self, input: Option<f32>) -> Self
The requested weight, as specified in the UpdateEndpointWeightsAndCapacities
request.
sourcepub fn current_instance_count(self, input: i32) -> Self
pub fn current_instance_count(self, input: i32) -> Self
The number of instances associated with the variant.
sourcepub fn set_current_instance_count(self, input: Option<i32>) -> Self
pub fn set_current_instance_count(self, input: Option<i32>) -> Self
The number of instances associated with the variant.
sourcepub fn desired_instance_count(self, input: i32) -> Self
pub fn desired_instance_count(self, input: i32) -> Self
The number of instances requested in the UpdateEndpointWeightsAndCapacities
request.
sourcepub fn set_desired_instance_count(self, input: Option<i32>) -> Self
pub fn set_desired_instance_count(self, input: Option<i32>) -> Self
The number of instances requested in the UpdateEndpointWeightsAndCapacities
request.
sourcepub fn variant_status(self, input: ProductionVariantStatus) -> Self
pub fn variant_status(self, input: ProductionVariantStatus) -> Self
Appends an item to variant_status
.
To override the contents of this collection use set_variant_status
.
The endpoint variant status which describes the current deployment stage status or operational status.
sourcepub fn set_variant_status(
self,
input: Option<Vec<ProductionVariantStatus>>
) -> Self
pub fn set_variant_status(
self,
input: Option<Vec<ProductionVariantStatus>>
) -> Self
The endpoint variant status which describes the current deployment stage status or operational status.
sourcepub fn current_serverless_config(
self,
input: ProductionVariantServerlessConfig
) -> Self
pub fn current_serverless_config(
self,
input: ProductionVariantServerlessConfig
) -> Self
The serverless configuration for the endpoint.
sourcepub fn set_current_serverless_config(
self,
input: Option<ProductionVariantServerlessConfig>
) -> Self
pub fn set_current_serverless_config(
self,
input: Option<ProductionVariantServerlessConfig>
) -> Self
The serverless configuration for the endpoint.
sourcepub fn desired_serverless_config(
self,
input: ProductionVariantServerlessConfig
) -> Self
pub fn desired_serverless_config(
self,
input: ProductionVariantServerlessConfig
) -> Self
The serverless configuration requested for the endpoint update.
sourcepub fn set_desired_serverless_config(
self,
input: Option<ProductionVariantServerlessConfig>
) -> Self
pub fn set_desired_serverless_config(
self,
input: Option<ProductionVariantServerlessConfig>
) -> Self
The serverless configuration requested for the endpoint update.
sourcepub fn build(self) -> ProductionVariantSummary
pub fn build(self) -> ProductionVariantSummary
Consumes the builder and constructs a ProductionVariantSummary
.