#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetPartnerAccountInput {
pub partner_account_id: ::std::option::Option<::std::string::String>,
pub partner_type: ::std::option::Option<crate::types::PartnerType>,
}
impl GetPartnerAccountInput {
pub fn partner_account_id(&self) -> ::std::option::Option<&str> {
self.partner_account_id.as_deref()
}
pub fn partner_type(&self) -> ::std::option::Option<&crate::types::PartnerType> {
self.partner_type.as_ref()
}
}
impl GetPartnerAccountInput {
pub fn builder() -> crate::operation::get_partner_account::builders::GetPartnerAccountInputBuilder {
crate::operation::get_partner_account::builders::GetPartnerAccountInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetPartnerAccountInputBuilder {
pub(crate) partner_account_id: ::std::option::Option<::std::string::String>,
pub(crate) partner_type: ::std::option::Option<crate::types::PartnerType>,
}
impl GetPartnerAccountInputBuilder {
pub fn partner_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.partner_account_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_partner_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.partner_account_id = input;
self
}
pub fn get_partner_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.partner_account_id
}
pub fn partner_type(mut self, input: crate::types::PartnerType) -> Self {
self.partner_type = ::std::option::Option::Some(input);
self
}
pub fn set_partner_type(mut self, input: ::std::option::Option<crate::types::PartnerType>) -> Self {
self.partner_type = input;
self
}
pub fn get_partner_type(&self) -> &::std::option::Option<crate::types::PartnerType> {
&self.partner_type
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_partner_account::GetPartnerAccountInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_partner_account::GetPartnerAccountInput {
partner_account_id: self.partner_account_id,
partner_type: self.partner_type,
})
}
}