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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetEvaluationInput {
    /// <p>The ID of the <code>Evaluation</code> to retrieve. The evaluation of each <code>MLModel</code> is recorded and cataloged. The ID provides the means to access the information.</p>
    pub evaluation_id: ::std::option::Option<::std::string::String>,
}
impl GetEvaluationInput {
    /// <p>The ID of the <code>Evaluation</code> to retrieve. The evaluation of each <code>MLModel</code> is recorded and cataloged. The ID provides the means to access the information.</p>
    pub fn evaluation_id(&self) -> ::std::option::Option<&str> {
        self.evaluation_id.as_deref()
    }
}
impl GetEvaluationInput {
    /// Creates a new builder-style object to manufacture [`GetEvaluationInput`](crate::operation::get_evaluation::GetEvaluationInput).
    pub fn builder() -> crate::operation::get_evaluation::builders::GetEvaluationInputBuilder {
        crate::operation::get_evaluation::builders::GetEvaluationInputBuilder::default()
    }
}
/// A builder for [`GetEvaluationInput`](crate::operation::get_evaluation::GetEvaluationInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetEvaluationInputBuilder {
    pub(crate) evaluation_id: ::std::option::Option<::std::string::String>,
}
impl GetEvaluationInputBuilder {
    /// <p>The ID of the <code>Evaluation</code> to retrieve. The evaluation of each <code>MLModel</code> is recorded and cataloged. The ID provides the means to access the information.</p>
    /// This field is required.
    pub fn evaluation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.evaluation_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the <code>Evaluation</code> to retrieve. The evaluation of each <code>MLModel</code> is recorded and cataloged. The ID provides the means to access the information.</p>
    pub fn set_evaluation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.evaluation_id = input;
        self
    }
    /// <p>The ID of the <code>Evaluation</code> to retrieve. The evaluation of each <code>MLModel</code> is recorded and cataloged. The ID provides the means to access the information.</p>
    pub fn get_evaluation_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.evaluation_id
    }
    /// Consumes the builder and constructs a [`GetEvaluationInput`](crate::operation::get_evaluation::GetEvaluationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_evaluation::GetEvaluationInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_evaluation::GetEvaluationInput {
            evaluation_id: self.evaluation_id,
        })
    }
}