#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ApplyArchiveRuleInput {
#[doc(hidden)]
pub analyzer_arn: ::std::option::Option<::std::string::String>,
#[doc(hidden)]
pub rule_name: ::std::option::Option<::std::string::String>,
#[doc(hidden)]
pub client_token: ::std::option::Option<::std::string::String>,
}
impl ApplyArchiveRuleInput {
pub fn analyzer_arn(&self) -> ::std::option::Option<&str> {
self.analyzer_arn.as_deref()
}
pub fn rule_name(&self) -> ::std::option::Option<&str> {
self.rule_name.as_deref()
}
pub fn client_token(&self) -> ::std::option::Option<&str> {
self.client_token.as_deref()
}
}
impl ApplyArchiveRuleInput {
pub fn builder() -> crate::operation::apply_archive_rule::builders::ApplyArchiveRuleInputBuilder
{
crate::operation::apply_archive_rule::builders::ApplyArchiveRuleInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(
::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug,
)]
pub struct ApplyArchiveRuleInputBuilder {
pub(crate) analyzer_arn: ::std::option::Option<::std::string::String>,
pub(crate) rule_name: ::std::option::Option<::std::string::String>,
pub(crate) client_token: ::std::option::Option<::std::string::String>,
}
impl ApplyArchiveRuleInputBuilder {
pub fn analyzer_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.analyzer_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_analyzer_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.analyzer_arn = input;
self
}
pub fn rule_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.rule_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_rule_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.rule_name = input;
self
}
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_token = input;
self
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::apply_archive_rule::ApplyArchiveRuleInput,
::aws_smithy_http::operation::error::BuildError,
> {
::std::result::Result::Ok(
crate::operation::apply_archive_rule::ApplyArchiveRuleInput {
analyzer_arn: self.analyzer_arn,
rule_name: self.rule_name,
client_token: self.client_token,
},
)
}
}