aws_sdk_backup/operation/start_scan_job/
builders.rs1pub use crate::operation::start_scan_job::_start_scan_job_output::StartScanJobOutputBuilder;
3
4pub use crate::operation::start_scan_job::_start_scan_job_input::StartScanJobInputBuilder;
5
6impl crate::operation::start_scan_job::builders::StartScanJobInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::start_scan_job::StartScanJobOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::start_scan_job::StartScanJobError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.start_scan_job();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct StartScanJobFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::start_scan_job::builders::StartScanJobInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::start_scan_job::StartScanJobOutput,
35 crate::operation::start_scan_job::StartScanJobError,
36 > for StartScanJobFluentBuilder
37{
38 fn send(
39 self,
40 config_override: crate::config::Builder,
41 ) -> crate::client::customize::internal::BoxFuture<
42 crate::client::customize::internal::SendResult<
43 crate::operation::start_scan_job::StartScanJobOutput,
44 crate::operation::start_scan_job::StartScanJobError,
45 >,
46 > {
47 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48 }
49}
50impl StartScanJobFluentBuilder {
51 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53 Self {
54 handle,
55 inner: ::std::default::Default::default(),
56 config_override: ::std::option::Option::None,
57 }
58 }
59 pub fn as_input(&self) -> &crate::operation::start_scan_job::builders::StartScanJobInputBuilder {
61 &self.inner
62 }
63 pub async fn send(
72 self,
73 ) -> ::std::result::Result<
74 crate::operation::start_scan_job::StartScanJobOutput,
75 ::aws_smithy_runtime_api::client::result::SdkError<
76 crate::operation::start_scan_job::StartScanJobError,
77 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78 >,
79 > {
80 let input = self
81 .inner
82 .build()
83 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84 let runtime_plugins = crate::operation::start_scan_job::StartScanJob::operation_runtime_plugins(
85 self.handle.runtime_plugins.clone(),
86 &self.handle.conf,
87 self.config_override,
88 );
89 crate::operation::start_scan_job::StartScanJob::orchestrate(&runtime_plugins, input).await
90 }
91
92 pub fn customize(
94 self,
95 ) -> crate::client::customize::CustomizableOperation<
96 crate::operation::start_scan_job::StartScanJobOutput,
97 crate::operation::start_scan_job::StartScanJobError,
98 Self,
99 > {
100 crate::client::customize::CustomizableOperation::new(self)
101 }
102 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103 self.set_config_override(::std::option::Option::Some(config_override.into()));
104 self
105 }
106
107 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108 self.config_override = config_override;
109 self
110 }
111 pub fn backup_vault_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
114 self.inner = self.inner.backup_vault_name(input.into());
115 self
116 }
117 pub fn set_backup_vault_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
120 self.inner = self.inner.set_backup_vault_name(input);
121 self
122 }
123 pub fn get_backup_vault_name(&self) -> &::std::option::Option<::std::string::String> {
126 self.inner.get_backup_vault_name()
127 }
128 pub fn iam_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130 self.inner = self.inner.iam_role_arn(input.into());
131 self
132 }
133 pub fn set_iam_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
135 self.inner = self.inner.set_iam_role_arn(input);
136 self
137 }
138 pub fn get_iam_role_arn(&self) -> &::std::option::Option<::std::string::String> {
140 self.inner.get_iam_role_arn()
141 }
142 pub fn idempotency_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
144 self.inner = self.inner.idempotency_token(input.into());
145 self
146 }
147 pub fn set_idempotency_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
149 self.inner = self.inner.set_idempotency_token(input);
150 self
151 }
152 pub fn get_idempotency_token(&self) -> &::std::option::Option<::std::string::String> {
154 self.inner.get_idempotency_token()
155 }
156 pub fn malware_scanner(mut self, input: crate::types::MalwareScanner) -> Self {
158 self.inner = self.inner.malware_scanner(input);
159 self
160 }
161 pub fn set_malware_scanner(mut self, input: ::std::option::Option<crate::types::MalwareScanner>) -> Self {
163 self.inner = self.inner.set_malware_scanner(input);
164 self
165 }
166 pub fn get_malware_scanner(&self) -> &::std::option::Option<crate::types::MalwareScanner> {
168 self.inner.get_malware_scanner()
169 }
170 pub fn recovery_point_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
172 self.inner = self.inner.recovery_point_arn(input.into());
173 self
174 }
175 pub fn set_recovery_point_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
177 self.inner = self.inner.set_recovery_point_arn(input);
178 self
179 }
180 pub fn get_recovery_point_arn(&self) -> &::std::option::Option<::std::string::String> {
182 self.inner.get_recovery_point_arn()
183 }
184 pub fn scan_base_recovery_point_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
186 self.inner = self.inner.scan_base_recovery_point_arn(input.into());
187 self
188 }
189 pub fn set_scan_base_recovery_point_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
191 self.inner = self.inner.set_scan_base_recovery_point_arn(input);
192 self
193 }
194 pub fn get_scan_base_recovery_point_arn(&self) -> &::std::option::Option<::std::string::String> {
196 self.inner.get_scan_base_recovery_point_arn()
197 }
198 pub fn scan_mode(mut self, input: crate::types::ScanMode) -> Self {
207 self.inner = self.inner.scan_mode(input);
208 self
209 }
210 pub fn set_scan_mode(mut self, input: ::std::option::Option<crate::types::ScanMode>) -> Self {
219 self.inner = self.inner.set_scan_mode(input);
220 self
221 }
222 pub fn get_scan_mode(&self) -> &::std::option::Option<crate::types::ScanMode> {
231 self.inner.get_scan_mode()
232 }
233 pub fn scanner_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
235 self.inner = self.inner.scanner_role_arn(input.into());
236 self
237 }
238 pub fn set_scanner_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
240 self.inner = self.inner.set_scanner_role_arn(input);
241 self
242 }
243 pub fn get_scanner_role_arn(&self) -> &::std::option::Option<::std::string::String> {
245 self.inner.get_scanner_role_arn()
246 }
247}