#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct TenantDatabase {
pub tenant_database_create_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub db_instance_identifier: ::std::option::Option<::std::string::String>,
pub tenant_db_name: ::std::option::Option<::std::string::String>,
pub status: ::std::option::Option<::std::string::String>,
pub master_username: ::std::option::Option<::std::string::String>,
pub dbi_resource_id: ::std::option::Option<::std::string::String>,
pub tenant_database_resource_id: ::std::option::Option<::std::string::String>,
pub tenant_database_arn: ::std::option::Option<::std::string::String>,
pub character_set_name: ::std::option::Option<::std::string::String>,
pub nchar_character_set_name: ::std::option::Option<::std::string::String>,
pub deletion_protection: ::std::option::Option<bool>,
pub pending_modified_values: ::std::option::Option<crate::types::TenantDatabasePendingModifiedValues>,
pub tag_list: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
}
impl TenantDatabase {
pub fn tenant_database_create_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.tenant_database_create_time.as_ref()
}
pub fn db_instance_identifier(&self) -> ::std::option::Option<&str> {
self.db_instance_identifier.as_deref()
}
pub fn tenant_db_name(&self) -> ::std::option::Option<&str> {
self.tenant_db_name.as_deref()
}
pub fn status(&self) -> ::std::option::Option<&str> {
self.status.as_deref()
}
pub fn master_username(&self) -> ::std::option::Option<&str> {
self.master_username.as_deref()
}
pub fn dbi_resource_id(&self) -> ::std::option::Option<&str> {
self.dbi_resource_id.as_deref()
}
pub fn tenant_database_resource_id(&self) -> ::std::option::Option<&str> {
self.tenant_database_resource_id.as_deref()
}
pub fn tenant_database_arn(&self) -> ::std::option::Option<&str> {
self.tenant_database_arn.as_deref()
}
pub fn character_set_name(&self) -> ::std::option::Option<&str> {
self.character_set_name.as_deref()
}
pub fn nchar_character_set_name(&self) -> ::std::option::Option<&str> {
self.nchar_character_set_name.as_deref()
}
pub fn deletion_protection(&self) -> ::std::option::Option<bool> {
self.deletion_protection
}
pub fn pending_modified_values(&self) -> ::std::option::Option<&crate::types::TenantDatabasePendingModifiedValues> {
self.pending_modified_values.as_ref()
}
pub fn tag_list(&self) -> &[crate::types::Tag] {
self.tag_list.as_deref().unwrap_or_default()
}
}
impl TenantDatabase {
pub fn builder() -> crate::types::builders::TenantDatabaseBuilder {
crate::types::builders::TenantDatabaseBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct TenantDatabaseBuilder {
pub(crate) tenant_database_create_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) db_instance_identifier: ::std::option::Option<::std::string::String>,
pub(crate) tenant_db_name: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<::std::string::String>,
pub(crate) master_username: ::std::option::Option<::std::string::String>,
pub(crate) dbi_resource_id: ::std::option::Option<::std::string::String>,
pub(crate) tenant_database_resource_id: ::std::option::Option<::std::string::String>,
pub(crate) tenant_database_arn: ::std::option::Option<::std::string::String>,
pub(crate) character_set_name: ::std::option::Option<::std::string::String>,
pub(crate) nchar_character_set_name: ::std::option::Option<::std::string::String>,
pub(crate) deletion_protection: ::std::option::Option<bool>,
pub(crate) pending_modified_values: ::std::option::Option<crate::types::TenantDatabasePendingModifiedValues>,
pub(crate) tag_list: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
}
impl TenantDatabaseBuilder {
pub fn tenant_database_create_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.tenant_database_create_time = ::std::option::Option::Some(input);
self
}
pub fn set_tenant_database_create_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.tenant_database_create_time = input;
self
}
pub fn get_tenant_database_create_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.tenant_database_create_time
}
pub fn db_instance_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.db_instance_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_db_instance_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.db_instance_identifier = input;
self
}
pub fn get_db_instance_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.db_instance_identifier
}
pub fn tenant_db_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.tenant_db_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_tenant_db_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.tenant_db_name = input;
self
}
pub fn get_tenant_db_name(&self) -> &::std::option::Option<::std::string::String> {
&self.tenant_db_name
}
pub fn status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.status = ::std::option::Option::Some(input.into());
self
}
pub fn set_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.status = input;
self
}
pub fn get_status(&self) -> &::std::option::Option<::std::string::String> {
&self.status
}
pub fn master_username(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.master_username = ::std::option::Option::Some(input.into());
self
}
pub fn set_master_username(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.master_username = input;
self
}
pub fn get_master_username(&self) -> &::std::option::Option<::std::string::String> {
&self.master_username
}
pub fn dbi_resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.dbi_resource_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_dbi_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.dbi_resource_id = input;
self
}
pub fn get_dbi_resource_id(&self) -> &::std::option::Option<::std::string::String> {
&self.dbi_resource_id
}
pub fn tenant_database_resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.tenant_database_resource_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_tenant_database_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.tenant_database_resource_id = input;
self
}
pub fn get_tenant_database_resource_id(&self) -> &::std::option::Option<::std::string::String> {
&self.tenant_database_resource_id
}
pub fn tenant_database_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.tenant_database_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_tenant_database_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.tenant_database_arn = input;
self
}
pub fn get_tenant_database_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.tenant_database_arn
}
pub fn character_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.character_set_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_character_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.character_set_name = input;
self
}
pub fn get_character_set_name(&self) -> &::std::option::Option<::std::string::String> {
&self.character_set_name
}
pub fn nchar_character_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.nchar_character_set_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_nchar_character_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.nchar_character_set_name = input;
self
}
pub fn get_nchar_character_set_name(&self) -> &::std::option::Option<::std::string::String> {
&self.nchar_character_set_name
}
pub fn deletion_protection(mut self, input: bool) -> Self {
self.deletion_protection = ::std::option::Option::Some(input);
self
}
pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
self.deletion_protection = input;
self
}
pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
&self.deletion_protection
}
pub fn pending_modified_values(mut self, input: crate::types::TenantDatabasePendingModifiedValues) -> Self {
self.pending_modified_values = ::std::option::Option::Some(input);
self
}
pub fn set_pending_modified_values(mut self, input: ::std::option::Option<crate::types::TenantDatabasePendingModifiedValues>) -> Self {
self.pending_modified_values = input;
self
}
pub fn get_pending_modified_values(&self) -> &::std::option::Option<crate::types::TenantDatabasePendingModifiedValues> {
&self.pending_modified_values
}
pub fn tag_list(mut self, input: crate::types::Tag) -> Self {
let mut v = self.tag_list.unwrap_or_default();
v.push(input);
self.tag_list = ::std::option::Option::Some(v);
self
}
pub fn set_tag_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
self.tag_list = input;
self
}
pub fn get_tag_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
&self.tag_list
}
pub fn build(self) -> crate::types::TenantDatabase {
crate::types::TenantDatabase {
tenant_database_create_time: self.tenant_database_create_time,
db_instance_identifier: self.db_instance_identifier,
tenant_db_name: self.tenant_db_name,
status: self.status,
master_username: self.master_username,
dbi_resource_id: self.dbi_resource_id,
tenant_database_resource_id: self.tenant_database_resource_id,
tenant_database_arn: self.tenant_database_arn,
character_set_name: self.character_set_name,
nchar_character_set_name: self.nchar_character_set_name,
deletion_protection: self.deletion_protection,
pending_modified_values: self.pending_modified_values,
tag_list: self.tag_list,
}
}
}