aws_sdk_codecatalyst/operation/update_project/
_update_project_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateProjectOutput {
6 pub space_name: ::std::option::Option<::std::string::String>,
8 pub name: ::std::option::Option<::std::string::String>,
10 pub display_name: ::std::option::Option<::std::string::String>,
12 pub description: ::std::option::Option<::std::string::String>,
14 _request_id: Option<String>,
15}
16impl UpdateProjectOutput {
17 pub fn space_name(&self) -> ::std::option::Option<&str> {
19 self.space_name.as_deref()
20 }
21 pub fn name(&self) -> ::std::option::Option<&str> {
23 self.name.as_deref()
24 }
25 pub fn display_name(&self) -> ::std::option::Option<&str> {
27 self.display_name.as_deref()
28 }
29 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 pub fn builder() -> crate::operation::update_project::builders::UpdateProjectOutputBuilder {
42 crate::operation::update_project::builders::UpdateProjectOutputBuilder::default()
43 }
44}
45
46#[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 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 pub fn set_space_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
64 self.space_name = input;
65 self
66 }
67 pub fn get_space_name(&self) -> &::std::option::Option<::std::string::String> {
69 &self.space_name
70 }
71 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 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
78 self.name = input;
79 self
80 }
81 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
83 &self.name
84 }
85 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 pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
92 self.display_name = input;
93 self
94 }
95 pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
97 &self.display_name
98 }
99 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 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
106 self.description = input;
107 self
108 }
109 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 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}