aws_sdk_accessanalyzer/operation/update_analyzer/
_update_analyzer_input.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateAnalyzerInput {
    /// <p>The name of the analyzer to modify.</p>
    pub analyzer_name: ::std::option::Option<::std::string::String>,
    /// <p>Contains information about the configuration of an analyzer for an Amazon Web Services organization or account.</p>
    pub configuration: ::std::option::Option<crate::types::AnalyzerConfiguration>,
}
impl UpdateAnalyzerInput {
    /// <p>The name of the analyzer to modify.</p>
    pub fn analyzer_name(&self) -> ::std::option::Option<&str> {
        self.analyzer_name.as_deref()
    }
    /// <p>Contains information about the configuration of an analyzer for an Amazon Web Services organization or account.</p>
    pub fn configuration(&self) -> ::std::option::Option<&crate::types::AnalyzerConfiguration> {
        self.configuration.as_ref()
    }
}
impl UpdateAnalyzerInput {
    /// Creates a new builder-style object to manufacture [`UpdateAnalyzerInput`](crate::operation::update_analyzer::UpdateAnalyzerInput).
    pub fn builder() -> crate::operation::update_analyzer::builders::UpdateAnalyzerInputBuilder {
        crate::operation::update_analyzer::builders::UpdateAnalyzerInputBuilder::default()
    }
}

/// A builder for [`UpdateAnalyzerInput`](crate::operation::update_analyzer::UpdateAnalyzerInput).
#[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 {
    /// <p>The name of the analyzer to modify.</p>
    /// This field is required.
    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
    }
    /// <p>The name of the analyzer to modify.</p>
    pub fn set_analyzer_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.analyzer_name = input;
        self
    }
    /// <p>The name of the analyzer to modify.</p>
    pub fn get_analyzer_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.analyzer_name
    }
    /// <p>Contains information about the configuration of an analyzer for an Amazon Web Services organization or account.</p>
    pub fn configuration(mut self, input: crate::types::AnalyzerConfiguration) -> Self {
        self.configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>Contains information about the configuration of an analyzer for an Amazon Web Services organization or account.</p>
    pub fn set_configuration(mut self, input: ::std::option::Option<crate::types::AnalyzerConfiguration>) -> Self {
        self.configuration = input;
        self
    }
    /// <p>Contains information about the configuration of an analyzer for an Amazon Web Services organization or account.</p>
    pub fn get_configuration(&self) -> &::std::option::Option<crate::types::AnalyzerConfiguration> {
        &self.configuration
    }
    /// Consumes the builder and constructs a [`UpdateAnalyzerInput`](crate::operation::update_analyzer::UpdateAnalyzerInput).
    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,
        })
    }
}