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 DeleteDataTableInput {
    /// <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 to delete. Must also accept the table ARN. Fails with an error if the version is provided and is not $LATEST.</p>
    pub data_table_id: ::std::option::Option<::std::string::String>,
}
impl DeleteDataTableInput {
    /// <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 to delete. Must also accept the table ARN. Fails with an error if the version is provided and is not $LATEST.</p>
    pub fn data_table_id(&self) -> ::std::option::Option<&str> {
        self.data_table_id.as_deref()
    }
}
impl DeleteDataTableInput {
    /// Creates a new builder-style object to manufacture [`DeleteDataTableInput`](crate::operation::delete_data_table::DeleteDataTableInput).
    pub fn builder() -> crate::operation::delete_data_table::builders::DeleteDataTableInputBuilder {
        crate::operation::delete_data_table::builders::DeleteDataTableInputBuilder::default()
    }
}

/// A builder for [`DeleteDataTableInput`](crate::operation::delete_data_table::DeleteDataTableInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteDataTableInputBuilder {
    pub(crate) instance_id: ::std::option::Option<::std::string::String>,
    pub(crate) data_table_id: ::std::option::Option<::std::string::String>,
}
impl DeleteDataTableInputBuilder {
    /// <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 to delete. Must also accept the table ARN. Fails with an error if the version is provided and is not $LATEST.</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 to delete. Must also accept the table ARN. Fails with an error if the version is provided and is not $LATEST.</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 to delete. Must also accept the table ARN. Fails with an error if the version is provided and is not $LATEST.</p>
    pub fn get_data_table_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.data_table_id
    }
    /// Consumes the builder and constructs a [`DeleteDataTableInput`](crate::operation::delete_data_table::DeleteDataTableInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_data_table::DeleteDataTableInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_data_table::DeleteDataTableInput {
            instance_id: self.instance_id,
            data_table_id: self.data_table_id,
        })
    }
}