aws_sdk_accessanalyzer/operation/update_analyzer/
_update_analyzer_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateAnalyzerInput {
pub analyzer_name: ::std::option::Option<::std::string::String>,
pub configuration: ::std::option::Option<crate::types::AnalyzerConfiguration>,
}
impl UpdateAnalyzerInput {
pub fn analyzer_name(&self) -> ::std::option::Option<&str> {
self.analyzer_name.as_deref()
}
pub fn configuration(&self) -> ::std::option::Option<&crate::types::AnalyzerConfiguration> {
self.configuration.as_ref()
}
}
impl UpdateAnalyzerInput {
pub fn builder() -> crate::operation::update_analyzer::builders::UpdateAnalyzerInputBuilder {
crate::operation::update_analyzer::builders::UpdateAnalyzerInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateAnalyzerInputBuilder {
pub(crate) analyzer_name: ::std::option::Option<::std::string::String>,
pub(crate) configuration: ::std::option::Option<crate::types::AnalyzerConfiguration>,
}
impl UpdateAnalyzerInputBuilder {
pub fn analyzer_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.analyzer_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_analyzer_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.analyzer_name = input;
self
}
pub fn get_analyzer_name(&self) -> &::std::option::Option<::std::string::String> {
&self.analyzer_name
}
pub fn configuration(mut self, input: crate::types::AnalyzerConfiguration) -> Self {
self.configuration = ::std::option::Option::Some(input);
self
}
pub fn set_configuration(mut self, input: ::std::option::Option<crate::types::AnalyzerConfiguration>) -> Self {
self.configuration = input;
self
}
pub fn get_configuration(&self) -> &::std::option::Option<crate::types::AnalyzerConfiguration> {
&self.configuration
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_analyzer::UpdateAnalyzerInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_analyzer::UpdateAnalyzerInput {
analyzer_name: self.analyzer_name,
configuration: self.configuration,
})
}
}