aws_sdk_omics/operation/start_run/
_start_run_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct StartRunOutput {
6    /// <p>Unique resource identifier for the run.</p>
7    pub arn: ::std::option::Option<::std::string::String>,
8    /// <p>The run's ID.</p>
9    pub id: ::std::option::Option<::std::string::String>,
10    /// <p>The run's status.</p>
11    pub status: ::std::option::Option<crate::types::RunStatus>,
12    /// <p>The run's tags.</p>
13    pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
14    /// <p>The universally unique identifier for a run.</p>
15    pub uuid: ::std::option::Option<::std::string::String>,
16    /// <p>The destination for workflow outputs.</p>
17    pub run_output_uri: ::std::option::Option<::std::string::String>,
18    _request_id: Option<String>,
19}
20impl StartRunOutput {
21    /// <p>Unique resource identifier for the run.</p>
22    pub fn arn(&self) -> ::std::option::Option<&str> {
23        self.arn.as_deref()
24    }
25    /// <p>The run's ID.</p>
26    pub fn id(&self) -> ::std::option::Option<&str> {
27        self.id.as_deref()
28    }
29    /// <p>The run's status.</p>
30    pub fn status(&self) -> ::std::option::Option<&crate::types::RunStatus> {
31        self.status.as_ref()
32    }
33    /// <p>The run's tags.</p>
34    pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
35        self.tags.as_ref()
36    }
37    /// <p>The universally unique identifier for a run.</p>
38    pub fn uuid(&self) -> ::std::option::Option<&str> {
39        self.uuid.as_deref()
40    }
41    /// <p>The destination for workflow outputs.</p>
42    pub fn run_output_uri(&self) -> ::std::option::Option<&str> {
43        self.run_output_uri.as_deref()
44    }
45}
46impl ::aws_types::request_id::RequestId for StartRunOutput {
47    fn request_id(&self) -> Option<&str> {
48        self._request_id.as_deref()
49    }
50}
51impl StartRunOutput {
52    /// Creates a new builder-style object to manufacture [`StartRunOutput`](crate::operation::start_run::StartRunOutput).
53    pub fn builder() -> crate::operation::start_run::builders::StartRunOutputBuilder {
54        crate::operation::start_run::builders::StartRunOutputBuilder::default()
55    }
56}
57
58/// A builder for [`StartRunOutput`](crate::operation::start_run::StartRunOutput).
59#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
60#[non_exhaustive]
61pub struct StartRunOutputBuilder {
62    pub(crate) arn: ::std::option::Option<::std::string::String>,
63    pub(crate) id: ::std::option::Option<::std::string::String>,
64    pub(crate) status: ::std::option::Option<crate::types::RunStatus>,
65    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
66    pub(crate) uuid: ::std::option::Option<::std::string::String>,
67    pub(crate) run_output_uri: ::std::option::Option<::std::string::String>,
68    _request_id: Option<String>,
69}
70impl StartRunOutputBuilder {
71    /// <p>Unique resource identifier for the run.</p>
72    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
73        self.arn = ::std::option::Option::Some(input.into());
74        self
75    }
76    /// <p>Unique resource identifier for the run.</p>
77    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
78        self.arn = input;
79        self
80    }
81    /// <p>Unique resource identifier for the run.</p>
82    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
83        &self.arn
84    }
85    /// <p>The run's ID.</p>
86    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
87        self.id = ::std::option::Option::Some(input.into());
88        self
89    }
90    /// <p>The run's ID.</p>
91    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
92        self.id = input;
93        self
94    }
95    /// <p>The run's ID.</p>
96    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
97        &self.id
98    }
99    /// <p>The run's status.</p>
100    pub fn status(mut self, input: crate::types::RunStatus) -> Self {
101        self.status = ::std::option::Option::Some(input);
102        self
103    }
104    /// <p>The run's status.</p>
105    pub fn set_status(mut self, input: ::std::option::Option<crate::types::RunStatus>) -> Self {
106        self.status = input;
107        self
108    }
109    /// <p>The run's status.</p>
110    pub fn get_status(&self) -> &::std::option::Option<crate::types::RunStatus> {
111        &self.status
112    }
113    /// Adds a key-value pair to `tags`.
114    ///
115    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
116    ///
117    /// <p>The run's tags.</p>
118    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
119        let mut hash_map = self.tags.unwrap_or_default();
120        hash_map.insert(k.into(), v.into());
121        self.tags = ::std::option::Option::Some(hash_map);
122        self
123    }
124    /// <p>The run's tags.</p>
125    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
126        self.tags = input;
127        self
128    }
129    /// <p>The run's tags.</p>
130    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
131        &self.tags
132    }
133    /// <p>The universally unique identifier for a run.</p>
134    pub fn uuid(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
135        self.uuid = ::std::option::Option::Some(input.into());
136        self
137    }
138    /// <p>The universally unique identifier for a run.</p>
139    pub fn set_uuid(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
140        self.uuid = input;
141        self
142    }
143    /// <p>The universally unique identifier for a run.</p>
144    pub fn get_uuid(&self) -> &::std::option::Option<::std::string::String> {
145        &self.uuid
146    }
147    /// <p>The destination for workflow outputs.</p>
148    pub fn run_output_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
149        self.run_output_uri = ::std::option::Option::Some(input.into());
150        self
151    }
152    /// <p>The destination for workflow outputs.</p>
153    pub fn set_run_output_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
154        self.run_output_uri = input;
155        self
156    }
157    /// <p>The destination for workflow outputs.</p>
158    pub fn get_run_output_uri(&self) -> &::std::option::Option<::std::string::String> {
159        &self.run_output_uri
160    }
161    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
162        self._request_id = Some(request_id.into());
163        self
164    }
165
166    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
167        self._request_id = request_id;
168        self
169    }
170    /// Consumes the builder and constructs a [`StartRunOutput`](crate::operation::start_run::StartRunOutput).
171    pub fn build(self) -> crate::operation::start_run::StartRunOutput {
172        crate::operation::start_run::StartRunOutput {
173            arn: self.arn,
174            id: self.id,
175            status: self.status,
176            tags: self.tags,
177            uuid: self.uuid,
178            run_output_uri: self.run_output_uri,
179            _request_id: self._request_id,
180        }
181    }
182}