#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeregisterAccountOutput {
#[doc(hidden)]
pub status: std::option::Option<crate::types::AccountStatus>,
_request_id: Option<String>,
}
impl DeregisterAccountOutput {
pub fn status(&self) -> std::option::Option<&crate::types::AccountStatus> {
self.status.as_ref()
}
}
impl aws_http::request_id::RequestId for DeregisterAccountOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DeregisterAccountOutput {
pub fn builder(
) -> crate::operation::deregister_account::builders::DeregisterAccountOutputBuilder {
crate::operation::deregister_account::builders::DeregisterAccountOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeregisterAccountOutputBuilder {
pub(crate) status: std::option::Option<crate::types::AccountStatus>,
_request_id: Option<String>,
}
impl DeregisterAccountOutputBuilder {
pub fn status(mut self, input: crate::types::AccountStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(mut self, input: std::option::Option<crate::types::AccountStatus>) -> Self {
self.status = input;
self
}
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::deregister_account::DeregisterAccountOutput {
crate::operation::deregister_account::DeregisterAccountOutput {
status: self.status,
_request_id: self._request_id,
}
}
}