#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeletePartnerInput {
pub account_id: ::std::option::Option<::std::string::String>,
pub cluster_identifier: ::std::option::Option<::std::string::String>,
pub database_name: ::std::option::Option<::std::string::String>,
pub partner_name: ::std::option::Option<::std::string::String>,
}
impl DeletePartnerInput {
pub fn account_id(&self) -> ::std::option::Option<&str> {
self.account_id.as_deref()
}
pub fn cluster_identifier(&self) -> ::std::option::Option<&str> {
self.cluster_identifier.as_deref()
}
pub fn database_name(&self) -> ::std::option::Option<&str> {
self.database_name.as_deref()
}
pub fn partner_name(&self) -> ::std::option::Option<&str> {
self.partner_name.as_deref()
}
}
impl DeletePartnerInput {
pub fn builder() -> crate::operation::delete_partner::builders::DeletePartnerInputBuilder {
crate::operation::delete_partner::builders::DeletePartnerInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DeletePartnerInputBuilder {
pub(crate) account_id: ::std::option::Option<::std::string::String>,
pub(crate) cluster_identifier: ::std::option::Option<::std::string::String>,
pub(crate) database_name: ::std::option::Option<::std::string::String>,
pub(crate) partner_name: ::std::option::Option<::std::string::String>,
}
impl DeletePartnerInputBuilder {
pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.account_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.account_id = input;
self
}
pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.account_id
}
pub fn cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_identifier = input;
self
}
pub fn get_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_identifier
}
pub fn database_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.database_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_database_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.database_name = input;
self
}
pub fn get_database_name(&self) -> &::std::option::Option<::std::string::String> {
&self.database_name
}
pub fn partner_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.partner_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_partner_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.partner_name = input;
self
}
pub fn get_partner_name(&self) -> &::std::option::Option<::std::string::String> {
&self.partner_name
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_partner::DeletePartnerInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_partner::DeletePartnerInput {
account_id: self.account_id,
cluster_identifier: self.cluster_identifier,
database_name: self.database_name,
partner_name: self.partner_name,
})
}
}