1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Details about the runtime settings for the model that is deployed with the inference component.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct InferenceComponentRuntimeConfigSummary {
/// <p>The number of runtime copies of the model container that you requested to deploy with the inference component.</p>
pub desired_copy_count: ::std::option::Option<i32>,
/// <p>The number of runtime copies of the model container that are currently deployed.</p>
pub current_copy_count: ::std::option::Option<i32>,
}
impl InferenceComponentRuntimeConfigSummary {
/// <p>The number of runtime copies of the model container that you requested to deploy with the inference component.</p>
pub fn desired_copy_count(&self) -> ::std::option::Option<i32> {
self.desired_copy_count
}
/// <p>The number of runtime copies of the model container that are currently deployed.</p>
pub fn current_copy_count(&self) -> ::std::option::Option<i32> {
self.current_copy_count
}
}
impl InferenceComponentRuntimeConfigSummary {
/// Creates a new builder-style object to manufacture [`InferenceComponentRuntimeConfigSummary`](crate::types::InferenceComponentRuntimeConfigSummary).
pub fn builder() -> crate::types::builders::InferenceComponentRuntimeConfigSummaryBuilder {
crate::types::builders::InferenceComponentRuntimeConfigSummaryBuilder::default()
}
}
/// A builder for [`InferenceComponentRuntimeConfigSummary`](crate::types::InferenceComponentRuntimeConfigSummary).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct InferenceComponentRuntimeConfigSummaryBuilder {
pub(crate) desired_copy_count: ::std::option::Option<i32>,
pub(crate) current_copy_count: ::std::option::Option<i32>,
}
impl InferenceComponentRuntimeConfigSummaryBuilder {
/// <p>The number of runtime copies of the model container that you requested to deploy with the inference component.</p>
pub fn desired_copy_count(mut self, input: i32) -> Self {
self.desired_copy_count = ::std::option::Option::Some(input);
self
}
/// <p>The number of runtime copies of the model container that you requested to deploy with the inference component.</p>
pub fn set_desired_copy_count(mut self, input: ::std::option::Option<i32>) -> Self {
self.desired_copy_count = input;
self
}
/// <p>The number of runtime copies of the model container that you requested to deploy with the inference component.</p>
pub fn get_desired_copy_count(&self) -> &::std::option::Option<i32> {
&self.desired_copy_count
}
/// <p>The number of runtime copies of the model container that are currently deployed.</p>
pub fn current_copy_count(mut self, input: i32) -> Self {
self.current_copy_count = ::std::option::Option::Some(input);
self
}
/// <p>The number of runtime copies of the model container that are currently deployed.</p>
pub fn set_current_copy_count(mut self, input: ::std::option::Option<i32>) -> Self {
self.current_copy_count = input;
self
}
/// <p>The number of runtime copies of the model container that are currently deployed.</p>
pub fn get_current_copy_count(&self) -> &::std::option::Option<i32> {
&self.current_copy_count
}
/// Consumes the builder and constructs a [`InferenceComponentRuntimeConfigSummary`](crate::types::InferenceComponentRuntimeConfigSummary).
pub fn build(self) -> crate::types::InferenceComponentRuntimeConfigSummary {
crate::types::InferenceComponentRuntimeConfigSummary {
desired_copy_count: self.desired_copy_count,
current_copy_count: self.current_copy_count,
}
}
}