#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeInsightOutput {
pub proactive_insight: ::std::option::Option<crate::types::ProactiveInsight>,
pub reactive_insight: ::std::option::Option<crate::types::ReactiveInsight>,
_request_id: Option<String>,
}
impl DescribeInsightOutput {
pub fn proactive_insight(&self) -> ::std::option::Option<&crate::types::ProactiveInsight> {
self.proactive_insight.as_ref()
}
pub fn reactive_insight(&self) -> ::std::option::Option<&crate::types::ReactiveInsight> {
self.reactive_insight.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribeInsightOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeInsightOutput {
pub fn builder() -> crate::operation::describe_insight::builders::DescribeInsightOutputBuilder {
crate::operation::describe_insight::builders::DescribeInsightOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeInsightOutputBuilder {
pub(crate) proactive_insight: ::std::option::Option<crate::types::ProactiveInsight>,
pub(crate) reactive_insight: ::std::option::Option<crate::types::ReactiveInsight>,
_request_id: Option<String>,
}
impl DescribeInsightOutputBuilder {
pub fn proactive_insight(mut self, input: crate::types::ProactiveInsight) -> Self {
self.proactive_insight = ::std::option::Option::Some(input);
self
}
pub fn set_proactive_insight(mut self, input: ::std::option::Option<crate::types::ProactiveInsight>) -> Self {
self.proactive_insight = input;
self
}
pub fn get_proactive_insight(&self) -> &::std::option::Option<crate::types::ProactiveInsight> {
&self.proactive_insight
}
pub fn reactive_insight(mut self, input: crate::types::ReactiveInsight) -> Self {
self.reactive_insight = ::std::option::Option::Some(input);
self
}
pub fn set_reactive_insight(mut self, input: ::std::option::Option<crate::types::ReactiveInsight>) -> Self {
self.reactive_insight = input;
self
}
pub fn get_reactive_insight(&self) -> &::std::option::Option<crate::types::ReactiveInsight> {
&self.reactive_insight
}
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_insight::DescribeInsightOutput {
crate::operation::describe_insight::DescribeInsightOutput {
proactive_insight: self.proactive_insight,
reactive_insight: self.reactive_insight,
_request_id: self._request_id,
}
}
}