aws-sdk-connect 1.152.0

AWS SDK for Amazon Connect Service
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 DescribeTestCaseOutput {
    /// <p>The test case object containing all test case information.</p>
    pub test_case: ::std::option::Option<crate::types::TestCase>,
    _request_id: Option<String>,
}
impl DescribeTestCaseOutput {
    /// <p>The test case object containing all test case information.</p>
    pub fn test_case(&self) -> ::std::option::Option<&crate::types::TestCase> {
        self.test_case.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DescribeTestCaseOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DescribeTestCaseOutput {
    /// Creates a new builder-style object to manufacture [`DescribeTestCaseOutput`](crate::operation::describe_test_case::DescribeTestCaseOutput).
    pub fn builder() -> crate::operation::describe_test_case::builders::DescribeTestCaseOutputBuilder {
        crate::operation::describe_test_case::builders::DescribeTestCaseOutputBuilder::default()
    }
}

/// A builder for [`DescribeTestCaseOutput`](crate::operation::describe_test_case::DescribeTestCaseOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeTestCaseOutputBuilder {
    pub(crate) test_case: ::std::option::Option<crate::types::TestCase>,
    _request_id: Option<String>,
}
impl DescribeTestCaseOutputBuilder {
    /// <p>The test case object containing all test case information.</p>
    pub fn test_case(mut self, input: crate::types::TestCase) -> Self {
        self.test_case = ::std::option::Option::Some(input);
        self
    }
    /// <p>The test case object containing all test case information.</p>
    pub fn set_test_case(mut self, input: ::std::option::Option<crate::types::TestCase>) -> Self {
        self.test_case = input;
        self
    }
    /// <p>The test case object containing all test case information.</p>
    pub fn get_test_case(&self) -> &::std::option::Option<crate::types::TestCase> {
        &self.test_case
    }
    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 [`DescribeTestCaseOutput`](crate::operation::describe_test_case::DescribeTestCaseOutput).
    pub fn build(self) -> crate::operation::describe_test_case::DescribeTestCaseOutput {
        crate::operation::describe_test_case::DescribeTestCaseOutput {
            test_case: self.test_case,
            _request_id: self._request_id,
        }
    }
}