Skip to main content

aws_sdk_sagemaker/types/
_inference_component_runtime_config_summary.rs

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