aws-sdk-rds 1.131.0

AWS SDK for Amazon Relational Database 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 ModifyTenantDatabaseOutput {
    /// <p>A tenant database in the DB instance. This data type is an element in the response to the <code>DescribeTenantDatabases</code> action.</p>
    pub tenant_database: ::std::option::Option<crate::types::TenantDatabase>,
    _request_id: Option<String>,
}
impl ModifyTenantDatabaseOutput {
    /// <p>A tenant database in the DB instance. This data type is an element in the response to the <code>DescribeTenantDatabases</code> action.</p>
    pub fn tenant_database(&self) -> ::std::option::Option<&crate::types::TenantDatabase> {
        self.tenant_database.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for ModifyTenantDatabaseOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl ModifyTenantDatabaseOutput {
    /// Creates a new builder-style object to manufacture [`ModifyTenantDatabaseOutput`](crate::operation::modify_tenant_database::ModifyTenantDatabaseOutput).
    pub fn builder() -> crate::operation::modify_tenant_database::builders::ModifyTenantDatabaseOutputBuilder {
        crate::operation::modify_tenant_database::builders::ModifyTenantDatabaseOutputBuilder::default()
    }
}

/// A builder for [`ModifyTenantDatabaseOutput`](crate::operation::modify_tenant_database::ModifyTenantDatabaseOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ModifyTenantDatabaseOutputBuilder {
    pub(crate) tenant_database: ::std::option::Option<crate::types::TenantDatabase>,
    _request_id: Option<String>,
}
impl ModifyTenantDatabaseOutputBuilder {
    /// <p>A tenant database in the DB instance. This data type is an element in the response to the <code>DescribeTenantDatabases</code> action.</p>
    pub fn tenant_database(mut self, input: crate::types::TenantDatabase) -> Self {
        self.tenant_database = ::std::option::Option::Some(input);
        self
    }
    /// <p>A tenant database in the DB instance. This data type is an element in the response to the <code>DescribeTenantDatabases</code> action.</p>
    pub fn set_tenant_database(mut self, input: ::std::option::Option<crate::types::TenantDatabase>) -> Self {
        self.tenant_database = input;
        self
    }
    /// <p>A tenant database in the DB instance. This data type is an element in the response to the <code>DescribeTenantDatabases</code> action.</p>
    pub fn get_tenant_database(&self) -> &::std::option::Option<crate::types::TenantDatabase> {
        &self.tenant_database
    }
    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 [`ModifyTenantDatabaseOutput`](crate::operation::modify_tenant_database::ModifyTenantDatabaseOutput).
    pub fn build(self) -> crate::operation::modify_tenant_database::ModifyTenantDatabaseOutput {
        crate::operation::modify_tenant_database::ModifyTenantDatabaseOutput {
            tenant_database: self.tenant_database,
            _request_id: self._request_id,
        }
    }
}