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 DescribeOpsItemsInput {
|
6 + | /// <p>One or more filters to limit the response.</p>
|
7 + | /// <ul>
|
8 + | /// <li>
|
9 + | /// <p>Key: CreatedTime</p>
|
10 + | /// <p>Operations: GreaterThan, LessThan</p></li>
|
11 + | /// <li>
|
12 + | /// <p>Key: LastModifiedBy</p>
|
13 + | /// <p>Operations: Contains, Equals</p></li>
|
14 + | /// <li>
|
15 + | /// <p>Key: LastModifiedTime</p>
|
16 + | /// <p>Operations: GreaterThan, LessThan</p></li>
|
17 + | /// <li>
|
18 + | /// <p>Key: Priority</p>
|
19 + | /// <p>Operations: Equals</p></li>
|
20 + | /// <li>
|
21 + | /// <p>Key: Source</p>
|
22 + | /// <p>Operations: Contains, Equals</p></li>
|
23 + | /// <li>
|
24 + | /// <p>Key: Status</p>
|
25 + | /// <p>Operations: Equals</p></li>
|
26 + | /// <li>
|
27 + | /// <p>Key: Title*</p>
|
28 + | /// <p>Operations: Equals,Contains</p></li>
|
29 + | /// <li>
|
30 + | /// <p>Key: OperationalData**</p>
|
31 + | /// <p>Operations: Equals</p></li>
|
32 + | /// <li>
|
33 + | /// <p>Key: OperationalDataKey</p>
|
34 + | /// <p>Operations: Equals</p></li>
|
35 + | /// <li>
|
36 + | /// <p>Key: OperationalDataValue</p>
|
37 + | /// <p>Operations: Equals, Contains</p></li>
|
38 + | /// <li>
|
39 + | /// <p>Key: OpsItemId</p>
|
40 + | /// <p>Operations: Equals</p></li>
|
41 + | /// <li>
|
42 + | /// <p>Key: ResourceId</p>
|
43 + | /// <p>Operations: Contains</p></li>
|
44 + | /// <li>
|
45 + | /// <p>Key: AutomationId</p>
|
46 + | /// <p>Operations: Equals</p></li>
|
47 + | /// <li>
|
48 + | /// <p>Key: AccountId</p>
|
49 + | /// <p>Operations: Equals</p></li>
|
50 + | /// </ul>
|
51 + | /// <p>*The Equals operator for Title matches the first 100 characters. If you specify more than 100 characters, they system returns an error that the filter value exceeds the length limit.</p>
|
52 + | /// <p>**If you filter the response by using the OperationalData operator, specify a key-value pair by using the following JSON format: {"key":"key_name","value":"a_value"}</p>
|
53 + | pub ops_item_filters: ::std::option::Option<::std::vec::Vec<crate::types::OpsItemFilter>>,
|
54 + | /// <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>
|
55 + | pub max_results: ::std::option::Option<i32>,
|
56 + | /// <p>A token to start the list. Use this token to get the next set of results.</p>
|
57 + | pub next_token: ::std::option::Option<::std::string::String>,
|
58 + | }
|
59 + | impl DescribeOpsItemsInput {
|
60 + | /// <p>One or more filters to limit the response.</p>
|
61 + | /// <ul>
|
62 + | /// <li>
|
63 + | /// <p>Key: CreatedTime</p>
|
64 + | /// <p>Operations: GreaterThan, LessThan</p></li>
|
65 + | /// <li>
|
66 + | /// <p>Key: LastModifiedBy</p>
|
67 + | /// <p>Operations: Contains, Equals</p></li>
|
68 + | /// <li>
|
69 + | /// <p>Key: LastModifiedTime</p>
|
70 + | /// <p>Operations: GreaterThan, LessThan</p></li>
|
71 + | /// <li>
|
72 + | /// <p>Key: Priority</p>
|
73 + | /// <p>Operations: Equals</p></li>
|
74 + | /// <li>
|
75 + | /// <p>Key: Source</p>
|
76 + | /// <p>Operations: Contains, Equals</p></li>
|
77 + | /// <li>
|
78 + | /// <p>Key: Status</p>
|
79 + | /// <p>Operations: Equals</p></li>
|
80 + | /// <li>
|
81 + | /// <p>Key: Title*</p>
|
82 + | /// <p>Operations: Equals,Contains</p></li>
|
83 + | /// <li>
|
84 + | /// <p>Key: OperationalData**</p>
|
85 + | /// <p>Operations: Equals</p></li>
|
86 + | /// <li>
|
87 + | /// <p>Key: OperationalDataKey</p>
|
88 + | /// <p>Operations: Equals</p></li>
|
89 + | /// <li>
|
90 + | /// <p>Key: OperationalDataValue</p>
|
91 + | /// <p>Operations: Equals, Contains</p></li>
|
92 + | /// <li>
|
93 + | /// <p>Key: OpsItemId</p>
|
94 + | /// <p>Operations: Equals</p></li>
|
95 + | /// <li>
|
96 + | /// <p>Key: ResourceId</p>
|
97 + | /// <p>Operations: Contains</p></li>
|
98 + | /// <li>
|
99 + | /// <p>Key: AutomationId</p>
|
100 + | /// <p>Operations: Equals</p></li>
|
101 + | /// <li>
|
102 + | /// <p>Key: AccountId</p>
|
103 + | /// <p>Operations: Equals</p></li>
|
104 + | /// </ul>
|
105 + | /// <p>*The Equals operator for Title matches the first 100 characters. If you specify more than 100 characters, they system returns an error that the filter value exceeds the length limit.</p>
|
106 + | /// <p>**If you filter the response by using the OperationalData operator, specify a key-value pair by using the following JSON format: {"key":"key_name","value":"a_value"}</p>
|
107 + | ///
|
108 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.ops_item_filters.is_none()`.
|
109 + | pub fn ops_item_filters(&self) -> &[crate::types::OpsItemFilter] {
|
110 + | self.ops_item_filters.as_deref().unwrap_or_default()
|
111 + | }
|
112 + | /// <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>
|
113 + | pub fn max_results(&self) -> ::std::option::Option<i32> {
|
114 + | self.max_results
|
115 + | }
|
116 + | /// <p>A token to start the list. Use this token to get the next set of results.</p>
|
117 + | pub fn next_token(&self) -> ::std::option::Option<&str> {
|
118 + | self.next_token.as_deref()
|
119 + | }
|
120 + | }
|
121 + | static DESCRIBEOPSITEMSINPUT_MEMBER_OPS_ITEM_FILTERS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
122 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OpsItemFilters$member", "com.amazonaws.ssm", "OpsItemFilters"),
|
123 + | ::aws_smithy_schema::ShapeType::Structure,
|
124 + | "member",
|
125 + | 0,
|
126 + | );
|
127 + | static DESCRIBEOPSITEMSINPUT_MEMBER_OPS_ITEM_FILTERS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
128 + | ::aws_smithy_schema::ShapeId::from_parts(
|
129 + | "com.amazonaws.ssm.synthetic#DescribeOpsItemsInput$OpsItemFilters",
|
130 + | "com.amazonaws.ssm.synthetic",
|
131 + | "DescribeOpsItemsInput",
|
132 + | ),
|
133 + | ::aws_smithy_schema::ShapeType::List,
|
134 + | "OpsItemFilters",
|
135 + | 0,
|
136 + | )
|
137 + | .with_list_member(&DESCRIBEOPSITEMSINPUT_MEMBER_OPS_ITEM_FILTERS_MEMBER);
|
138 + | static DESCRIBEOPSITEMSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
139 + | ::aws_smithy_schema::ShapeId::from_parts(
|
140 + | "com.amazonaws.ssm.synthetic#DescribeOpsItemsInput$MaxResults",
|
141 + | "com.amazonaws.ssm.synthetic",
|
142 + | "DescribeOpsItemsInput",
|
143 + | ),
|
144 + | ::aws_smithy_schema::ShapeType::Integer,
|
145 + | "MaxResults",
|
146 + | 1,
|
147 + | );
|
148 + | static DESCRIBEOPSITEMSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
149 + | ::aws_smithy_schema::ShapeId::from_parts(
|
150 + | "com.amazonaws.ssm.synthetic#DescribeOpsItemsInput$NextToken",
|
151 + | "com.amazonaws.ssm.synthetic",
|
152 + | "DescribeOpsItemsInput",
|
153 + | ),
|
154 + | ::aws_smithy_schema::ShapeType::String,
|
155 + | "NextToken",
|
156 + | 2,
|
157 + | );
|
158 + | static DESCRIBEOPSITEMSINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
159 + | ::aws_smithy_schema::ShapeId::from_parts(
|
160 + | "com.amazonaws.ssm.synthetic#DescribeOpsItemsInput",
|
161 + | "com.amazonaws.ssm.synthetic",
|
162 + | "DescribeOpsItemsInput",
|
163 + | ),
|
164 + | ::aws_smithy_schema::ShapeType::Structure,
|
165 + | &[
|
166 + | &DESCRIBEOPSITEMSINPUT_MEMBER_OPS_ITEM_FILTERS,
|
167 + | &DESCRIBEOPSITEMSINPUT_MEMBER_MAX_RESULTS,
|
168 + | &DESCRIBEOPSITEMSINPUT_MEMBER_NEXT_TOKEN,
|
169 + | ],
|
170 + | )
|
171 + | .with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
|
172 + | .with_original_name("DescribeOpsItemsRequest");
|
173 + | impl DescribeOpsItemsInput {
|
174 + | /// The schema for this shape.
|
175 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DESCRIBEOPSITEMSINPUT_SCHEMA;
|
176 + | }
|
177 + | impl ::aws_smithy_schema::serde::SerializableStruct for DescribeOpsItemsInput {
|
178 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
179 + | fn serialize_members(
|
180 + | &self,
|
181 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
182 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
183 + | if let Some(ref val) = self.ops_item_filters {
|
184 + | ser.write_list(
|
185 + | &DESCRIBEOPSITEMSINPUT_MEMBER_OPS_ITEM_FILTERS,
|
186 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
187 + | for item in val {
|
188 + | ser.write_struct(crate::types::OpsItemFilter::SCHEMA, item)?;
|
189 + | }
|
190 + | Ok(())
|
191 + | },
|
192 + | )?;
|
193 + | }
|
194 + | if let Some(ref val) = self.max_results {
|
195 + | ser.write_integer(&DESCRIBEOPSITEMSINPUT_MEMBER_MAX_RESULTS, *val)?;
|
196 + | }
|
197 + | if let Some(ref val) = self.next_token {
|
198 + | ser.write_string(&DESCRIBEOPSITEMSINPUT_MEMBER_NEXT_TOKEN, val)?;
|
199 + | }
|
200 + | Ok(())
|
201 + | }
|
202 + | }
|
203 + | impl DescribeOpsItemsInput {
|
204 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
205 + | pub fn deserialize(
|
206 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
207 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
208 + | #[allow(unused_variables, unused_mut)]
|
209 + | let mut builder = Self::builder();
|
210 + | #[allow(
|
211 + | unused_variables,
|
212 + | unreachable_code,
|
213 + | clippy::single_match,
|
214 + | clippy::match_single_binding,
|
215 + | clippy::diverging_sub_expression
|
216 + | )]
|
217 + | deserializer.read_struct(&DESCRIBEOPSITEMSINPUT_SCHEMA, &mut |member, deser| {
|
218 + | match member.member_index() {
|
219 + | Some(0) => {
|
220 + | if deser.is_null() {
|
221 + | deser.read_null()?;
|
222 + | } else {
|
223 + | builder.ops_item_filters = Some({
|
224 + | let mut container = Vec::new();
|
225 + | deser.read_list(member, &mut |deser| {
|
226 + | container.push(crate::types::OpsItemFilter::deserialize(deser)?);
|
227 + | Ok(())
|
228 + | })?;
|
229 + | container
|
230 + | });
|
231 + | }
|
232 + | }
|
233 + | Some(1) => {
|
234 + | if deser.is_null() {
|
235 + | deser.read_null()?;
|
236 + | } else {
|
237 + | builder.max_results = Some(deser.read_integer(member)?);
|
238 + | }
|
239 + | }
|
240 + | Some(2) => {
|
241 + | if deser.is_null() {
|
242 + | deser.read_null()?;
|
243 + | } else {
|
244 + | builder.next_token = Some(deser.read_string(member)?);
|
245 + | }
|
246 + | }
|
247 + | _ => {}
|
248 + | }
|
249 + | Ok(())
|
250 + | })?;
|
251 + | builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
|
252 + | }
|
253 + | }
|
254 + | impl DescribeOpsItemsInput {
|
255 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
256 + | pub fn deserialize_with_response(
|
257 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
258 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
259 + | _status: u16,
|
260 + | _body: &[u8],
|
261 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
262 + | Self::deserialize(deserializer)
|
263 + | }
|
264 + | }
|
265 + | impl DescribeOpsItemsInput {
|
266 + | /// Creates a new builder-style object to manufacture [`DescribeOpsItemsInput`](crate::operation::describe_ops_items::DescribeOpsItemsInput).
|
267 + | pub fn builder() -> crate::operation::describe_ops_items::builders::DescribeOpsItemsInputBuilder {
|
268 + | crate::operation::describe_ops_items::builders::DescribeOpsItemsInputBuilder::default()
|
269 + | }
|
270 + | }
|
271 + |
|
272 + | /// A builder for [`DescribeOpsItemsInput`](crate::operation::describe_ops_items::DescribeOpsItemsInput).
|
273 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
274 + | #[non_exhaustive]
|
275 + | pub struct DescribeOpsItemsInputBuilder {
|
276 + | pub(crate) ops_item_filters: ::std::option::Option<::std::vec::Vec<crate::types::OpsItemFilter>>,
|
277 + | pub(crate) max_results: ::std::option::Option<i32>,
|
278 + | pub(crate) next_token: ::std::option::Option<::std::string::String>,
|
279 + | }
|
280 + | impl DescribeOpsItemsInputBuilder {
|
281 + | /// Appends an item to `ops_item_filters`.
|
282 + | ///
|
283 + | /// To override the contents of this collection use [`set_ops_item_filters`](Self::set_ops_item_filters).
|
284 + | ///
|
285 + | /// <p>One or more filters to limit the response.</p>
|
286 + | /// <ul>
|
287 + | /// <li>
|
288 + | /// <p>Key: CreatedTime</p>
|
289 + | /// <p>Operations: GreaterThan, LessThan</p></li>
|
290 + | /// <li>
|
291 + | /// <p>Key: LastModifiedBy</p>
|
292 + | /// <p>Operations: Contains, Equals</p></li>
|
293 + | /// <li>
|
294 + | /// <p>Key: LastModifiedTime</p>
|
295 + | /// <p>Operations: GreaterThan, LessThan</p></li>
|
296 + | /// <li>
|
297 + | /// <p>Key: Priority</p>
|
298 + | /// <p>Operations: Equals</p></li>
|
299 + | /// <li>
|
300 + | /// <p>Key: Source</p>
|
301 + | /// <p>Operations: Contains, Equals</p></li>
|
302 + | /// <li>
|
303 + | /// <p>Key: Status</p>
|
304 + | /// <p>Operations: Equals</p></li>
|
305 + | /// <li>
|
306 + | /// <p>Key: Title*</p>
|
307 + | /// <p>Operations: Equals,Contains</p></li>
|
308 + | /// <li>
|
309 + | /// <p>Key: OperationalData**</p>
|
310 + | /// <p>Operations: Equals</p></li>
|
311 + | /// <li>
|
312 + | /// <p>Key: OperationalDataKey</p>
|
313 + | /// <p>Operations: Equals</p></li>
|
314 + | /// <li>
|
315 + | /// <p>Key: OperationalDataValue</p>
|
316 + | /// <p>Operations: Equals, Contains</p></li>
|
317 + | /// <li>
|
318 + | /// <p>Key: OpsItemId</p>
|
319 + | /// <p>Operations: Equals</p></li>
|
320 + | /// <li>
|
321 + | /// <p>Key: ResourceId</p>
|
322 + | /// <p>Operations: Contains</p></li>
|
323 + | /// <li>
|
324 + | /// <p>Key: AutomationId</p>
|
325 + | /// <p>Operations: Equals</p></li>
|
326 + | /// <li>
|
327 + | /// <p>Key: AccountId</p>
|
328 + | /// <p>Operations: Equals</p></li>
|
329 + | /// </ul>
|
330 + | /// <p>*The Equals operator for Title matches the first 100 characters. If you specify more than 100 characters, they system returns an error that the filter value exceeds the length limit.</p>
|
331 + | /// <p>**If you filter the response by using the OperationalData operator, specify a key-value pair by using the following JSON format: {"key":"key_name","value":"a_value"}</p>
|
332 + | pub fn ops_item_filters(mut self, input: crate::types::OpsItemFilter) -> Self {
|
333 + | let mut v = self.ops_item_filters.unwrap_or_default();
|
334 + | v.push(input);
|
335 + | self.ops_item_filters = ::std::option::Option::Some(v);
|
336 + | self
|
337 + | }
|
338 + | /// <p>One or more filters to limit the response.</p>
|
339 + | /// <ul>
|
340 + | /// <li>
|
341 + | /// <p>Key: CreatedTime</p>
|
342 + | /// <p>Operations: GreaterThan, LessThan</p></li>
|
343 + | /// <li>
|
344 + | /// <p>Key: LastModifiedBy</p>
|
345 + | /// <p>Operations: Contains, Equals</p></li>
|
346 + | /// <li>
|
347 + | /// <p>Key: LastModifiedTime</p>
|
348 + | /// <p>Operations: GreaterThan, LessThan</p></li>
|
349 + | /// <li>
|
350 + | /// <p>Key: Priority</p>
|
351 + | /// <p>Operations: Equals</p></li>
|
352 + | /// <li>
|
353 + | /// <p>Key: Source</p>
|
354 + | /// <p>Operations: Contains, Equals</p></li>
|
355 + | /// <li>
|
356 + | /// <p>Key: Status</p>
|
357 + | /// <p>Operations: Equals</p></li>
|
358 + | /// <li>
|
359 + | /// <p>Key: Title*</p>
|
360 + | /// <p>Operations: Equals,Contains</p></li>
|
361 + | /// <li>
|
362 + | /// <p>Key: OperationalData**</p>
|
363 + | /// <p>Operations: Equals</p></li>
|
364 + | /// <li>
|
365 + | /// <p>Key: OperationalDataKey</p>
|
366 + | /// <p>Operations: Equals</p></li>
|
367 + | /// <li>
|
368 + | /// <p>Key: OperationalDataValue</p>
|
369 + | /// <p>Operations: Equals, Contains</p></li>
|
370 + | /// <li>
|
371 + | /// <p>Key: OpsItemId</p>
|
372 + | /// <p>Operations: Equals</p></li>
|
373 + | /// <li>
|
374 + | /// <p>Key: ResourceId</p>
|
375 + | /// <p>Operations: Contains</p></li>
|
376 + | /// <li>
|
377 + | /// <p>Key: AutomationId</p>
|
378 + | /// <p>Operations: Equals</p></li>
|
379 + | /// <li>
|
380 + | /// <p>Key: AccountId</p>
|
381 + | /// <p>Operations: Equals</p></li>
|
382 + | /// </ul>
|
383 + | /// <p>*The Equals operator for Title matches the first 100 characters. If you specify more than 100 characters, they system returns an error that the filter value exceeds the length limit.</p>
|
384 + | /// <p>**If you filter the response by using the OperationalData operator, specify a key-value pair by using the following JSON format: {"key":"key_name","value":"a_value"}</p>
|
385 + | pub fn set_ops_item_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::OpsItemFilter>>) -> Self {
|
386 + | self.ops_item_filters = input;
|
387 + | self
|
388 + | }
|
389 + | /// <p>One or more filters to limit the response.</p>
|
390 + | /// <ul>
|
391 + | /// <li>
|
392 + | /// <p>Key: CreatedTime</p>
|
393 + | /// <p>Operations: GreaterThan, LessThan</p></li>
|
394 + | /// <li>
|
395 + | /// <p>Key: LastModifiedBy</p>
|
396 + | /// <p>Operations: Contains, Equals</p></li>
|
397 + | /// <li>
|
398 + | /// <p>Key: LastModifiedTime</p>
|
399 + | /// <p>Operations: GreaterThan, LessThan</p></li>
|
400 + | /// <li>
|
401 + | /// <p>Key: Priority</p>
|
402 + | /// <p>Operations: Equals</p></li>
|
403 + | /// <li>
|
404 + | /// <p>Key: Source</p>
|
405 + | /// <p>Operations: Contains, Equals</p></li>
|
406 + | /// <li>
|
407 + | /// <p>Key: Status</p>
|
408 + | /// <p>Operations: Equals</p></li>
|
409 + | /// <li>
|
410 + | /// <p>Key: Title*</p>
|
411 + | /// <p>Operations: Equals,Contains</p></li>
|
412 + | /// <li>
|
413 + | /// <p>Key: OperationalData**</p>
|
414 + | /// <p>Operations: Equals</p></li>
|
415 + | /// <li>
|
416 + | /// <p>Key: OperationalDataKey</p>
|
417 + | /// <p>Operations: Equals</p></li>
|
418 + | /// <li>
|
419 + | /// <p>Key: OperationalDataValue</p>
|
420 + | /// <p>Operations: Equals, Contains</p></li>
|
421 + | /// <li>
|
422 + | /// <p>Key: OpsItemId</p>
|
423 + | /// <p>Operations: Equals</p></li>
|
424 + | /// <li>
|
425 + | /// <p>Key: ResourceId</p>
|
426 + | /// <p>Operations: Contains</p></li>
|
427 + | /// <li>
|
428 + | /// <p>Key: AutomationId</p>
|
429 + | /// <p>Operations: Equals</p></li>
|
430 + | /// <li>
|
431 + | /// <p>Key: AccountId</p>
|
432 + | /// <p>Operations: Equals</p></li>
|
433 + | /// </ul>
|
434 + | /// <p>*The Equals operator for Title matches the first 100 characters. If you specify more than 100 characters, they system returns an error that the filter value exceeds the length limit.</p>
|
435 + | /// <p>**If you filter the response by using the OperationalData operator, specify a key-value pair by using the following JSON format: {"key":"key_name","value":"a_value"}</p>
|
436 + | pub fn get_ops_item_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::OpsItemFilter>> {
|
437 + | &self.ops_item_filters
|
438 + | }
|
439 + | /// <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>
|
440 + | pub fn max_results(mut self, input: i32) -> Self {
|
441 + | self.max_results = ::std::option::Option::Some(input);
|
442 + | self
|
443 + | }
|
444 + | /// <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>
|
445 + | pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
|
446 + | self.max_results = input;
|
447 + | self
|
448 + | }
|
449 + | /// <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>
|
450 + | pub fn get_max_results(&self) -> &::std::option::Option<i32> {
|
451 + | &self.max_results
|
452 + | }
|
453 + | /// <p>A token to start the list. Use this token to get the next set of results.</p>
|
454 + | pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
455 + | self.next_token = ::std::option::Option::Some(input.into());
|
456 + | self
|
457 + | }
|
458 + | /// <p>A token to start the list. Use this token to get the next set of results.</p>
|
459 + | pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
460 + | self.next_token = input;
|
461 + | self
|
462 + | }
|
463 + | /// <p>A token to start the list. Use this token to get the next set of results.</p>
|
464 + | pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
|
465 + | &self.next_token
|
466 + | }
|
467 + | /// Consumes the builder and constructs a [`DescribeOpsItemsInput`](crate::operation::describe_ops_items::DescribeOpsItemsInput).
|
468 + | pub fn build(
|
469 + | self,
|
470 + | ) -> ::std::result::Result<crate::operation::describe_ops_items::DescribeOpsItemsInput, ::aws_smithy_types::error::operation::BuildError> {
|
471 + | ::std::result::Result::Ok(crate::operation::describe_ops_items::DescribeOpsItemsInput {
|
472 + | ops_item_filters: self.ops_item_filters,
|
473 + | max_results: self.max_results,
|
474 + | next_token: self.next_token,
|
475 + | })
|
476 + | }
|
477 + | }
|