aws_sdk_codecatalyst/operation/update_project/
_update_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 UpdateProjectOutput {
6    /// <p>The name of the space.</p>
7    pub space_name: ::std::option::Option<::std::string::String>,
8    /// <p>The name of the project.</p>
9    pub name: ::std::option::Option<::std::string::String>,
10    /// <p>The friendly name of the project displayed to users in Amazon CodeCatalyst.</p>
11    pub display_name: ::std::option::Option<::std::string::String>,
12    /// <p>The description of the project.</p>
13    pub description: ::std::option::Option<::std::string::String>,
14    _request_id: Option<String>,
15}
16impl UpdateProjectOutput {
17    /// <p>The name of the space.</p>
18    pub fn space_name(&self) -> ::std::option::Option<&str> {
19        self.space_name.as_deref()
20    }
21    /// <p>The name of the project.</p>
22    pub fn name(&self) -> ::std::option::Option<&str> {
23        self.name.as_deref()
24    }
25    /// <p>The friendly name of the project displayed to users in Amazon CodeCatalyst.</p>
26    pub fn display_name(&self) -> ::std::option::Option<&str> {
27        self.display_name.as_deref()
28    }
29    /// <p>The description of the project.</p>
30    pub fn description(&self) -> ::std::option::Option<&str> {
31        self.description.as_deref()
32    }
33}
34impl ::aws_types::request_id::RequestId for UpdateProjectOutput {
35    fn request_id(&self) -> Option<&str> {
36        self._request_id.as_deref()
37    }
38}
39impl UpdateProjectOutput {
40    /// Creates a new builder-style object to manufacture [`UpdateProjectOutput`](crate::operation::update_project::UpdateProjectOutput).
41    pub fn builder() -> crate::operation::update_project::builders::UpdateProjectOutputBuilder {
42        crate::operation::update_project::builders::UpdateProjectOutputBuilder::default()
43    }
44}
45
46/// A builder for [`UpdateProjectOutput`](crate::operation::update_project::UpdateProjectOutput).
47#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
48#[non_exhaustive]
49pub struct UpdateProjectOutputBuilder {
50    pub(crate) space_name: ::std::option::Option<::std::string::String>,
51    pub(crate) name: ::std::option::Option<::std::string::String>,
52    pub(crate) display_name: ::std::option::Option<::std::string::String>,
53    pub(crate) description: ::std::option::Option<::std::string::String>,
54    _request_id: Option<String>,
55}
56impl UpdateProjectOutputBuilder {
57    /// <p>The name of the space.</p>
58    pub fn space_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
59        self.space_name = ::std::option::Option::Some(input.into());
60        self
61    }
62    /// <p>The name of the space.</p>
63    pub fn set_space_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
64        self.space_name = input;
65        self
66    }
67    /// <p>The name of the space.</p>
68    pub fn get_space_name(&self) -> &::std::option::Option<::std::string::String> {
69        &self.space_name
70    }
71    /// <p>The name of the project.</p>
72    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
73        self.name = ::std::option::Option::Some(input.into());
74        self
75    }
76    /// <p>The name of the project.</p>
77    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
78        self.name = input;
79        self
80    }
81    /// <p>The name of the project.</p>
82    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
83        &self.name
84    }
85    /// <p>The friendly name of the project displayed to users in Amazon CodeCatalyst.</p>
86    pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
87        self.display_name = ::std::option::Option::Some(input.into());
88        self
89    }
90    /// <p>The friendly name of the project displayed to users in Amazon CodeCatalyst.</p>
91    pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
92        self.display_name = input;
93        self
94    }
95    /// <p>The friendly name of the project displayed to users in Amazon CodeCatalyst.</p>
96    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
97        &self.display_name
98    }
99    /// <p>The description of the project.</p>
100    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
101        self.description = ::std::option::Option::Some(input.into());
102        self
103    }
104    /// <p>The description of the project.</p>
105    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
106        self.description = input;
107        self
108    }
109    /// <p>The description of the project.</p>
110    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
111        &self.description
112    }
113    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
114        self._request_id = Some(request_id.into());
115        self
116    }
117
118    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
119        self._request_id = request_id;
120        self
121    }
122    /// Consumes the builder and constructs a [`UpdateProjectOutput`](crate::operation::update_project::UpdateProjectOutput).
123    pub fn build(self) -> crate::operation::update_project::UpdateProjectOutput {
124        crate::operation::update_project::UpdateProjectOutput {
125            space_name: self.space_name,
126            name: self.name,
127            display_name: self.display_name,
128            description: self.description,
129            _request_id: self._request_id,
130        }
131    }
132}