aws_sdk_serverlessapplicationrepository/operation/create_cloud_formation_template/
_create_cloud_formation_template_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct CreateCloudFormationTemplateOutput {
6 pub application_id: ::std::option::Option<::std::string::String>,
8 pub creation_time: ::std::option::Option<::std::string::String>,
10 pub expiration_time: ::std::option::Option<::std::string::String>,
12 pub semantic_version: ::std::option::Option<::std::string::String>,
15 pub status: ::std::option::Option<crate::types::Status>,
18 pub template_id: ::std::option::Option<::std::string::String>,
21 pub template_url: ::std::option::Option<::std::string::String>,
23 _request_id: Option<String>,
24}
25impl CreateCloudFormationTemplateOutput {
26 pub fn application_id(&self) -> ::std::option::Option<&str> {
28 self.application_id.as_deref()
29 }
30 pub fn creation_time(&self) -> ::std::option::Option<&str> {
32 self.creation_time.as_deref()
33 }
34 pub fn expiration_time(&self) -> ::std::option::Option<&str> {
36 self.expiration_time.as_deref()
37 }
38 pub fn semantic_version(&self) -> ::std::option::Option<&str> {
41 self.semantic_version.as_deref()
42 }
43 pub fn status(&self) -> ::std::option::Option<&crate::types::Status> {
46 self.status.as_ref()
47 }
48 pub fn template_id(&self) -> ::std::option::Option<&str> {
51 self.template_id.as_deref()
52 }
53 pub fn template_url(&self) -> ::std::option::Option<&str> {
55 self.template_url.as_deref()
56 }
57}
58impl ::aws_types::request_id::RequestId for CreateCloudFormationTemplateOutput {
59 fn request_id(&self) -> Option<&str> {
60 self._request_id.as_deref()
61 }
62}
63impl CreateCloudFormationTemplateOutput {
64 pub fn builder() -> crate::operation::create_cloud_formation_template::builders::CreateCloudFormationTemplateOutputBuilder {
66 crate::operation::create_cloud_formation_template::builders::CreateCloudFormationTemplateOutputBuilder::default()
67 }
68}
69
70#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
72#[non_exhaustive]
73pub struct CreateCloudFormationTemplateOutputBuilder {
74 pub(crate) application_id: ::std::option::Option<::std::string::String>,
75 pub(crate) creation_time: ::std::option::Option<::std::string::String>,
76 pub(crate) expiration_time: ::std::option::Option<::std::string::String>,
77 pub(crate) semantic_version: ::std::option::Option<::std::string::String>,
78 pub(crate) status: ::std::option::Option<crate::types::Status>,
79 pub(crate) template_id: ::std::option::Option<::std::string::String>,
80 pub(crate) template_url: ::std::option::Option<::std::string::String>,
81 _request_id: Option<String>,
82}
83impl CreateCloudFormationTemplateOutputBuilder {
84 pub fn application_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
86 self.application_id = ::std::option::Option::Some(input.into());
87 self
88 }
89 pub fn set_application_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
91 self.application_id = input;
92 self
93 }
94 pub fn get_application_id(&self) -> &::std::option::Option<::std::string::String> {
96 &self.application_id
97 }
98 pub fn creation_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
100 self.creation_time = ::std::option::Option::Some(input.into());
101 self
102 }
103 pub fn set_creation_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
105 self.creation_time = input;
106 self
107 }
108 pub fn get_creation_time(&self) -> &::std::option::Option<::std::string::String> {
110 &self.creation_time
111 }
112 pub fn expiration_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
114 self.expiration_time = ::std::option::Option::Some(input.into());
115 self
116 }
117 pub fn set_expiration_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
119 self.expiration_time = input;
120 self
121 }
122 pub fn get_expiration_time(&self) -> &::std::option::Option<::std::string::String> {
124 &self.expiration_time
125 }
126 pub fn semantic_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
129 self.semantic_version = ::std::option::Option::Some(input.into());
130 self
131 }
132 pub fn set_semantic_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
135 self.semantic_version = input;
136 self
137 }
138 pub fn get_semantic_version(&self) -> &::std::option::Option<::std::string::String> {
141 &self.semantic_version
142 }
143 pub fn status(mut self, input: crate::types::Status) -> Self {
146 self.status = ::std::option::Option::Some(input);
147 self
148 }
149 pub fn set_status(mut self, input: ::std::option::Option<crate::types::Status>) -> Self {
152 self.status = input;
153 self
154 }
155 pub fn get_status(&self) -> &::std::option::Option<crate::types::Status> {
158 &self.status
159 }
160 pub fn template_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
163 self.template_id = ::std::option::Option::Some(input.into());
164 self
165 }
166 pub fn set_template_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
169 self.template_id = input;
170 self
171 }
172 pub fn get_template_id(&self) -> &::std::option::Option<::std::string::String> {
175 &self.template_id
176 }
177 pub fn template_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
179 self.template_url = ::std::option::Option::Some(input.into());
180 self
181 }
182 pub fn set_template_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
184 self.template_url = input;
185 self
186 }
187 pub fn get_template_url(&self) -> &::std::option::Option<::std::string::String> {
189 &self.template_url
190 }
191 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
192 self._request_id = Some(request_id.into());
193 self
194 }
195
196 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
197 self._request_id = request_id;
198 self
199 }
200 pub fn build(self) -> crate::operation::create_cloud_formation_template::CreateCloudFormationTemplateOutput {
202 crate::operation::create_cloud_formation_template::CreateCloudFormationTemplateOutput {
203 application_id: self.application_id,
204 creation_time: self.creation_time,
205 expiration_time: self.expiration_time,
206 semantic_version: self.semantic_version,
207 status: self.status,
208 template_id: self.template_id,
209 template_url: self.template_url,
210 _request_id: self._request_id,
211 }
212 }
213}