#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteRuleInput {
#[doc(hidden)]
pub rule_arn: std::option::Option<std::string::String>,
}
impl DeleteRuleInput {
pub fn rule_arn(&self) -> std::option::Option<&str> {
self.rule_arn.as_deref()
}
}
impl DeleteRuleInput {
pub fn builder() -> crate::operation::delete_rule::builders::DeleteRuleInputBuilder {
crate::operation::delete_rule::builders::DeleteRuleInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteRuleInputBuilder {
pub(crate) rule_arn: std::option::Option<std::string::String>,
}
impl DeleteRuleInputBuilder {
pub fn rule_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.rule_arn = Some(input.into());
self
}
pub fn set_rule_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.rule_arn = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::delete_rule::DeleteRuleInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::delete_rule::DeleteRuleInput {
rule_arn: self.rule_arn,
})
}
}