aws-sdk-machinelearning 1.98.0

AWS SDK for Amazon Machine Learning
Documentation
// 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 GetBatchPredictionInput {
    /// <p>An ID assigned to the <code>BatchPrediction</code> at creation.</p>
    pub batch_prediction_id: ::std::option::Option<::std::string::String>,
}
impl GetBatchPredictionInput {
    /// <p>An ID assigned to the <code>BatchPrediction</code> at creation.</p>
    pub fn batch_prediction_id(&self) -> ::std::option::Option<&str> {
        self.batch_prediction_id.as_deref()
    }
}
impl GetBatchPredictionInput {
    /// Creates a new builder-style object to manufacture [`GetBatchPredictionInput`](crate::operation::get_batch_prediction::GetBatchPredictionInput).
    pub fn builder() -> crate::operation::get_batch_prediction::builders::GetBatchPredictionInputBuilder {
        crate::operation::get_batch_prediction::builders::GetBatchPredictionInputBuilder::default()
    }
}

/// A builder for [`GetBatchPredictionInput`](crate::operation::get_batch_prediction::GetBatchPredictionInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetBatchPredictionInputBuilder {
    pub(crate) batch_prediction_id: ::std::option::Option<::std::string::String>,
}
impl GetBatchPredictionInputBuilder {
    /// <p>An ID assigned to the <code>BatchPrediction</code> at creation.</p>
    /// This field is required.
    pub fn batch_prediction_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.batch_prediction_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>An ID assigned to the <code>BatchPrediction</code> at creation.</p>
    pub fn set_batch_prediction_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.batch_prediction_id = input;
        self
    }
    /// <p>An ID assigned to the <code>BatchPrediction</code> at creation.</p>
    pub fn get_batch_prediction_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.batch_prediction_id
    }
    /// Consumes the builder and constructs a [`GetBatchPredictionInput`](crate::operation::get_batch_prediction::GetBatchPredictionInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_batch_prediction::GetBatchPredictionInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_batch_prediction::GetBatchPredictionInput {
            batch_prediction_id: self.batch_prediction_id,
        })
    }
}