AWS SDK

AWS SDK

rev. aa190e630077955f0bc8f58dee6a16530c1e0578 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/validate_cloud_connector/_validate_cloud_connector_input.rs

@@ -0,1 +0,222 @@
           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 ValidateCloudConnectorInput {
           6  +
    /// <p>The ID of the cloud connector to validate.</p>
           7  +
    pub cloud_connector_id: ::std::option::Option<::std::string::String>,
           8  +
    /// <p>The maximum number of validation findings to return.</p>
           9  +
    pub max_results: ::std::option::Option<i32>,
          10  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
          11  +
    pub next_token: ::std::option::Option<::std::string::String>,
          12  +
}
          13  +
impl ValidateCloudConnectorInput {
          14  +
    /// <p>The ID of the cloud connector to validate.</p>
          15  +
    pub fn cloud_connector_id(&self) -> ::std::option::Option<&str> {
          16  +
        self.cloud_connector_id.as_deref()
          17  +
    }
          18  +
    /// <p>The maximum number of validation findings to return.</p>
          19  +
    pub fn max_results(&self) -> ::std::option::Option<i32> {
          20  +
        self.max_results
          21  +
    }
          22  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
          23  +
    pub fn next_token(&self) -> ::std::option::Option<&str> {
          24  +
        self.next_token.as_deref()
          25  +
    }
          26  +
}
          27  +
static VALIDATECLOUDCONNECTORINPUT_MEMBER_CLOUD_CONNECTOR_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          28  +
    ::aws_smithy_schema::ShapeId::from_parts(
          29  +
        "com.amazonaws.ssm.synthetic#ValidateCloudConnectorInput$CloudConnectorId",
          30  +
        "com.amazonaws.ssm.synthetic",
          31  +
        "ValidateCloudConnectorInput",
          32  +
    ),
          33  +
    ::aws_smithy_schema::ShapeType::String,
          34  +
    "CloudConnectorId",
          35  +
    0,
          36  +
);
          37  +
static VALIDATECLOUDCONNECTORINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          38  +
    ::aws_smithy_schema::ShapeId::from_parts(
          39  +
        "com.amazonaws.ssm.synthetic#ValidateCloudConnectorInput$MaxResults",
          40  +
        "com.amazonaws.ssm.synthetic",
          41  +
        "ValidateCloudConnectorInput",
          42  +
    ),
          43  +
    ::aws_smithy_schema::ShapeType::Integer,
          44  +
    "MaxResults",
          45  +
    1,
          46  +
);
          47  +
static VALIDATECLOUDCONNECTORINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          48  +
    ::aws_smithy_schema::ShapeId::from_parts(
          49  +
        "com.amazonaws.ssm.synthetic#ValidateCloudConnectorInput$NextToken",
          50  +
        "com.amazonaws.ssm.synthetic",
          51  +
        "ValidateCloudConnectorInput",
          52  +
    ),
          53  +
    ::aws_smithy_schema::ShapeType::String,
          54  +
    "NextToken",
          55  +
    2,
          56  +
);
          57  +
static VALIDATECLOUDCONNECTORINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          58  +
    ::aws_smithy_schema::ShapeId::from_parts(
          59  +
        "com.amazonaws.ssm.synthetic#ValidateCloudConnectorInput",
          60  +
        "com.amazonaws.ssm.synthetic",
          61  +
        "ValidateCloudConnectorInput",
          62  +
    ),
          63  +
    ::aws_smithy_schema::ShapeType::Structure,
          64  +
    &[
          65  +
        &VALIDATECLOUDCONNECTORINPUT_MEMBER_CLOUD_CONNECTOR_ID,
          66  +
        &VALIDATECLOUDCONNECTORINPUT_MEMBER_MAX_RESULTS,
          67  +
        &VALIDATECLOUDCONNECTORINPUT_MEMBER_NEXT_TOKEN,
          68  +
    ],
          69  +
)
          70  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
          71  +
.with_original_name("ValidateCloudConnectorRequest");
          72  +
impl ValidateCloudConnectorInput {
          73  +
    /// The schema for this shape.
          74  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &VALIDATECLOUDCONNECTORINPUT_SCHEMA;
          75  +
}
          76  +
impl ::aws_smithy_schema::serde::SerializableStruct for ValidateCloudConnectorInput {
          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.cloud_connector_id {
          83  +
            ser.write_string(&VALIDATECLOUDCONNECTORINPUT_MEMBER_CLOUD_CONNECTOR_ID, val)?;
          84  +
        }
          85  +
        if let Some(ref val) = self.max_results {
          86  +
            ser.write_integer(&VALIDATECLOUDCONNECTORINPUT_MEMBER_MAX_RESULTS, *val)?;
          87  +
        }
          88  +
        if let Some(ref val) = self.next_token {
          89  +
            ser.write_string(&VALIDATECLOUDCONNECTORINPUT_MEMBER_NEXT_TOKEN, val)?;
          90  +
        }
          91  +
        Ok(())
          92  +
    }
          93  +
}
          94  +
impl ValidateCloudConnectorInput {
          95  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          96  +
    pub fn deserialize(
          97  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          98  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          99  +
        #[allow(unused_variables, unused_mut)]
         100  +
        let mut builder = Self::builder();
         101  +
        #[allow(
         102  +
            unused_variables,
         103  +
            unreachable_code,
         104  +
            clippy::single_match,
         105  +
            clippy::match_single_binding,
         106  +
            clippy::diverging_sub_expression
         107  +
        )]
         108  +
        deserializer.read_struct(&VALIDATECLOUDCONNECTORINPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    if deser.is_null() {
         112  +
                        deser.read_null()?;
         113  +
                    } else {
         114  +
                        builder.cloud_connector_id = Some(deser.read_string(member)?);
         115  +
                    }
         116  +
                }
         117  +
                Some(1) => {
         118  +
                    if deser.is_null() {
         119  +
                        deser.read_null()?;
         120  +
                    } else {
         121  +
                        builder.max_results = Some(deser.read_integer(member)?);
         122  +
                    }
         123  +
                }
         124  +
                Some(2) => {
         125  +
                    if deser.is_null() {
         126  +
                        deser.read_null()?;
         127  +
                    } else {
         128  +
                        builder.next_token = Some(deser.read_string(member)?);
         129  +
                    }
         130  +
                }
         131  +
                _ => {}
         132  +
            }
         133  +
            Ok(())
         134  +
        })?;
         135  +
        builder.cloud_connector_id = builder.cloud_connector_id.or(Some(String::new()));
         136  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         137  +
    }
         138  +
}
         139  +
impl ValidateCloudConnectorInput {
         140  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         141  +
    pub fn deserialize_with_response(
         142  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         143  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         144  +
        _status: u16,
         145  +
        _body: &[u8],
         146  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         147  +
        Self::deserialize(deserializer)
         148  +
    }
         149  +
}
         150  +
impl ValidateCloudConnectorInput {
         151  +
    /// Creates a new builder-style object to manufacture [`ValidateCloudConnectorInput`](crate::operation::validate_cloud_connector::ValidateCloudConnectorInput).
         152  +
    pub fn builder() -> crate::operation::validate_cloud_connector::builders::ValidateCloudConnectorInputBuilder {
         153  +
        crate::operation::validate_cloud_connector::builders::ValidateCloudConnectorInputBuilder::default()
         154  +
    }
         155  +
}
         156  +
         157  +
/// A builder for [`ValidateCloudConnectorInput`](crate::operation::validate_cloud_connector::ValidateCloudConnectorInput).
         158  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         159  +
#[non_exhaustive]
         160  +
pub struct ValidateCloudConnectorInputBuilder {
         161  +
    pub(crate) cloud_connector_id: ::std::option::Option<::std::string::String>,
         162  +
    pub(crate) max_results: ::std::option::Option<i32>,
         163  +
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
         164  +
}
         165  +
impl ValidateCloudConnectorInputBuilder {
         166  +
    /// <p>The ID of the cloud connector to validate.</p>
         167  +
    /// This field is required.
         168  +
    pub fn cloud_connector_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         169  +
        self.cloud_connector_id = ::std::option::Option::Some(input.into());
         170  +
        self
         171  +
    }
         172  +
    /// <p>The ID of the cloud connector to validate.</p>
         173  +
    pub fn set_cloud_connector_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         174  +
        self.cloud_connector_id = input;
         175  +
        self
         176  +
    }
         177  +
    /// <p>The ID of the cloud connector to validate.</p>
         178  +
    pub fn get_cloud_connector_id(&self) -> &::std::option::Option<::std::string::String> {
         179  +
        &self.cloud_connector_id
         180  +
    }
         181  +
    /// <p>The maximum number of validation findings to return.</p>
         182  +
    pub fn max_results(mut self, input: i32) -> Self {
         183  +
        self.max_results = ::std::option::Option::Some(input);
         184  +
        self
         185  +
    }
         186  +
    /// <p>The maximum number of validation findings to return.</p>
         187  +
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         188  +
        self.max_results = input;
         189  +
        self
         190  +
    }
         191  +
    /// <p>The maximum number of validation findings to return.</p>
         192  +
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         193  +
        &self.max_results
         194  +
    }
         195  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         196  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         197  +
        self.next_token = ::std::option::Option::Some(input.into());
         198  +
        self
         199  +
    }
         200  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         201  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         202  +
        self.next_token = input;
         203  +
        self
         204  +
    }
         205  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         206  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         207  +
        &self.next_token
         208  +
    }
         209  +
    /// Consumes the builder and constructs a [`ValidateCloudConnectorInput`](crate::operation::validate_cloud_connector::ValidateCloudConnectorInput).
         210  +
    pub fn build(
         211  +
        self,
         212  +
    ) -> ::std::result::Result<
         213  +
        crate::operation::validate_cloud_connector::ValidateCloudConnectorInput,
         214  +
        ::aws_smithy_types::error::operation::BuildError,
         215  +
    > {
         216  +
        ::std::result::Result::Ok(crate::operation::validate_cloud_connector::ValidateCloudConnectorInput {
         217  +
            cloud_connector_id: self.cloud_connector_id,
         218  +
            max_results: self.max_results,
         219  +
            next_token: self.next_token,
         220  +
        })
         221  +
    }
         222  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/validate_cloud_connector/_validate_cloud_connector_output.rs

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

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

@@ -0,1 +0,159 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::validate_cloud_connector::_validate_cloud_connector_input::ValidateCloudConnectorInputBuilder;
           3  +
           4  +
pub use crate::operation::validate_cloud_connector::_validate_cloud_connector_output::ValidateCloudConnectorOutputBuilder;
           5  +
           6  +
impl crate::operation::validate_cloud_connector::builders::ValidateCloudConnectorInputBuilder {
           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::validate_cloud_connector::ValidateCloudConnectorOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::validate_cloud_connector::ValidateCloudConnectorError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.validate_cloud_connector();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `ValidateCloudConnector`.
          24  +
///
          25  +
/// <p>Validates the configuration and connectivity of a cloud connector.</p>
          26  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          27  +
pub struct ValidateCloudConnectorFluentBuilder {
          28  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          29  +
    inner: crate::operation::validate_cloud_connector::builders::ValidateCloudConnectorInputBuilder,
          30  +
    config_override: ::std::option::Option<crate::config::Builder>,
          31  +
}
          32  +
impl
          33  +
    crate::client::customize::internal::CustomizableSend<
          34  +
        crate::operation::validate_cloud_connector::ValidateCloudConnectorOutput,
          35  +
        crate::operation::validate_cloud_connector::ValidateCloudConnectorError,
          36  +
    > for ValidateCloudConnectorFluentBuilder
          37  +
{
          38  +
    fn send(
          39  +
        self,
          40  +
        config_override: crate::config::Builder,
          41  +
    ) -> crate::client::customize::internal::BoxFuture<
          42  +
        crate::client::customize::internal::SendResult<
          43  +
            crate::operation::validate_cloud_connector::ValidateCloudConnectorOutput,
          44  +
            crate::operation::validate_cloud_connector::ValidateCloudConnectorError,
          45  +
        >,
          46  +
    > {
          47  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          48  +
    }
          49  +
}
          50  +
impl ValidateCloudConnectorFluentBuilder {
          51  +
    /// Creates a new `ValidateCloudConnectorFluentBuilder`.
          52  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          53  +
        Self {
          54  +
            handle,
          55  +
            inner: ::std::default::Default::default(),
          56  +
            config_override: ::std::option::Option::None,
          57  +
        }
          58  +
    }
          59  +
    /// Access the ValidateCloudConnector as a reference.
          60  +
    pub fn as_input(&self) -> &crate::operation::validate_cloud_connector::builders::ValidateCloudConnectorInputBuilder {
          61  +
        &self.inner
          62  +
    }
          63  +
    /// Sends the request and returns the response.
          64  +
    ///
          65  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          66  +
    /// can be matched against.
          67  +
    ///
          68  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          69  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          70  +
    /// set when configuring the client.
          71  +
    pub async fn send(
          72  +
        self,
          73  +
    ) -> ::std::result::Result<
          74  +
        crate::operation::validate_cloud_connector::ValidateCloudConnectorOutput,
          75  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          76  +
            crate::operation::validate_cloud_connector::ValidateCloudConnectorError,
          77  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          78  +
        >,
          79  +
    > {
          80  +
        let input = self
          81  +
            .inner
          82  +
            .build()
          83  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          84  +
        let runtime_plugins = crate::operation::validate_cloud_connector::ValidateCloudConnector::operation_runtime_plugins(
          85  +
            self.handle.runtime_plugins.clone(),
          86  +
            &self.handle.conf,
          87  +
            self.config_override,
          88  +
        );
          89  +
        crate::operation::validate_cloud_connector::ValidateCloudConnector::orchestrate(&runtime_plugins, input).await
          90  +
    }
          91  +
          92  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          93  +
    pub fn customize(
          94  +
        self,
          95  +
    ) -> crate::client::customize::CustomizableOperation<
          96  +
        crate::operation::validate_cloud_connector::ValidateCloudConnectorOutput,
          97  +
        crate::operation::validate_cloud_connector::ValidateCloudConnectorError,
          98  +
        Self,
          99  +
    > {
         100  +
        crate::client::customize::CustomizableOperation::new(self)
         101  +
    }
         102  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         103  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         104  +
        self
         105  +
    }
         106  +
         107  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         108  +
        self.config_override = config_override;
         109  +
        self
         110  +
    }
         111  +
    /// Create a paginator for this request
         112  +
    ///
         113  +
    /// Paginators are used by calling [`send().await`](crate::operation::validate_cloud_connector::paginator::ValidateCloudConnectorPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
         114  +
    pub fn into_paginator(self) -> crate::operation::validate_cloud_connector::paginator::ValidateCloudConnectorPaginator {
         115  +
        crate::operation::validate_cloud_connector::paginator::ValidateCloudConnectorPaginator::new(self.handle, self.inner)
         116  +
    }
         117  +
    /// <p>The ID of the cloud connector to validate.</p>
         118  +
    pub fn cloud_connector_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         119  +
        self.inner = self.inner.cloud_connector_id(input.into());
         120  +
        self
         121  +
    }
         122  +
    /// <p>The ID of the cloud connector to validate.</p>
         123  +
    pub fn set_cloud_connector_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         124  +
        self.inner = self.inner.set_cloud_connector_id(input);
         125  +
        self
         126  +
    }
         127  +
    /// <p>The ID of the cloud connector to validate.</p>
         128  +
    pub fn get_cloud_connector_id(&self) -> &::std::option::Option<::std::string::String> {
         129  +
        self.inner.get_cloud_connector_id()
         130  +
    }
         131  +
    /// <p>The maximum number of validation findings to return.</p>
         132  +
    pub fn max_results(mut self, input: i32) -> Self {
         133  +
        self.inner = self.inner.max_results(input);
         134  +
        self
         135  +
    }
         136  +
    /// <p>The maximum number of validation findings to return.</p>
         137  +
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         138  +
        self.inner = self.inner.set_max_results(input);
         139  +
        self
         140  +
    }
         141  +
    /// <p>The maximum number of validation findings to return.</p>
         142  +
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         143  +
        self.inner.get_max_results()
         144  +
    }
         145  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         146  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         147  +
        self.inner = self.inner.next_token(input.into());
         148  +
        self
         149  +
    }
         150  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         151  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         152  +
        self.inner = self.inner.set_next_token(input);
         153  +
        self
         154  +
    }
         155  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         156  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         157  +
        self.inner.get_next_token()
         158  +
    }
         159  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/validate_cloud_connector/paginator.rs

@@ -0,1 +0,149 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// Paginator for [`ValidateCloudConnector`](crate::operation::validate_cloud_connector::ValidateCloudConnector)
           3  +
pub struct ValidateCloudConnectorPaginator {
           4  +
    handle: std::sync::Arc<crate::client::Handle>,
           5  +
    builder: crate::operation::validate_cloud_connector::builders::ValidateCloudConnectorInputBuilder,
           6  +
    stop_on_duplicate_token: bool,
           7  +
}
           8  +
           9  +
impl ValidateCloudConnectorPaginator {
          10  +
    /// Create a new paginator-wrapper
          11  +
    pub(crate) fn new(
          12  +
        handle: std::sync::Arc<crate::client::Handle>,
          13  +
        builder: crate::operation::validate_cloud_connector::builders::ValidateCloudConnectorInputBuilder,
          14  +
    ) -> Self {
          15  +
        Self {
          16  +
            handle,
          17  +
            builder,
          18  +
            stop_on_duplicate_token: true,
          19  +
        }
          20  +
    }
          21  +
          22  +
    /// Set the page size
          23  +
    ///
          24  +
    /// _Note: this method will override any previously set value for `max_results`_
          25  +
    pub fn page_size(mut self, limit: i32) -> Self {
          26  +
        self.builder.max_results = ::std::option::Option::Some(limit);
          27  +
        self
          28  +
    }
          29  +
          30  +
    /// Create a flattened paginator
          31  +
    ///
          32  +
    /// This paginator automatically flattens results using `validation_findings`. Queries to the underlying service
          33  +
    /// are dispatched lazily.
          34  +
    pub fn items(self) -> crate::operation::validate_cloud_connector::paginator::ValidateCloudConnectorPaginatorItems {
          35  +
        crate::operation::validate_cloud_connector::paginator::ValidateCloudConnectorPaginatorItems(self)
          36  +
    }
          37  +
          38  +
    /// Stop paginating when the service returns the same pagination token twice in a row.
          39  +
    ///
          40  +
    /// Defaults to true.
          41  +
    ///
          42  +
    /// For certain operations, it may be useful to continue on duplicate token. For example,
          43  +
    /// if an operation is for tailing a log file in real-time, then continuing may be desired.
          44  +
    /// This option can be set to `false` to accommodate these use cases.
          45  +
    pub fn stop_on_duplicate_token(mut self, stop_on_duplicate_token: bool) -> Self {
          46  +
        self.stop_on_duplicate_token = stop_on_duplicate_token;
          47  +
        self
          48  +
    }
          49  +
          50  +
    /// Create the pagination stream
          51  +
    ///
          52  +
    /// _Note:_ No requests will be dispatched until the stream is used
          53  +
    /// (e.g. with the [`.next().await`](aws_smithy_async::future::pagination_stream::PaginationStream::next) method).
          54  +
    pub fn send(
          55  +
        self,
          56  +
    ) -> ::aws_smithy_async::future::pagination_stream::PaginationStream<
          57  +
        ::std::result::Result<
          58  +
            crate::operation::validate_cloud_connector::ValidateCloudConnectorOutput,
          59  +
            ::aws_smithy_runtime_api::client::result::SdkError<
          60  +
                crate::operation::validate_cloud_connector::ValidateCloudConnectorError,
          61  +
                ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          62  +
            >,
          63  +
        >,
          64  +
    > {
          65  +
        // Move individual fields out of self for the borrow checker
          66  +
        let builder = self.builder;
          67  +
        let handle = self.handle;
          68  +
        let runtime_plugins = crate::operation::validate_cloud_connector::ValidateCloudConnector::operation_runtime_plugins(
          69  +
            handle.runtime_plugins.clone(),
          70  +
            &handle.conf,
          71  +
            ::std::option::Option::None,
          72  +
        )
          73  +
        .with_operation_plugin(crate::sdk_feature_tracker::paginator::PaginatorFeatureTrackerRuntimePlugin::new());
          74  +
        ::aws_smithy_async::future::pagination_stream::PaginationStream::new(::aws_smithy_async::future::pagination_stream::fn_stream::FnStream::new(
          75  +
            move |tx| {
          76  +
                ::std::boxed::Box::pin(async move {
          77  +
                    // Build the input for the first time. If required fields are missing, this is where we'll produce an early error.
          78  +
                    let mut input = match builder
          79  +
                        .build()
          80  +
                        .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)
          81  +
                    {
          82  +
                        ::std::result::Result::Ok(input) => input,
          83  +
                        ::std::result::Result::Err(e) => {
          84  +
                            let _ = tx.send(::std::result::Result::Err(e)).await;
          85  +
                            return;
          86  +
                        }
          87  +
                    };
          88  +
                    loop {
          89  +
                        let resp =
          90  +
                            crate::operation::validate_cloud_connector::ValidateCloudConnector::orchestrate(&runtime_plugins, input.clone()).await;
          91  +
                        // If the input member is None or it was an error
          92  +
                        let done = match resp {
          93  +
                            ::std::result::Result::Ok(ref resp) => {
          94  +
                                let new_token = crate::lens::reflens_validate_cloud_connector_output_output_next_token(resp);
          95  +
                                // Pagination is exhausted when the next token is an empty string
          96  +
                                let is_empty = new_token.map(|token| token.is_empty()).unwrap_or(true);
          97  +
                                if !is_empty && new_token == input.next_token.as_ref() && self.stop_on_duplicate_token {
          98  +
                                    true
          99  +
                                } else {
         100  +
                                    input.next_token = new_token.cloned();
         101  +
                                    is_empty
         102  +
                                }
         103  +
                            }
         104  +
                            ::std::result::Result::Err(_) => true,
         105  +
                        };
         106  +
                        if tx.send(resp).await.is_err() {
         107  +
                            // receiving end was dropped
         108  +
                            return;
         109  +
                        }
         110  +
                        if done {
         111  +
                            return;
         112  +
                        }
         113  +
                    }
         114  +
                })
         115  +
            },
         116  +
        ))
         117  +
    }
         118  +
}
         119  +
         120  +
/// Flattened paginator for `ValidateCloudConnectorPaginator`
         121  +
///
         122  +
/// This is created with [`.items()`](ValidateCloudConnectorPaginator::items)
         123  +
pub struct ValidateCloudConnectorPaginatorItems(ValidateCloudConnectorPaginator);
         124  +
         125  +
impl ValidateCloudConnectorPaginatorItems {
         126  +
    /// Create the pagination stream
         127  +
    ///
         128  +
    /// _Note_: No requests will be dispatched until the stream is used
         129  +
    /// (e.g. with the [`.next().await`](aws_smithy_async::future::pagination_stream::PaginationStream::next) method).
         130  +
    ///
         131  +
    /// To read the entirety of the paginator, use [`.collect::<Result<Vec<_>, _>()`](aws_smithy_async::future::pagination_stream::PaginationStream::collect).
         132  +
    pub fn send(
         133  +
        self,
         134  +
    ) -> ::aws_smithy_async::future::pagination_stream::PaginationStream<
         135  +
        ::std::result::Result<
         136  +
            crate::types::ValidationFinding,
         137  +
            ::aws_smithy_runtime_api::client::result::SdkError<
         138  +
                crate::operation::validate_cloud_connector::ValidateCloudConnectorError,
         139  +
                ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         140  +
            >,
         141  +
        >,
         142  +
    > {
         143  +
        ::aws_smithy_async::future::pagination_stream::TryFlatMap::new(self.0.send()).flat_map(|page| {
         144  +
            crate::lens::lens_validate_cloud_connector_output_output_validation_findings(page)
         145  +
                .unwrap_or_default()
         146  +
                .into_iter()
         147  +
        })
         148  +
    }
         149  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/primitives.rs

@@ -0,1 +0,9 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use ::aws_smithy_types::date_time::Format as DateTimeFormat;
           3  +
pub use ::aws_smithy_types::Blob;
           4  +
pub use ::aws_smithy_types::DateTime;
           5  +
           6  +
/// Event stream related primitives such as `Message` or `Header`.
           7  +
pub mod event_stream;
           8  +
           9  +
pub(crate) mod sealed_enum_unknown;

tmp-codegen-diff/aws-sdk/sdk/ssm/src/primitives/event_stream.rs

@@ -0,1 +0,1 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

tmp-codegen-diff/aws-sdk/sdk/ssm/src/primitives/sealed_enum_unknown.rs

@@ -0,1 +0,21 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
           3  +
/// Opaque struct used as inner data for the `Unknown` variant defined in enums in
           4  +
/// the crate.
           5  +
///
           6  +
/// This is not intended to be used directly.
           7  +
#[non_exhaustive]
           8  +
#[derive(
           9  +
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash,
          10  +
)]
          11  +
pub struct UnknownVariantValue(pub(crate) ::std::string::String);
          12  +
impl UnknownVariantValue {
          13  +
    pub(crate) fn as_str(&self) -> &str {
          14  +
        &self.0
          15  +
    }
          16  +
}
          17  +
impl ::std::fmt::Display for UnknownVariantValue {
          18  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
          19  +
        write!(f, "{}", self.0)
          20  +
    }
          21  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/sdk_feature_tracker.rs

@@ -0,1 +0,202 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/*
           3  +
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
           4  +
 * SPDX-License-Identifier: Apache-2.0
           5  +
 */
           6  +
           7  +
#[allow(dead_code)]
           8  +
pub(crate) mod rpc_v2_cbor {
           9  +
    use aws_smithy_runtime::client::sdk_feature::SmithySdkFeature;
          10  +
    use aws_smithy_runtime_api::box_error::BoxError;
          11  +
    use aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextMut;
          12  +
    use aws_smithy_runtime_api::client::interceptors::{dyn_dispatch_hint, Intercept};
          13  +
    use aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
          14  +
    use aws_smithy_types::config_bag::ConfigBag;
          15  +
          16  +
    #[derive(Debug)]
          17  +
    pub(crate) struct RpcV2CborFeatureTrackerInterceptor;
          18  +
          19  +
    impl RpcV2CborFeatureTrackerInterceptor {
          20  +
        pub(crate) fn new() -> Self {
          21  +
            Self
          22  +
        }
          23  +
    }
          24  +
          25  +
    #[dyn_dispatch_hint]
          26  +
    impl Intercept for RpcV2CborFeatureTrackerInterceptor {
          27  +
        fn name(&self) -> &'static str {
          28  +
            "RpcV2CborFeatureTrackerInterceptor"
          29  +
        }
          30  +
          31  +
        fn modify_before_serialization(
          32  +
            &self,
          33  +
            _context: &mut BeforeSerializationInterceptorContextMut<'_>,
          34  +
            _runtime_components: &RuntimeComponents,
          35  +
            cfg: &mut ConfigBag,
          36  +
        ) -> Result<(), BoxError> {
          37  +
            cfg.interceptor_state()
          38  +
                .store_append::<SmithySdkFeature>(SmithySdkFeature::ProtocolRpcV2Cbor);
          39  +
            Ok(())
          40  +
        }
          41  +
    }
          42  +
}
          43  +
          44  +
#[allow(dead_code)]
          45  +
pub(crate) mod paginator {
          46  +
    use aws_smithy_runtime::client::sdk_feature::SmithySdkFeature;
          47  +
    use aws_smithy_runtime_api::box_error::BoxError;
          48  +
    use aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextMut;
          49  +
    use aws_smithy_runtime_api::client::interceptors::{dyn_dispatch_hint, Intercept, SharedInterceptor};
          50  +
    use aws_smithy_runtime_api::client::runtime_components::{RuntimeComponents, RuntimeComponentsBuilder};
          51  +
    use aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin;
          52  +
    use aws_smithy_types::config_bag::ConfigBag;
          53  +
    use std::borrow::Cow;
          54  +
          55  +
    #[derive(Debug)]
          56  +
    struct PaginatorFeatureTrackerInterceptor;
          57  +
          58  +
    impl PaginatorFeatureTrackerInterceptor {
          59  +
        pub(crate) fn new() -> Self {
          60  +
            Self
          61  +
        }
          62  +
    }
          63  +
          64  +
    #[dyn_dispatch_hint]
          65  +
    impl Intercept for PaginatorFeatureTrackerInterceptor {
          66  +
        fn name(&self) -> &'static str {
          67  +
            "PaginatorFeatureTrackerInterceptor"
          68  +
        }
          69  +
          70  +
        fn modify_before_serialization(
          71  +
            &self,
          72  +
            _context: &mut BeforeSerializationInterceptorContextMut<'_>,
          73  +
            _runtime_components: &RuntimeComponents,
          74  +
            cfg: &mut ConfigBag,
          75  +
        ) -> Result<(), BoxError> {
          76  +
            cfg.interceptor_state().store_append::<SmithySdkFeature>(SmithySdkFeature::Paginator);
          77  +
            Ok(())
          78  +
        }
          79  +
    }
          80  +
          81  +
    #[derive(Debug)]
          82  +
    pub(crate) struct PaginatorFeatureTrackerRuntimePlugin {
          83  +
        runtime_components: RuntimeComponentsBuilder,
          84  +
    }
          85  +
          86  +
    impl PaginatorFeatureTrackerRuntimePlugin {
          87  +
        pub(crate) fn new() -> Self {
          88  +
            Self {
          89  +
                runtime_components: RuntimeComponentsBuilder::new("PaginatorFeatureTrackerRuntimePlugin")
          90  +
                    .with_interceptor(SharedInterceptor::permanent(PaginatorFeatureTrackerInterceptor::new())),
          91  +
            }
          92  +
        }
          93  +
    }
          94  +
          95  +
    impl RuntimePlugin for PaginatorFeatureTrackerRuntimePlugin {
          96  +
        fn runtime_components(&self, _: &RuntimeComponentsBuilder) -> Cow<'_, RuntimeComponentsBuilder> {
          97  +
            Cow::Borrowed(&self.runtime_components)
          98  +
        }
          99  +
    }
         100  +
}
         101  +
         102  +
#[allow(dead_code)]
         103  +
pub(crate) mod waiter {
         104  +
    use aws_smithy_runtime::client::sdk_feature::SmithySdkFeature;
         105  +
    use aws_smithy_runtime_api::box_error::BoxError;
         106  +
    use aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextMut;
         107  +
    use aws_smithy_runtime_api::client::interceptors::{dyn_dispatch_hint, Intercept, SharedInterceptor};
         108  +
    use aws_smithy_runtime_api::client::runtime_components::{RuntimeComponents, RuntimeComponentsBuilder};
         109  +
    use aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin;
         110  +
    use aws_smithy_types::config_bag::ConfigBag;
         111  +
    use std::borrow::Cow;
         112  +
         113  +
    #[derive(Debug)]
         114  +
    struct WaiterFeatureTrackerInterceptor;
         115  +
         116  +
    impl WaiterFeatureTrackerInterceptor {
         117  +
        pub(crate) fn new() -> Self {
         118  +
            Self
         119  +
        }
         120  +
    }
         121  +
         122  +
    #[dyn_dispatch_hint]
         123  +
    impl Intercept for WaiterFeatureTrackerInterceptor {
         124  +
        fn name(&self) -> &'static str {
         125  +
            "WaiterFeatureTrackerInterceptor"
         126  +
        }
         127  +
         128  +
        fn modify_before_serialization(
         129  +
            &self,
         130  +
            _context: &mut BeforeSerializationInterceptorContextMut<'_>,
         131  +
            _runtime_components: &RuntimeComponents,
         132  +
            cfg: &mut ConfigBag,
         133  +
        ) -> Result<(), BoxError> {
         134  +
            cfg.interceptor_state().store_append::<SmithySdkFeature>(SmithySdkFeature::Waiter);
         135  +
            Ok(())
         136  +
        }
         137  +
    }
         138  +
         139  +
    #[derive(Debug)]
         140  +
    pub(crate) struct WaiterFeatureTrackerRuntimePlugin {
         141  +
        runtime_components: RuntimeComponentsBuilder,
         142  +
    }
         143  +
         144  +
    impl WaiterFeatureTrackerRuntimePlugin {
         145  +
        pub(crate) fn new() -> Self {
         146  +
            Self {
         147  +
                runtime_components: RuntimeComponentsBuilder::new("WaiterFeatureTrackerRuntimePlugin")
         148  +
                    .with_interceptor(SharedInterceptor::permanent(WaiterFeatureTrackerInterceptor::new())),
         149  +
            }
         150  +
        }
         151  +
    }
         152  +
         153  +
    impl RuntimePlugin for WaiterFeatureTrackerRuntimePlugin {
         154  +
        fn runtime_components(&self, _: &RuntimeComponentsBuilder) -> Cow<'_, RuntimeComponentsBuilder> {
         155  +
            Cow::Borrowed(&self.runtime_components)
         156  +
        }
         157  +
    }
         158  +
}
         159  +
         160  +
#[allow(dead_code)]
         161  +
pub(crate) mod retry_mode {
         162  +
    use aws_smithy_runtime::client::sdk_feature::SmithySdkFeature;
         163  +
    use aws_smithy_runtime_api::box_error::BoxError;
         164  +
    use aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef;
         165  +
    use aws_smithy_runtime_api::client::interceptors::{dyn_dispatch_hint, Intercept};
         166  +
    use aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
         167  +
    use aws_smithy_types::config_bag::ConfigBag;
         168  +
    use aws_smithy_types::retry::{RetryConfig, RetryMode};
         169  +
         170  +
    #[derive(Debug)]
         171  +
    pub(crate) struct RetryModeFeatureTrackerInterceptor;
         172  +
         173  +
    impl RetryModeFeatureTrackerInterceptor {
         174  +
        pub(crate) fn new() -> Self {
         175  +
            Self
         176  +
        }
         177  +
    }
         178  +
         179  +
    #[dyn_dispatch_hint]
         180  +
    impl Intercept for RetryModeFeatureTrackerInterceptor {
         181  +
        fn name(&self) -> &'static str {
         182  +
            "RetryModeFeatureTrackerInterceptor"
         183  +
        }
         184  +
         185  +
        fn read_before_serialization(
         186  +
            &self,
         187  +
            _context: &BeforeSerializationInterceptorContextRef<'_>,
         188  +
            _runtime_components: &RuntimeComponents,
         189  +
            cfg: &mut ConfigBag,
         190  +
        ) -> Result<(), BoxError> {
         191  +
            cfg.load::<RetryConfig>()
         192  +
                .map(|retry_config| match retry_config.mode() {
         193  +
                    RetryMode::Standard => SmithySdkFeature::RetryModeStandard,
         194  +
                    RetryMode::Adaptive => SmithySdkFeature::RetryModeAdaptive,
         195  +
                    _ => unreachable!("retry mode must be standard or adaptive"),
         196  +
                })
         197  +
                .map(|feature| cfg.interceptor_state().store_append::<SmithySdkFeature>(feature));
         198  +
         199  +
            Ok(())
         200  +
        }
         201  +
    }
         202  +
}