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)]
|
5 + | pub struct GetMaintenanceWindowOutput {
|
6 + | /// <p>The ID of the created maintenance window.</p>
|
7 + | pub window_id: ::std::option::Option<::std::string::String>,
|
8 + | /// <p>The name of the maintenance window.</p>
|
9 + | pub name: ::std::option::Option<::std::string::String>,
|
10 + | /// <p>The description of the maintenance window.</p>
|
11 + | pub description: ::std::option::Option<::std::string::String>,
|
12 + | /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. The maintenance window won't run before this specified time.</p>
|
13 + | pub start_date: ::std::option::Option<::std::string::String>,
|
14 + | /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. The maintenance window won't run after this specified time.</p>
|
15 + | pub end_date: ::std::option::Option<::std::string::String>,
|
16 + | /// <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
|
17 + | pub schedule: ::std::option::Option<::std::string::String>,
|
18 + | /// <p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA website.</p>
|
19 + | pub schedule_timezone: ::std::option::Option<::std::string::String>,
|
20 + | /// <p>The number of days to wait to run a maintenance window after the scheduled cron expression date and time.</p>
|
21 + | pub schedule_offset: ::std::option::Option<i32>,
|
22 + | /// <p>The next time the maintenance window will actually run, taking into account any specified times for the maintenance window to become active or inactive.</p>
|
23 + | pub next_execution_time: ::std::option::Option<::std::string::String>,
|
24 + | /// <p>The duration of the maintenance window in hours.</p>
|
25 + | pub duration: ::std::option::Option<i32>,
|
26 + | /// <p>The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.</p>
|
27 + | pub cutoff: i32,
|
28 + | /// <p>Whether targets must be registered with the maintenance window before tasks can be defined for those targets.</p>
|
29 + | pub allow_unassociated_targets: bool,
|
30 + | /// <p>Indicates whether the maintenance window is enabled.</p>
|
31 + | pub enabled: bool,
|
32 + | /// <p>The date the maintenance window was created.</p>
|
33 + | pub created_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
34 + | /// <p>The date the maintenance window was last modified.</p>
|
35 + | pub modified_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
36 + | _request_id: Option<String>,
|
37 + | }
|
38 + | impl GetMaintenanceWindowOutput {
|
39 + | /// <p>The ID of the created maintenance window.</p>
|
40 + | pub fn window_id(&self) -> ::std::option::Option<&str> {
|
41 + | self.window_id.as_deref()
|
42 + | }
|
43 + | /// <p>The name of the maintenance window.</p>
|
44 + | pub fn name(&self) -> ::std::option::Option<&str> {
|
45 + | self.name.as_deref()
|
46 + | }
|
47 + | /// <p>The description of the maintenance window.</p>
|
48 + | pub fn description(&self) -> ::std::option::Option<&str> {
|
49 + | self.description.as_deref()
|
50 + | }
|
51 + | /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. The maintenance window won't run before this specified time.</p>
|
52 + | pub fn start_date(&self) -> ::std::option::Option<&str> {
|
53 + | self.start_date.as_deref()
|
54 + | }
|
55 + | /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. The maintenance window won't run after this specified time.</p>
|
56 + | pub fn end_date(&self) -> ::std::option::Option<&str> {
|
57 + | self.end_date.as_deref()
|
58 + | }
|
59 + | /// <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
|
60 + | pub fn schedule(&self) -> ::std::option::Option<&str> {
|
61 + | self.schedule.as_deref()
|
62 + | }
|
63 + | /// <p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA website.</p>
|
64 + | pub fn schedule_timezone(&self) -> ::std::option::Option<&str> {
|
65 + | self.schedule_timezone.as_deref()
|
66 + | }
|
67 + | /// <p>The number of days to wait to run a maintenance window after the scheduled cron expression date and time.</p>
|
68 + | pub fn schedule_offset(&self) -> ::std::option::Option<i32> {
|
69 + | self.schedule_offset
|
70 + | }
|
71 + | /// <p>The next time the maintenance window will actually run, taking into account any specified times for the maintenance window to become active or inactive.</p>
|
72 + | pub fn next_execution_time(&self) -> ::std::option::Option<&str> {
|
73 + | self.next_execution_time.as_deref()
|
74 + | }
|
75 + | /// <p>The duration of the maintenance window in hours.</p>
|
76 + | pub fn duration(&self) -> ::std::option::Option<i32> {
|
77 + | self.duration
|
78 + | }
|
79 + | /// <p>The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.</p>
|
80 + | pub fn cutoff(&self) -> i32 {
|
81 + | self.cutoff
|
82 + | }
|
83 + | /// <p>Whether targets must be registered with the maintenance window before tasks can be defined for those targets.</p>
|
84 + | pub fn allow_unassociated_targets(&self) -> bool {
|
85 + | self.allow_unassociated_targets
|
86 + | }
|
87 + | /// <p>Indicates whether the maintenance window is enabled.</p>
|
88 + | pub fn enabled(&self) -> bool {
|
89 + | self.enabled
|
90 + | }
|
91 + | /// <p>The date the maintenance window was created.</p>
|
92 + | pub fn created_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
93 + | self.created_date.as_ref()
|
94 + | }
|
95 + | /// <p>The date the maintenance window was last modified.</p>
|
96 + | pub fn modified_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
97 + | self.modified_date.as_ref()
|
98 + | }
|
99 + | }
|
100 + | impl ::std::fmt::Debug for GetMaintenanceWindowOutput {
|
101 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
102 + | let mut formatter = f.debug_struct("GetMaintenanceWindowOutput");
|
103 + | formatter.field("window_id", &self.window_id);
|
104 + | formatter.field("name", &self.name);
|
105 + | formatter.field("description", &"*** Sensitive Data Redacted ***");
|
106 + | formatter.field("start_date", &self.start_date);
|
107 + | formatter.field("end_date", &self.end_date);
|
108 + | formatter.field("schedule", &self.schedule);
|
109 + | formatter.field("schedule_timezone", &self.schedule_timezone);
|
110 + | formatter.field("schedule_offset", &self.schedule_offset);
|
111 + | formatter.field("next_execution_time", &self.next_execution_time);
|
112 + | formatter.field("duration", &self.duration);
|
113 + | formatter.field("cutoff", &self.cutoff);
|
114 + | formatter.field("allow_unassociated_targets", &self.allow_unassociated_targets);
|
115 + | formatter.field("enabled", &self.enabled);
|
116 + | formatter.field("created_date", &self.created_date);
|
117 + | formatter.field("modified_date", &self.modified_date);
|
118 + | formatter.field("_request_id", &self._request_id);
|
119 + | formatter.finish()
|
120 + | }
|
121 + | }
|
122 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER_WINDOW_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
123 + | ::aws_smithy_schema::ShapeId::from_parts(
|
124 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$WindowId",
|
125 + | "com.amazonaws.ssm.synthetic",
|
126 + | "GetMaintenanceWindowOutput",
|
127 + | ),
|
128 + | ::aws_smithy_schema::ShapeType::String,
|
129 + | "WindowId",
|
130 + | 0,
|
131 + | );
|
132 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
133 + | ::aws_smithy_schema::ShapeId::from_parts(
|
134 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$Name",
|
135 + | "com.amazonaws.ssm.synthetic",
|
136 + | "GetMaintenanceWindowOutput",
|
137 + | ),
|
138 + | ::aws_smithy_schema::ShapeType::String,
|
139 + | "Name",
|
140 + | 1,
|
141 + | );
|
142 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
143 + | ::aws_smithy_schema::ShapeId::from_parts(
|
144 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$Description",
|
145 + | "com.amazonaws.ssm.synthetic",
|
146 + | "GetMaintenanceWindowOutput",
|
147 + | ),
|
148 + | ::aws_smithy_schema::ShapeType::String,
|
149 + | "Description",
|
150 + | 2,
|
151 + | );
|
152 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER_START_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
153 + | ::aws_smithy_schema::ShapeId::from_parts(
|
154 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$StartDate",
|
155 + | "com.amazonaws.ssm.synthetic",
|
156 + | "GetMaintenanceWindowOutput",
|
157 + | ),
|
158 + | ::aws_smithy_schema::ShapeType::String,
|
159 + | "StartDate",
|
160 + | 3,
|
161 + | );
|
162 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER_END_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
163 + | ::aws_smithy_schema::ShapeId::from_parts(
|
164 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$EndDate",
|
165 + | "com.amazonaws.ssm.synthetic",
|
166 + | "GetMaintenanceWindowOutput",
|
167 + | ),
|
168 + | ::aws_smithy_schema::ShapeType::String,
|
169 + | "EndDate",
|
170 + | 4,
|
171 + | );
|
172 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
173 + | ::aws_smithy_schema::ShapeId::from_parts(
|
174 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$Schedule",
|
175 + | "com.amazonaws.ssm.synthetic",
|
176 + | "GetMaintenanceWindowOutput",
|
177 + | ),
|
178 + | ::aws_smithy_schema::ShapeType::String,
|
179 + | "Schedule",
|
180 + | 5,
|
181 + | );
|
182 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE_TIMEZONE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
183 + | ::aws_smithy_schema::ShapeId::from_parts(
|
184 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$ScheduleTimezone",
|
185 + | "com.amazonaws.ssm.synthetic",
|
186 + | "GetMaintenanceWindowOutput",
|
187 + | ),
|
188 + | ::aws_smithy_schema::ShapeType::String,
|
189 + | "ScheduleTimezone",
|
190 + | 6,
|
191 + | );
|
192 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE_OFFSET: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
193 + | ::aws_smithy_schema::ShapeId::from_parts(
|
194 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$ScheduleOffset",
|
195 + | "com.amazonaws.ssm.synthetic",
|
196 + | "GetMaintenanceWindowOutput",
|
197 + | ),
|
198 + | ::aws_smithy_schema::ShapeType::Integer,
|
199 + | "ScheduleOffset",
|
200 + | 7,
|
201 + | );
|
202 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER_NEXT_EXECUTION_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
203 + | ::aws_smithy_schema::ShapeId::from_parts(
|
204 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$NextExecutionTime",
|
205 + | "com.amazonaws.ssm.synthetic",
|
206 + | "GetMaintenanceWindowOutput",
|
207 + | ),
|
208 + | ::aws_smithy_schema::ShapeType::String,
|
209 + | "NextExecutionTime",
|
210 + | 8,
|
211 + | );
|
212 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER_DURATION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
213 + | ::aws_smithy_schema::ShapeId::from_parts(
|
214 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$Duration",
|
215 + | "com.amazonaws.ssm.synthetic",
|
216 + | "GetMaintenanceWindowOutput",
|
217 + | ),
|
218 + | ::aws_smithy_schema::ShapeType::Integer,
|
219 + | "Duration",
|
220 + | 9,
|
221 + | );
|
222 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER_CUTOFF: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
223 + | ::aws_smithy_schema::ShapeId::from_parts(
|
224 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$Cutoff",
|
225 + | "com.amazonaws.ssm.synthetic",
|
226 + | "GetMaintenanceWindowOutput",
|
227 + | ),
|
228 + | ::aws_smithy_schema::ShapeType::Integer,
|
229 + | "Cutoff",
|
230 + | 10,
|
231 + | );
|
232 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER_ALLOW_UNASSOCIATED_TARGETS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
233 + | ::aws_smithy_schema::ShapeId::from_parts(
|
234 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$AllowUnassociatedTargets",
|
235 + | "com.amazonaws.ssm.synthetic",
|
236 + | "GetMaintenanceWindowOutput",
|
237 + | ),
|
238 + | ::aws_smithy_schema::ShapeType::Boolean,
|
239 + | "AllowUnassociatedTargets",
|
240 + | 11,
|
241 + | );
|
242 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER_ENABLED: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
243 + | ::aws_smithy_schema::ShapeId::from_parts(
|
244 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$Enabled",
|
245 + | "com.amazonaws.ssm.synthetic",
|
246 + | "GetMaintenanceWindowOutput",
|
247 + | ),
|
248 + | ::aws_smithy_schema::ShapeType::Boolean,
|
249 + | "Enabled",
|
250 + | 12,
|
251 + | );
|
252 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER_CREATED_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
253 + | ::aws_smithy_schema::ShapeId::from_parts(
|
254 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$CreatedDate",
|
255 + | "com.amazonaws.ssm.synthetic",
|
256 + | "GetMaintenanceWindowOutput",
|
257 + | ),
|
258 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
259 + | "CreatedDate",
|
260 + | 13,
|
261 + | );
|
262 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER_MODIFIED_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
263 + | ::aws_smithy_schema::ShapeId::from_parts(
|
264 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput$ModifiedDate",
|
265 + | "com.amazonaws.ssm.synthetic",
|
266 + | "GetMaintenanceWindowOutput",
|
267 + | ),
|
268 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
269 + | "ModifiedDate",
|
270 + | 14,
|
271 + | );
|
272 + | static GETMAINTENANCEWINDOWOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
273 + | ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
|
274 + | ::aws_smithy_schema::ShapeType::String,
|
275 + | "request_id",
|
276 + | 15,
|
277 + | )
|
278 + | .with_http_header("x-amzn-requestid");
|
279 + | static GETMAINTENANCEWINDOWOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
280 + | ::aws_smithy_schema::ShapeId::from_parts(
|
281 + | "com.amazonaws.ssm.synthetic#GetMaintenanceWindowOutput",
|
282 + | "com.amazonaws.ssm.synthetic",
|
283 + | "GetMaintenanceWindowOutput",
|
284 + | ),
|
285 + | ::aws_smithy_schema::ShapeType::Structure,
|
286 + | &[
|
287 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER_WINDOW_ID,
|
288 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER_NAME,
|
289 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER_DESCRIPTION,
|
290 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER_START_DATE,
|
291 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER_END_DATE,
|
292 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE,
|
293 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE_TIMEZONE,
|
294 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE_OFFSET,
|
295 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER_NEXT_EXECUTION_TIME,
|
296 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER_DURATION,
|
297 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER_CUTOFF,
|
298 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER_ALLOW_UNASSOCIATED_TARGETS,
|
299 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER_ENABLED,
|
300 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER_CREATED_DATE,
|
301 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER_MODIFIED_DATE,
|
302 + | &GETMAINTENANCEWINDOWOUTPUT_MEMBER__REQUEST_ID,
|
303 + | ],
|
304 + | )
|
305 + | .with_original_name("GetMaintenanceWindowResult");
|
306 + | impl GetMaintenanceWindowOutput {
|
307 + | /// The schema for this shape.
|
308 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &GETMAINTENANCEWINDOWOUTPUT_SCHEMA;
|
309 + | }
|
310 + | impl ::aws_smithy_schema::serde::SerializableStruct for GetMaintenanceWindowOutput {
|
311 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
312 + | fn serialize_members(
|
313 + | &self,
|
314 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
315 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
316 + | if let Some(ref val) = self.window_id {
|
317 + | ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_WINDOW_ID, val)?;
|
318 + | }
|
319 + | if let Some(ref val) = self.name {
|
320 + | ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_NAME, val)?;
|
321 + | }
|
322 + | if let Some(ref val) = self.description {
|
323 + | ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_DESCRIPTION, val)?;
|
324 + | }
|
325 + | if let Some(ref val) = self.start_date {
|
326 + | ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_START_DATE, val)?;
|
327 + | }
|
328 + | if let Some(ref val) = self.end_date {
|
329 + | ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_END_DATE, val)?;
|
330 + | }
|
331 + | if let Some(ref val) = self.schedule {
|
332 + | ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE, val)?;
|
333 + | }
|
334 + | if let Some(ref val) = self.schedule_timezone {
|
335 + | ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE_TIMEZONE, val)?;
|
336 + | }
|
337 + | if let Some(ref val) = self.schedule_offset {
|
338 + | ser.write_integer(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_SCHEDULE_OFFSET, *val)?;
|
339 + | }
|
340 + | if let Some(ref val) = self.next_execution_time {
|
341 + | ser.write_string(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_NEXT_EXECUTION_TIME, val)?;
|
342 + | }
|
343 + | if let Some(ref val) = self.duration {
|
344 + | ser.write_integer(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_DURATION, *val)?;
|
345 + | }
|
346 + | {
|
347 + | let val = &self.cutoff;
|
348 + | ser.write_integer(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_CUTOFF, *val)?;
|
349 + | }
|
350 + | {
|
351 + | let val = &self.allow_unassociated_targets;
|
352 + | ser.write_boolean(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_ALLOW_UNASSOCIATED_TARGETS, *val)?;
|
353 + | }
|
354 + | {
|
355 + | let val = &self.enabled;
|
356 + | ser.write_boolean(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_ENABLED, *val)?;
|
357 + | }
|
358 + | if let Some(ref val) = self.created_date {
|
359 + | ser.write_timestamp(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_CREATED_DATE, val)?;
|
360 + | }
|
361 + | if let Some(ref val) = self.modified_date {
|
362 + | ser.write_timestamp(&GETMAINTENANCEWINDOWOUTPUT_MEMBER_MODIFIED_DATE, val)?;
|
363 + | }
|
364 + | Ok(())
|
365 + | }
|
366 + | }
|
367 + | impl GetMaintenanceWindowOutput {
|
368 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
369 + | pub fn deserialize(
|
370 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
371 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
372 + | #[allow(unused_variables, unused_mut)]
|
373 + | let mut builder = Self::builder();
|
374 + | #[allow(
|
375 + | unused_variables,
|
376 + | unreachable_code,
|
377 + | clippy::single_match,
|
378 + | clippy::match_single_binding,
|
379 + | clippy::diverging_sub_expression
|
380 + | )]
|
381 + | deserializer.read_struct(&GETMAINTENANCEWINDOWOUTPUT_SCHEMA, &mut |member, deser| {
|
382 + | match member.member_index() {
|
383 + | Some(0) => {
|
384 + | if deser.is_null() {
|
385 + | deser.read_null()?;
|
386 + | } else {
|
387 + | builder.window_id = Some(deser.read_string(member)?);
|
388 + | }
|
389 + | }
|
390 + | Some(1) => {
|
391 + | if deser.is_null() {
|
392 + | deser.read_null()?;
|
393 + | } else {
|
394 + | builder.name = Some(deser.read_string(member)?);
|
395 + | }
|
396 + | }
|
397 + | Some(2) => {
|
398 + | if deser.is_null() {
|
399 + | deser.read_null()?;
|
400 + | } else {
|
401 + | builder.description = Some(deser.read_string(member)?);
|
402 + | }
|
403 + | }
|
404 + | Some(3) => {
|
405 + | if deser.is_null() {
|
406 + | deser.read_null()?;
|
407 + | } else {
|
408 + | builder.start_date = Some(deser.read_string(member)?);
|
409 + | }
|
410 + | }
|
411 + | Some(4) => {
|
412 + | if deser.is_null() {
|
413 + | deser.read_null()?;
|
414 + | } else {
|
415 + | builder.end_date = Some(deser.read_string(member)?);
|
416 + | }
|
417 + | }
|
418 + | Some(5) => {
|
419 + | if deser.is_null() {
|
420 + | deser.read_null()?;
|
421 + | } else {
|
422 + | builder.schedule = Some(deser.read_string(member)?);
|
423 + | }
|
424 + | }
|
425 + | Some(6) => {
|
426 + | if deser.is_null() {
|
427 + | deser.read_null()?;
|
428 + | } else {
|
429 + | builder.schedule_timezone = Some(deser.read_string(member)?);
|
430 + | }
|
431 + | }
|
432 + | Some(7) => {
|
433 + | if deser.is_null() {
|
434 + | deser.read_null()?;
|
435 + | } else {
|
436 + | builder.schedule_offset = Some(deser.read_integer(member)?);
|
437 + | }
|
438 + | }
|
439 + | Some(8) => {
|
440 + | if deser.is_null() {
|
441 + | deser.read_null()?;
|
442 + | } else {
|
443 + | builder.next_execution_time = Some(deser.read_string(member)?);
|
444 + | }
|
445 + | }
|
446 + | Some(9) => {
|
447 + | if deser.is_null() {
|
448 + | deser.read_null()?;
|
449 + | } else {
|
450 + | builder.duration = Some(deser.read_integer(member)?);
|
451 + | }
|
452 + | }
|
453 + | Some(10) => {
|
454 + | builder.cutoff = Some(deser.read_integer(member)?);
|
455 + | }
|
456 + | Some(11) => {
|
457 + | builder.allow_unassociated_targets = Some(deser.read_boolean(member)?);
|
458 + | }
|
459 + | Some(12) => {
|
460 + | builder.enabled = Some(deser.read_boolean(member)?);
|
461 + | }
|
462 + | Some(13) => {
|
463 + | if deser.is_null() {
|
464 + | deser.read_null()?;
|
465 + | } else {
|
466 + | builder.created_date = Some(deser.read_timestamp(member)?);
|
467 + | }
|
468 + | }
|
469 + | Some(14) => {
|
470 + | if deser.is_null() {
|
471 + | deser.read_null()?;
|
472 + | } else {
|
473 + | builder.modified_date = Some(deser.read_timestamp(member)?);
|
474 + | }
|
475 + | }
|
476 + | Some(15) => {
|
477 + | builder._request_id = Some(deser.read_string(member)?);
|
478 + | }
|
479 + | _ => {}
|
480 + | }
|
481 + | Ok(())
|
482 + | })?;
|
483 + | Ok(builder.build())
|
484 + | }
|
485 + | }
|
486 + | impl GetMaintenanceWindowOutput {
|
487 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
488 + | /// Header-bound members are read directly from headers, avoiding runtime
|
489 + | /// member iteration overhead. Body members are read via the deserializer.
|
490 + | pub fn deserialize_with_response(
|
491 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
492 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
493 + | _status: u16,
|
494 + | _body: &[u8],
|
495 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
496 + | #[allow(unused_variables, unused_mut)]
|
497 + | let mut builder = Self::builder();
|
498 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
499 + | builder._request_id = Some(val.to_string());
|
500 + | }
|
501 + |
|
502 + | #[allow(
|
503 + | unused_variables,
|
504 + | unreachable_code,
|
505 + | clippy::single_match,
|
506 + | clippy::match_single_binding,
|
507 + | clippy::diverging_sub_expression
|
508 + | )]
|
509 + | deserializer.read_struct(&GETMAINTENANCEWINDOWOUTPUT_SCHEMA, &mut |member, deser| {
|
510 + | match member.member_index() {
|
511 + | Some(0) => {
|
512 + | builder.window_id = Some(deser.read_string(member)?);
|
513 + | }
|
514 + | Some(1) => {
|
515 + | builder.name = Some(deser.read_string(member)?);
|
516 + | }
|
517 + | Some(2) => {
|
518 + | builder.description = Some(deser.read_string(member)?);
|
519 + | }
|
520 + | Some(3) => {
|
521 + | builder.start_date = Some(deser.read_string(member)?);
|
522 + | }
|
523 + | Some(4) => {
|
524 + | builder.end_date = Some(deser.read_string(member)?);
|
525 + | }
|
526 + | Some(5) => {
|
527 + | builder.schedule = Some(deser.read_string(member)?);
|
528 + | }
|
529 + | Some(6) => {
|
530 + | builder.schedule_timezone = Some(deser.read_string(member)?);
|
531 + | }
|
532 + | Some(7) => {
|
533 + | builder.schedule_offset = Some(deser.read_integer(member)?);
|
534 + | }
|
535 + | Some(8) => {
|
536 + | builder.next_execution_time = Some(deser.read_string(member)?);
|
537 + | }
|
538 + | Some(9) => {
|
539 + | builder.duration = Some(deser.read_integer(member)?);
|
540 + | }
|
541 + | Some(10) => {
|
542 + | builder.cutoff = Some(deser.read_integer(member)?);
|
543 + | }
|
544 + | Some(11) => {
|
545 + | builder.allow_unassociated_targets = Some(deser.read_boolean(member)?);
|
546 + | }
|
547 + | Some(12) => {
|
548 + | builder.enabled = Some(deser.read_boolean(member)?);
|
549 + | }
|
550 + | Some(13) => {
|
551 + | builder.created_date = Some(deser.read_timestamp(member)?);
|
552 + | }
|
553 + | Some(14) => {
|
554 + | builder.modified_date = Some(deser.read_timestamp(member)?);
|
555 + | }
|
556 + | _ => {}
|
557 + | }
|
558 + | Ok(())
|
559 + | })?;
|
560 + | Ok(builder.build())
|
561 + | }
|
562 + | }
|
563 + | impl ::aws_types::request_id::RequestId for GetMaintenanceWindowOutput {
|
564 + | fn request_id(&self) -> Option<&str> {
|
565 + | self._request_id.as_deref()
|
566 + | }
|
567 + | }
|
568 + | impl GetMaintenanceWindowOutput {
|
569 + | pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
|
570 + | self._request_id = request_id;
|
571 + | self
|
572 + | }
|
573 + | }
|
574 + | impl GetMaintenanceWindowOutput {
|
575 + | /// Creates a new builder-style object to manufacture [`GetMaintenanceWindowOutput`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput).
|
576 + | pub fn builder() -> crate::operation::get_maintenance_window::builders::GetMaintenanceWindowOutputBuilder {
|
577 + | crate::operation::get_maintenance_window::builders::GetMaintenanceWindowOutputBuilder::default()
|
578 + | }
|
579 + | }
|
580 + |
|
581 + | /// A builder for [`GetMaintenanceWindowOutput`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput).
|
582 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
|
583 + | #[non_exhaustive]
|
584 + | pub struct GetMaintenanceWindowOutputBuilder {
|
585 + | pub(crate) window_id: ::std::option::Option<::std::string::String>,
|
586 + | pub(crate) name: ::std::option::Option<::std::string::String>,
|
587 + | pub(crate) description: ::std::option::Option<::std::string::String>,
|
588 + | pub(crate) start_date: ::std::option::Option<::std::string::String>,
|
589 + | pub(crate) end_date: ::std::option::Option<::std::string::String>,
|
590 + | pub(crate) schedule: ::std::option::Option<::std::string::String>,
|
591 + | pub(crate) schedule_timezone: ::std::option::Option<::std::string::String>,
|
592 + | pub(crate) schedule_offset: ::std::option::Option<i32>,
|
593 + | pub(crate) next_execution_time: ::std::option::Option<::std::string::String>,
|
594 + | pub(crate) duration: ::std::option::Option<i32>,
|
595 + | pub(crate) cutoff: ::std::option::Option<i32>,
|
596 + | pub(crate) allow_unassociated_targets: ::std::option::Option<bool>,
|
597 + | pub(crate) enabled: ::std::option::Option<bool>,
|
598 + | pub(crate) created_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
599 + | pub(crate) modified_date: ::std::option::Option<::aws_smithy_types::DateTime>,
|
600 + | _request_id: Option<String>,
|
601 + | }
|
602 + | impl GetMaintenanceWindowOutputBuilder {
|
603 + | /// <p>The ID of the created maintenance window.</p>
|
604 + | pub fn window_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
605 + | self.window_id = ::std::option::Option::Some(input.into());
|
606 + | self
|
607 + | }
|
608 + | /// <p>The ID of the created maintenance window.</p>
|
609 + | pub fn set_window_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
610 + | self.window_id = input;
|
611 + | self
|
612 + | }
|
613 + | /// <p>The ID of the created maintenance window.</p>
|
614 + | pub fn get_window_id(&self) -> &::std::option::Option<::std::string::String> {
|
615 + | &self.window_id
|
616 + | }
|
617 + | /// <p>The name of the maintenance window.</p>
|
618 + | pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
619 + | self.name = ::std::option::Option::Some(input.into());
|
620 + | self
|
621 + | }
|
622 + | /// <p>The name of the maintenance window.</p>
|
623 + | pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
624 + | self.name = input;
|
625 + | self
|
626 + | }
|
627 + | /// <p>The name of the maintenance window.</p>
|
628 + | pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
|
629 + | &self.name
|
630 + | }
|
631 + | /// <p>The description of the maintenance window.</p>
|
632 + | pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
633 + | self.description = ::std::option::Option::Some(input.into());
|
634 + | self
|
635 + | }
|
636 + | /// <p>The description of the maintenance window.</p>
|
637 + | pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
638 + | self.description = input;
|
639 + | self
|
640 + | }
|
641 + | /// <p>The description of the maintenance window.</p>
|
642 + | pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
|
643 + | &self.description
|
644 + | }
|
645 + | /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. The maintenance window won't run before this specified time.</p>
|
646 + | pub fn start_date(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
647 + | self.start_date = ::std::option::Option::Some(input.into());
|
648 + | self
|
649 + | }
|
650 + | /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. The maintenance window won't run before this specified time.</p>
|
651 + | pub fn set_start_date(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
652 + | self.start_date = input;
|
653 + | self
|
654 + | }
|
655 + | /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. The maintenance window won't run before this specified time.</p>
|
656 + | pub fn get_start_date(&self) -> &::std::option::Option<::std::string::String> {
|
657 + | &self.start_date
|
658 + | }
|
659 + | /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. The maintenance window won't run after this specified time.</p>
|
660 + | pub fn end_date(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
661 + | self.end_date = ::std::option::Option::Some(input.into());
|
662 + | self
|
663 + | }
|
664 + | /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. The maintenance window won't run after this specified time.</p>
|
665 + | pub fn set_end_date(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
666 + | self.end_date = input;
|
667 + | self
|
668 + | }
|
669 + | /// <p>The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. The maintenance window won't run after this specified time.</p>
|
670 + | pub fn get_end_date(&self) -> &::std::option::Option<::std::string::String> {
|
671 + | &self.end_date
|
672 + | }
|
673 + | /// <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
|
674 + | pub fn schedule(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
675 + | self.schedule = ::std::option::Option::Some(input.into());
|
676 + | self
|
677 + | }
|
678 + | /// <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
|
679 + | pub fn set_schedule(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
680 + | self.schedule = input;
|
681 + | self
|
682 + | }
|
683 + | /// <p>The schedule of the maintenance window in the form of a cron or rate expression.</p>
|
684 + | pub fn get_schedule(&self) -> &::std::option::Option<::std::string::String> {
|
685 + | &self.schedule
|
686 + | }
|
687 + | /// <p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA website.</p>
|
688 + | pub fn schedule_timezone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
689 + | self.schedule_timezone = ::std::option::Option::Some(input.into());
|
690 + | self
|
691 + | }
|
692 + | /// <p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA website.</p>
|
693 + | pub fn set_schedule_timezone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
694 + | self.schedule_timezone = input;
|
695 + | self
|
696 + | }
|
697 + | /// <p>The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the <a href="https://www.iana.org/time-zones">Time Zone Database</a> on the IANA website.</p>
|
698 + | pub fn get_schedule_timezone(&self) -> &::std::option::Option<::std::string::String> {
|
699 + | &self.schedule_timezone
|
700 + | }
|
701 + | /// <p>The number of days to wait to run a maintenance window after the scheduled cron expression date and time.</p>
|
702 + | pub fn schedule_offset(mut self, input: i32) -> Self {
|
703 + | self.schedule_offset = ::std::option::Option::Some(input);
|
704 + | self
|
705 + | }
|
706 + | /// <p>The number of days to wait to run a maintenance window after the scheduled cron expression date and time.</p>
|
707 + | pub fn set_schedule_offset(mut self, input: ::std::option::Option<i32>) -> Self {
|
708 + | self.schedule_offset = input;
|
709 + | self
|
710 + | }
|
711 + | /// <p>The number of days to wait to run a maintenance window after the scheduled cron expression date and time.</p>
|
712 + | pub fn get_schedule_offset(&self) -> &::std::option::Option<i32> {
|
713 + | &self.schedule_offset
|
714 + | }
|
715 + | /// <p>The next time the maintenance window will actually run, taking into account any specified times for the maintenance window to become active or inactive.</p>
|
716 + | pub fn next_execution_time(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
717 + | self.next_execution_time = ::std::option::Option::Some(input.into());
|
718 + | self
|
719 + | }
|
720 + | /// <p>The next time the maintenance window will actually run, taking into account any specified times for the maintenance window to become active or inactive.</p>
|
721 + | pub fn set_next_execution_time(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
722 + | self.next_execution_time = input;
|
723 + | self
|
724 + | }
|
725 + | /// <p>The next time the maintenance window will actually run, taking into account any specified times for the maintenance window to become active or inactive.</p>
|
726 + | pub fn get_next_execution_time(&self) -> &::std::option::Option<::std::string::String> {
|
727 + | &self.next_execution_time
|
728 + | }
|
729 + | /// <p>The duration of the maintenance window in hours.</p>
|
730 + | pub fn duration(mut self, input: i32) -> Self {
|
731 + | self.duration = ::std::option::Option::Some(input);
|
732 + | self
|
733 + | }
|
734 + | /// <p>The duration of the maintenance window in hours.</p>
|
735 + | pub fn set_duration(mut self, input: ::std::option::Option<i32>) -> Self {
|
736 + | self.duration = input;
|
737 + | self
|
738 + | }
|
739 + | /// <p>The duration of the maintenance window in hours.</p>
|
740 + | pub fn get_duration(&self) -> &::std::option::Option<i32> {
|
741 + | &self.duration
|
742 + | }
|
743 + | /// <p>The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.</p>
|
744 + | pub fn cutoff(mut self, input: i32) -> Self {
|
745 + | self.cutoff = ::std::option::Option::Some(input);
|
746 + | self
|
747 + | }
|
748 + | /// <p>The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.</p>
|
749 + | pub fn set_cutoff(mut self, input: ::std::option::Option<i32>) -> Self {
|
750 + | self.cutoff = input;
|
751 + | self
|
752 + | }
|
753 + | /// <p>The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.</p>
|
754 + | pub fn get_cutoff(&self) -> &::std::option::Option<i32> {
|
755 + | &self.cutoff
|
756 + | }
|
757 + | /// <p>Whether targets must be registered with the maintenance window before tasks can be defined for those targets.</p>
|
758 + | pub fn allow_unassociated_targets(mut self, input: bool) -> Self {
|
759 + | self.allow_unassociated_targets = ::std::option::Option::Some(input);
|
760 + | self
|
761 + | }
|
762 + | /// <p>Whether targets must be registered with the maintenance window before tasks can be defined for those targets.</p>
|
763 + | pub fn set_allow_unassociated_targets(mut self, input: ::std::option::Option<bool>) -> Self {
|
764 + | self.allow_unassociated_targets = input;
|
765 + | self
|
766 + | }
|
767 + | /// <p>Whether targets must be registered with the maintenance window before tasks can be defined for those targets.</p>
|
768 + | pub fn get_allow_unassociated_targets(&self) -> &::std::option::Option<bool> {
|
769 + | &self.allow_unassociated_targets
|
770 + | }
|
771 + | /// <p>Indicates whether the maintenance window is enabled.</p>
|
772 + | pub fn enabled(mut self, input: bool) -> Self {
|
773 + | self.enabled = ::std::option::Option::Some(input);
|
774 + | self
|
775 + | }
|
776 + | /// <p>Indicates whether the maintenance window is enabled.</p>
|
777 + | pub fn set_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
|
778 + | self.enabled = input;
|
779 + | self
|
780 + | }
|
781 + | /// <p>Indicates whether the maintenance window is enabled.</p>
|
782 + | pub fn get_enabled(&self) -> &::std::option::Option<bool> {
|
783 + | &self.enabled
|
784 + | }
|
785 + | /// <p>The date the maintenance window was created.</p>
|
786 + | pub fn created_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
787 + | self.created_date = ::std::option::Option::Some(input);
|
788 + | self
|
789 + | }
|
790 + | /// <p>The date the maintenance window was created.</p>
|
791 + | pub fn set_created_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
792 + | self.created_date = input;
|
793 + | self
|
794 + | }
|
795 + | /// <p>The date the maintenance window was created.</p>
|
796 + | pub fn get_created_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
797 + | &self.created_date
|
798 + | }
|
799 + | /// <p>The date the maintenance window was last modified.</p>
|
800 + | pub fn modified_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
801 + | self.modified_date = ::std::option::Option::Some(input);
|
802 + | self
|
803 + | }
|
804 + | /// <p>The date the maintenance window was last modified.</p>
|
805 + | pub fn set_modified_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
806 + | self.modified_date = input;
|
807 + | self
|
808 + | }
|
809 + | /// <p>The date the maintenance window was last modified.</p>
|
810 + | pub fn get_modified_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
811 + | &self.modified_date
|
812 + | }
|
813 + | pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
|
814 + | self._request_id = Some(request_id.into());
|
815 + | self
|
816 + | }
|
817 + |
|
818 + | pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
|
819 + | self._request_id = request_id;
|
820 + | self
|
821 + | }
|
822 + | /// Consumes the builder and constructs a [`GetMaintenanceWindowOutput`](crate::operation::get_maintenance_window::GetMaintenanceWindowOutput).
|
823 + | pub fn build(self) -> crate::operation::get_maintenance_window::GetMaintenanceWindowOutput {
|
824 + | crate::operation::get_maintenance_window::GetMaintenanceWindowOutput {
|
825 + | window_id: self.window_id,
|
826 + | name: self.name,
|
827 + | description: self.description,
|
828 + | start_date: self.start_date,
|
829 + | end_date: self.end_date,
|
830 + | schedule: self.schedule,
|
831 + | schedule_timezone: self.schedule_timezone,
|
832 + | schedule_offset: self.schedule_offset,
|
833 + | next_execution_time: self.next_execution_time,
|
834 + | duration: self.duration,
|
835 + | cutoff: self.cutoff.unwrap_or_default(),
|
836 + | allow_unassociated_targets: self.allow_unassociated_targets.unwrap_or_default(),
|
837 + | enabled: self.enabled.unwrap_or_default(),
|
838 + | created_date: self.created_date,
|
839 + | modified_date: self.modified_date,
|
840 + | _request_id: self._request_id,
|
841 + | }
|
842 + | }
|
843 + | }
|
844 + | impl ::std::fmt::Debug for GetMaintenanceWindowOutputBuilder {
|
845 + | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
846 + | let mut formatter = f.debug_struct("GetMaintenanceWindowOutputBuilder");
|
847 + | formatter.field("window_id", &self.window_id);
|
848 + | formatter.field("name", &self.name);
|
849 + | formatter.field("description", &"*** Sensitive Data Redacted ***");
|
850 + | formatter.field("start_date", &self.start_date);
|
851 + | formatter.field("end_date", &self.end_date);
|
852 + | formatter.field("schedule", &self.schedule);
|
853 + | formatter.field("schedule_timezone", &self.schedule_timezone);
|
854 + | formatter.field("schedule_offset", &self.schedule_offset);
|
855 + | formatter.field("next_execution_time", &self.next_execution_time);
|
856 + | formatter.field("duration", &self.duration);
|
857 + | formatter.field("cutoff", &self.cutoff);
|
858 + | formatter.field("allow_unassociated_targets", &self.allow_unassociated_targets);
|
859 + | formatter.field("enabled", &self.enabled);
|
860 + | formatter.field("created_date", &self.created_date);
|
861 + | formatter.field("modified_date", &self.modified_date);
|
862 + | formatter.field("_request_id", &self._request_id);
|
863 + | formatter.finish()
|
864 + | }
|
865 + | }
|