aws-sdk-connect 1.169.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 DescribeTestCaseInput {
    /// <p>The identifier of the Amazon Connect instance.</p>
    pub instance_id: ::std::option::Option<::std::string::String>,
    /// <p>The identifier of the test case.</p>
    pub test_case_id: ::std::option::Option<::std::string::String>,
    /// <p>The status of the test case version to retrieve. If not specified, returns the published version if available, otherwise returns the saved version.</p>
    pub status: ::std::option::Option<crate::types::TestCaseStatus>,
}
impl DescribeTestCaseInput {
    /// <p>The identifier of the Amazon Connect instance.</p>
    pub fn instance_id(&self) -> ::std::option::Option<&str> {
        self.instance_id.as_deref()
    }
    /// <p>The identifier of the test case.</p>
    pub fn test_case_id(&self) -> ::std::option::Option<&str> {
        self.test_case_id.as_deref()
    }
    /// <p>The status of the test case version to retrieve. If not specified, returns the published version if available, otherwise returns the saved version.</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::TestCaseStatus> {
        self.status.as_ref()
    }
}
impl DescribeTestCaseInput {
    /// Creates a new builder-style object to manufacture [`DescribeTestCaseInput`](crate::operation::describe_test_case::DescribeTestCaseInput).
    pub fn builder() -> crate::operation::describe_test_case::builders::DescribeTestCaseInputBuilder {
        crate::operation::describe_test_case::builders::DescribeTestCaseInputBuilder::default()
    }
}

/// A builder for [`DescribeTestCaseInput`](crate::operation::describe_test_case::DescribeTestCaseInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeTestCaseInputBuilder {
    pub(crate) instance_id: ::std::option::Option<::std::string::String>,
    pub(crate) test_case_id: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<crate::types::TestCaseStatus>,
}
impl DescribeTestCaseInputBuilder {
    /// <p>The identifier of the Amazon Connect instance.</p>
    /// This field is required.
    pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.instance_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the Amazon Connect instance.</p>
    pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.instance_id = input;
        self
    }
    /// <p>The identifier of the Amazon Connect instance.</p>
    pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.instance_id
    }
    /// <p>The identifier of the test case.</p>
    /// This field is required.
    pub fn test_case_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.test_case_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the test case.</p>
    pub fn set_test_case_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.test_case_id = input;
        self
    }
    /// <p>The identifier of the test case.</p>
    pub fn get_test_case_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.test_case_id
    }
    /// <p>The status of the test case version to retrieve. If not specified, returns the published version if available, otherwise returns the saved version.</p>
    pub fn status(mut self, input: crate::types::TestCaseStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status of the test case version to retrieve. If not specified, returns the published version if available, otherwise returns the saved version.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::TestCaseStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The status of the test case version to retrieve. If not specified, returns the published version if available, otherwise returns the saved version.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::TestCaseStatus> {
        &self.status
    }
    /// Consumes the builder and constructs a [`DescribeTestCaseInput`](crate::operation::describe_test_case::DescribeTestCaseInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_test_case::DescribeTestCaseInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_test_case::DescribeTestCaseInput {
            instance_id: self.instance_id,
            test_case_id: self.test_case_id,
            status: self.status,
        })
    }
}