1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* StructureGenerator.kt:197 */
|
2 3 | #[allow(missing_docs)] // documentation missing in model
|
4 + | /* RustType.kt:516 */
|
3 5 | #[non_exhaustive]
|
6 + | /* RustType.kt:516 */
|
4 7 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5 - | pub struct TimestampFormatHeadersInput {
|
8 + | pub /* StructureGenerator.kt:201 */ struct TimestampFormatHeadersInput {
|
9 + | /* StructureGenerator.kt:231 */
|
6 10 | #[allow(missing_docs)] // documentation missing in model
|
7 11 | pub member_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
12 + | /* StructureGenerator.kt:231 */
|
8 13 | #[allow(missing_docs)] // documentation missing in model
|
9 14 | pub member_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
15 + | /* StructureGenerator.kt:231 */
|
10 16 | #[allow(missing_docs)] // documentation missing in model
|
11 17 | pub member_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
18 + | /* StructureGenerator.kt:231 */
|
12 19 | #[allow(missing_docs)] // documentation missing in model
|
13 20 | pub default_format: ::std::option::Option<::aws_smithy_types::DateTime>,
|
21 + | /* StructureGenerator.kt:231 */
|
14 22 | #[allow(missing_docs)] // documentation missing in model
|
15 23 | pub target_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
24 + | /* StructureGenerator.kt:231 */
|
16 25 | #[allow(missing_docs)] // documentation missing in model
|
17 26 | pub target_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
27 + | /* StructureGenerator.kt:231 */
|
18 28 | #[allow(missing_docs)] // documentation missing in model
|
19 29 | pub target_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
30 + | /* StructureGenerator.kt:201 */
|
20 31 | }
|
32 + | /* StructureGenerator.kt:135 */
|
21 33 | impl TimestampFormatHeadersInput {
|
34 + | /* StructureGenerator.kt:231 */
|
22 35 | #[allow(missing_docs)] // documentation missing in model
|
36 + | /* StructureGenerator.kt:166 */
|
23 37 | pub fn member_epoch_seconds(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
38 + | /* StructureGenerator.kt:170 */
|
24 39 | self.member_epoch_seconds.as_ref()
|
40 + | /* StructureGenerator.kt:166 */
|
25 41 | }
|
42 + | /* StructureGenerator.kt:231 */
|
26 43 | #[allow(missing_docs)] // documentation missing in model
|
44 + | /* StructureGenerator.kt:166 */
|
27 45 | pub fn member_http_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
46 + | /* StructureGenerator.kt:170 */
|
28 47 | self.member_http_date.as_ref()
|
48 + | /* StructureGenerator.kt:166 */
|
29 49 | }
|
50 + | /* StructureGenerator.kt:231 */
|
30 51 | #[allow(missing_docs)] // documentation missing in model
|
52 + | /* StructureGenerator.kt:166 */
|
31 53 | pub fn member_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
54 + | /* StructureGenerator.kt:170 */
|
32 55 | self.member_date_time.as_ref()
|
56 + | /* StructureGenerator.kt:166 */
|
33 57 | }
|
58 + | /* StructureGenerator.kt:231 */
|
34 59 | #[allow(missing_docs)] // documentation missing in model
|
60 + | /* StructureGenerator.kt:166 */
|
35 61 | pub fn default_format(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
62 + | /* StructureGenerator.kt:170 */
|
36 63 | self.default_format.as_ref()
|
64 + | /* StructureGenerator.kt:166 */
|
37 65 | }
|
66 + | /* StructureGenerator.kt:231 */
|
38 67 | #[allow(missing_docs)] // documentation missing in model
|
68 + | /* StructureGenerator.kt:166 */
|
39 69 | pub fn target_epoch_seconds(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
70 + | /* StructureGenerator.kt:170 */
|
40 71 | self.target_epoch_seconds.as_ref()
|
72 + | /* StructureGenerator.kt:166 */
|
41 73 | }
|
74 + | /* StructureGenerator.kt:231 */
|
42 75 | #[allow(missing_docs)] // documentation missing in model
|
76 + | /* StructureGenerator.kt:166 */
|
43 77 | pub fn target_http_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
78 + | /* StructureGenerator.kt:170 */
|
44 79 | self.target_http_date.as_ref()
|
80 + | /* StructureGenerator.kt:166 */
|
45 81 | }
|
82 + | /* StructureGenerator.kt:231 */
|
46 83 | #[allow(missing_docs)] // documentation missing in model
|
84 + | /* StructureGenerator.kt:166 */
|
47 85 | pub fn target_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
86 + | /* StructureGenerator.kt:170 */
|
48 87 | self.target_date_time.as_ref()
|
88 + | /* StructureGenerator.kt:166 */
|
49 89 | }
|
90 + | /* StructureGenerator.kt:135 */
|
50 91 | }
|
92 + | /* ClientCodegenVisitor.kt:237 */
|
51 93 | impl TimestampFormatHeadersInput {
|
52 - | /// Creates a new builder-style object to manufacture [`TimestampFormatHeadersInput`](crate::operation::timestamp_format_headers::TimestampFormatHeadersInput).
|
94 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`TimestampFormatHeadersInput`](crate::operation::timestamp_format_headers::TimestampFormatHeadersInput).
|
95 + | /* BuilderGenerator.kt:175 */
|
53 96 | pub fn builder() -> crate::operation::timestamp_format_headers::builders::TimestampFormatHeadersInputBuilder {
|
97 + | /* BuilderGenerator.kt:176 */
|
54 98 | crate::operation::timestamp_format_headers::builders::TimestampFormatHeadersInputBuilder::default()
|
99 + | /* BuilderGenerator.kt:175 */
|
55 100 | }
|
101 + | /* ClientCodegenVisitor.kt:237 */
|
56 102 | }
|
57 103 |
|
58 - | /// A builder for [`TimestampFormatHeadersInput`](crate::operation::timestamp_format_headers::TimestampFormatHeadersInput).
|
104 + | /// /* BuilderGenerator.kt:342 */A builder for [`TimestampFormatHeadersInput`](crate::operation::timestamp_format_headers::TimestampFormatHeadersInput).
|
105 + | /* RustType.kt:516 */
|
59 106 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
107 + | /* RustType.kt:516 */
|
60 108 | #[non_exhaustive]
|
109 + | /* BuilderGenerator.kt:345 */
|
61 110 | pub struct TimestampFormatHeadersInputBuilder {
|
62 - | pub(crate) member_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
63 - | pub(crate) member_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
64 - | pub(crate) member_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
65 - | pub(crate) default_format: ::std::option::Option<::aws_smithy_types::DateTime>,
|
66 - | pub(crate) target_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
67 - | pub(crate) target_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
111 + | /* BuilderGenerator.kt:275 */ pub(crate) member_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
112 + | /* BuilderGenerator.kt:275 */ pub(crate) member_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
113 + | /* BuilderGenerator.kt:275 */ pub(crate) member_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
114 + | /* BuilderGenerator.kt:275 */ pub(crate) default_format: ::std::option::Option<::aws_smithy_types::DateTime>,
|
115 + | /* BuilderGenerator.kt:275 */ pub(crate) target_epoch_seconds: ::std::option::Option<::aws_smithy_types::DateTime>,
|
116 + | /* BuilderGenerator.kt:275 */ pub(crate) target_http_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
117 + | /* BuilderGenerator.kt:275 */
|
68 118 | pub(crate) target_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
119 + | /* BuilderGenerator.kt:345 */
|
69 120 | }
|
121 + | /* BuilderGenerator.kt:355 */
|
70 122 | impl TimestampFormatHeadersInputBuilder {
|
123 + | /* BuilderGenerator.kt:286 */
|
71 124 | #[allow(missing_docs)] // documentation missing in model
|
125 + | /* BuilderGenerator.kt:291 */
|
72 126 | pub fn member_epoch_seconds(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
127 + | /* BuilderGenerator.kt:292 */
|
73 128 | self.member_epoch_seconds = ::std::option::Option::Some(input);
|
129 + | /* BuilderGenerator.kt:293 */
|
74 130 | self
|
131 + | /* BuilderGenerator.kt:291 */
|
75 132 | }
|
133 + | /* BuilderGenerator.kt:312 */
|
76 134 | #[allow(missing_docs)] // documentation missing in model
|
135 + | /* BuilderGenerator.kt:314 */
|
77 136 | pub fn set_member_epoch_seconds(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
137 + | /* BuilderGenerator.kt:315 */
|
78 138 | self.member_epoch_seconds = input;
|
79 139 | self
|
140 + | /* BuilderGenerator.kt:314 */
|
80 141 | }
|
142 + | /* BuilderGenerator.kt:334 */
|
81 143 | #[allow(missing_docs)] // documentation missing in model
|
144 + | /* BuilderGenerator.kt:336 */
|
82 145 | pub fn get_member_epoch_seconds(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
146 + | /* BuilderGenerator.kt:337 */
|
83 147 | &self.member_epoch_seconds
|
148 + | /* BuilderGenerator.kt:336 */
|
84 149 | }
|
150 + | /* BuilderGenerator.kt:286 */
|
85 151 | #[allow(missing_docs)] // documentation missing in model
|
152 + | /* BuilderGenerator.kt:291 */
|
86 153 | pub fn member_http_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
154 + | /* BuilderGenerator.kt:292 */
|
87 155 | self.member_http_date = ::std::option::Option::Some(input);
|
156 + | /* BuilderGenerator.kt:293 */
|
88 157 | self
|
158 + | /* BuilderGenerator.kt:291 */
|
89 159 | }
|
160 + | /* BuilderGenerator.kt:312 */
|
90 161 | #[allow(missing_docs)] // documentation missing in model
|
162 + | /* BuilderGenerator.kt:314 */
|
91 163 | pub fn set_member_http_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
164 + | /* BuilderGenerator.kt:315 */
|
92 165 | self.member_http_date = input;
|
93 166 | self
|
167 + | /* BuilderGenerator.kt:314 */
|
94 168 | }
|
169 + | /* BuilderGenerator.kt:334 */
|
95 170 | #[allow(missing_docs)] // documentation missing in model
|
171 + | /* BuilderGenerator.kt:336 */
|
96 172 | pub fn get_member_http_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
173 + | /* BuilderGenerator.kt:337 */
|
97 174 | &self.member_http_date
|
175 + | /* BuilderGenerator.kt:336 */
|
98 176 | }
|
177 + | /* BuilderGenerator.kt:286 */
|
99 178 | #[allow(missing_docs)] // documentation missing in model
|
179 + | /* BuilderGenerator.kt:291 */
|
100 180 | pub fn member_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
181 + | /* BuilderGenerator.kt:292 */
|
101 182 | self.member_date_time = ::std::option::Option::Some(input);
|
183 + | /* BuilderGenerator.kt:293 */
|
102 184 | self
|
185 + | /* BuilderGenerator.kt:291 */
|
103 186 | }
|
187 + | /* BuilderGenerator.kt:312 */
|
104 188 | #[allow(missing_docs)] // documentation missing in model
|
189 + | /* BuilderGenerator.kt:314 */
|
105 190 | pub fn set_member_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
191 + | /* BuilderGenerator.kt:315 */
|
106 192 | self.member_date_time = input;
|
107 193 | self
|
194 + | /* BuilderGenerator.kt:314 */
|
108 195 | }
|
196 + | /* BuilderGenerator.kt:334 */
|
109 197 | #[allow(missing_docs)] // documentation missing in model
|
198 + | /* BuilderGenerator.kt:336 */
|
110 199 | pub fn get_member_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
200 + | /* BuilderGenerator.kt:337 */
|
111 201 | &self.member_date_time
|
202 + | /* BuilderGenerator.kt:336 */
|
112 203 | }
|
204 + | /* BuilderGenerator.kt:286 */
|
113 205 | #[allow(missing_docs)] // documentation missing in model
|
206 + | /* BuilderGenerator.kt:291 */
|
114 207 | pub fn default_format(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
208 + | /* BuilderGenerator.kt:292 */
|
115 209 | self.default_format = ::std::option::Option::Some(input);
|
210 + | /* BuilderGenerator.kt:293 */
|
116 211 | self
|
212 + | /* BuilderGenerator.kt:291 */
|
117 213 | }
|
214 + | /* BuilderGenerator.kt:312 */
|
118 215 | #[allow(missing_docs)] // documentation missing in model
|
216 + | /* BuilderGenerator.kt:314 */
|
119 217 | pub fn set_default_format(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
218 + | /* BuilderGenerator.kt:315 */
|
120 219 | self.default_format = input;
|
121 220 | self
|
221 + | /* BuilderGenerator.kt:314 */
|
122 222 | }
|
223 + | /* BuilderGenerator.kt:334 */
|
123 224 | #[allow(missing_docs)] // documentation missing in model
|
225 + | /* BuilderGenerator.kt:336 */
|
124 226 | pub fn get_default_format(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
227 + | /* BuilderGenerator.kt:337 */
|
125 228 | &self.default_format
|
229 + | /* BuilderGenerator.kt:336 */
|
126 230 | }
|
231 + | /* BuilderGenerator.kt:286 */
|
127 232 | #[allow(missing_docs)] // documentation missing in model
|
233 + | /* BuilderGenerator.kt:291 */
|
128 234 | pub fn target_epoch_seconds(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
235 + | /* BuilderGenerator.kt:292 */
|
129 236 | self.target_epoch_seconds = ::std::option::Option::Some(input);
|
237 + | /* BuilderGenerator.kt:293 */
|
130 238 | self
|
239 + | /* BuilderGenerator.kt:291 */
|
131 240 | }
|
241 + | /* BuilderGenerator.kt:312 */
|
132 242 | #[allow(missing_docs)] // documentation missing in model
|
243 + | /* BuilderGenerator.kt:314 */
|
133 244 | pub fn set_target_epoch_seconds(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
245 + | /* BuilderGenerator.kt:315 */
|
134 246 | self.target_epoch_seconds = input;
|
135 247 | self
|
248 + | /* BuilderGenerator.kt:314 */
|
136 249 | }
|
250 + | /* BuilderGenerator.kt:334 */
|
137 251 | #[allow(missing_docs)] // documentation missing in model
|
252 + | /* BuilderGenerator.kt:336 */
|
138 253 | pub fn get_target_epoch_seconds(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
254 + | /* BuilderGenerator.kt:337 */
|
139 255 | &self.target_epoch_seconds
|
256 + | /* BuilderGenerator.kt:336 */
|
140 257 | }
|
258 + | /* BuilderGenerator.kt:286 */
|
141 259 | #[allow(missing_docs)] // documentation missing in model
|
260 + | /* BuilderGenerator.kt:291 */
|
142 261 | pub fn target_http_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
262 + | /* BuilderGenerator.kt:292 */
|
143 263 | self.target_http_date = ::std::option::Option::Some(input);
|
264 + | /* BuilderGenerator.kt:293 */
|
144 265 | self
|
266 + | /* BuilderGenerator.kt:291 */
|
145 267 | }
|
268 + | /* BuilderGenerator.kt:312 */
|
146 269 | #[allow(missing_docs)] // documentation missing in model
|
270 + | /* BuilderGenerator.kt:314 */
|
147 271 | pub fn set_target_http_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
272 + | /* BuilderGenerator.kt:315 */
|
148 273 | self.target_http_date = input;
|
149 274 | self
|
275 + | /* BuilderGenerator.kt:314 */
|
150 276 | }
|
277 + | /* BuilderGenerator.kt:334 */
|
151 278 | #[allow(missing_docs)] // documentation missing in model
|
279 + | /* BuilderGenerator.kt:336 */
|
152 280 | pub fn get_target_http_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
281 + | /* BuilderGenerator.kt:337 */
|
153 282 | &self.target_http_date
|
283 + | /* BuilderGenerator.kt:336 */
|
154 284 | }
|
285 + | /* BuilderGenerator.kt:286 */
|
155 286 | #[allow(missing_docs)] // documentation missing in model
|
287 + | /* BuilderGenerator.kt:291 */
|
156 288 | pub fn target_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
289 + | /* BuilderGenerator.kt:292 */
|
157 290 | self.target_date_time = ::std::option::Option::Some(input);
|
291 + | /* BuilderGenerator.kt:293 */
|
158 292 | self
|
293 + | /* BuilderGenerator.kt:291 */
|
159 294 | }
|
295 + | /* BuilderGenerator.kt:312 */
|
160 296 | #[allow(missing_docs)] // documentation missing in model
|
297 + | /* BuilderGenerator.kt:314 */
|
161 298 | pub fn set_target_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
299 + | /* BuilderGenerator.kt:315 */
|
162 300 | self.target_date_time = input;
|
163 301 | self
|
302 + | /* BuilderGenerator.kt:314 */
|
164 303 | }
|
304 + | /* BuilderGenerator.kt:334 */
|
165 305 | #[allow(missing_docs)] // documentation missing in model
|
306 + | /* BuilderGenerator.kt:336 */
|
166 307 | pub fn get_target_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
308 + | /* BuilderGenerator.kt:337 */
|
167 309 | &self.target_date_time
|
310 + | /* BuilderGenerator.kt:336 */
|
168 311 | }
|
169 - | /// Consumes the builder and constructs a [`TimestampFormatHeadersInput`](crate::operation::timestamp_format_headers::TimestampFormatHeadersInput).
|
312 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`TimestampFormatHeadersInput`](crate::operation::timestamp_format_headers::TimestampFormatHeadersInput).
|
313 + | /* BuilderGenerator.kt:253 */
|
170 314 | pub fn build(
|
171 315 | self,
|
172 316 | ) -> ::std::result::Result<
|
173 317 | crate::operation::timestamp_format_headers::TimestampFormatHeadersInput,
|
174 318 | ::aws_smithy_types::error::operation::BuildError,
|
175 319 | > {
|
176 - | ::std::result::Result::Ok(crate::operation::timestamp_format_headers::TimestampFormatHeadersInput {
|
177 - | member_epoch_seconds: self.member_epoch_seconds,
|
320 + | /* BuilderGenerator.kt:254 */
|
321 + | ::std::result::Result::Ok(
|
322 + | /* BuilderGenerator.kt:477 */
|
323 + | crate::operation::timestamp_format_headers::TimestampFormatHeadersInput {
|
324 + | /* BuilderGenerator.kt:481 */ member_epoch_seconds: self.member_epoch_seconds,
|
325 + | /* BuilderGenerator.kt:481 */
|
178 326 | member_http_date: self.member_http_date,
|
327 + | /* BuilderGenerator.kt:481 */
|
179 328 | member_date_time: self.member_date_time,
|
329 + | /* BuilderGenerator.kt:481 */
|
180 330 | default_format: self.default_format,
|
331 + | /* BuilderGenerator.kt:481 */
|
181 332 | target_epoch_seconds: self.target_epoch_seconds,
|
333 + | /* BuilderGenerator.kt:481 */
|
182 334 | target_http_date: self.target_http_date,
|
335 + | /* BuilderGenerator.kt:481 */
|
183 336 | target_date_time: self.target_date_time,
|
184 - | })
|
337 + | /* BuilderGenerator.kt:477 */
|
338 + | }, /* BuilderGenerator.kt:254 */
|
339 + | )
|
340 + | /* BuilderGenerator.kt:253 */
|
185 341 | }
|
342 + | /* BuilderGenerator.kt:355 */
|
186 343 | }
|