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)]
|
5 + | pub struct DescribeMaintenanceWindowScheduleInput {
|
6 + | /// <p>The ID of the maintenance window to retrieve information about.</p>
|
7 + | pub window_id: ::std::option::Option<::std::string::String>,
|
8 + | /// <p>The managed node ID or key-value pair to retrieve information about.</p>
|
9 + | pub targets: ::std::option::Option<::std::vec::Vec<crate::types::Target>>,
|
10 + | /// <p>The type of resource you want to retrieve information about. For example, <code>INSTANCE</code>.</p>
|
11 + | pub resource_type: ::std::option::Option<crate::types::MaintenanceWindowResourceType>,
|
12 + | /// <p>Filters used to limit the range of results. For example, you can limit maintenance window executions to only those scheduled before or after a certain date and time.</p>
|
13 + | pub filters: ::std::option::Option<::std::vec::Vec<crate::types::PatchOrchestratorFilter>>,
|
14 + | /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
|
15 + | pub max_results: ::std::option::Option<i32>,
|
16 + | /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
|
17 + | pub next_token: ::std::option::Option<::std::string::String>,
|
18 + | }
|
19 + | impl DescribeMaintenanceWindowScheduleInput {
|
20 + | /// <p>The ID of the maintenance window to retrieve information about.</p>
|
21 + | pub fn window_id(&self) -> ::std::option::Option<&str> {
|
22 + | self.window_id.as_deref()
|
23 + | }
|
24 + | /// <p>The managed node ID or key-value pair to retrieve information about.</p>
|
25 + | ///
|
26 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.targets.is_none()`.
|
27 + | pub fn targets(&self) -> &[crate::types::Target] {
|
28 + | self.targets.as_deref().unwrap_or_default()
|
29 + | }
|
30 + | /// <p>The type of resource you want to retrieve information about. For example, <code>INSTANCE</code>.</p>
|
31 + | pub fn resource_type(&self) -> ::std::option::Option<&crate::types::MaintenanceWindowResourceType> {
|
32 + | self.resource_type.as_ref()
|
33 + | }
|
34 + | /// <p>Filters used to limit the range of results. For example, you can limit maintenance window executions to only those scheduled before or after a certain date and time.</p>
|
35 + | ///
|
36 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.filters.is_none()`.
|
37 + | pub fn filters(&self) -> &[crate::types::PatchOrchestratorFilter] {
|
38 + | self.filters.as_deref().unwrap_or_default()
|
39 + | }
|
40 + | /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
|
41 + | pub fn max_results(&self) -> ::std::option::Option<i32> {
|
42 + | self.max_results
|
43 + | }
|
44 + | /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
|
45 + | pub fn next_token(&self) -> ::std::option::Option<&str> {
|
46 + | self.next_token.as_deref()
|
47 + | }
|
48 + | }
|
49 + | static DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_WINDOW_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
50 + | ::aws_smithy_schema::ShapeId::from_parts(
|
51 + | "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowScheduleInput$WindowId",
|
52 + | "com.amazonaws.ssm.synthetic",
|
53 + | "DescribeMaintenanceWindowScheduleInput",
|
54 + | ),
|
55 + | ::aws_smithy_schema::ShapeType::String,
|
56 + | "WindowId",
|
57 + | 0,
|
58 + | );
|
59 + | static DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_TARGETS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
60 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Targets$member", "com.amazonaws.ssm", "Targets"),
|
61 + | ::aws_smithy_schema::ShapeType::Structure,
|
62 + | "member",
|
63 + | 0,
|
64 + | );
|
65 + | static DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_TARGETS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
66 + | ::aws_smithy_schema::ShapeId::from_parts(
|
67 + | "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowScheduleInput$Targets",
|
68 + | "com.amazonaws.ssm.synthetic",
|
69 + | "DescribeMaintenanceWindowScheduleInput",
|
70 + | ),
|
71 + | ::aws_smithy_schema::ShapeType::List,
|
72 + | "Targets",
|
73 + | 1,
|
74 + | )
|
75 + | .with_list_member(&DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_TARGETS_MEMBER);
|
76 + | static DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_RESOURCE_TYPE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
77 + | ::aws_smithy_schema::ShapeId::from_parts(
|
78 + | "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowScheduleInput$ResourceType",
|
79 + | "com.amazonaws.ssm.synthetic",
|
80 + | "DescribeMaintenanceWindowScheduleInput",
|
81 + | ),
|
82 + | ::aws_smithy_schema::ShapeType::String,
|
83 + | "ResourceType",
|
84 + | 2,
|
85 + | );
|
86 + | static DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_FILTERS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
87 + | ::aws_smithy_schema::ShapeId::from_parts(
|
88 + | "com.amazonaws.ssm#PatchOrchestratorFilterList$member",
|
89 + | "com.amazonaws.ssm",
|
90 + | "PatchOrchestratorFilterList",
|
91 + | ),
|
92 + | ::aws_smithy_schema::ShapeType::Structure,
|
93 + | "member",
|
94 + | 0,
|
95 + | );
|
96 + | static DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
97 + | ::aws_smithy_schema::ShapeId::from_parts(
|
98 + | "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowScheduleInput$Filters",
|
99 + | "com.amazonaws.ssm.synthetic",
|
100 + | "DescribeMaintenanceWindowScheduleInput",
|
101 + | ),
|
102 + | ::aws_smithy_schema::ShapeType::List,
|
103 + | "Filters",
|
104 + | 3,
|
105 + | )
|
106 + | .with_list_member(&DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_FILTERS_MEMBER);
|
107 + | static DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
108 + | ::aws_smithy_schema::ShapeId::from_parts(
|
109 + | "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowScheduleInput$MaxResults",
|
110 + | "com.amazonaws.ssm.synthetic",
|
111 + | "DescribeMaintenanceWindowScheduleInput",
|
112 + | ),
|
113 + | ::aws_smithy_schema::ShapeType::Integer,
|
114 + | "MaxResults",
|
115 + | 4,
|
116 + | );
|
117 + | static DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
118 + | ::aws_smithy_schema::ShapeId::from_parts(
|
119 + | "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowScheduleInput$NextToken",
|
120 + | "com.amazonaws.ssm.synthetic",
|
121 + | "DescribeMaintenanceWindowScheduleInput",
|
122 + | ),
|
123 + | ::aws_smithy_schema::ShapeType::String,
|
124 + | "NextToken",
|
125 + | 5,
|
126 + | );
|
127 + | static DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
128 + | ::aws_smithy_schema::ShapeId::from_parts(
|
129 + | "com.amazonaws.ssm.synthetic#DescribeMaintenanceWindowScheduleInput",
|
130 + | "com.amazonaws.ssm.synthetic",
|
131 + | "DescribeMaintenanceWindowScheduleInput",
|
132 + | ),
|
133 + | ::aws_smithy_schema::ShapeType::Structure,
|
134 + | &[
|
135 + | &DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_WINDOW_ID,
|
136 + | &DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_TARGETS,
|
137 + | &DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_RESOURCE_TYPE,
|
138 + | &DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_FILTERS,
|
139 + | &DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_MAX_RESULTS,
|
140 + | &DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_NEXT_TOKEN,
|
141 + | ],
|
142 + | )
|
143 + | .with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
|
144 + | .with_original_name("DescribeMaintenanceWindowScheduleRequest");
|
145 + | impl DescribeMaintenanceWindowScheduleInput {
|
146 + | /// The schema for this shape.
|
147 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_SCHEMA;
|
148 + | }
|
149 + | impl ::aws_smithy_schema::serde::SerializableStruct for DescribeMaintenanceWindowScheduleInput {
|
150 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
151 + | fn serialize_members(
|
152 + | &self,
|
153 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
154 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
155 + | if let Some(ref val) = self.window_id {
|
156 + | ser.write_string(&DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_WINDOW_ID, val)?;
|
157 + | }
|
158 + | if let Some(ref val) = self.targets {
|
159 + | ser.write_list(
|
160 + | &DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_TARGETS,
|
161 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
162 + | for item in val {
|
163 + | ser.write_struct(crate::types::Target::SCHEMA, item)?;
|
164 + | }
|
165 + | Ok(())
|
166 + | },
|
167 + | )?;
|
168 + | }
|
169 + | if let Some(ref val) = self.resource_type {
|
170 + | ser.write_string(&DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_RESOURCE_TYPE, val.as_str())?;
|
171 + | }
|
172 + | if let Some(ref val) = self.filters {
|
173 + | ser.write_list(
|
174 + | &DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_FILTERS,
|
175 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
176 + | for item in val {
|
177 + | ser.write_struct(crate::types::PatchOrchestratorFilter::SCHEMA, item)?;
|
178 + | }
|
179 + | Ok(())
|
180 + | },
|
181 + | )?;
|
182 + | }
|
183 + | if let Some(ref val) = self.max_results {
|
184 + | ser.write_integer(&DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_MAX_RESULTS, *val)?;
|
185 + | }
|
186 + | if let Some(ref val) = self.next_token {
|
187 + | ser.write_string(&DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_MEMBER_NEXT_TOKEN, val)?;
|
188 + | }
|
189 + | Ok(())
|
190 + | }
|
191 + | }
|
192 + | impl DescribeMaintenanceWindowScheduleInput {
|
193 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
194 + | pub fn deserialize(
|
195 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
196 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
197 + | #[allow(unused_variables, unused_mut)]
|
198 + | let mut builder = Self::builder();
|
199 + | #[allow(
|
200 + | unused_variables,
|
201 + | unreachable_code,
|
202 + | clippy::single_match,
|
203 + | clippy::match_single_binding,
|
204 + | clippy::diverging_sub_expression
|
205 + | )]
|
206 + | deserializer.read_struct(&DESCRIBEMAINTENANCEWINDOWSCHEDULEINPUT_SCHEMA, &mut |member, deser| {
|
207 + | match member.member_index() {
|
208 + | Some(0) => {
|
209 + | if deser.is_null() {
|
210 + | deser.read_null()?;
|
211 + | } else {
|
212 + | builder.window_id = Some(deser.read_string(member)?);
|
213 + | }
|
214 + | }
|
215 + | Some(1) => {
|
216 + | if deser.is_null() {
|
217 + | deser.read_null()?;
|
218 + | } else {
|
219 + | builder.targets = Some({
|
220 + | let mut container = Vec::new();
|
221 + | deser.read_list(member, &mut |deser| {
|
222 + | container.push(crate::types::Target::deserialize(deser)?);
|
223 + | Ok(())
|
224 + | })?;
|
225 + | container
|
226 + | });
|
227 + | }
|
228 + | }
|
229 + | Some(2) => {
|
230 + | if deser.is_null() {
|
231 + | deser.read_null()?;
|
232 + | } else {
|
233 + | builder.resource_type = Some(crate::types::MaintenanceWindowResourceType::from(deser.read_string(member)?.as_str()));
|
234 + | }
|
235 + | }
|
236 + | Some(3) => {
|
237 + | if deser.is_null() {
|
238 + | deser.read_null()?;
|
239 + | } else {
|
240 + | builder.filters = Some({
|
241 + | let mut container = Vec::new();
|
242 + | deser.read_list(member, &mut |deser| {
|
243 + | container.push(crate::types::PatchOrchestratorFilter::deserialize(deser)?);
|
244 + | Ok(())
|
245 + | })?;
|
246 + | container
|
247 + | });
|
248 + | }
|
249 + | }
|
250 + | Some(4) => {
|
251 + | if deser.is_null() {
|
252 + | deser.read_null()?;
|
253 + | } else {
|
254 + | builder.max_results = Some(deser.read_integer(member)?);
|
255 + | }
|
256 + | }
|
257 + | Some(5) => {
|
258 + | if deser.is_null() {
|
259 + | deser.read_null()?;
|
260 + | } else {
|
261 + | builder.next_token = Some(deser.read_string(member)?);
|
262 + | }
|
263 + | }
|
264 + | _ => {}
|
265 + | }
|
266 + | Ok(())
|
267 + | })?;
|
268 + | builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
|
269 + | }
|
270 + | }
|
271 + | impl DescribeMaintenanceWindowScheduleInput {
|
272 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
273 + | pub fn deserialize_with_response(
|
274 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
275 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
276 + | _status: u16,
|
277 + | _body: &[u8],
|
278 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
279 + | Self::deserialize(deserializer)
|
280 + | }
|
281 + | }
|
282 + | impl DescribeMaintenanceWindowScheduleInput {
|
283 + | /// Creates a new builder-style object to manufacture [`DescribeMaintenanceWindowScheduleInput`](crate::operation::describe_maintenance_window_schedule::DescribeMaintenanceWindowScheduleInput).
|
284 + | pub fn builder() -> crate::operation::describe_maintenance_window_schedule::builders::DescribeMaintenanceWindowScheduleInputBuilder {
|
285 + | crate::operation::describe_maintenance_window_schedule::builders::DescribeMaintenanceWindowScheduleInputBuilder::default()
|
286 + | }
|
287 + | }
|
288 + |
|
289 + | /// A builder for [`DescribeMaintenanceWindowScheduleInput`](crate::operation::describe_maintenance_window_schedule::DescribeMaintenanceWindowScheduleInput).
|
290 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
291 + | #[non_exhaustive]
|
292 + | pub struct DescribeMaintenanceWindowScheduleInputBuilder {
|
293 + | pub(crate) window_id: ::std::option::Option<::std::string::String>,
|
294 + | pub(crate) targets: ::std::option::Option<::std::vec::Vec<crate::types::Target>>,
|
295 + | pub(crate) resource_type: ::std::option::Option<crate::types::MaintenanceWindowResourceType>,
|
296 + | pub(crate) filters: ::std::option::Option<::std::vec::Vec<crate::types::PatchOrchestratorFilter>>,
|
297 + | pub(crate) max_results: ::std::option::Option<i32>,
|
298 + | pub(crate) next_token: ::std::option::Option<::std::string::String>,
|
299 + | }
|
300 + | impl DescribeMaintenanceWindowScheduleInputBuilder {
|
301 + | /// <p>The ID of the maintenance window to retrieve information about.</p>
|
302 + | pub fn window_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
303 + | self.window_id = ::std::option::Option::Some(input.into());
|
304 + | self
|
305 + | }
|
306 + | /// <p>The ID of the maintenance window to retrieve information about.</p>
|
307 + | pub fn set_window_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
308 + | self.window_id = input;
|
309 + | self
|
310 + | }
|
311 + | /// <p>The ID of the maintenance window to retrieve information about.</p>
|
312 + | pub fn get_window_id(&self) -> &::std::option::Option<::std::string::String> {
|
313 + | &self.window_id
|
314 + | }
|
315 + | /// Appends an item to `targets`.
|
316 + | ///
|
317 + | /// To override the contents of this collection use [`set_targets`](Self::set_targets).
|
318 + | ///
|
319 + | /// <p>The managed node ID or key-value pair to retrieve information about.</p>
|
320 + | pub fn targets(mut self, input: crate::types::Target) -> Self {
|
321 + | let mut v = self.targets.unwrap_or_default();
|
322 + | v.push(input);
|
323 + | self.targets = ::std::option::Option::Some(v);
|
324 + | self
|
325 + | }
|
326 + | /// <p>The managed node ID or key-value pair to retrieve information about.</p>
|
327 + | pub fn set_targets(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Target>>) -> Self {
|
328 + | self.targets = input;
|
329 + | self
|
330 + | }
|
331 + | /// <p>The managed node ID or key-value pair to retrieve information about.</p>
|
332 + | pub fn get_targets(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Target>> {
|
333 + | &self.targets
|
334 + | }
|
335 + | /// <p>The type of resource you want to retrieve information about. For example, <code>INSTANCE</code>.</p>
|
336 + | pub fn resource_type(mut self, input: crate::types::MaintenanceWindowResourceType) -> Self {
|
337 + | self.resource_type = ::std::option::Option::Some(input);
|
338 + | self
|
339 + | }
|
340 + | /// <p>The type of resource you want to retrieve information about. For example, <code>INSTANCE</code>.</p>
|
341 + | pub fn set_resource_type(mut self, input: ::std::option::Option<crate::types::MaintenanceWindowResourceType>) -> Self {
|
342 + | self.resource_type = input;
|
343 + | self
|
344 + | }
|
345 + | /// <p>The type of resource you want to retrieve information about. For example, <code>INSTANCE</code>.</p>
|
346 + | pub fn get_resource_type(&self) -> &::std::option::Option<crate::types::MaintenanceWindowResourceType> {
|
347 + | &self.resource_type
|
348 + | }
|
349 + | /// Appends an item to `filters`.
|
350 + | ///
|
351 + | /// To override the contents of this collection use [`set_filters`](Self::set_filters).
|
352 + | ///
|
353 + | /// <p>Filters used to limit the range of results. For example, you can limit maintenance window executions to only those scheduled before or after a certain date and time.</p>
|
354 + | pub fn filters(mut self, input: crate::types::PatchOrchestratorFilter) -> Self {
|
355 + | let mut v = self.filters.unwrap_or_default();
|
356 + | v.push(input);
|
357 + | self.filters = ::std::option::Option::Some(v);
|
358 + | self
|
359 + | }
|
360 + | /// <p>Filters used to limit the range of results. For example, you can limit maintenance window executions to only those scheduled before or after a certain date and time.</p>
|
361 + | pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::PatchOrchestratorFilter>>) -> Self {
|
362 + | self.filters = input;
|
363 + | self
|
364 + | }
|
365 + | /// <p>Filters used to limit the range of results. For example, you can limit maintenance window executions to only those scheduled before or after a certain date and time.</p>
|
366 + | pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::PatchOrchestratorFilter>> {
|
367 + | &self.filters
|
368 + | }
|
369 + | /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
|
370 + | pub fn max_results(mut self, input: i32) -> Self {
|
371 + | self.max_results = ::std::option::Option::Some(input);
|
372 + | self
|
373 + | }
|
374 + | /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
|
375 + | pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
|
376 + | self.max_results = input;
|
377 + | self
|
378 + | }
|
379 + | /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
|
380 + | pub fn get_max_results(&self) -> &::std::option::Option<i32> {
|
381 + | &self.max_results
|
382 + | }
|
383 + | /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
|
384 + | pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
385 + | self.next_token = ::std::option::Option::Some(input.into());
|
386 + | self
|
387 + | }
|
388 + | /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
|
389 + | pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
390 + | self.next_token = input;
|
391 + | self
|
392 + | }
|
393 + | /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
|
394 + | pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
|
395 + | &self.next_token
|
396 + | }
|
397 + | /// Consumes the builder and constructs a [`DescribeMaintenanceWindowScheduleInput`](crate::operation::describe_maintenance_window_schedule::DescribeMaintenanceWindowScheduleInput).
|
398 + | pub fn build(
|
399 + | self,
|
400 + | ) -> ::std::result::Result<
|
401 + | crate::operation::describe_maintenance_window_schedule::DescribeMaintenanceWindowScheduleInput,
|
402 + | ::aws_smithy_types::error::operation::BuildError,
|
403 + | > {
|
404 + | ::std::result::Result::Ok(
|
405 + | crate::operation::describe_maintenance_window_schedule::DescribeMaintenanceWindowScheduleInput {
|
406 + | window_id: self.window_id,
|
407 + | targets: self.targets,
|
408 + | resource_type: self.resource_type,
|
409 + | filters: self.filters,
|
410 + | max_results: self.max_results,
|
411 + | next_token: self.next_token,
|
412 + | },
|
413 + | )
|
414 + | }
|
415 + | }
|