aws_sdk_codestar/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)]
5pub struct DescribeProjectOutput {
6    /// <p>The display name for the project.</p>
7    pub name: ::std::option::Option<::std::string::String>,
8    /// <p>The ID of the project.</p>
9    pub id: ::std::option::Option<::std::string::String>,
10    /// <p>The Amazon Resource Name (ARN) for the project.</p>
11    pub arn: ::std::option::Option<::std::string::String>,
12    /// <p>The description of the project, if any.</p>
13    pub description: ::std::option::Option<::std::string::String>,
14    /// <p>A user- or system-generated token that identifies the entity that requested project creation.</p>
15    pub client_request_token: ::std::option::Option<::std::string::String>,
16    /// <p>The date and time the project was created, in timestamp format.</p>
17    pub created_time_stamp: ::std::option::Option<::aws_smithy_types::DateTime>,
18    /// <p>The ID of the primary stack in AWS CloudFormation used to generate resources for the project.</p>
19    pub stack_id: ::std::option::Option<::std::string::String>,
20    /// <p>The ID for the AWS CodeStar project template used to create the project.</p>
21    pub project_template_id: ::std::option::Option<::std::string::String>,
22    /// <p>The project creation or deletion status.</p>
23    pub status: ::std::option::Option<crate::types::ProjectStatus>,
24    _request_id: Option<String>,
25}
26impl DescribeProjectOutput {
27    /// <p>The display name for the project.</p>
28    pub fn name(&self) -> ::std::option::Option<&str> {
29        self.name.as_deref()
30    }
31    /// <p>The ID of the project.</p>
32    pub fn id(&self) -> ::std::option::Option<&str> {
33        self.id.as_deref()
34    }
35    /// <p>The Amazon Resource Name (ARN) for the project.</p>
36    pub fn arn(&self) -> ::std::option::Option<&str> {
37        self.arn.as_deref()
38    }
39    /// <p>The description of the project, if any.</p>
40    pub fn description(&self) -> ::std::option::Option<&str> {
41        self.description.as_deref()
42    }
43    /// <p>A user- or system-generated token that identifies the entity that requested project creation.</p>
44    pub fn client_request_token(&self) -> ::std::option::Option<&str> {
45        self.client_request_token.as_deref()
46    }
47    /// <p>The date and time the project was created, in timestamp format.</p>
48    pub fn created_time_stamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
49        self.created_time_stamp.as_ref()
50    }
51    /// <p>The ID of the primary stack in AWS CloudFormation used to generate resources for the project.</p>
52    pub fn stack_id(&self) -> ::std::option::Option<&str> {
53        self.stack_id.as_deref()
54    }
55    /// <p>The ID for the AWS CodeStar project template used to create the project.</p>
56    pub fn project_template_id(&self) -> ::std::option::Option<&str> {
57        self.project_template_id.as_deref()
58    }
59    /// <p>The project creation or deletion status.</p>
60    pub fn status(&self) -> ::std::option::Option<&crate::types::ProjectStatus> {
61        self.status.as_ref()
62    }
63}
64impl ::std::fmt::Debug for DescribeProjectOutput {
65    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
66        let mut formatter = f.debug_struct("DescribeProjectOutput");
67        formatter.field("name", &"*** Sensitive Data Redacted ***");
68        formatter.field("id", &self.id);
69        formatter.field("arn", &self.arn);
70        formatter.field("description", &"*** Sensitive Data Redacted ***");
71        formatter.field("client_request_token", &self.client_request_token);
72        formatter.field("created_time_stamp", &self.created_time_stamp);
73        formatter.field("stack_id", &self.stack_id);
74        formatter.field("project_template_id", &self.project_template_id);
75        formatter.field("status", &self.status);
76        formatter.field("_request_id", &self._request_id);
77        formatter.finish()
78    }
79}
80impl ::aws_types::request_id::RequestId for DescribeProjectOutput {
81    fn request_id(&self) -> Option<&str> {
82        self._request_id.as_deref()
83    }
84}
85impl DescribeProjectOutput {
86    /// Creates a new builder-style object to manufacture [`DescribeProjectOutput`](crate::operation::describe_project::DescribeProjectOutput).
87    pub fn builder() -> crate::operation::describe_project::builders::DescribeProjectOutputBuilder {
88        crate::operation::describe_project::builders::DescribeProjectOutputBuilder::default()
89    }
90}
91
92/// A builder for [`DescribeProjectOutput`](crate::operation::describe_project::DescribeProjectOutput).
93#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
94#[non_exhaustive]
95pub struct DescribeProjectOutputBuilder {
96    pub(crate) name: ::std::option::Option<::std::string::String>,
97    pub(crate) id: ::std::option::Option<::std::string::String>,
98    pub(crate) arn: ::std::option::Option<::std::string::String>,
99    pub(crate) description: ::std::option::Option<::std::string::String>,
100    pub(crate) client_request_token: ::std::option::Option<::std::string::String>,
101    pub(crate) created_time_stamp: ::std::option::Option<::aws_smithy_types::DateTime>,
102    pub(crate) stack_id: ::std::option::Option<::std::string::String>,
103    pub(crate) project_template_id: ::std::option::Option<::std::string::String>,
104    pub(crate) status: ::std::option::Option<crate::types::ProjectStatus>,
105    _request_id: Option<String>,
106}
107impl DescribeProjectOutputBuilder {
108    /// <p>The display name for the project.</p>
109    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
110        self.name = ::std::option::Option::Some(input.into());
111        self
112    }
113    /// <p>The display name for the project.</p>
114    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
115        self.name = input;
116        self
117    }
118    /// <p>The display name for the project.</p>
119    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
120        &self.name
121    }
122    /// <p>The ID of the project.</p>
123    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
124        self.id = ::std::option::Option::Some(input.into());
125        self
126    }
127    /// <p>The ID of the project.</p>
128    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
129        self.id = input;
130        self
131    }
132    /// <p>The ID of the project.</p>
133    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
134        &self.id
135    }
136    /// <p>The Amazon Resource Name (ARN) for the project.</p>
137    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
138        self.arn = ::std::option::Option::Some(input.into());
139        self
140    }
141    /// <p>The Amazon Resource Name (ARN) for the project.</p>
142    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
143        self.arn = input;
144        self
145    }
146    /// <p>The Amazon Resource Name (ARN) for the project.</p>
147    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
148        &self.arn
149    }
150    /// <p>The description of the project, if any.</p>
151    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
152        self.description = ::std::option::Option::Some(input.into());
153        self
154    }
155    /// <p>The description of the project, if any.</p>
156    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
157        self.description = input;
158        self
159    }
160    /// <p>The description of the project, if any.</p>
161    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
162        &self.description
163    }
164    /// <p>A user- or system-generated token that identifies the entity that requested project creation.</p>
165    pub fn client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
166        self.client_request_token = ::std::option::Option::Some(input.into());
167        self
168    }
169    /// <p>A user- or system-generated token that identifies the entity that requested project creation.</p>
170    pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
171        self.client_request_token = input;
172        self
173    }
174    /// <p>A user- or system-generated token that identifies the entity that requested project creation.</p>
175    pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
176        &self.client_request_token
177    }
178    /// <p>The date and time the project was created, in timestamp format.</p>
179    pub fn created_time_stamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
180        self.created_time_stamp = ::std::option::Option::Some(input);
181        self
182    }
183    /// <p>The date and time the project was created, in timestamp format.</p>
184    pub fn set_created_time_stamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
185        self.created_time_stamp = input;
186        self
187    }
188    /// <p>The date and time the project was created, in timestamp format.</p>
189    pub fn get_created_time_stamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
190        &self.created_time_stamp
191    }
192    /// <p>The ID of the primary stack in AWS CloudFormation used to generate resources for the project.</p>
193    pub fn stack_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
194        self.stack_id = ::std::option::Option::Some(input.into());
195        self
196    }
197    /// <p>The ID of the primary stack in AWS CloudFormation used to generate resources for the project.</p>
198    pub fn set_stack_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
199        self.stack_id = input;
200        self
201    }
202    /// <p>The ID of the primary stack in AWS CloudFormation used to generate resources for the project.</p>
203    pub fn get_stack_id(&self) -> &::std::option::Option<::std::string::String> {
204        &self.stack_id
205    }
206    /// <p>The ID for the AWS CodeStar project template used to create the project.</p>
207    pub fn project_template_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
208        self.project_template_id = ::std::option::Option::Some(input.into());
209        self
210    }
211    /// <p>The ID for the AWS CodeStar project template used to create the project.</p>
212    pub fn set_project_template_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
213        self.project_template_id = input;
214        self
215    }
216    /// <p>The ID for the AWS CodeStar project template used to create the project.</p>
217    pub fn get_project_template_id(&self) -> &::std::option::Option<::std::string::String> {
218        &self.project_template_id
219    }
220    /// <p>The project creation or deletion status.</p>
221    pub fn status(mut self, input: crate::types::ProjectStatus) -> Self {
222        self.status = ::std::option::Option::Some(input);
223        self
224    }
225    /// <p>The project creation or deletion status.</p>
226    pub fn set_status(mut self, input: ::std::option::Option<crate::types::ProjectStatus>) -> Self {
227        self.status = input;
228        self
229    }
230    /// <p>The project creation or deletion status.</p>
231    pub fn get_status(&self) -> &::std::option::Option<crate::types::ProjectStatus> {
232        &self.status
233    }
234    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
235        self._request_id = Some(request_id.into());
236        self
237    }
238
239    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
240        self._request_id = request_id;
241        self
242    }
243    /// Consumes the builder and constructs a [`DescribeProjectOutput`](crate::operation::describe_project::DescribeProjectOutput).
244    pub fn build(self) -> crate::operation::describe_project::DescribeProjectOutput {
245        crate::operation::describe_project::DescribeProjectOutput {
246            name: self.name,
247            id: self.id,
248            arn: self.arn,
249            description: self.description,
250            client_request_token: self.client_request_token,
251            created_time_stamp: self.created_time_stamp,
252            stack_id: self.stack_id,
253            project_template_id: self.project_template_id,
254            status: self.status,
255            _request_id: self._request_id,
256        }
257    }
258}
259impl ::std::fmt::Debug for DescribeProjectOutputBuilder {
260    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
261        let mut formatter = f.debug_struct("DescribeProjectOutputBuilder");
262        formatter.field("name", &"*** Sensitive Data Redacted ***");
263        formatter.field("id", &self.id);
264        formatter.field("arn", &self.arn);
265        formatter.field("description", &"*** Sensitive Data Redacted ***");
266        formatter.field("client_request_token", &self.client_request_token);
267        formatter.field("created_time_stamp", &self.created_time_stamp);
268        formatter.field("stack_id", &self.stack_id);
269        formatter.field("project_template_id", &self.project_template_id);
270        formatter.field("status", &self.status);
271        formatter.field("_request_id", &self._request_id);
272        formatter.finish()
273    }
274}