aws_sdk_accessanalyzer/operation/delete_analyzer/
_delete_analyzer_input.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DeleteAnalyzerInput {
7 pub analyzer_name: ::std::option::Option<::std::string::String>,
9 pub client_token: ::std::option::Option<::std::string::String>,
11}
12impl DeleteAnalyzerInput {
13 pub fn analyzer_name(&self) -> ::std::option::Option<&str> {
15 self.analyzer_name.as_deref()
16 }
17 pub fn client_token(&self) -> ::std::option::Option<&str> {
19 self.client_token.as_deref()
20 }
21}
22impl DeleteAnalyzerInput {
23 pub fn builder() -> crate::operation::delete_analyzer::builders::DeleteAnalyzerInputBuilder {
25 crate::operation::delete_analyzer::builders::DeleteAnalyzerInputBuilder::default()
26 }
27}
28
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct DeleteAnalyzerInputBuilder {
33 pub(crate) analyzer_name: ::std::option::Option<::std::string::String>,
34 pub(crate) client_token: ::std::option::Option<::std::string::String>,
35}
36impl DeleteAnalyzerInputBuilder {
37 pub fn analyzer_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
40 self.analyzer_name = ::std::option::Option::Some(input.into());
41 self
42 }
43 pub fn set_analyzer_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
45 self.analyzer_name = input;
46 self
47 }
48 pub fn get_analyzer_name(&self) -> &::std::option::Option<::std::string::String> {
50 &self.analyzer_name
51 }
52 pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
54 self.client_token = ::std::option::Option::Some(input.into());
55 self
56 }
57 pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
59 self.client_token = input;
60 self
61 }
62 pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
64 &self.client_token
65 }
66 pub fn build(
68 self,
69 ) -> ::std::result::Result<crate::operation::delete_analyzer::DeleteAnalyzerInput, ::aws_smithy_types::error::operation::BuildError> {
70 ::std::result::Result::Ok(crate::operation::delete_analyzer::DeleteAnalyzerInput {
71 analyzer_name: self.analyzer_name,
72 client_token: self.client_token,
73 })
74 }
75}