#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetPartnerAccountOutput {
pub sidewalk: ::std::option::Option<crate::types::SidewalkAccountInfoWithFingerprint>,
pub account_linked: bool,
_request_id: Option<String>,
}
impl GetPartnerAccountOutput {
pub fn sidewalk(&self) -> ::std::option::Option<&crate::types::SidewalkAccountInfoWithFingerprint> {
self.sidewalk.as_ref()
}
pub fn account_linked(&self) -> bool {
self.account_linked
}
}
impl ::aws_types::request_id::RequestId for GetPartnerAccountOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetPartnerAccountOutput {
pub fn builder() -> crate::operation::get_partner_account::builders::GetPartnerAccountOutputBuilder {
crate::operation::get_partner_account::builders::GetPartnerAccountOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetPartnerAccountOutputBuilder {
pub(crate) sidewalk: ::std::option::Option<crate::types::SidewalkAccountInfoWithFingerprint>,
pub(crate) account_linked: ::std::option::Option<bool>,
_request_id: Option<String>,
}
impl GetPartnerAccountOutputBuilder {
pub fn sidewalk(mut self, input: crate::types::SidewalkAccountInfoWithFingerprint) -> Self {
self.sidewalk = ::std::option::Option::Some(input);
self
}
pub fn set_sidewalk(mut self, input: ::std::option::Option<crate::types::SidewalkAccountInfoWithFingerprint>) -> Self {
self.sidewalk = input;
self
}
pub fn get_sidewalk(&self) -> &::std::option::Option<crate::types::SidewalkAccountInfoWithFingerprint> {
&self.sidewalk
}
pub fn account_linked(mut self, input: bool) -> Self {
self.account_linked = ::std::option::Option::Some(input);
self
}
pub fn set_account_linked(mut self, input: ::std::option::Option<bool>) -> Self {
self.account_linked = input;
self
}
pub fn get_account_linked(&self) -> &::std::option::Option<bool> {
&self.account_linked
}
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
}
pub fn build(self) -> crate::operation::get_partner_account::GetPartnerAccountOutput {
crate::operation::get_partner_account::GetPartnerAccountOutput {
sidewalk: self.sidewalk,
account_linked: self.account_linked.unwrap_or_default(),
_request_id: self._request_id,
}
}
}