aws_sdk_sagemaker/operation/describe_project/
_describe_project_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 DescribeProjectOutput {
6    /// <p>The Amazon Resource Name (ARN) of the project.</p>
7    pub project_arn: ::std::option::Option<::std::string::String>,
8    /// <p>The name of the project.</p>
9    pub project_name: ::std::option::Option<::std::string::String>,
10    /// <p>The ID of the project.</p>
11    pub project_id: ::std::option::Option<::std::string::String>,
12    /// <p>The description of the project.</p>
13    pub project_description: ::std::option::Option<::std::string::String>,
14    /// <p>Information used to provision a service catalog product. For information, see <a href="https://docs.aws.amazon.com/servicecatalog/latest/adminguide/introduction.html">What is Amazon Web Services Service Catalog</a>.</p>
15    pub service_catalog_provisioning_details: ::std::option::Option<crate::types::ServiceCatalogProvisioningDetails>,
16    /// <p>Information about a provisioned service catalog product.</p>
17    pub service_catalog_provisioned_product_details: ::std::option::Option<crate::types::ServiceCatalogProvisionedProductDetails>,
18    /// <p>The status of the project.</p>
19    pub project_status: ::std::option::Option<crate::types::ProjectStatus>,
20    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
21    pub created_by: ::std::option::Option<crate::types::UserContext>,
22    /// <p>The time when the project was created.</p>
23    pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
24    /// <p>The timestamp when project was last modified.</p>
25    pub last_modified_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 last_modified_by: ::std::option::Option<crate::types::UserContext>,
28    _request_id: Option<String>,
29}
30impl DescribeProjectOutput {
31    /// <p>The Amazon Resource Name (ARN) of the project.</p>
32    pub fn project_arn(&self) -> ::std::option::Option<&str> {
33        self.project_arn.as_deref()
34    }
35    /// <p>The name of the project.</p>
36    pub fn project_name(&self) -> ::std::option::Option<&str> {
37        self.project_name.as_deref()
38    }
39    /// <p>The ID of the project.</p>
40    pub fn project_id(&self) -> ::std::option::Option<&str> {
41        self.project_id.as_deref()
42    }
43    /// <p>The description of the project.</p>
44    pub fn project_description(&self) -> ::std::option::Option<&str> {
45        self.project_description.as_deref()
46    }
47    /// <p>Information used to provision a service catalog product. For information, see <a href="https://docs.aws.amazon.com/servicecatalog/latest/adminguide/introduction.html">What is Amazon Web Services Service Catalog</a>.</p>
48    pub fn service_catalog_provisioning_details(&self) -> ::std::option::Option<&crate::types::ServiceCatalogProvisioningDetails> {
49        self.service_catalog_provisioning_details.as_ref()
50    }
51    /// <p>Information about a provisioned service catalog product.</p>
52    pub fn service_catalog_provisioned_product_details(&self) -> ::std::option::Option<&crate::types::ServiceCatalogProvisionedProductDetails> {
53        self.service_catalog_provisioned_product_details.as_ref()
54    }
55    /// <p>The status of the project.</p>
56    pub fn project_status(&self) -> ::std::option::Option<&crate::types::ProjectStatus> {
57        self.project_status.as_ref()
58    }
59    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
60    pub fn created_by(&self) -> ::std::option::Option<&crate::types::UserContext> {
61        self.created_by.as_ref()
62    }
63    /// <p>The time when the project 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 timestamp when project 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>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
72    pub fn last_modified_by(&self) -> ::std::option::Option<&crate::types::UserContext> {
73        self.last_modified_by.as_ref()
74    }
75}
76impl ::aws_types::request_id::RequestId for DescribeProjectOutput {
77    fn request_id(&self) -> Option<&str> {
78        self._request_id.as_deref()
79    }
80}
81impl DescribeProjectOutput {
82    /// Creates a new builder-style object to manufacture [`DescribeProjectOutput`](crate::operation::describe_project::DescribeProjectOutput).
83    pub fn builder() -> crate::operation::describe_project::builders::DescribeProjectOutputBuilder {
84        crate::operation::describe_project::builders::DescribeProjectOutputBuilder::default()
85    }
86}
87
88/// A builder for [`DescribeProjectOutput`](crate::operation::describe_project::DescribeProjectOutput).
89#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
90#[non_exhaustive]
91pub struct DescribeProjectOutputBuilder {
92    pub(crate) project_arn: ::std::option::Option<::std::string::String>,
93    pub(crate) project_name: ::std::option::Option<::std::string::String>,
94    pub(crate) project_id: ::std::option::Option<::std::string::String>,
95    pub(crate) project_description: ::std::option::Option<::std::string::String>,
96    pub(crate) service_catalog_provisioning_details: ::std::option::Option<crate::types::ServiceCatalogProvisioningDetails>,
97    pub(crate) service_catalog_provisioned_product_details: ::std::option::Option<crate::types::ServiceCatalogProvisionedProductDetails>,
98    pub(crate) project_status: ::std::option::Option<crate::types::ProjectStatus>,
99    pub(crate) created_by: ::std::option::Option<crate::types::UserContext>,
100    pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
101    pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
102    pub(crate) last_modified_by: ::std::option::Option<crate::types::UserContext>,
103    _request_id: Option<String>,
104}
105impl DescribeProjectOutputBuilder {
106    /// <p>The Amazon Resource Name (ARN) of the project.</p>
107    /// This field is required.
108    pub fn project_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
109        self.project_arn = ::std::option::Option::Some(input.into());
110        self
111    }
112    /// <p>The Amazon Resource Name (ARN) of the project.</p>
113    pub fn set_project_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
114        self.project_arn = input;
115        self
116    }
117    /// <p>The Amazon Resource Name (ARN) of the project.</p>
118    pub fn get_project_arn(&self) -> &::std::option::Option<::std::string::String> {
119        &self.project_arn
120    }
121    /// <p>The name of the project.</p>
122    /// This field is required.
123    pub fn project_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
124        self.project_name = ::std::option::Option::Some(input.into());
125        self
126    }
127    /// <p>The name of the project.</p>
128    pub fn set_project_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
129        self.project_name = input;
130        self
131    }
132    /// <p>The name of the project.</p>
133    pub fn get_project_name(&self) -> &::std::option::Option<::std::string::String> {
134        &self.project_name
135    }
136    /// <p>The ID of the project.</p>
137    /// This field is required.
138    pub fn project_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
139        self.project_id = ::std::option::Option::Some(input.into());
140        self
141    }
142    /// <p>The ID of the project.</p>
143    pub fn set_project_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
144        self.project_id = input;
145        self
146    }
147    /// <p>The ID of the project.</p>
148    pub fn get_project_id(&self) -> &::std::option::Option<::std::string::String> {
149        &self.project_id
150    }
151    /// <p>The description of the project.</p>
152    pub fn project_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
153        self.project_description = ::std::option::Option::Some(input.into());
154        self
155    }
156    /// <p>The description of the project.</p>
157    pub fn set_project_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
158        self.project_description = input;
159        self
160    }
161    /// <p>The description of the project.</p>
162    pub fn get_project_description(&self) -> &::std::option::Option<::std::string::String> {
163        &self.project_description
164    }
165    /// <p>Information used to provision a service catalog product. For information, see <a href="https://docs.aws.amazon.com/servicecatalog/latest/adminguide/introduction.html">What is Amazon Web Services Service Catalog</a>.</p>
166    /// This field is required.
167    pub fn service_catalog_provisioning_details(mut self, input: crate::types::ServiceCatalogProvisioningDetails) -> Self {
168        self.service_catalog_provisioning_details = ::std::option::Option::Some(input);
169        self
170    }
171    /// <p>Information used to provision a service catalog product. For information, see <a href="https://docs.aws.amazon.com/servicecatalog/latest/adminguide/introduction.html">What is Amazon Web Services Service Catalog</a>.</p>
172    pub fn set_service_catalog_provisioning_details(mut self, input: ::std::option::Option<crate::types::ServiceCatalogProvisioningDetails>) -> Self {
173        self.service_catalog_provisioning_details = input;
174        self
175    }
176    /// <p>Information used to provision a service catalog product. For information, see <a href="https://docs.aws.amazon.com/servicecatalog/latest/adminguide/introduction.html">What is Amazon Web Services Service Catalog</a>.</p>
177    pub fn get_service_catalog_provisioning_details(&self) -> &::std::option::Option<crate::types::ServiceCatalogProvisioningDetails> {
178        &self.service_catalog_provisioning_details
179    }
180    /// <p>Information about a provisioned service catalog product.</p>
181    pub fn service_catalog_provisioned_product_details(mut self, input: crate::types::ServiceCatalogProvisionedProductDetails) -> Self {
182        self.service_catalog_provisioned_product_details = ::std::option::Option::Some(input);
183        self
184    }
185    /// <p>Information about a provisioned service catalog product.</p>
186    pub fn set_service_catalog_provisioned_product_details(
187        mut self,
188        input: ::std::option::Option<crate::types::ServiceCatalogProvisionedProductDetails>,
189    ) -> Self {
190        self.service_catalog_provisioned_product_details = input;
191        self
192    }
193    /// <p>Information about a provisioned service catalog product.</p>
194    pub fn get_service_catalog_provisioned_product_details(&self) -> &::std::option::Option<crate::types::ServiceCatalogProvisionedProductDetails> {
195        &self.service_catalog_provisioned_product_details
196    }
197    /// <p>The status of the project.</p>
198    /// This field is required.
199    pub fn project_status(mut self, input: crate::types::ProjectStatus) -> Self {
200        self.project_status = ::std::option::Option::Some(input);
201        self
202    }
203    /// <p>The status of the project.</p>
204    pub fn set_project_status(mut self, input: ::std::option::Option<crate::types::ProjectStatus>) -> Self {
205        self.project_status = input;
206        self
207    }
208    /// <p>The status of the project.</p>
209    pub fn get_project_status(&self) -> &::std::option::Option<crate::types::ProjectStatus> {
210        &self.project_status
211    }
212    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
213    pub fn created_by(mut self, input: crate::types::UserContext) -> Self {
214        self.created_by = ::std::option::Option::Some(input);
215        self
216    }
217    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
218    pub fn set_created_by(mut self, input: ::std::option::Option<crate::types::UserContext>) -> Self {
219        self.created_by = input;
220        self
221    }
222    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
223    pub fn get_created_by(&self) -> &::std::option::Option<crate::types::UserContext> {
224        &self.created_by
225    }
226    /// <p>The time when the project was created.</p>
227    /// This field is required.
228    pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
229        self.creation_time = ::std::option::Option::Some(input);
230        self
231    }
232    /// <p>The time when the project was created.</p>
233    pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
234        self.creation_time = input;
235        self
236    }
237    /// <p>The time when the project was created.</p>
238    pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
239        &self.creation_time
240    }
241    /// <p>The timestamp when project was last modified.</p>
242    pub fn last_modified_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
243        self.last_modified_time = ::std::option::Option::Some(input);
244        self
245    }
246    /// <p>The timestamp when project was last modified.</p>
247    pub fn set_last_modified_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
248        self.last_modified_time = input;
249        self
250    }
251    /// <p>The timestamp when project was last modified.</p>
252    pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
253        &self.last_modified_time
254    }
255    /// <p>Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.</p>
256    pub fn last_modified_by(mut self, input: crate::types::UserContext) -> Self {
257        self.last_modified_by = ::std::option::Option::Some(input);
258        self
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 set_last_modified_by(mut self, input: ::std::option::Option<crate::types::UserContext>) -> Self {
262        self.last_modified_by = 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 get_last_modified_by(&self) -> &::std::option::Option<crate::types::UserContext> {
267        &self.last_modified_by
268    }
269    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
270        self._request_id = Some(request_id.into());
271        self
272    }
273
274    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
275        self._request_id = request_id;
276        self
277    }
278    /// Consumes the builder and constructs a [`DescribeProjectOutput`](crate::operation::describe_project::DescribeProjectOutput).
279    pub fn build(self) -> crate::operation::describe_project::DescribeProjectOutput {
280        crate::operation::describe_project::DescribeProjectOutput {
281            project_arn: self.project_arn,
282            project_name: self.project_name,
283            project_id: self.project_id,
284            project_description: self.project_description,
285            service_catalog_provisioning_details: self.service_catalog_provisioning_details,
286            service_catalog_provisioned_product_details: self.service_catalog_provisioned_product_details,
287            project_status: self.project_status,
288            created_by: self.created_by,
289            creation_time: self.creation_time,
290            last_modified_time: self.last_modified_time,
291            last_modified_by: self.last_modified_by,
292            _request_id: self._request_id,
293        }
294    }
295}