aws_sdk_connect/operation/describe_rule/
_describe_rule_output.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeRuleOutput {
pub rule: ::std::option::Option<crate::types::Rule>,
_request_id: Option<String>,
}
impl DescribeRuleOutput {
pub fn rule(&self) -> ::std::option::Option<&crate::types::Rule> {
self.rule.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribeRuleOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeRuleOutput {
pub fn builder() -> crate::operation::describe_rule::builders::DescribeRuleOutputBuilder {
crate::operation::describe_rule::builders::DescribeRuleOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeRuleOutputBuilder {
pub(crate) rule: ::std::option::Option<crate::types::Rule>,
_request_id: Option<String>,
}
impl DescribeRuleOutputBuilder {
pub fn rule(mut self, input: crate::types::Rule) -> Self {
self.rule = ::std::option::Option::Some(input);
self
}
pub fn set_rule(mut self, input: ::std::option::Option<crate::types::Rule>) -> Self {
self.rule = input;
self
}
pub fn get_rule(&self) -> &::std::option::Option<crate::types::Rule> {
&self.rule
}
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_rule::DescribeRuleOutput {
crate::operation::describe_rule::DescribeRuleOutput {
rule: self.rule,
_request_id: self._request_id,
}
}
}