aws-sdk-connect 1.159.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 DescribeDataTableInput {
    /// <p>The unique identifier for the Amazon Connect instance.</p>
    pub instance_id: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier for the data table. Must also accept the table ARN with or without a version alias. If no alias is provided, the default behavior is identical to providing the $LATEST alias.</p>
    pub data_table_id: ::std::option::Option<::std::string::String>,
}
impl DescribeDataTableInput {
    /// <p>The unique identifier for the Amazon Connect instance.</p>
    pub fn instance_id(&self) -> ::std::option::Option<&str> {
        self.instance_id.as_deref()
    }
    /// <p>The unique identifier for the data table. Must also accept the table ARN with or without a version alias. If no alias is provided, the default behavior is identical to providing the $LATEST alias.</p>
    pub fn data_table_id(&self) -> ::std::option::Option<&str> {
        self.data_table_id.as_deref()
    }
}
impl DescribeDataTableInput {
    /// Creates a new builder-style object to manufacture [`DescribeDataTableInput`](crate::operation::describe_data_table::DescribeDataTableInput).
    pub fn builder() -> crate::operation::describe_data_table::builders::DescribeDataTableInputBuilder {
        crate::operation::describe_data_table::builders::DescribeDataTableInputBuilder::default()
    }
}

/// A builder for [`DescribeDataTableInput`](crate::operation::describe_data_table::DescribeDataTableInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeDataTableInputBuilder {
    pub(crate) instance_id: ::std::option::Option<::std::string::String>,
    pub(crate) data_table_id: ::std::option::Option<::std::string::String>,
}
impl DescribeDataTableInputBuilder {
    /// <p>The unique identifier for 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 unique identifier for 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 unique identifier for the Amazon Connect instance.</p>
    pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.instance_id
    }
    /// <p>The unique identifier for the data table. Must also accept the table ARN with or without a version alias. If no alias is provided, the default behavior is identical to providing the $LATEST alias.</p>
    /// This field is required.
    pub fn data_table_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.data_table_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier for the data table. Must also accept the table ARN with or without a version alias. If no alias is provided, the default behavior is identical to providing the $LATEST alias.</p>
    pub fn set_data_table_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.data_table_id = input;
        self
    }
    /// <p>The unique identifier for the data table. Must also accept the table ARN with or without a version alias. If no alias is provided, the default behavior is identical to providing the $LATEST alias.</p>
    pub fn get_data_table_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.data_table_id
    }
    /// Consumes the builder and constructs a [`DescribeDataTableInput`](crate::operation::describe_data_table::DescribeDataTableInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_data_table::DescribeDataTableInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_data_table::DescribeDataTableInput {
            instance_id: self.instance_id,
            data_table_id: self.data_table_id,
        })
    }
}