aws-sdk-connect 1.153.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 DescribeDataTableOutput {
    /// <p>The complete data table information including metadata, configuration, and versioning details.</p>
    pub data_table: ::std::option::Option<crate::types::DataTable>,
    _request_id: Option<String>,
}
impl DescribeDataTableOutput {
    /// <p>The complete data table information including metadata, configuration, and versioning details.</p>
    pub fn data_table(&self) -> ::std::option::Option<&crate::types::DataTable> {
        self.data_table.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DescribeDataTableOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DescribeDataTableOutput {
    /// Creates a new builder-style object to manufacture [`DescribeDataTableOutput`](crate::operation::describe_data_table::DescribeDataTableOutput).
    pub fn builder() -> crate::operation::describe_data_table::builders::DescribeDataTableOutputBuilder {
        crate::operation::describe_data_table::builders::DescribeDataTableOutputBuilder::default()
    }
}

/// A builder for [`DescribeDataTableOutput`](crate::operation::describe_data_table::DescribeDataTableOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeDataTableOutputBuilder {
    pub(crate) data_table: ::std::option::Option<crate::types::DataTable>,
    _request_id: Option<String>,
}
impl DescribeDataTableOutputBuilder {
    /// <p>The complete data table information including metadata, configuration, and versioning details.</p>
    /// This field is required.
    pub fn data_table(mut self, input: crate::types::DataTable) -> Self {
        self.data_table = ::std::option::Option::Some(input);
        self
    }
    /// <p>The complete data table information including metadata, configuration, and versioning details.</p>
    pub fn set_data_table(mut self, input: ::std::option::Option<crate::types::DataTable>) -> Self {
        self.data_table = input;
        self
    }
    /// <p>The complete data table information including metadata, configuration, and versioning details.</p>
    pub fn get_data_table(&self) -> &::std::option::Option<crate::types::DataTable> {
        &self.data_table
    }
    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 [`DescribeDataTableOutput`](crate::operation::describe_data_table::DescribeDataTableOutput).
    pub fn build(self) -> crate::operation::describe_data_table::DescribeDataTableOutput {
        crate::operation::describe_data_table::DescribeDataTableOutput {
            data_table: self.data_table,
            _request_id: self._request_id,
        }
    }
}