aws-sdk-lexmodelsv2 1.111.0

AWS SDK for Amazon Lex Model Building V2
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 DescribeTestSetInput {
    /// <p>The test set Id for the test set request.</p>
    pub test_set_id: ::std::option::Option<::std::string::String>,
}
impl DescribeTestSetInput {
    /// <p>The test set Id for the test set request.</p>
    pub fn test_set_id(&self) -> ::std::option::Option<&str> {
        self.test_set_id.as_deref()
    }
}
impl DescribeTestSetInput {
    /// Creates a new builder-style object to manufacture [`DescribeTestSetInput`](crate::operation::describe_test_set::DescribeTestSetInput).
    pub fn builder() -> crate::operation::describe_test_set::builders::DescribeTestSetInputBuilder {
        crate::operation::describe_test_set::builders::DescribeTestSetInputBuilder::default()
    }
}

/// A builder for [`DescribeTestSetInput`](crate::operation::describe_test_set::DescribeTestSetInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeTestSetInputBuilder {
    pub(crate) test_set_id: ::std::option::Option<::std::string::String>,
}
impl DescribeTestSetInputBuilder {
    /// <p>The test set Id for the test set request.</p>
    /// This field is required.
    pub fn test_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.test_set_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The test set Id for the test set request.</p>
    pub fn set_test_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.test_set_id = input;
        self
    }
    /// <p>The test set Id for the test set request.</p>
    pub fn get_test_set_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.test_set_id
    }
    /// Consumes the builder and constructs a [`DescribeTestSetInput`](crate::operation::describe_test_set::DescribeTestSetInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_test_set::DescribeTestSetInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_test_set::DescribeTestSetInput {
            test_set_id: self.test_set_id,
        })
    }
}