aws_sdk_sagemaker/operation/describe_pipeline/
_describe_pipeline_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 DescribePipelineOutput {
6    /// <p>The Amazon Resource Name (ARN) of the pipeline.</p>
7    pub pipeline_arn: ::std::option::Option<::std::string::String>,
8    /// <p>The name of the pipeline.</p>
9    pub pipeline_name: ::std::option::Option<::std::string::String>,
10    /// <p>The display name of the pipeline.</p>
11    pub pipeline_display_name: ::std::option::Option<::std::string::String>,
12    /// <p>The JSON pipeline definition.</p>
13    pub pipeline_definition: ::std::option::Option<::std::string::String>,
14    /// <p>The description of the pipeline.</p>
15    pub pipeline_description: ::std::option::Option<::std::string::String>,
16    /// <p>The Amazon Resource Name (ARN) that the pipeline uses to execute.</p>
17    pub role_arn: ::std::option::Option<::std::string::String>,
18    /// <p>The status of the pipeline execution.</p>
19    pub pipeline_status: ::std::option::Option<crate::types::PipelineStatus>,
20    /// <p>The time when the pipeline was created.</p>
21    pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
22    /// <p>The time when the pipeline was last modified.</p>
23    pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
24    /// <p>The time when the pipeline was last run.</p>
25    pub last_run_time: ::std::option::Option<::aws_smithy_types::DateTime>,
26    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
27    pub created_by: ::std::option::Option<crate::types::UserContext>,
28    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
29    pub last_modified_by: ::std::option::Option<crate::types::UserContext>,
30    /// <p>Lists the parallelism configuration applied to the pipeline.</p>
31    pub parallelism_configuration: ::std::option::Option<crate::types::ParallelismConfiguration>,
32    _request_id: Option<String>,
33}
34impl DescribePipelineOutput {
35    /// <p>The Amazon Resource Name (ARN) of the pipeline.</p>
36    pub fn pipeline_arn(&self) -> ::std::option::Option<&str> {
37        self.pipeline_arn.as_deref()
38    }
39    /// <p>The name of the pipeline.</p>
40    pub fn pipeline_name(&self) -> ::std::option::Option<&str> {
41        self.pipeline_name.as_deref()
42    }
43    /// <p>The display name of the pipeline.</p>
44    pub fn pipeline_display_name(&self) -> ::std::option::Option<&str> {
45        self.pipeline_display_name.as_deref()
46    }
47    /// <p>The JSON pipeline definition.</p>
48    pub fn pipeline_definition(&self) -> ::std::option::Option<&str> {
49        self.pipeline_definition.as_deref()
50    }
51    /// <p>The description of the pipeline.</p>
52    pub fn pipeline_description(&self) -> ::std::option::Option<&str> {
53        self.pipeline_description.as_deref()
54    }
55    /// <p>The Amazon Resource Name (ARN) that the pipeline uses to execute.</p>
56    pub fn role_arn(&self) -> ::std::option::Option<&str> {
57        self.role_arn.as_deref()
58    }
59    /// <p>The status of the pipeline execution.</p>
60    pub fn pipeline_status(&self) -> ::std::option::Option<&crate::types::PipelineStatus> {
61        self.pipeline_status.as_ref()
62    }
63    /// <p>The time when the pipeline was created.</p>
64    pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
65        self.creation_time.as_ref()
66    }
67    /// <p>The time when the pipeline was last modified.</p>
68    pub fn last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
69        self.last_modified_time.as_ref()
70    }
71    /// <p>The time when the pipeline was last run.</p>
72    pub fn last_run_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
73        self.last_run_time.as_ref()
74    }
75    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
76    pub fn created_by(&self) -> ::std::option::Option<&crate::types::UserContext> {
77        self.created_by.as_ref()
78    }
79    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
80    pub fn last_modified_by(&self) -> ::std::option::Option<&crate::types::UserContext> {
81        self.last_modified_by.as_ref()
82    }
83    /// <p>Lists the parallelism configuration applied to the pipeline.</p>
84    pub fn parallelism_configuration(&self) -> ::std::option::Option<&crate::types::ParallelismConfiguration> {
85        self.parallelism_configuration.as_ref()
86    }
87}
88impl ::aws_types::request_id::RequestId for DescribePipelineOutput {
89    fn request_id(&self) -> Option<&str> {
90        self._request_id.as_deref()
91    }
92}
93impl DescribePipelineOutput {
94    /// Creates a new builder-style object to manufacture [`DescribePipelineOutput`](crate::operation::describe_pipeline::DescribePipelineOutput).
95    pub fn builder() -> crate::operation::describe_pipeline::builders::DescribePipelineOutputBuilder {
96        crate::operation::describe_pipeline::builders::DescribePipelineOutputBuilder::default()
97    }
98}
99
100/// A builder for [`DescribePipelineOutput`](crate::operation::describe_pipeline::DescribePipelineOutput).
101#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
102#[non_exhaustive]
103pub struct DescribePipelineOutputBuilder {
104    pub(crate) pipeline_arn: ::std::option::Option<::std::string::String>,
105    pub(crate) pipeline_name: ::std::option::Option<::std::string::String>,
106    pub(crate) pipeline_display_name: ::std::option::Option<::std::string::String>,
107    pub(crate) pipeline_definition: ::std::option::Option<::std::string::String>,
108    pub(crate) pipeline_description: ::std::option::Option<::std::string::String>,
109    pub(crate) role_arn: ::std::option::Option<::std::string::String>,
110    pub(crate) pipeline_status: ::std::option::Option<crate::types::PipelineStatus>,
111    pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
112    pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
113    pub(crate) last_run_time: ::std::option::Option<::aws_smithy_types::DateTime>,
114    pub(crate) created_by: ::std::option::Option<crate::types::UserContext>,
115    pub(crate) last_modified_by: ::std::option::Option<crate::types::UserContext>,
116    pub(crate) parallelism_configuration: ::std::option::Option<crate::types::ParallelismConfiguration>,
117    _request_id: Option<String>,
118}
119impl DescribePipelineOutputBuilder {
120    /// <p>The Amazon Resource Name (ARN) of the pipeline.</p>
121    pub fn pipeline_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
122        self.pipeline_arn = ::std::option::Option::Some(input.into());
123        self
124    }
125    /// <p>The Amazon Resource Name (ARN) of the pipeline.</p>
126    pub fn set_pipeline_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
127        self.pipeline_arn = input;
128        self
129    }
130    /// <p>The Amazon Resource Name (ARN) of the pipeline.</p>
131    pub fn get_pipeline_arn(&self) -> &::std::option::Option<::std::string::String> {
132        &self.pipeline_arn
133    }
134    /// <p>The name of the pipeline.</p>
135    pub fn pipeline_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
136        self.pipeline_name = ::std::option::Option::Some(input.into());
137        self
138    }
139    /// <p>The name of the pipeline.</p>
140    pub fn set_pipeline_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
141        self.pipeline_name = input;
142        self
143    }
144    /// <p>The name of the pipeline.</p>
145    pub fn get_pipeline_name(&self) -> &::std::option::Option<::std::string::String> {
146        &self.pipeline_name
147    }
148    /// <p>The display name of the pipeline.</p>
149    pub fn pipeline_display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
150        self.pipeline_display_name = ::std::option::Option::Some(input.into());
151        self
152    }
153    /// <p>The display name of the pipeline.</p>
154    pub fn set_pipeline_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
155        self.pipeline_display_name = input;
156        self
157    }
158    /// <p>The display name of the pipeline.</p>
159    pub fn get_pipeline_display_name(&self) -> &::std::option::Option<::std::string::String> {
160        &self.pipeline_display_name
161    }
162    /// <p>The JSON pipeline definition.</p>
163    pub fn pipeline_definition(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
164        self.pipeline_definition = ::std::option::Option::Some(input.into());
165        self
166    }
167    /// <p>The JSON pipeline definition.</p>
168    pub fn set_pipeline_definition(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
169        self.pipeline_definition = input;
170        self
171    }
172    /// <p>The JSON pipeline definition.</p>
173    pub fn get_pipeline_definition(&self) -> &::std::option::Option<::std::string::String> {
174        &self.pipeline_definition
175    }
176    /// <p>The description of the pipeline.</p>
177    pub fn pipeline_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
178        self.pipeline_description = ::std::option::Option::Some(input.into());
179        self
180    }
181    /// <p>The description of the pipeline.</p>
182    pub fn set_pipeline_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
183        self.pipeline_description = input;
184        self
185    }
186    /// <p>The description of the pipeline.</p>
187    pub fn get_pipeline_description(&self) -> &::std::option::Option<::std::string::String> {
188        &self.pipeline_description
189    }
190    /// <p>The Amazon Resource Name (ARN) that the pipeline uses to execute.</p>
191    pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
192        self.role_arn = ::std::option::Option::Some(input.into());
193        self
194    }
195    /// <p>The Amazon Resource Name (ARN) that the pipeline uses to execute.</p>
196    pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
197        self.role_arn = input;
198        self
199    }
200    /// <p>The Amazon Resource Name (ARN) that the pipeline uses to execute.</p>
201    pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
202        &self.role_arn
203    }
204    /// <p>The status of the pipeline execution.</p>
205    pub fn pipeline_status(mut self, input: crate::types::PipelineStatus) -> Self {
206        self.pipeline_status = ::std::option::Option::Some(input);
207        self
208    }
209    /// <p>The status of the pipeline execution.</p>
210    pub fn set_pipeline_status(mut self, input: ::std::option::Option<crate::types::PipelineStatus>) -> Self {
211        self.pipeline_status = input;
212        self
213    }
214    /// <p>The status of the pipeline execution.</p>
215    pub fn get_pipeline_status(&self) -> &::std::option::Option<crate::types::PipelineStatus> {
216        &self.pipeline_status
217    }
218    /// <p>The time when the pipeline was created.</p>
219    pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
220        self.creation_time = ::std::option::Option::Some(input);
221        self
222    }
223    /// <p>The time when the pipeline was created.</p>
224    pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
225        self.creation_time = input;
226        self
227    }
228    /// <p>The time when the pipeline was created.</p>
229    pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
230        &self.creation_time
231    }
232    /// <p>The time when the pipeline was last modified.</p>
233    pub fn last_modified_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
234        self.last_modified_time = ::std::option::Option::Some(input);
235        self
236    }
237    /// <p>The time when the pipeline was last modified.</p>
238    pub fn set_last_modified_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
239        self.last_modified_time = input;
240        self
241    }
242    /// <p>The time when the pipeline was last modified.</p>
243    pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
244        &self.last_modified_time
245    }
246    /// <p>The time when the pipeline was last run.</p>
247    pub fn last_run_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
248        self.last_run_time = ::std::option::Option::Some(input);
249        self
250    }
251    /// <p>The time when the pipeline was last run.</p>
252    pub fn set_last_run_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
253        self.last_run_time = input;
254        self
255    }
256    /// <p>The time when the pipeline was last run.</p>
257    pub fn get_last_run_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
258        &self.last_run_time
259    }
260    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
261    pub fn created_by(mut self, input: crate::types::UserContext) -> Self {
262        self.created_by = ::std::option::Option::Some(input);
263        self
264    }
265    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
266    pub fn set_created_by(mut self, input: ::std::option::Option<crate::types::UserContext>) -> Self {
267        self.created_by = input;
268        self
269    }
270    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
271    pub fn get_created_by(&self) -> &::std::option::Option<crate::types::UserContext> {
272        &self.created_by
273    }
274    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
275    pub fn last_modified_by(mut self, input: crate::types::UserContext) -> Self {
276        self.last_modified_by = ::std::option::Option::Some(input);
277        self
278    }
279    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
280    pub fn set_last_modified_by(mut self, input: ::std::option::Option<crate::types::UserContext>) -> Self {
281        self.last_modified_by = input;
282        self
283    }
284    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
285    pub fn get_last_modified_by(&self) -> &::std::option::Option<crate::types::UserContext> {
286        &self.last_modified_by
287    }
288    /// <p>Lists the parallelism configuration applied to the pipeline.</p>
289    pub fn parallelism_configuration(mut self, input: crate::types::ParallelismConfiguration) -> Self {
290        self.parallelism_configuration = ::std::option::Option::Some(input);
291        self
292    }
293    /// <p>Lists the parallelism configuration applied to the pipeline.</p>
294    pub fn set_parallelism_configuration(mut self, input: ::std::option::Option<crate::types::ParallelismConfiguration>) -> Self {
295        self.parallelism_configuration = input;
296        self
297    }
298    /// <p>Lists the parallelism configuration applied to the pipeline.</p>
299    pub fn get_parallelism_configuration(&self) -> &::std::option::Option<crate::types::ParallelismConfiguration> {
300        &self.parallelism_configuration
301    }
302    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
303        self._request_id = Some(request_id.into());
304        self
305    }
306
307    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
308        self._request_id = request_id;
309        self
310    }
311    /// Consumes the builder and constructs a [`DescribePipelineOutput`](crate::operation::describe_pipeline::DescribePipelineOutput).
312    pub fn build(self) -> crate::operation::describe_pipeline::DescribePipelineOutput {
313        crate::operation::describe_pipeline::DescribePipelineOutput {
314            pipeline_arn: self.pipeline_arn,
315            pipeline_name: self.pipeline_name,
316            pipeline_display_name: self.pipeline_display_name,
317            pipeline_definition: self.pipeline_definition,
318            pipeline_description: self.pipeline_description,
319            role_arn: self.role_arn,
320            pipeline_status: self.pipeline_status,
321            creation_time: self.creation_time,
322            last_modified_time: self.last_modified_time,
323            last_run_time: self.last_run_time,
324            created_by: self.created_by,
325            last_modified_by: self.last_modified_by,
326            parallelism_configuration: self.parallelism_configuration,
327            _request_id: self._request_id,
328        }
329    }
330}