aws_sdk_omics/operation/start_run/
builders.rs1pub use crate::operation::start_run::_start_run_output::StartRunOutputBuilder;
3
4pub use crate::operation::start_run::_start_run_input::StartRunInputBuilder;
5
6impl crate::operation::start_run::builders::StartRunInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::start_run::StartRunOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::start_run::StartRunError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.start_run();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
30pub struct StartRunFluentBuilder {
31 handle: ::std::sync::Arc<crate::client::Handle>,
32 inner: crate::operation::start_run::builders::StartRunInputBuilder,
33 config_override: ::std::option::Option<crate::config::Builder>,
34}
35impl crate::client::customize::internal::CustomizableSend<crate::operation::start_run::StartRunOutput, crate::operation::start_run::StartRunError>
36 for StartRunFluentBuilder
37{
38 fn send(
39 self,
40 config_override: crate::config::Builder,
41 ) -> crate::client::customize::internal::BoxFuture<
42 crate::client::customize::internal::SendResult<crate::operation::start_run::StartRunOutput, crate::operation::start_run::StartRunError>,
43 > {
44 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
45 }
46}
47impl StartRunFluentBuilder {
48 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
50 Self {
51 handle,
52 inner: ::std::default::Default::default(),
53 config_override: ::std::option::Option::None,
54 }
55 }
56 pub fn as_input(&self) -> &crate::operation::start_run::builders::StartRunInputBuilder {
58 &self.inner
59 }
60 pub async fn send(
69 self,
70 ) -> ::std::result::Result<
71 crate::operation::start_run::StartRunOutput,
72 ::aws_smithy_runtime_api::client::result::SdkError<
73 crate::operation::start_run::StartRunError,
74 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
75 >,
76 > {
77 let input = self
78 .inner
79 .build()
80 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
81 let runtime_plugins = crate::operation::start_run::StartRun::operation_runtime_plugins(
82 self.handle.runtime_plugins.clone(),
83 &self.handle.conf,
84 self.config_override,
85 );
86 crate::operation::start_run::StartRun::orchestrate(&runtime_plugins, input).await
87 }
88
89 pub fn customize(
91 self,
92 ) -> crate::client::customize::CustomizableOperation<crate::operation::start_run::StartRunOutput, crate::operation::start_run::StartRunError, Self>
93 {
94 crate::client::customize::CustomizableOperation::new(self)
95 }
96 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
97 self.set_config_override(::std::option::Option::Some(config_override.into()));
98 self
99 }
100
101 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
102 self.config_override = config_override;
103 self
104 }
105 pub fn workflow_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
107 self.inner = self.inner.workflow_id(input.into());
108 self
109 }
110 pub fn set_workflow_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
112 self.inner = self.inner.set_workflow_id(input);
113 self
114 }
115 pub fn get_workflow_id(&self) -> &::std::option::Option<::std::string::String> {
117 self.inner.get_workflow_id()
118 }
119 pub fn workflow_type(mut self, input: crate::types::WorkflowType) -> Self {
121 self.inner = self.inner.workflow_type(input);
122 self
123 }
124 pub fn set_workflow_type(mut self, input: ::std::option::Option<crate::types::WorkflowType>) -> Self {
126 self.inner = self.inner.set_workflow_type(input);
127 self
128 }
129 pub fn get_workflow_type(&self) -> &::std::option::Option<crate::types::WorkflowType> {
131 self.inner.get_workflow_type()
132 }
133 pub fn run_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
135 self.inner = self.inner.run_id(input.into());
136 self
137 }
138 pub fn set_run_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
140 self.inner = self.inner.set_run_id(input);
141 self
142 }
143 pub fn get_run_id(&self) -> &::std::option::Option<::std::string::String> {
145 self.inner.get_run_id()
146 }
147 pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
149 self.inner = self.inner.role_arn(input.into());
150 self
151 }
152 pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
154 self.inner = self.inner.set_role_arn(input);
155 self
156 }
157 pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
159 self.inner.get_role_arn()
160 }
161 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
163 self.inner = self.inner.name(input.into());
164 self
165 }
166 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
168 self.inner = self.inner.set_name(input);
169 self
170 }
171 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
173 self.inner.get_name()
174 }
175 pub fn cache_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
177 self.inner = self.inner.cache_id(input.into());
178 self
179 }
180 pub fn set_cache_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
182 self.inner = self.inner.set_cache_id(input);
183 self
184 }
185 pub fn get_cache_id(&self) -> &::std::option::Option<::std::string::String> {
187 self.inner.get_cache_id()
188 }
189 pub fn cache_behavior(mut self, input: crate::types::CacheBehavior) -> Self {
191 self.inner = self.inner.cache_behavior(input);
192 self
193 }
194 pub fn set_cache_behavior(mut self, input: ::std::option::Option<crate::types::CacheBehavior>) -> Self {
196 self.inner = self.inner.set_cache_behavior(input);
197 self
198 }
199 pub fn get_cache_behavior(&self) -> &::std::option::Option<crate::types::CacheBehavior> {
201 self.inner.get_cache_behavior()
202 }
203 pub fn run_group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
205 self.inner = self.inner.run_group_id(input.into());
206 self
207 }
208 pub fn set_run_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
210 self.inner = self.inner.set_run_group_id(input);
211 self
212 }
213 pub fn get_run_group_id(&self) -> &::std::option::Option<::std::string::String> {
215 self.inner.get_run_group_id()
216 }
217 pub fn priority(mut self, input: i32) -> Self {
219 self.inner = self.inner.priority(input);
220 self
221 }
222 pub fn set_priority(mut self, input: ::std::option::Option<i32>) -> Self {
224 self.inner = self.inner.set_priority(input);
225 self
226 }
227 pub fn get_priority(&self) -> &::std::option::Option<i32> {
229 self.inner.get_priority()
230 }
231 pub fn parameters(mut self, input: ::aws_smithy_types::Document) -> Self {
233 self.inner = self.inner.parameters(input);
234 self
235 }
236 pub fn set_parameters(mut self, input: ::std::option::Option<::aws_smithy_types::Document>) -> Self {
238 self.inner = self.inner.set_parameters(input);
239 self
240 }
241 pub fn get_parameters(&self) -> &::std::option::Option<::aws_smithy_types::Document> {
243 self.inner.get_parameters()
244 }
245 pub fn storage_capacity(mut self, input: i32) -> Self {
247 self.inner = self.inner.storage_capacity(input);
248 self
249 }
250 pub fn set_storage_capacity(mut self, input: ::std::option::Option<i32>) -> Self {
252 self.inner = self.inner.set_storage_capacity(input);
253 self
254 }
255 pub fn get_storage_capacity(&self) -> &::std::option::Option<i32> {
257 self.inner.get_storage_capacity()
258 }
259 pub fn output_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
261 self.inner = self.inner.output_uri(input.into());
262 self
263 }
264 pub fn set_output_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
266 self.inner = self.inner.set_output_uri(input);
267 self
268 }
269 pub fn get_output_uri(&self) -> &::std::option::Option<::std::string::String> {
271 self.inner.get_output_uri()
272 }
273 pub fn log_level(mut self, input: crate::types::RunLogLevel) -> Self {
275 self.inner = self.inner.log_level(input);
276 self
277 }
278 pub fn set_log_level(mut self, input: ::std::option::Option<crate::types::RunLogLevel>) -> Self {
280 self.inner = self.inner.set_log_level(input);
281 self
282 }
283 pub fn get_log_level(&self) -> &::std::option::Option<crate::types::RunLogLevel> {
285 self.inner.get_log_level()
286 }
287 pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
294 self.inner = self.inner.tags(k.into(), v.into());
295 self
296 }
297 pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
299 self.inner = self.inner.set_tags(input);
300 self
301 }
302 pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
304 self.inner.get_tags()
305 }
306 pub fn request_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
308 self.inner = self.inner.request_id(input.into());
309 self
310 }
311 pub fn set_request_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
313 self.inner = self.inner.set_request_id(input);
314 self
315 }
316 pub fn get_request_id(&self) -> &::std::option::Option<::std::string::String> {
318 self.inner.get_request_id()
319 }
320 pub fn retention_mode(mut self, input: crate::types::RunRetentionMode) -> Self {
324 self.inner = self.inner.retention_mode(input);
325 self
326 }
327 pub fn set_retention_mode(mut self, input: ::std::option::Option<crate::types::RunRetentionMode>) -> Self {
331 self.inner = self.inner.set_retention_mode(input);
332 self
333 }
334 pub fn get_retention_mode(&self) -> &::std::option::Option<crate::types::RunRetentionMode> {
338 self.inner.get_retention_mode()
339 }
340 pub fn storage_type(mut self, input: crate::types::StorageType) -> Self {
342 self.inner = self.inner.storage_type(input);
343 self
344 }
345 pub fn set_storage_type(mut self, input: ::std::option::Option<crate::types::StorageType>) -> Self {
347 self.inner = self.inner.set_storage_type(input);
348 self
349 }
350 pub fn get_storage_type(&self) -> &::std::option::Option<crate::types::StorageType> {
352 self.inner.get_storage_type()
353 }
354 pub fn workflow_owner_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
356 self.inner = self.inner.workflow_owner_id(input.into());
357 self
358 }
359 pub fn set_workflow_owner_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
361 self.inner = self.inner.set_workflow_owner_id(input);
362 self
363 }
364 pub fn get_workflow_owner_id(&self) -> &::std::option::Option<::std::string::String> {
366 self.inner.get_workflow_owner_id()
367 }
368}