#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteCaseRuleInput {
pub domain_id: ::std::option::Option<::std::string::String>,
pub case_rule_id: ::std::option::Option<::std::string::String>,
}
impl DeleteCaseRuleInput {
pub fn domain_id(&self) -> ::std::option::Option<&str> {
self.domain_id.as_deref()
}
pub fn case_rule_id(&self) -> ::std::option::Option<&str> {
self.case_rule_id.as_deref()
}
}
impl DeleteCaseRuleInput {
pub fn builder() -> crate::operation::delete_case_rule::builders::DeleteCaseRuleInputBuilder {
crate::operation::delete_case_rule::builders::DeleteCaseRuleInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteCaseRuleInputBuilder {
pub(crate) domain_id: ::std::option::Option<::std::string::String>,
pub(crate) case_rule_id: ::std::option::Option<::std::string::String>,
}
impl DeleteCaseRuleInputBuilder {
pub fn domain_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_domain_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_id = input;
self
}
pub fn get_domain_id(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_id
}
pub fn case_rule_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.case_rule_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_case_rule_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.case_rule_id = input;
self
}
pub fn get_case_rule_id(&self) -> &::std::option::Option<::std::string::String> {
&self.case_rule_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_case_rule::DeleteCaseRuleInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_case_rule::DeleteCaseRuleInput {
domain_id: self.domain_id,
case_rule_id: self.case_rule_id,
})
}
}