#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ValidateSecurityProfileBehaviorsInput {
pub behaviors: ::std::option::Option<::std::vec::Vec<crate::types::Behavior>>,
}
impl ValidateSecurityProfileBehaviorsInput {
pub fn behaviors(&self) -> &[crate::types::Behavior] {
self.behaviors.as_deref().unwrap_or_default()
}
}
impl ValidateSecurityProfileBehaviorsInput {
pub fn builder() -> crate::operation::validate_security_profile_behaviors::builders::ValidateSecurityProfileBehaviorsInputBuilder {
crate::operation::validate_security_profile_behaviors::builders::ValidateSecurityProfileBehaviorsInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ValidateSecurityProfileBehaviorsInputBuilder {
pub(crate) behaviors: ::std::option::Option<::std::vec::Vec<crate::types::Behavior>>,
}
impl ValidateSecurityProfileBehaviorsInputBuilder {
pub fn behaviors(mut self, input: crate::types::Behavior) -> Self {
let mut v = self.behaviors.unwrap_or_default();
v.push(input);
self.behaviors = ::std::option::Option::Some(v);
self
}
pub fn set_behaviors(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Behavior>>) -> Self {
self.behaviors = input;
self
}
pub fn get_behaviors(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Behavior>> {
&self.behaviors
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::validate_security_profile_behaviors::ValidateSecurityProfileBehaviorsInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(
crate::operation::validate_security_profile_behaviors::ValidateSecurityProfileBehaviorsInput { behaviors: self.behaviors },
)
}
}