#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeAnomalyOutput {
    pub proactive_anomaly: ::std::option::Option<crate::types::ProactiveAnomaly>,
    pub reactive_anomaly: ::std::option::Option<crate::types::ReactiveAnomaly>,
    _request_id: Option<String>,
}
impl DescribeAnomalyOutput {
    pub fn proactive_anomaly(&self) -> ::std::option::Option<&crate::types::ProactiveAnomaly> {
        self.proactive_anomaly.as_ref()
    }
    pub fn reactive_anomaly(&self) -> ::std::option::Option<&crate::types::ReactiveAnomaly> {
        self.reactive_anomaly.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DescribeAnomalyOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DescribeAnomalyOutput {
    pub fn builder() -> crate::operation::describe_anomaly::builders::DescribeAnomalyOutputBuilder {
        crate::operation::describe_anomaly::builders::DescribeAnomalyOutputBuilder::default()
    }
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DescribeAnomalyOutputBuilder {
    pub(crate) proactive_anomaly: ::std::option::Option<crate::types::ProactiveAnomaly>,
    pub(crate) reactive_anomaly: ::std::option::Option<crate::types::ReactiveAnomaly>,
    _request_id: Option<String>,
}
impl DescribeAnomalyOutputBuilder {
    pub fn proactive_anomaly(mut self, input: crate::types::ProactiveAnomaly) -> Self {
        self.proactive_anomaly = ::std::option::Option::Some(input);
        self
    }
    pub fn set_proactive_anomaly(mut self, input: ::std::option::Option<crate::types::ProactiveAnomaly>) -> Self {
        self.proactive_anomaly = input;
        self
    }
    pub fn get_proactive_anomaly(&self) -> &::std::option::Option<crate::types::ProactiveAnomaly> {
        &self.proactive_anomaly
    }
    pub fn reactive_anomaly(mut self, input: crate::types::ReactiveAnomaly) -> Self {
        self.reactive_anomaly = ::std::option::Option::Some(input);
        self
    }
    pub fn set_reactive_anomaly(mut self, input: ::std::option::Option<crate::types::ReactiveAnomaly>) -> Self {
        self.reactive_anomaly = input;
        self
    }
    pub fn get_reactive_anomaly(&self) -> &::std::option::Option<crate::types::ReactiveAnomaly> {
        &self.reactive_anomaly
    }
    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::describe_anomaly::DescribeAnomalyOutput {
        crate::operation::describe_anomaly::DescribeAnomalyOutput {
            proactive_anomaly: self.proactive_anomaly,
            reactive_anomaly: self.reactive_anomaly,
            _request_id: self._request_id,
        }
    }
}