AWS SDK

AWS SDK

rev. 97ba95e6039d206ffea5b866ddc214d34f7f88c3

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/describe_ops_items/_describe_ops_items_input.rs

@@ -0,1 +0,477 @@
           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  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/describe_ops_items/_describe_ops_items_output.rs

@@ -0,1 +0,269 @@
           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 DescribeOpsItemsOutput {
           6  +
    /// <p>The token for the next set of items to return. Use this token to get the next set of results.</p>
           7  +
    pub next_token: ::std::option::Option<::std::string::String>,
           8  +
    /// <p>A list of OpsItems.</p>
           9  +
    pub ops_item_summaries: ::std::option::Option<::std::vec::Vec<crate::types::OpsItemSummary>>,
          10  +
    _request_id: Option<String>,
          11  +
}
          12  +
impl DescribeOpsItemsOutput {
          13  +
    /// <p>The token for the next set of items to return. Use this token to get the next set of results.</p>
          14  +
    pub fn next_token(&self) -> ::std::option::Option<&str> {
          15  +
        self.next_token.as_deref()
          16  +
    }
          17  +
    /// <p>A list of OpsItems.</p>
          18  +
    ///
          19  +
    /// 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_summaries.is_none()`.
          20  +
    pub fn ops_item_summaries(&self) -> &[crate::types::OpsItemSummary] {
          21  +
        self.ops_item_summaries.as_deref().unwrap_or_default()
          22  +
    }
          23  +
}
          24  +
static DESCRIBEOPSITEMSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          25  +
    ::aws_smithy_schema::ShapeId::from_parts(
          26  +
        "com.amazonaws.ssm.synthetic#DescribeOpsItemsOutput$NextToken",
          27  +
        "com.amazonaws.ssm.synthetic",
          28  +
        "DescribeOpsItemsOutput",
          29  +
    ),
          30  +
    ::aws_smithy_schema::ShapeType::String,
          31  +
    "NextToken",
          32  +
    0,
          33  +
);
          34  +
static DESCRIBEOPSITEMSOUTPUT_MEMBER_OPS_ITEM_SUMMARIES_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          35  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#OpsItemSummaries$member", "com.amazonaws.ssm", "OpsItemSummaries"),
          36  +
    ::aws_smithy_schema::ShapeType::Structure,
          37  +
    "member",
          38  +
    0,
          39  +
);
          40  +
static DESCRIBEOPSITEMSOUTPUT_MEMBER_OPS_ITEM_SUMMARIES: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          41  +
    ::aws_smithy_schema::ShapeId::from_parts(
          42  +
        "com.amazonaws.ssm.synthetic#DescribeOpsItemsOutput$OpsItemSummaries",
          43  +
        "com.amazonaws.ssm.synthetic",
          44  +
        "DescribeOpsItemsOutput",
          45  +
    ),
          46  +
    ::aws_smithy_schema::ShapeType::List,
          47  +
    "OpsItemSummaries",
          48  +
    1,
          49  +
)
          50  +
.with_list_member(&DESCRIBEOPSITEMSOUTPUT_MEMBER_OPS_ITEM_SUMMARIES_MEMBER);
          51  +
static DESCRIBEOPSITEMSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          52  +
    ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
          53  +
    ::aws_smithy_schema::ShapeType::String,
          54  +
    "request_id",
          55  +
    2,
          56  +
)
          57  +
.with_http_header("x-amzn-requestid");
          58  +
static DESCRIBEOPSITEMSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          59  +
    ::aws_smithy_schema::ShapeId::from_parts(
          60  +
        "com.amazonaws.ssm.synthetic#DescribeOpsItemsOutput",
          61  +
        "com.amazonaws.ssm.synthetic",
          62  +
        "DescribeOpsItemsOutput",
          63  +
    ),
          64  +
    ::aws_smithy_schema::ShapeType::Structure,
          65  +
    &[
          66  +
        &DESCRIBEOPSITEMSOUTPUT_MEMBER_NEXT_TOKEN,
          67  +
        &DESCRIBEOPSITEMSOUTPUT_MEMBER_OPS_ITEM_SUMMARIES,
          68  +
        &DESCRIBEOPSITEMSOUTPUT_MEMBER__REQUEST_ID,
          69  +
    ],
          70  +
)
          71  +
.with_original_name("DescribeOpsItemsResponse");
          72  +
impl DescribeOpsItemsOutput {
          73  +
    /// The schema for this shape.
          74  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DESCRIBEOPSITEMSOUTPUT_SCHEMA;
          75  +
}
          76  +
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeOpsItemsOutput {
          77  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          78  +
    fn serialize_members(
          79  +
        &self,
          80  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          81  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          82  +
        if let Some(ref val) = self.next_token {
          83  +
            ser.write_string(&DESCRIBEOPSITEMSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
          84  +
        }
          85  +
        if let Some(ref val) = self.ops_item_summaries {
          86  +
            ser.write_list(
          87  +
                &DESCRIBEOPSITEMSOUTPUT_MEMBER_OPS_ITEM_SUMMARIES,
          88  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
          89  +
                    for item in val {
          90  +
                        ser.write_struct(crate::types::OpsItemSummary::SCHEMA, item)?;
          91  +
                    }
          92  +
                    Ok(())
          93  +
                },
          94  +
            )?;
          95  +
        }
          96  +
        Ok(())
          97  +
    }
          98  +
}
          99  +
impl DescribeOpsItemsOutput {
         100  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         101  +
    pub fn deserialize(
         102  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         103  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         104  +
        #[allow(unused_variables, unused_mut)]
         105  +
        let mut builder = Self::builder();
         106  +
        #[allow(
         107  +
            unused_variables,
         108  +
            unreachable_code,
         109  +
            clippy::single_match,
         110  +
            clippy::match_single_binding,
         111  +
            clippy::diverging_sub_expression
         112  +
        )]
         113  +
        deserializer.read_struct(&DESCRIBEOPSITEMSOUTPUT_SCHEMA, &mut |member, deser| {
         114  +
            match member.member_index() {
         115  +
                Some(0) => {
         116  +
                    if deser.is_null() {
         117  +
                        deser.read_null()?;
         118  +
                    } else {
         119  +
                        builder.next_token = Some(deser.read_string(member)?);
         120  +
                    }
         121  +
                }
         122  +
                Some(1) => {
         123  +
                    if deser.is_null() {
         124  +
                        deser.read_null()?;
         125  +
                    } else {
         126  +
                        builder.ops_item_summaries = Some({
         127  +
                            let mut container = Vec::new();
         128  +
                            deser.read_list(member, &mut |deser| {
         129  +
                                container.push(crate::types::OpsItemSummary::deserialize(deser)?);
         130  +
                                Ok(())
         131  +
                            })?;
         132  +
                            container
         133  +
                        });
         134  +
                    }
         135  +
                }
         136  +
                Some(2) => {
         137  +
                    builder._request_id = Some(deser.read_string(member)?);
         138  +
                }
         139  +
                _ => {}
         140  +
            }
         141  +
            Ok(())
         142  +
        })?;
         143  +
        Ok(builder.build())
         144  +
    }
         145  +
}
         146  +
impl DescribeOpsItemsOutput {
         147  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         148  +
    /// Header-bound members are read directly from headers, avoiding runtime
         149  +
    /// member iteration overhead. Body members are read via the deserializer.
         150  +
    pub fn deserialize_with_response(
         151  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         152  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         153  +
        _status: u16,
         154  +
        _body: &[u8],
         155  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         156  +
        #[allow(unused_variables, unused_mut)]
         157  +
        let mut builder = Self::builder();
         158  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         159  +
            builder._request_id = Some(val.to_string());
         160  +
        }
         161  +
         162  +
        #[allow(
         163  +
            unused_variables,
         164  +
            unreachable_code,
         165  +
            clippy::single_match,
         166  +
            clippy::match_single_binding,
         167  +
            clippy::diverging_sub_expression
         168  +
        )]
         169  +
        deserializer.read_struct(&DESCRIBEOPSITEMSOUTPUT_SCHEMA, &mut |member, deser| {
         170  +
            match member.member_index() {
         171  +
                Some(0) => {
         172  +
                    builder.next_token = Some(deser.read_string(member)?);
         173  +
                }
         174  +
                Some(1) => {
         175  +
                    builder.ops_item_summaries = Some({
         176  +
                        let mut container = Vec::new();
         177  +
                        deser.read_list(member, &mut |deser| {
         178  +
                            container.push(crate::types::OpsItemSummary::deserialize(deser)?);
         179  +
                            Ok(())
         180  +
                        })?;
         181  +
                        container
         182  +
                    });
         183  +
                }
         184  +
                _ => {}
         185  +
            }
         186  +
            Ok(())
         187  +
        })?;
         188  +
        Ok(builder.build())
         189  +
    }
         190  +
}
         191  +
impl ::aws_types::request_id::RequestId for DescribeOpsItemsOutput {
         192  +
    fn request_id(&self) -> Option<&str> {
         193  +
        self._request_id.as_deref()
         194  +
    }
         195  +
}
         196  +
impl DescribeOpsItemsOutput {
         197  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         198  +
        self._request_id = request_id;
         199  +
        self
         200  +
    }
         201  +
}
         202  +
impl DescribeOpsItemsOutput {
         203  +
    /// Creates a new builder-style object to manufacture [`DescribeOpsItemsOutput`](crate::operation::describe_ops_items::DescribeOpsItemsOutput).
         204  +
    pub fn builder() -> crate::operation::describe_ops_items::builders::DescribeOpsItemsOutputBuilder {
         205  +
        crate::operation::describe_ops_items::builders::DescribeOpsItemsOutputBuilder::default()
         206  +
    }
         207  +
}
         208  +
         209  +
/// A builder for [`DescribeOpsItemsOutput`](crate::operation::describe_ops_items::DescribeOpsItemsOutput).
         210  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         211  +
#[non_exhaustive]
         212  +
pub struct DescribeOpsItemsOutputBuilder {
         213  +
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
         214  +
    pub(crate) ops_item_summaries: ::std::option::Option<::std::vec::Vec<crate::types::OpsItemSummary>>,
         215  +
    _request_id: Option<String>,
         216  +
}
         217  +
impl DescribeOpsItemsOutputBuilder {
         218  +
    /// <p>The token for the next set of items to return. Use this token to get the next set of results.</p>
         219  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         220  +
        self.next_token = ::std::option::Option::Some(input.into());
         221  +
        self
         222  +
    }
         223  +
    /// <p>The token for the next set of items to return. Use this token to get the next set of results.</p>
         224  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         225  +
        self.next_token = input;
         226  +
        self
         227  +
    }
         228  +
    /// <p>The token for the next set of items to return. Use this token to get the next set of results.</p>
         229  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         230  +
        &self.next_token
         231  +
    }
         232  +
    /// Appends an item to `ops_item_summaries`.
         233  +
    ///
         234  +
    /// To override the contents of this collection use [`set_ops_item_summaries`](Self::set_ops_item_summaries).
         235  +
    ///
         236  +
    /// <p>A list of OpsItems.</p>
         237  +
    pub fn ops_item_summaries(mut self, input: crate::types::OpsItemSummary) -> Self {
         238  +
        let mut v = self.ops_item_summaries.unwrap_or_default();
         239  +
        v.push(input);
         240  +
        self.ops_item_summaries = ::std::option::Option::Some(v);
         241  +
        self
         242  +
    }
         243  +
    /// <p>A list of OpsItems.</p>
         244  +
    pub fn set_ops_item_summaries(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::OpsItemSummary>>) -> Self {
         245  +
        self.ops_item_summaries = input;
         246  +
        self
         247  +
    }
         248  +
    /// <p>A list of OpsItems.</p>
         249  +
    pub fn get_ops_item_summaries(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::OpsItemSummary>> {
         250  +
        &self.ops_item_summaries
         251  +
    }
         252  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
         253  +
        self._request_id = Some(request_id.into());
         254  +
        self
         255  +
    }
         256  +
         257  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         258  +
        self._request_id = request_id;
         259  +
        self
         260  +
    }
         261  +
    /// Consumes the builder and constructs a [`DescribeOpsItemsOutput`](crate::operation::describe_ops_items::DescribeOpsItemsOutput).
         262  +
    pub fn build(self) -> crate::operation::describe_ops_items::DescribeOpsItemsOutput {
         263  +
        crate::operation::describe_ops_items::DescribeOpsItemsOutput {
         264  +
            next_token: self.next_token,
         265  +
            ops_item_summaries: self.ops_item_summaries,
         266  +
            _request_id: self._request_id,
         267  +
        }
         268  +
    }
         269  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/describe_ops_items/builders.rs

@@ -0,1 +0,303 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::describe_ops_items::_describe_ops_items_input::DescribeOpsItemsInputBuilder;
           3  +
           4  +
pub use crate::operation::describe_ops_items::_describe_ops_items_output::DescribeOpsItemsOutputBuilder;
           5  +
           6  +
impl crate::operation::describe_ops_items::builders::DescribeOpsItemsInputBuilder {
           7  +
    /// Sends a request with this input using the given client.
           8  +
    pub async fn send_with(
           9  +
        self,
          10  +
        client: &crate::Client,
          11  +
    ) -> ::std::result::Result<
          12  +
        crate::operation::describe_ops_items::DescribeOpsItemsOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::describe_ops_items::DescribeOpsItemsError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.describe_ops_items();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `DescribeOpsItems`.
          24  +
///
          25  +
/// <p>Query a set of OpsItems. You must have permission in Identity and Access Management (IAM) to query a list of OpsItems. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-setup.html">Set up OpsCenter</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
          26  +
/// <p>Operations engineers and IT professionals use Amazon Web Services Systems Manager OpsCenter to view, investigate, and remediate operational issues impacting the performance and health of their Amazon Web Services resources. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter.html">Amazon Web Services Systems Manager OpsCenter</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
          27  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          28  +
pub struct DescribeOpsItemsFluentBuilder {
          29  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          30  +
    inner: crate::operation::describe_ops_items::builders::DescribeOpsItemsInputBuilder,
          31  +
    config_override: ::std::option::Option<crate::config::Builder>,
          32  +
}
          33  +
impl
          34  +
    crate::client::customize::internal::CustomizableSend<
          35  +
        crate::operation::describe_ops_items::DescribeOpsItemsOutput,
          36  +
        crate::operation::describe_ops_items::DescribeOpsItemsError,
          37  +
    > for DescribeOpsItemsFluentBuilder
          38  +
{
          39  +
    fn send(
          40  +
        self,
          41  +
        config_override: crate::config::Builder,
          42  +
    ) -> crate::client::customize::internal::BoxFuture<
          43  +
        crate::client::customize::internal::SendResult<
          44  +
            crate::operation::describe_ops_items::DescribeOpsItemsOutput,
          45  +
            crate::operation::describe_ops_items::DescribeOpsItemsError,
          46  +
        >,
          47  +
    > {
          48  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          49  +
    }
          50  +
}
          51  +
impl DescribeOpsItemsFluentBuilder {
          52  +
    /// Creates a new `DescribeOpsItemsFluentBuilder`.
          53  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          54  +
        Self {
          55  +
            handle,
          56  +
            inner: ::std::default::Default::default(),
          57  +
            config_override: ::std::option::Option::None,
          58  +
        }
          59  +
    }
          60  +
    /// Access the DescribeOpsItems as a reference.
          61  +
    pub fn as_input(&self) -> &crate::operation::describe_ops_items::builders::DescribeOpsItemsInputBuilder {
          62  +
        &self.inner
          63  +
    }
          64  +
    /// Sends the request and returns the response.
          65  +
    ///
          66  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          67  +
    /// can be matched against.
          68  +
    ///
          69  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          70  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          71  +
    /// set when configuring the client.
          72  +
    pub async fn send(
          73  +
        self,
          74  +
    ) -> ::std::result::Result<
          75  +
        crate::operation::describe_ops_items::DescribeOpsItemsOutput,
          76  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          77  +
            crate::operation::describe_ops_items::DescribeOpsItemsError,
          78  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          79  +
        >,
          80  +
    > {
          81  +
        let input = self
          82  +
            .inner
          83  +
            .build()
          84  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          85  +
        let runtime_plugins = crate::operation::describe_ops_items::DescribeOpsItems::operation_runtime_plugins(
          86  +
            self.handle.runtime_plugins.clone(),
          87  +
            &self.handle.conf,
          88  +
            self.config_override,
          89  +
        );
          90  +
        crate::operation::describe_ops_items::DescribeOpsItems::orchestrate(&runtime_plugins, input).await
          91  +
    }
          92  +
          93  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          94  +
    pub fn customize(
          95  +
        self,
          96  +
    ) -> crate::client::customize::CustomizableOperation<
          97  +
        crate::operation::describe_ops_items::DescribeOpsItemsOutput,
          98  +
        crate::operation::describe_ops_items::DescribeOpsItemsError,
          99  +
        Self,
         100  +
    > {
         101  +
        crate::client::customize::CustomizableOperation::new(self)
         102  +
    }
         103  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         104  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         105  +
        self
         106  +
    }
         107  +
         108  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         109  +
        self.config_override = config_override;
         110  +
        self
         111  +
    }
         112  +
    /// Create a paginator for this request
         113  +
    ///
         114  +
    /// Paginators are used by calling [`send().await`](crate::operation::describe_ops_items::paginator::DescribeOpsItemsPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
         115  +
    pub fn into_paginator(self) -> crate::operation::describe_ops_items::paginator::DescribeOpsItemsPaginator {
         116  +
        crate::operation::describe_ops_items::paginator::DescribeOpsItemsPaginator::new(self.handle, self.inner)
         117  +
    }
         118  +
    ///
         119  +
    /// Appends an item to `OpsItemFilters`.
         120  +
    ///
         121  +
    /// To override the contents of this collection use [`set_ops_item_filters`](Self::set_ops_item_filters).
         122  +
    ///
         123  +
    /// <p>One or more filters to limit the response.</p>
         124  +
    /// <ul>
         125  +
    /// <li>
         126  +
    /// <p>Key: CreatedTime</p>
         127  +
    /// <p>Operations: GreaterThan, LessThan</p></li>
         128  +
    /// <li>
         129  +
    /// <p>Key: LastModifiedBy</p>
         130  +
    /// <p>Operations: Contains, Equals</p></li>
         131  +
    /// <li>
         132  +
    /// <p>Key: LastModifiedTime</p>
         133  +
    /// <p>Operations: GreaterThan, LessThan</p></li>
         134  +
    /// <li>
         135  +
    /// <p>Key: Priority</p>
         136  +
    /// <p>Operations: Equals</p></li>
         137  +
    /// <li>
         138  +
    /// <p>Key: Source</p>
         139  +
    /// <p>Operations: Contains, Equals</p></li>
         140  +
    /// <li>
         141  +
    /// <p>Key: Status</p>
         142  +
    /// <p>Operations: Equals</p></li>
         143  +
    /// <li>
         144  +
    /// <p>Key: Title*</p>
         145  +
    /// <p>Operations: Equals,Contains</p></li>
         146  +
    /// <li>
         147  +
    /// <p>Key: OperationalData**</p>
         148  +
    /// <p>Operations: Equals</p></li>
         149  +
    /// <li>
         150  +
    /// <p>Key: OperationalDataKey</p>
         151  +
    /// <p>Operations: Equals</p></li>
         152  +
    /// <li>
         153  +
    /// <p>Key: OperationalDataValue</p>
         154  +
    /// <p>Operations: Equals, Contains</p></li>
         155  +
    /// <li>
         156  +
    /// <p>Key: OpsItemId</p>
         157  +
    /// <p>Operations: Equals</p></li>
         158  +
    /// <li>
         159  +
    /// <p>Key: ResourceId</p>
         160  +
    /// <p>Operations: Contains</p></li>
         161  +
    /// <li>
         162  +
    /// <p>Key: AutomationId</p>
         163  +
    /// <p>Operations: Equals</p></li>
         164  +
    /// <li>
         165  +
    /// <p>Key: AccountId</p>
         166  +
    /// <p>Operations: Equals</p></li>
         167  +
    /// </ul>
         168  +
    /// <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>
         169  +
    /// <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>
         170  +
    pub fn ops_item_filters(mut self, input: crate::types::OpsItemFilter) -> Self {
         171  +
        self.inner = self.inner.ops_item_filters(input);
         172  +
        self
         173  +
    }
         174  +
    /// <p>One or more filters to limit the response.</p>
         175  +
    /// <ul>
         176  +
    /// <li>
         177  +
    /// <p>Key: CreatedTime</p>
         178  +
    /// <p>Operations: GreaterThan, LessThan</p></li>
         179  +
    /// <li>
         180  +
    /// <p>Key: LastModifiedBy</p>
         181  +
    /// <p>Operations: Contains, Equals</p></li>
         182  +
    /// <li>
         183  +
    /// <p>Key: LastModifiedTime</p>
         184  +
    /// <p>Operations: GreaterThan, LessThan</p></li>
         185  +
    /// <li>
         186  +
    /// <p>Key: Priority</p>
         187  +
    /// <p>Operations: Equals</p></li>
         188  +
    /// <li>
         189  +
    /// <p>Key: Source</p>
         190  +
    /// <p>Operations: Contains, Equals</p></li>
         191  +
    /// <li>
         192  +
    /// <p>Key: Status</p>
         193  +
    /// <p>Operations: Equals</p></li>
         194  +
    /// <li>
         195  +
    /// <p>Key: Title*</p>
         196  +
    /// <p>Operations: Equals,Contains</p></li>
         197  +
    /// <li>
         198  +
    /// <p>Key: OperationalData**</p>
         199  +
    /// <p>Operations: Equals</p></li>
         200  +
    /// <li>
         201  +
    /// <p>Key: OperationalDataKey</p>
         202  +
    /// <p>Operations: Equals</p></li>
         203  +
    /// <li>
         204  +
    /// <p>Key: OperationalDataValue</p>
         205  +
    /// <p>Operations: Equals, Contains</p></li>
         206  +
    /// <li>
         207  +
    /// <p>Key: OpsItemId</p>
         208  +
    /// <p>Operations: Equals</p></li>
         209  +
    /// <li>
         210  +
    /// <p>Key: ResourceId</p>
         211  +
    /// <p>Operations: Contains</p></li>
         212  +
    /// <li>
         213  +
    /// <p>Key: AutomationId</p>
         214  +
    /// <p>Operations: Equals</p></li>
         215  +
    /// <li>
         216  +
    /// <p>Key: AccountId</p>
         217  +
    /// <p>Operations: Equals</p></li>
         218  +
    /// </ul>
         219  +
    /// <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>
         220  +
    /// <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>
         221  +
    pub fn set_ops_item_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::OpsItemFilter>>) -> Self {
         222  +
        self.inner = self.inner.set_ops_item_filters(input);
         223  +
        self
         224  +
    }
         225  +
    /// <p>One or more filters to limit the response.</p>
         226  +
    /// <ul>
         227  +
    /// <li>
         228  +
    /// <p>Key: CreatedTime</p>
         229  +
    /// <p>Operations: GreaterThan, LessThan</p></li>
         230  +
    /// <li>
         231  +
    /// <p>Key: LastModifiedBy</p>
         232  +
    /// <p>Operations: Contains, Equals</p></li>
         233  +
    /// <li>
         234  +
    /// <p>Key: LastModifiedTime</p>
         235  +
    /// <p>Operations: GreaterThan, LessThan</p></li>
         236  +
    /// <li>
         237  +
    /// <p>Key: Priority</p>
         238  +
    /// <p>Operations: Equals</p></li>
         239  +
    /// <li>
         240  +
    /// <p>Key: Source</p>
         241  +
    /// <p>Operations: Contains, Equals</p></li>
         242  +
    /// <li>
         243  +
    /// <p>Key: Status</p>
         244  +
    /// <p>Operations: Equals</p></li>
         245  +
    /// <li>
         246  +
    /// <p>Key: Title*</p>
         247  +
    /// <p>Operations: Equals,Contains</p></li>
         248  +
    /// <li>
         249  +
    /// <p>Key: OperationalData**</p>
         250  +
    /// <p>Operations: Equals</p></li>
         251  +
    /// <li>
         252  +
    /// <p>Key: OperationalDataKey</p>
         253  +
    /// <p>Operations: Equals</p></li>
         254  +
    /// <li>
         255  +
    /// <p>Key: OperationalDataValue</p>
         256  +
    /// <p>Operations: Equals, Contains</p></li>
         257  +
    /// <li>
         258  +
    /// <p>Key: OpsItemId</p>
         259  +
    /// <p>Operations: Equals</p></li>
         260  +
    /// <li>
         261  +
    /// <p>Key: ResourceId</p>
         262  +
    /// <p>Operations: Contains</p></li>
         263  +
    /// <li>
         264  +
    /// <p>Key: AutomationId</p>
         265  +
    /// <p>Operations: Equals</p></li>
         266  +
    /// <li>
         267  +
    /// <p>Key: AccountId</p>
         268  +
    /// <p>Operations: Equals</p></li>
         269  +
    /// </ul>
         270  +
    /// <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>
         271  +
    /// <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>
         272  +
    pub fn get_ops_item_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::OpsItemFilter>> {
         273  +
        self.inner.get_ops_item_filters()
         274  +
    }
         275  +
    /// <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>
         276  +
    pub fn max_results(mut self, input: i32) -> Self {
         277  +
        self.inner = self.inner.max_results(input);
         278  +
        self
         279  +
    }
         280  +
    /// <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>
         281  +
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         282  +
        self.inner = self.inner.set_max_results(input);
         283  +
        self
         284  +
    }
         285  +
    /// <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>
         286  +
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         287  +
        self.inner.get_max_results()
         288  +
    }
         289  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
         290  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         291  +
        self.inner = self.inner.next_token(input.into());
         292  +
        self
         293  +
    }
         294  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
         295  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         296  +
        self.inner = self.inner.set_next_token(input);
         297  +
        self
         298  +
    }
         299  +
    /// <p>A token to start the list. Use this token to get the next set of results.</p>
         300  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         301  +
        self.inner.get_next_token()
         302  +
    }
         303  +
}