aws-sdk-personalize 1.102.0

AWS SDK for Amazon Personalize
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 DescribeSolutionOutput {
    /// <p>An object that describes the solution.</p>
    pub solution: ::std::option::Option<crate::types::Solution>,
    _request_id: Option<String>,
}
impl DescribeSolutionOutput {
    /// <p>An object that describes the solution.</p>
    pub fn solution(&self) -> ::std::option::Option<&crate::types::Solution> {
        self.solution.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DescribeSolutionOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DescribeSolutionOutput {
    /// Creates a new builder-style object to manufacture [`DescribeSolutionOutput`](crate::operation::describe_solution::DescribeSolutionOutput).
    pub fn builder() -> crate::operation::describe_solution::builders::DescribeSolutionOutputBuilder {
        crate::operation::describe_solution::builders::DescribeSolutionOutputBuilder::default()
    }
}

/// A builder for [`DescribeSolutionOutput`](crate::operation::describe_solution::DescribeSolutionOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeSolutionOutputBuilder {
    pub(crate) solution: ::std::option::Option<crate::types::Solution>,
    _request_id: Option<String>,
}
impl DescribeSolutionOutputBuilder {
    /// <p>An object that describes the solution.</p>
    pub fn solution(mut self, input: crate::types::Solution) -> Self {
        self.solution = ::std::option::Option::Some(input);
        self
    }
    /// <p>An object that describes the solution.</p>
    pub fn set_solution(mut self, input: ::std::option::Option<crate::types::Solution>) -> Self {
        self.solution = input;
        self
    }
    /// <p>An object that describes the solution.</p>
    pub fn get_solution(&self) -> &::std::option::Option<crate::types::Solution> {
        &self.solution
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`DescribeSolutionOutput`](crate::operation::describe_solution::DescribeSolutionOutput).
    pub fn build(self) -> crate::operation::describe_solution::DescribeSolutionOutput {
        crate::operation::describe_solution::DescribeSolutionOutput {
            solution: self.solution,
            _request_id: self._request_id,
        }
    }
}