AWS SDK

AWS SDK

rev. 2915cec5ef64cb1ed4992565a748d76a11505b3b (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/describe_patch_group_state/_describe_patch_group_state_input.rs

@@ -0,1 +0,134 @@
           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 DescribePatchGroupStateInput {
           6  +
    /// <p>The name of the patch group whose patch snapshot should be retrieved.</p>
           7  +
    pub patch_group: ::std::option::Option<::std::string::String>,
           8  +
}
           9  +
impl DescribePatchGroupStateInput {
          10  +
    /// <p>The name of the patch group whose patch snapshot should be retrieved.</p>
          11  +
    pub fn patch_group(&self) -> ::std::option::Option<&str> {
          12  +
        self.patch_group.as_deref()
          13  +
    }
          14  +
}
          15  +
static DESCRIBEPATCHGROUPSTATEINPUT_MEMBER_PATCH_GROUP: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          16  +
    ::aws_smithy_schema::ShapeId::from_parts(
          17  +
        "com.amazonaws.ssm.synthetic#DescribePatchGroupStateInput$PatchGroup",
          18  +
        "com.amazonaws.ssm.synthetic",
          19  +
        "DescribePatchGroupStateInput",
          20  +
    ),
          21  +
    ::aws_smithy_schema::ShapeType::String,
          22  +
    "PatchGroup",
          23  +
    0,
          24  +
);
          25  +
static DESCRIBEPATCHGROUPSTATEINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          26  +
    ::aws_smithy_schema::ShapeId::from_parts(
          27  +
        "com.amazonaws.ssm.synthetic#DescribePatchGroupStateInput",
          28  +
        "com.amazonaws.ssm.synthetic",
          29  +
        "DescribePatchGroupStateInput",
          30  +
    ),
          31  +
    ::aws_smithy_schema::ShapeType::Structure,
          32  +
    &[&DESCRIBEPATCHGROUPSTATEINPUT_MEMBER_PATCH_GROUP],
          33  +
)
          34  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
          35  +
.with_original_name("DescribePatchGroupStateRequest");
          36  +
impl DescribePatchGroupStateInput {
          37  +
    /// The schema for this shape.
          38  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DESCRIBEPATCHGROUPSTATEINPUT_SCHEMA;
          39  +
}
          40  +
impl ::aws_smithy_schema::serde::SerializableStruct for DescribePatchGroupStateInput {
          41  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          42  +
    fn serialize_members(
          43  +
        &self,
          44  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          45  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          46  +
        if let Some(ref val) = self.patch_group {
          47  +
            ser.write_string(&DESCRIBEPATCHGROUPSTATEINPUT_MEMBER_PATCH_GROUP, val)?;
          48  +
        }
          49  +
        Ok(())
          50  +
    }
          51  +
}
          52  +
impl DescribePatchGroupStateInput {
          53  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          54  +
    pub fn deserialize(
          55  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          56  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          57  +
        #[allow(unused_variables, unused_mut)]
          58  +
        let mut builder = Self::builder();
          59  +
        #[allow(
          60  +
            unused_variables,
          61  +
            unreachable_code,
          62  +
            clippy::single_match,
          63  +
            clippy::match_single_binding,
          64  +
            clippy::diverging_sub_expression
          65  +
        )]
          66  +
        deserializer.read_struct(&DESCRIBEPATCHGROUPSTATEINPUT_SCHEMA, &mut |member, deser| {
          67  +
            match member.member_index() {
          68  +
                Some(0) => {
          69  +
                    if deser.is_null() {
          70  +
                        deser.read_null()?;
          71  +
                    } else {
          72  +
                        builder.patch_group = Some(deser.read_string(member)?);
          73  +
                    }
          74  +
                }
          75  +
                _ => {}
          76  +
            }
          77  +
            Ok(())
          78  +
        })?;
          79  +
        builder.patch_group = builder.patch_group.or(Some(String::new()));
          80  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
          81  +
    }
          82  +
}
          83  +
impl DescribePatchGroupStateInput {
          84  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          85  +
    pub fn deserialize_with_response(
          86  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          87  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          88  +
        _status: u16,
          89  +
        _body: &[u8],
          90  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          91  +
        Self::deserialize(deserializer)
          92  +
    }
          93  +
}
          94  +
impl DescribePatchGroupStateInput {
          95  +
    /// Creates a new builder-style object to manufacture [`DescribePatchGroupStateInput`](crate::operation::describe_patch_group_state::DescribePatchGroupStateInput).
          96  +
    pub fn builder() -> crate::operation::describe_patch_group_state::builders::DescribePatchGroupStateInputBuilder {
          97  +
        crate::operation::describe_patch_group_state::builders::DescribePatchGroupStateInputBuilder::default()
          98  +
    }
          99  +
}
         100  +
         101  +
/// A builder for [`DescribePatchGroupStateInput`](crate::operation::describe_patch_group_state::DescribePatchGroupStateInput).
         102  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         103  +
#[non_exhaustive]
         104  +
pub struct DescribePatchGroupStateInputBuilder {
         105  +
    pub(crate) patch_group: ::std::option::Option<::std::string::String>,
         106  +
}
         107  +
impl DescribePatchGroupStateInputBuilder {
         108  +
    /// <p>The name of the patch group whose patch snapshot should be retrieved.</p>
         109  +
    /// This field is required.
         110  +
    pub fn patch_group(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         111  +
        self.patch_group = ::std::option::Option::Some(input.into());
         112  +
        self
         113  +
    }
         114  +
    /// <p>The name of the patch group whose patch snapshot should be retrieved.</p>
         115  +
    pub fn set_patch_group(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         116  +
        self.patch_group = input;
         117  +
        self
         118  +
    }
         119  +
    /// <p>The name of the patch group whose patch snapshot should be retrieved.</p>
         120  +
    pub fn get_patch_group(&self) -> &::std::option::Option<::std::string::String> {
         121  +
        &self.patch_group
         122  +
    }
         123  +
    /// Consumes the builder and constructs a [`DescribePatchGroupStateInput`](crate::operation::describe_patch_group_state::DescribePatchGroupStateInput).
         124  +
    pub fn build(
         125  +
        self,
         126  +
    ) -> ::std::result::Result<
         127  +
        crate::operation::describe_patch_group_state::DescribePatchGroupStateInput,
         128  +
        ::aws_smithy_types::error::operation::BuildError,
         129  +
    > {
         130  +
        ::std::result::Result::Ok(crate::operation::describe_patch_group_state::DescribePatchGroupStateInput {
         131  +
            patch_group: self.patch_group,
         132  +
        })
         133  +
    }
         134  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/describe_patch_group_state/_describe_patch_group_state_output.rs

@@ -0,1 +0,753 @@
           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 DescribePatchGroupStateOutput {
           6  +
    /// <p>The number of managed nodes in the patch group.</p>
           7  +
    pub instances: i32,
           8  +
    /// <p>The number of managed nodes with installed patches.</p>
           9  +
    pub instances_with_installed_patches: i32,
          10  +
    /// <p>The number of managed nodes with patches installed that aren't defined in the patch baseline.</p>
          11  +
    pub instances_with_installed_other_patches: i32,
          12  +
    /// <p>The number of managed nodes with patches installed by Patch Manager that haven't been rebooted after the patch installation. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
          13  +
    pub instances_with_installed_pending_reboot_patches: ::std::option::Option<i32>,
          14  +
    /// <p>The number of managed nodes with patches installed that are specified in a <code>RejectedPatches</code> list. Patches with a status of <code>INSTALLED_REJECTED</code> were typically installed before they were added to a <code>RejectedPatches</code> list.</p><note>
          15  +
    /// <p>If <code>ALLOW_AS_DEPENDENCY</code> is the specified option for <code>RejectedPatchesAction</code>, the value of <code>InstancesWithInstalledRejectedPatches</code> will always be <code>0</code> (zero).</p>
          16  +
    /// </note>
          17  +
    pub instances_with_installed_rejected_patches: ::std::option::Option<i32>,
          18  +
    /// <p>The number of managed nodes with missing patches from the patch baseline.</p>
          19  +
    pub instances_with_missing_patches: i32,
          20  +
    /// <p>The number of managed nodes with patches from the patch baseline that failed to install.</p>
          21  +
    pub instances_with_failed_patches: i32,
          22  +
    /// <p>The number of managed nodes with patches that aren't applicable.</p>
          23  +
    pub instances_with_not_applicable_patches: i32,
          24  +
    /// <p>The number of managed nodes with <code>NotApplicable</code> patches beyond the supported limit, which aren't reported by name to Inventory. Inventory is a tool in Amazon Web Services Systems Manager.</p>
          25  +
    pub instances_with_unreported_not_applicable_patches: ::std::option::Option<i32>,
          26  +
    /// <p>The number of managed nodes where patches that are specified as <code>Critical</code> for compliance reporting in the patch baseline aren't installed. These patches might be missing, have failed installation, were rejected, or were installed but awaiting a required managed node reboot. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
          27  +
    pub instances_with_critical_non_compliant_patches: ::std::option::Option<i32>,
          28  +
    /// <p>The number of managed nodes where patches that are specified as <code>Security</code> in a patch advisory aren't installed. These patches might be missing, have failed installation, were rejected, or were installed but awaiting a required managed node reboot. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
          29  +
    pub instances_with_security_non_compliant_patches: ::std::option::Option<i32>,
          30  +
    /// <p>The number of managed nodes with patches installed that are specified as other than <code>Critical</code> or <code>Security</code> but aren't compliant with the patch baseline. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
          31  +
    pub instances_with_other_non_compliant_patches: ::std::option::Option<i32>,
          32  +
    /// <p>The number of managed nodes for which security-related patches are available but not approved because because they didn't meet the patch baseline requirements. For example, an updated version of a patch might have been released before the specified auto-approval period was over.</p>
          33  +
    /// <p>Applies to Windows Server managed nodes only.</p>
          34  +
    pub instances_with_available_security_updates: ::std::option::Option<i32>,
          35  +
    _request_id: Option<String>,
          36  +
}
          37  +
impl DescribePatchGroupStateOutput {
          38  +
    /// <p>The number of managed nodes in the patch group.</p>
          39  +
    pub fn instances(&self) -> i32 {
          40  +
        self.instances
          41  +
    }
          42  +
    /// <p>The number of managed nodes with installed patches.</p>
          43  +
    pub fn instances_with_installed_patches(&self) -> i32 {
          44  +
        self.instances_with_installed_patches
          45  +
    }
          46  +
    /// <p>The number of managed nodes with patches installed that aren't defined in the patch baseline.</p>
          47  +
    pub fn instances_with_installed_other_patches(&self) -> i32 {
          48  +
        self.instances_with_installed_other_patches
          49  +
    }
          50  +
    /// <p>The number of managed nodes with patches installed by Patch Manager that haven't been rebooted after the patch installation. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
          51  +
    pub fn instances_with_installed_pending_reboot_patches(&self) -> ::std::option::Option<i32> {
          52  +
        self.instances_with_installed_pending_reboot_patches
          53  +
    }
          54  +
    /// <p>The number of managed nodes with patches installed that are specified in a <code>RejectedPatches</code> list. Patches with a status of <code>INSTALLED_REJECTED</code> were typically installed before they were added to a <code>RejectedPatches</code> list.</p><note>
          55  +
    /// <p>If <code>ALLOW_AS_DEPENDENCY</code> is the specified option for <code>RejectedPatchesAction</code>, the value of <code>InstancesWithInstalledRejectedPatches</code> will always be <code>0</code> (zero).</p>
          56  +
    /// </note>
          57  +
    pub fn instances_with_installed_rejected_patches(&self) -> ::std::option::Option<i32> {
          58  +
        self.instances_with_installed_rejected_patches
          59  +
    }
          60  +
    /// <p>The number of managed nodes with missing patches from the patch baseline.</p>
          61  +
    pub fn instances_with_missing_patches(&self) -> i32 {
          62  +
        self.instances_with_missing_patches
          63  +
    }
          64  +
    /// <p>The number of managed nodes with patches from the patch baseline that failed to install.</p>
          65  +
    pub fn instances_with_failed_patches(&self) -> i32 {
          66  +
        self.instances_with_failed_patches
          67  +
    }
          68  +
    /// <p>The number of managed nodes with patches that aren't applicable.</p>
          69  +
    pub fn instances_with_not_applicable_patches(&self) -> i32 {
          70  +
        self.instances_with_not_applicable_patches
          71  +
    }
          72  +
    /// <p>The number of managed nodes with <code>NotApplicable</code> patches beyond the supported limit, which aren't reported by name to Inventory. Inventory is a tool in Amazon Web Services Systems Manager.</p>
          73  +
    pub fn instances_with_unreported_not_applicable_patches(&self) -> ::std::option::Option<i32> {
          74  +
        self.instances_with_unreported_not_applicable_patches
          75  +
    }
          76  +
    /// <p>The number of managed nodes where patches that are specified as <code>Critical</code> for compliance reporting in the patch baseline aren't installed. These patches might be missing, have failed installation, were rejected, or were installed but awaiting a required managed node reboot. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
          77  +
    pub fn instances_with_critical_non_compliant_patches(&self) -> ::std::option::Option<i32> {
          78  +
        self.instances_with_critical_non_compliant_patches
          79  +
    }
          80  +
    /// <p>The number of managed nodes where patches that are specified as <code>Security</code> in a patch advisory aren't installed. These patches might be missing, have failed installation, were rejected, or were installed but awaiting a required managed node reboot. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
          81  +
    pub fn instances_with_security_non_compliant_patches(&self) -> ::std::option::Option<i32> {
          82  +
        self.instances_with_security_non_compliant_patches
          83  +
    }
          84  +
    /// <p>The number of managed nodes with patches installed that are specified as other than <code>Critical</code> or <code>Security</code> but aren't compliant with the patch baseline. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
          85  +
    pub fn instances_with_other_non_compliant_patches(&self) -> ::std::option::Option<i32> {
          86  +
        self.instances_with_other_non_compliant_patches
          87  +
    }
          88  +
    /// <p>The number of managed nodes for which security-related patches are available but not approved because because they didn't meet the patch baseline requirements. For example, an updated version of a patch might have been released before the specified auto-approval period was over.</p>
          89  +
    /// <p>Applies to Windows Server managed nodes only.</p>
          90  +
    pub fn instances_with_available_security_updates(&self) -> ::std::option::Option<i32> {
          91  +
        self.instances_with_available_security_updates
          92  +
    }
          93  +
}
          94  +
static DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          95  +
    ::aws_smithy_schema::ShapeId::from_parts(
          96  +
        "com.amazonaws.ssm.synthetic#DescribePatchGroupStateOutput$Instances",
          97  +
        "com.amazonaws.ssm.synthetic",
          98  +
        "DescribePatchGroupStateOutput",
          99  +
    ),
         100  +
    ::aws_smithy_schema::ShapeType::Integer,
         101  +
    "Instances",
         102  +
    0,
         103  +
);
         104  +
static DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_INSTALLED_PATCHES: ::aws_smithy_schema::Schema<'static> =
         105  +
    ::aws_smithy_schema::Schema::new_member(
         106  +
        ::aws_smithy_schema::ShapeId::from_parts(
         107  +
            "com.amazonaws.ssm.synthetic#DescribePatchGroupStateOutput$InstancesWithInstalledPatches",
         108  +
            "com.amazonaws.ssm.synthetic",
         109  +
            "DescribePatchGroupStateOutput",
         110  +
        ),
         111  +
        ::aws_smithy_schema::ShapeType::Integer,
         112  +
        "InstancesWithInstalledPatches",
         113  +
        1,
         114  +
    );
         115  +
static DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_INSTALLED_OTHER_PATCHES: ::aws_smithy_schema::Schema<'static> =
         116  +
    ::aws_smithy_schema::Schema::new_member(
         117  +
        ::aws_smithy_schema::ShapeId::from_parts(
         118  +
            "com.amazonaws.ssm.synthetic#DescribePatchGroupStateOutput$InstancesWithInstalledOtherPatches",
         119  +
            "com.amazonaws.ssm.synthetic",
         120  +
            "DescribePatchGroupStateOutput",
         121  +
        ),
         122  +
        ::aws_smithy_schema::ShapeType::Integer,
         123  +
        "InstancesWithInstalledOtherPatches",
         124  +
        2,
         125  +
    );
         126  +
static DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_INSTALLED_PENDING_REBOOT_PATCHES: ::aws_smithy_schema::Schema<'static> =
         127  +
    ::aws_smithy_schema::Schema::new_member(
         128  +
        ::aws_smithy_schema::ShapeId::from_parts(
         129  +
            "com.amazonaws.ssm.synthetic#DescribePatchGroupStateOutput$InstancesWithInstalledPendingRebootPatches",
         130  +
            "com.amazonaws.ssm.synthetic",
         131  +
            "DescribePatchGroupStateOutput",
         132  +
        ),
         133  +
        ::aws_smithy_schema::ShapeType::Integer,
         134  +
        "InstancesWithInstalledPendingRebootPatches",
         135  +
        3,
         136  +
    );
         137  +
static DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_INSTALLED_REJECTED_PATCHES: ::aws_smithy_schema::Schema<'static> =
         138  +
    ::aws_smithy_schema::Schema::new_member(
         139  +
        ::aws_smithy_schema::ShapeId::from_parts(
         140  +
            "com.amazonaws.ssm.synthetic#DescribePatchGroupStateOutput$InstancesWithInstalledRejectedPatches",
         141  +
            "com.amazonaws.ssm.synthetic",
         142  +
            "DescribePatchGroupStateOutput",
         143  +
        ),
         144  +
        ::aws_smithy_schema::ShapeType::Integer,
         145  +
        "InstancesWithInstalledRejectedPatches",
         146  +
        4,
         147  +
    );
         148  +
static DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_MISSING_PATCHES: ::aws_smithy_schema::Schema<'static> =
         149  +
    ::aws_smithy_schema::Schema::new_member(
         150  +
        ::aws_smithy_schema::ShapeId::from_parts(
         151  +
            "com.amazonaws.ssm.synthetic#DescribePatchGroupStateOutput$InstancesWithMissingPatches",
         152  +
            "com.amazonaws.ssm.synthetic",
         153  +
            "DescribePatchGroupStateOutput",
         154  +
        ),
         155  +
        ::aws_smithy_schema::ShapeType::Integer,
         156  +
        "InstancesWithMissingPatches",
         157  +
        5,
         158  +
    );
         159  +
static DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_FAILED_PATCHES: ::aws_smithy_schema::Schema<'static> =
         160  +
    ::aws_smithy_schema::Schema::new_member(
         161  +
        ::aws_smithy_schema::ShapeId::from_parts(
         162  +
            "com.amazonaws.ssm.synthetic#DescribePatchGroupStateOutput$InstancesWithFailedPatches",
         163  +
            "com.amazonaws.ssm.synthetic",
         164  +
            "DescribePatchGroupStateOutput",
         165  +
        ),
         166  +
        ::aws_smithy_schema::ShapeType::Integer,
         167  +
        "InstancesWithFailedPatches",
         168  +
        6,
         169  +
    );
         170  +
static DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_NOT_APPLICABLE_PATCHES: ::aws_smithy_schema::Schema<'static> =
         171  +
    ::aws_smithy_schema::Schema::new_member(
         172  +
        ::aws_smithy_schema::ShapeId::from_parts(
         173  +
            "com.amazonaws.ssm.synthetic#DescribePatchGroupStateOutput$InstancesWithNotApplicablePatches",
         174  +
            "com.amazonaws.ssm.synthetic",
         175  +
            "DescribePatchGroupStateOutput",
         176  +
        ),
         177  +
        ::aws_smithy_schema::ShapeType::Integer,
         178  +
        "InstancesWithNotApplicablePatches",
         179  +
        7,
         180  +
    );
         181  +
static DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_UNREPORTED_NOT_APPLICABLE_PATCHES: ::aws_smithy_schema::Schema<'static> =
         182  +
    ::aws_smithy_schema::Schema::new_member(
         183  +
        ::aws_smithy_schema::ShapeId::from_parts(
         184  +
            "com.amazonaws.ssm.synthetic#DescribePatchGroupStateOutput$InstancesWithUnreportedNotApplicablePatches",
         185  +
            "com.amazonaws.ssm.synthetic",
         186  +
            "DescribePatchGroupStateOutput",
         187  +
        ),
         188  +
        ::aws_smithy_schema::ShapeType::Integer,
         189  +
        "InstancesWithUnreportedNotApplicablePatches",
         190  +
        8,
         191  +
    );
         192  +
static DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_CRITICAL_NON_COMPLIANT_PATCHES: ::aws_smithy_schema::Schema<'static> =
         193  +
    ::aws_smithy_schema::Schema::new_member(
         194  +
        ::aws_smithy_schema::ShapeId::from_parts(
         195  +
            "com.amazonaws.ssm.synthetic#DescribePatchGroupStateOutput$InstancesWithCriticalNonCompliantPatches",
         196  +
            "com.amazonaws.ssm.synthetic",
         197  +
            "DescribePatchGroupStateOutput",
         198  +
        ),
         199  +
        ::aws_smithy_schema::ShapeType::Integer,
         200  +
        "InstancesWithCriticalNonCompliantPatches",
         201  +
        9,
         202  +
    );
         203  +
static DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_SECURITY_NON_COMPLIANT_PATCHES: ::aws_smithy_schema::Schema<'static> =
         204  +
    ::aws_smithy_schema::Schema::new_member(
         205  +
        ::aws_smithy_schema::ShapeId::from_parts(
         206  +
            "com.amazonaws.ssm.synthetic#DescribePatchGroupStateOutput$InstancesWithSecurityNonCompliantPatches",
         207  +
            "com.amazonaws.ssm.synthetic",
         208  +
            "DescribePatchGroupStateOutput",
         209  +
        ),
         210  +
        ::aws_smithy_schema::ShapeType::Integer,
         211  +
        "InstancesWithSecurityNonCompliantPatches",
         212  +
        10,
         213  +
    );
         214  +
static DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_OTHER_NON_COMPLIANT_PATCHES: ::aws_smithy_schema::Schema<'static> =
         215  +
    ::aws_smithy_schema::Schema::new_member(
         216  +
        ::aws_smithy_schema::ShapeId::from_parts(
         217  +
            "com.amazonaws.ssm.synthetic#DescribePatchGroupStateOutput$InstancesWithOtherNonCompliantPatches",
         218  +
            "com.amazonaws.ssm.synthetic",
         219  +
            "DescribePatchGroupStateOutput",
         220  +
        ),
         221  +
        ::aws_smithy_schema::ShapeType::Integer,
         222  +
        "InstancesWithOtherNonCompliantPatches",
         223  +
        11,
         224  +
    );
         225  +
static DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_AVAILABLE_SECURITY_UPDATES: ::aws_smithy_schema::Schema<'static> =
         226  +
    ::aws_smithy_schema::Schema::new_member(
         227  +
        ::aws_smithy_schema::ShapeId::from_parts(
         228  +
            "com.amazonaws.ssm.synthetic#DescribePatchGroupStateOutput$InstancesWithAvailableSecurityUpdates",
         229  +
            "com.amazonaws.ssm.synthetic",
         230  +
            "DescribePatchGroupStateOutput",
         231  +
        ),
         232  +
        ::aws_smithy_schema::ShapeType::Integer,
         233  +
        "InstancesWithAvailableSecurityUpdates",
         234  +
        12,
         235  +
    );
         236  +
static DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         237  +
    ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
         238  +
    ::aws_smithy_schema::ShapeType::String,
         239  +
    "request_id",
         240  +
    13,
         241  +
)
         242  +
.with_http_header("x-amzn-requestid");
         243  +
static DESCRIBEPATCHGROUPSTATEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
         244  +
    ::aws_smithy_schema::ShapeId::from_parts(
         245  +
        "com.amazonaws.ssm.synthetic#DescribePatchGroupStateOutput",
         246  +
        "com.amazonaws.ssm.synthetic",
         247  +
        "DescribePatchGroupStateOutput",
         248  +
    ),
         249  +
    ::aws_smithy_schema::ShapeType::Structure,
         250  +
    &[
         251  +
        &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES,
         252  +
        &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_INSTALLED_PATCHES,
         253  +
        &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_INSTALLED_OTHER_PATCHES,
         254  +
        &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_INSTALLED_PENDING_REBOOT_PATCHES,
         255  +
        &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_INSTALLED_REJECTED_PATCHES,
         256  +
        &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_MISSING_PATCHES,
         257  +
        &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_FAILED_PATCHES,
         258  +
        &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_NOT_APPLICABLE_PATCHES,
         259  +
        &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_UNREPORTED_NOT_APPLICABLE_PATCHES,
         260  +
        &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_CRITICAL_NON_COMPLIANT_PATCHES,
         261  +
        &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_SECURITY_NON_COMPLIANT_PATCHES,
         262  +
        &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_OTHER_NON_COMPLIANT_PATCHES,
         263  +
        &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_AVAILABLE_SECURITY_UPDATES,
         264  +
        &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER__REQUEST_ID,
         265  +
    ],
         266  +
)
         267  +
.with_original_name("DescribePatchGroupStateResult");
         268  +
impl DescribePatchGroupStateOutput {
         269  +
    /// The schema for this shape.
         270  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &DESCRIBEPATCHGROUPSTATEOUTPUT_SCHEMA;
         271  +
}
         272  +
impl ::aws_smithy_schema::serde::SerializableStruct for DescribePatchGroupStateOutput {
         273  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         274  +
    fn serialize_members(
         275  +
        &self,
         276  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         277  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         278  +
        {
         279  +
            let val = &self.instances;
         280  +
            ser.write_integer(&DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES, *val)?;
         281  +
        }
         282  +
        {
         283  +
            let val = &self.instances_with_installed_patches;
         284  +
            ser.write_integer(&DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_INSTALLED_PATCHES, *val)?;
         285  +
        }
         286  +
        {
         287  +
            let val = &self.instances_with_installed_other_patches;
         288  +
            ser.write_integer(&DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_INSTALLED_OTHER_PATCHES, *val)?;
         289  +
        }
         290  +
        if let Some(ref val) = self.instances_with_installed_pending_reboot_patches {
         291  +
            ser.write_integer(
         292  +
                &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_INSTALLED_PENDING_REBOOT_PATCHES,
         293  +
                *val,
         294  +
            )?;
         295  +
        }
         296  +
        if let Some(ref val) = self.instances_with_installed_rejected_patches {
         297  +
            ser.write_integer(&DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_INSTALLED_REJECTED_PATCHES, *val)?;
         298  +
        }
         299  +
        {
         300  +
            let val = &self.instances_with_missing_patches;
         301  +
            ser.write_integer(&DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_MISSING_PATCHES, *val)?;
         302  +
        }
         303  +
        {
         304  +
            let val = &self.instances_with_failed_patches;
         305  +
            ser.write_integer(&DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_FAILED_PATCHES, *val)?;
         306  +
        }
         307  +
        {
         308  +
            let val = &self.instances_with_not_applicable_patches;
         309  +
            ser.write_integer(&DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_NOT_APPLICABLE_PATCHES, *val)?;
         310  +
        }
         311  +
        if let Some(ref val) = self.instances_with_unreported_not_applicable_patches {
         312  +
            ser.write_integer(
         313  +
                &DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_UNREPORTED_NOT_APPLICABLE_PATCHES,
         314  +
                *val,
         315  +
            )?;
         316  +
        }
         317  +
        if let Some(ref val) = self.instances_with_critical_non_compliant_patches {
         318  +
            ser.write_integer(&DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_CRITICAL_NON_COMPLIANT_PATCHES, *val)?;
         319  +
        }
         320  +
        if let Some(ref val) = self.instances_with_security_non_compliant_patches {
         321  +
            ser.write_integer(&DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_SECURITY_NON_COMPLIANT_PATCHES, *val)?;
         322  +
        }
         323  +
        if let Some(ref val) = self.instances_with_other_non_compliant_patches {
         324  +
            ser.write_integer(&DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_OTHER_NON_COMPLIANT_PATCHES, *val)?;
         325  +
        }
         326  +
        if let Some(ref val) = self.instances_with_available_security_updates {
         327  +
            ser.write_integer(&DESCRIBEPATCHGROUPSTATEOUTPUT_MEMBER_INSTANCES_WITH_AVAILABLE_SECURITY_UPDATES, *val)?;
         328  +
        }
         329  +
        Ok(())
         330  +
    }
         331  +
}
         332  +
impl DescribePatchGroupStateOutput {
         333  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         334  +
    pub fn deserialize(
         335  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         336  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         337  +
        #[allow(unused_variables, unused_mut)]
         338  +
        let mut builder = Self::builder();
         339  +
        #[allow(
         340  +
            unused_variables,
         341  +
            unreachable_code,
         342  +
            clippy::single_match,
         343  +
            clippy::match_single_binding,
         344  +
            clippy::diverging_sub_expression
         345  +
        )]
         346  +
        deserializer.read_struct(&DESCRIBEPATCHGROUPSTATEOUTPUT_SCHEMA, &mut |member, deser| {
         347  +
            match member.member_index() {
         348  +
                Some(0) => {
         349  +
                    builder.instances = Some(deser.read_integer(member)?);
         350  +
                }
         351  +
                Some(1) => {
         352  +
                    builder.instances_with_installed_patches = Some(deser.read_integer(member)?);
         353  +
                }
         354  +
                Some(2) => {
         355  +
                    builder.instances_with_installed_other_patches = Some(deser.read_integer(member)?);
         356  +
                }
         357  +
                Some(3) => {
         358  +
                    if deser.is_null() {
         359  +
                        deser.read_null()?;
         360  +
                    } else {
         361  +
                        builder.instances_with_installed_pending_reboot_patches = Some(deser.read_integer(member)?);
         362  +
                    }
         363  +
                }
         364  +
                Some(4) => {
         365  +
                    if deser.is_null() {
         366  +
                        deser.read_null()?;
         367  +
                    } else {
         368  +
                        builder.instances_with_installed_rejected_patches = Some(deser.read_integer(member)?);
         369  +
                    }
         370  +
                }
         371  +
                Some(5) => {
         372  +
                    builder.instances_with_missing_patches = Some(deser.read_integer(member)?);
         373  +
                }
         374  +
                Some(6) => {
         375  +
                    builder.instances_with_failed_patches = Some(deser.read_integer(member)?);
         376  +
                }
         377  +
                Some(7) => {
         378  +
                    builder.instances_with_not_applicable_patches = Some(deser.read_integer(member)?);
         379  +
                }
         380  +
                Some(8) => {
         381  +
                    if deser.is_null() {
         382  +
                        deser.read_null()?;
         383  +
                    } else {
         384  +
                        builder.instances_with_unreported_not_applicable_patches = Some(deser.read_integer(member)?);
         385  +
                    }
         386  +
                }
         387  +
                Some(9) => {
         388  +
                    if deser.is_null() {
         389  +
                        deser.read_null()?;
         390  +
                    } else {
         391  +
                        builder.instances_with_critical_non_compliant_patches = Some(deser.read_integer(member)?);
         392  +
                    }
         393  +
                }
         394  +
                Some(10) => {
         395  +
                    if deser.is_null() {
         396  +
                        deser.read_null()?;
         397  +
                    } else {
         398  +
                        builder.instances_with_security_non_compliant_patches = Some(deser.read_integer(member)?);
         399  +
                    }
         400  +
                }
         401  +
                Some(11) => {
         402  +
                    if deser.is_null() {
         403  +
                        deser.read_null()?;
         404  +
                    } else {
         405  +
                        builder.instances_with_other_non_compliant_patches = Some(deser.read_integer(member)?);
         406  +
                    }
         407  +
                }
         408  +
                Some(12) => {
         409  +
                    if deser.is_null() {
         410  +
                        deser.read_null()?;
         411  +
                    } else {
         412  +
                        builder.instances_with_available_security_updates = Some(deser.read_integer(member)?);
         413  +
                    }
         414  +
                }
         415  +
                Some(13) => {
         416  +
                    builder._request_id = Some(deser.read_string(member)?);
         417  +
                }
         418  +
                _ => {}
         419  +
            }
         420  +
            Ok(())
         421  +
        })?;
         422  +
        Ok(builder.build())
         423  +
    }
         424  +
}
         425  +
impl DescribePatchGroupStateOutput {
         426  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         427  +
    /// Header-bound members are read directly from headers, avoiding runtime
         428  +
    /// member iteration overhead. Body members are read via the deserializer.
         429  +
    pub fn deserialize_with_response(
         430  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         431  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         432  +
        _status: u16,
         433  +
        _body: &[u8],
         434  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         435  +
        #[allow(unused_variables, unused_mut)]
         436  +
        let mut builder = Self::builder();
         437  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         438  +
            builder._request_id = Some(val.to_string());
         439  +
        }
         440  +
         441  +
        #[allow(
         442  +
            unused_variables,
         443  +
            unreachable_code,
         444  +
            clippy::single_match,
         445  +
            clippy::match_single_binding,
         446  +
            clippy::diverging_sub_expression
         447  +
        )]
         448  +
        deserializer.read_struct(&DESCRIBEPATCHGROUPSTATEOUTPUT_SCHEMA, &mut |member, deser| {
         449  +
            match member.member_index() {
         450  +
                Some(0) => {
         451  +
                    builder.instances = Some(deser.read_integer(member)?);
         452  +
                }
         453  +
                Some(1) => {
         454  +
                    builder.instances_with_installed_patches = Some(deser.read_integer(member)?);
         455  +
                }
         456  +
                Some(2) => {
         457  +
                    builder.instances_with_installed_other_patches = Some(deser.read_integer(member)?);
         458  +
                }
         459  +
                Some(3) => {
         460  +
                    builder.instances_with_installed_pending_reboot_patches = Some(deser.read_integer(member)?);
         461  +
                }
         462  +
                Some(4) => {
         463  +
                    builder.instances_with_installed_rejected_patches = Some(deser.read_integer(member)?);
         464  +
                }
         465  +
                Some(5) => {
         466  +
                    builder.instances_with_missing_patches = Some(deser.read_integer(member)?);
         467  +
                }
         468  +
                Some(6) => {
         469  +
                    builder.instances_with_failed_patches = Some(deser.read_integer(member)?);
         470  +
                }
         471  +
                Some(7) => {
         472  +
                    builder.instances_with_not_applicable_patches = Some(deser.read_integer(member)?);
         473  +
                }
         474  +
                Some(8) => {
         475  +
                    builder.instances_with_unreported_not_applicable_patches = Some(deser.read_integer(member)?);
         476  +
                }
         477  +
                Some(9) => {
         478  +
                    builder.instances_with_critical_non_compliant_patches = Some(deser.read_integer(member)?);
         479  +
                }
         480  +
                Some(10) => {
         481  +
                    builder.instances_with_security_non_compliant_patches = Some(deser.read_integer(member)?);
         482  +
                }
         483  +
                Some(11) => {
         484  +
                    builder.instances_with_other_non_compliant_patches = Some(deser.read_integer(member)?);
         485  +
                }
         486  +
                Some(12) => {
         487  +
                    builder.instances_with_available_security_updates = Some(deser.read_integer(member)?);
         488  +
                }
         489  +
                _ => {}
         490  +
            }
         491  +
            Ok(())
         492  +
        })?;
         493  +
        Ok(builder.build())
         494  +
    }
         495  +
}
         496  +
impl ::aws_types::request_id::RequestId for DescribePatchGroupStateOutput {
         497  +
    fn request_id(&self) -> Option<&str> {
         498  +
        self._request_id.as_deref()
         499  +
    }
         500  +
}
         501  +
impl DescribePatchGroupStateOutput {
         502  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         503  +
        self._request_id = request_id;
         504  +
        self
         505  +
    }
         506  +
}
         507  +
impl DescribePatchGroupStateOutput {
         508  +
    /// Creates a new builder-style object to manufacture [`DescribePatchGroupStateOutput`](crate::operation::describe_patch_group_state::DescribePatchGroupStateOutput).
         509  +
    pub fn builder() -> crate::operation::describe_patch_group_state::builders::DescribePatchGroupStateOutputBuilder {
         510  +
        crate::operation::describe_patch_group_state::builders::DescribePatchGroupStateOutputBuilder::default()
         511  +
    }
         512  +
}
         513  +
         514  +
/// A builder for [`DescribePatchGroupStateOutput`](crate::operation::describe_patch_group_state::DescribePatchGroupStateOutput).
         515  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         516  +
#[non_exhaustive]
         517  +
pub struct DescribePatchGroupStateOutputBuilder {
         518  +
    pub(crate) instances: ::std::option::Option<i32>,
         519  +
    pub(crate) instances_with_installed_patches: ::std::option::Option<i32>,
         520  +
    pub(crate) instances_with_installed_other_patches: ::std::option::Option<i32>,
         521  +
    pub(crate) instances_with_installed_pending_reboot_patches: ::std::option::Option<i32>,
         522  +
    pub(crate) instances_with_installed_rejected_patches: ::std::option::Option<i32>,
         523  +
    pub(crate) instances_with_missing_patches: ::std::option::Option<i32>,
         524  +
    pub(crate) instances_with_failed_patches: ::std::option::Option<i32>,
         525  +
    pub(crate) instances_with_not_applicable_patches: ::std::option::Option<i32>,
         526  +
    pub(crate) instances_with_unreported_not_applicable_patches: ::std::option::Option<i32>,
         527  +
    pub(crate) instances_with_critical_non_compliant_patches: ::std::option::Option<i32>,
         528  +
    pub(crate) instances_with_security_non_compliant_patches: ::std::option::Option<i32>,
         529  +
    pub(crate) instances_with_other_non_compliant_patches: ::std::option::Option<i32>,
         530  +
    pub(crate) instances_with_available_security_updates: ::std::option::Option<i32>,
         531  +
    _request_id: Option<String>,
         532  +
}
         533  +
impl DescribePatchGroupStateOutputBuilder {
         534  +
    /// <p>The number of managed nodes in the patch group.</p>
         535  +
    pub fn instances(mut self, input: i32) -> Self {
         536  +
        self.instances = ::std::option::Option::Some(input);
         537  +
        self
         538  +
    }
         539  +
    /// <p>The number of managed nodes in the patch group.</p>
         540  +
    pub fn set_instances(mut self, input: ::std::option::Option<i32>) -> Self {
         541  +
        self.instances = input;
         542  +
        self
         543  +
    }
         544  +
    /// <p>The number of managed nodes in the patch group.</p>
         545  +
    pub fn get_instances(&self) -> &::std::option::Option<i32> {
         546  +
        &self.instances
         547  +
    }
         548  +
    /// <p>The number of managed nodes with installed patches.</p>
         549  +
    pub fn instances_with_installed_patches(mut self, input: i32) -> Self {
         550  +
        self.instances_with_installed_patches = ::std::option::Option::Some(input);
         551  +
        self
         552  +
    }
         553  +
    /// <p>The number of managed nodes with installed patches.</p>
         554  +
    pub fn set_instances_with_installed_patches(mut self, input: ::std::option::Option<i32>) -> Self {
         555  +
        self.instances_with_installed_patches = input;
         556  +
        self
         557  +
    }
         558  +
    /// <p>The number of managed nodes with installed patches.</p>
         559  +
    pub fn get_instances_with_installed_patches(&self) -> &::std::option::Option<i32> {
         560  +
        &self.instances_with_installed_patches
         561  +
    }
         562  +
    /// <p>The number of managed nodes with patches installed that aren't defined in the patch baseline.</p>
         563  +
    pub fn instances_with_installed_other_patches(mut self, input: i32) -> Self {
         564  +
        self.instances_with_installed_other_patches = ::std::option::Option::Some(input);
         565  +
        self
         566  +
    }
         567  +
    /// <p>The number of managed nodes with patches installed that aren't defined in the patch baseline.</p>
         568  +
    pub fn set_instances_with_installed_other_patches(mut self, input: ::std::option::Option<i32>) -> Self {
         569  +
        self.instances_with_installed_other_patches = input;
         570  +
        self
         571  +
    }
         572  +
    /// <p>The number of managed nodes with patches installed that aren't defined in the patch baseline.</p>
         573  +
    pub fn get_instances_with_installed_other_patches(&self) -> &::std::option::Option<i32> {
         574  +
        &self.instances_with_installed_other_patches
         575  +
    }
         576  +
    /// <p>The number of managed nodes with patches installed by Patch Manager that haven't been rebooted after the patch installation. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
         577  +
    pub fn instances_with_installed_pending_reboot_patches(mut self, input: i32) -> Self {
         578  +
        self.instances_with_installed_pending_reboot_patches = ::std::option::Option::Some(input);
         579  +
        self
         580  +
    }
         581  +
    /// <p>The number of managed nodes with patches installed by Patch Manager that haven't been rebooted after the patch installation. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
         582  +
    pub fn set_instances_with_installed_pending_reboot_patches(mut self, input: ::std::option::Option<i32>) -> Self {
         583  +
        self.instances_with_installed_pending_reboot_patches = input;
         584  +
        self
         585  +
    }
         586  +
    /// <p>The number of managed nodes with patches installed by Patch Manager that haven't been rebooted after the patch installation. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
         587  +
    pub fn get_instances_with_installed_pending_reboot_patches(&self) -> &::std::option::Option<i32> {
         588  +
        &self.instances_with_installed_pending_reboot_patches
         589  +
    }
         590  +
    /// <p>The number of managed nodes with patches installed that are specified in a <code>RejectedPatches</code> list. Patches with a status of <code>INSTALLED_REJECTED</code> were typically installed before they were added to a <code>RejectedPatches</code> list.</p><note>
         591  +
    /// <p>If <code>ALLOW_AS_DEPENDENCY</code> is the specified option for <code>RejectedPatchesAction</code>, the value of <code>InstancesWithInstalledRejectedPatches</code> will always be <code>0</code> (zero).</p>
         592  +
    /// </note>
         593  +
    pub fn instances_with_installed_rejected_patches(mut self, input: i32) -> Self {
         594  +
        self.instances_with_installed_rejected_patches = ::std::option::Option::Some(input);
         595  +
        self
         596  +
    }
         597  +
    /// <p>The number of managed nodes with patches installed that are specified in a <code>RejectedPatches</code> list. Patches with a status of <code>INSTALLED_REJECTED</code> were typically installed before they were added to a <code>RejectedPatches</code> list.</p><note>
         598  +
    /// <p>If <code>ALLOW_AS_DEPENDENCY</code> is the specified option for <code>RejectedPatchesAction</code>, the value of <code>InstancesWithInstalledRejectedPatches</code> will always be <code>0</code> (zero).</p>
         599  +
    /// </note>
         600  +
    pub fn set_instances_with_installed_rejected_patches(mut self, input: ::std::option::Option<i32>) -> Self {
         601  +
        self.instances_with_installed_rejected_patches = input;
         602  +
        self
         603  +
    }
         604  +
    /// <p>The number of managed nodes with patches installed that are specified in a <code>RejectedPatches</code> list. Patches with a status of <code>INSTALLED_REJECTED</code> were typically installed before they were added to a <code>RejectedPatches</code> list.</p><note>
         605  +
    /// <p>If <code>ALLOW_AS_DEPENDENCY</code> is the specified option for <code>RejectedPatchesAction</code>, the value of <code>InstancesWithInstalledRejectedPatches</code> will always be <code>0</code> (zero).</p>
         606  +
    /// </note>
         607  +
    pub fn get_instances_with_installed_rejected_patches(&self) -> &::std::option::Option<i32> {
         608  +
        &self.instances_with_installed_rejected_patches
         609  +
    }
         610  +
    /// <p>The number of managed nodes with missing patches from the patch baseline.</p>
         611  +
    pub fn instances_with_missing_patches(mut self, input: i32) -> Self {
         612  +
        self.instances_with_missing_patches = ::std::option::Option::Some(input);
         613  +
        self
         614  +
    }
         615  +
    /// <p>The number of managed nodes with missing patches from the patch baseline.</p>
         616  +
    pub fn set_instances_with_missing_patches(mut self, input: ::std::option::Option<i32>) -> Self {
         617  +
        self.instances_with_missing_patches = input;
         618  +
        self
         619  +
    }
         620  +
    /// <p>The number of managed nodes with missing patches from the patch baseline.</p>
         621  +
    pub fn get_instances_with_missing_patches(&self) -> &::std::option::Option<i32> {
         622  +
        &self.instances_with_missing_patches
         623  +
    }
         624  +
    /// <p>The number of managed nodes with patches from the patch baseline that failed to install.</p>
         625  +
    pub fn instances_with_failed_patches(mut self, input: i32) -> Self {
         626  +
        self.instances_with_failed_patches = ::std::option::Option::Some(input);
         627  +
        self
         628  +
    }
         629  +
    /// <p>The number of managed nodes with patches from the patch baseline that failed to install.</p>
         630  +
    pub fn set_instances_with_failed_patches(mut self, input: ::std::option::Option<i32>) -> Self {
         631  +
        self.instances_with_failed_patches = input;
         632  +
        self
         633  +
    }
         634  +
    /// <p>The number of managed nodes with patches from the patch baseline that failed to install.</p>
         635  +
    pub fn get_instances_with_failed_patches(&self) -> &::std::option::Option<i32> {
         636  +
        &self.instances_with_failed_patches
         637  +
    }
         638  +
    /// <p>The number of managed nodes with patches that aren't applicable.</p>
         639  +
    pub fn instances_with_not_applicable_patches(mut self, input: i32) -> Self {
         640  +
        self.instances_with_not_applicable_patches = ::std::option::Option::Some(input);
         641  +
        self
         642  +
    }
         643  +
    /// <p>The number of managed nodes with patches that aren't applicable.</p>
         644  +
    pub fn set_instances_with_not_applicable_patches(mut self, input: ::std::option::Option<i32>) -> Self {
         645  +
        self.instances_with_not_applicable_patches = input;
         646  +
        self
         647  +
    }
         648  +
    /// <p>The number of managed nodes with patches that aren't applicable.</p>
         649  +
    pub fn get_instances_with_not_applicable_patches(&self) -> &::std::option::Option<i32> {
         650  +
        &self.instances_with_not_applicable_patches
         651  +
    }
         652  +
    /// <p>The number of managed nodes with <code>NotApplicable</code> patches beyond the supported limit, which aren't reported by name to Inventory. Inventory is a tool in Amazon Web Services Systems Manager.</p>
         653  +
    pub fn instances_with_unreported_not_applicable_patches(mut self, input: i32) -> Self {
         654  +
        self.instances_with_unreported_not_applicable_patches = ::std::option::Option::Some(input);
         655  +
        self
         656  +
    }
         657  +
    /// <p>The number of managed nodes with <code>NotApplicable</code> patches beyond the supported limit, which aren't reported by name to Inventory. Inventory is a tool in Amazon Web Services Systems Manager.</p>
         658  +
    pub fn set_instances_with_unreported_not_applicable_patches(mut self, input: ::std::option::Option<i32>) -> Self {
         659  +
        self.instances_with_unreported_not_applicable_patches = input;
         660  +
        self
         661  +
    }
         662  +
    /// <p>The number of managed nodes with <code>NotApplicable</code> patches beyond the supported limit, which aren't reported by name to Inventory. Inventory is a tool in Amazon Web Services Systems Manager.</p>
         663  +
    pub fn get_instances_with_unreported_not_applicable_patches(&self) -> &::std::option::Option<i32> {
         664  +
        &self.instances_with_unreported_not_applicable_patches
         665  +
    }
         666  +
    /// <p>The number of managed nodes where patches that are specified as <code>Critical</code> for compliance reporting in the patch baseline aren't installed. These patches might be missing, have failed installation, were rejected, or were installed but awaiting a required managed node reboot. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
         667  +
    pub fn instances_with_critical_non_compliant_patches(mut self, input: i32) -> Self {
         668  +
        self.instances_with_critical_non_compliant_patches = ::std::option::Option::Some(input);
         669  +
        self
         670  +
    }
         671  +
    /// <p>The number of managed nodes where patches that are specified as <code>Critical</code> for compliance reporting in the patch baseline aren't installed. These patches might be missing, have failed installation, were rejected, or were installed but awaiting a required managed node reboot. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
         672  +
    pub fn set_instances_with_critical_non_compliant_patches(mut self, input: ::std::option::Option<i32>) -> Self {
         673  +
        self.instances_with_critical_non_compliant_patches = input;
         674  +
        self
         675  +
    }
         676  +
    /// <p>The number of managed nodes where patches that are specified as <code>Critical</code> for compliance reporting in the patch baseline aren't installed. These patches might be missing, have failed installation, were rejected, or were installed but awaiting a required managed node reboot. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
         677  +
    pub fn get_instances_with_critical_non_compliant_patches(&self) -> &::std::option::Option<i32> {
         678  +
        &self.instances_with_critical_non_compliant_patches
         679  +
    }
         680  +
    /// <p>The number of managed nodes where patches that are specified as <code>Security</code> in a patch advisory aren't installed. These patches might be missing, have failed installation, were rejected, or were installed but awaiting a required managed node reboot. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
         681  +
    pub fn instances_with_security_non_compliant_patches(mut self, input: i32) -> Self {
         682  +
        self.instances_with_security_non_compliant_patches = ::std::option::Option::Some(input);
         683  +
        self
         684  +
    }
         685  +
    /// <p>The number of managed nodes where patches that are specified as <code>Security</code> in a patch advisory aren't installed. These patches might be missing, have failed installation, were rejected, or were installed but awaiting a required managed node reboot. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
         686  +
    pub fn set_instances_with_security_non_compliant_patches(mut self, input: ::std::option::Option<i32>) -> Self {
         687  +
        self.instances_with_security_non_compliant_patches = input;
         688  +
        self
         689  +
    }
         690  +
    /// <p>The number of managed nodes where patches that are specified as <code>Security</code> in a patch advisory aren't installed. These patches might be missing, have failed installation, were rejected, or were installed but awaiting a required managed node reboot. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
         691  +
    pub fn get_instances_with_security_non_compliant_patches(&self) -> &::std::option::Option<i32> {
         692  +
        &self.instances_with_security_non_compliant_patches
         693  +
    }
         694  +
    /// <p>The number of managed nodes with patches installed that are specified as other than <code>Critical</code> or <code>Security</code> but aren't compliant with the patch baseline. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
         695  +
    pub fn instances_with_other_non_compliant_patches(mut self, input: i32) -> Self {
         696  +
        self.instances_with_other_non_compliant_patches = ::std::option::Option::Some(input);
         697  +
        self
         698  +
    }
         699  +
    /// <p>The number of managed nodes with patches installed that are specified as other than <code>Critical</code> or <code>Security</code> but aren't compliant with the patch baseline. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
         700  +
    pub fn set_instances_with_other_non_compliant_patches(mut self, input: ::std::option::Option<i32>) -> Self {
         701  +
        self.instances_with_other_non_compliant_patches = input;
         702  +
        self
         703  +
    }
         704  +
    /// <p>The number of managed nodes with patches installed that are specified as other than <code>Critical</code> or <code>Security</code> but aren't compliant with the patch baseline. The status of these managed nodes is <code>NON_COMPLIANT</code>.</p>
         705  +
    pub fn get_instances_with_other_non_compliant_patches(&self) -> &::std::option::Option<i32> {
         706  +
        &self.instances_with_other_non_compliant_patches
         707  +
    }
         708  +
    /// <p>The number of managed nodes for which security-related patches are available but not approved because because they didn't meet the patch baseline requirements. For example, an updated version of a patch might have been released before the specified auto-approval period was over.</p>
         709  +
    /// <p>Applies to Windows Server managed nodes only.</p>
         710  +
    pub fn instances_with_available_security_updates(mut self, input: i32) -> Self {
         711  +
        self.instances_with_available_security_updates = ::std::option::Option::Some(input);
         712  +
        self
         713  +
    }
         714  +
    /// <p>The number of managed nodes for which security-related patches are available but not approved because because they didn't meet the patch baseline requirements. For example, an updated version of a patch might have been released before the specified auto-approval period was over.</p>
         715  +
    /// <p>Applies to Windows Server managed nodes only.</p>
         716  +
    pub fn set_instances_with_available_security_updates(mut self, input: ::std::option::Option<i32>) -> Self {
         717  +
        self.instances_with_available_security_updates = input;
         718  +
        self
         719  +
    }
         720  +
    /// <p>The number of managed nodes for which security-related patches are available but not approved because because they didn't meet the patch baseline requirements. For example, an updated version of a patch might have been released before the specified auto-approval period was over.</p>
         721  +
    /// <p>Applies to Windows Server managed nodes only.</p>
         722  +
    pub fn get_instances_with_available_security_updates(&self) -> &::std::option::Option<i32> {
         723  +
        &self.instances_with_available_security_updates
         724  +
    }
         725  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
         726  +
        self._request_id = Some(request_id.into());
         727  +
        self
         728  +
    }
         729  +
         730  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         731  +
        self._request_id = request_id;
         732  +
        self
         733  +
    }
         734  +
    /// Consumes the builder and constructs a [`DescribePatchGroupStateOutput`](crate::operation::describe_patch_group_state::DescribePatchGroupStateOutput).
         735  +
    pub fn build(self) -> crate::operation::describe_patch_group_state::DescribePatchGroupStateOutput {
         736  +
        crate::operation::describe_patch_group_state::DescribePatchGroupStateOutput {
         737  +
            instances: self.instances.unwrap_or_default(),
         738  +
            instances_with_installed_patches: self.instances_with_installed_patches.unwrap_or_default(),
         739  +
            instances_with_installed_other_patches: self.instances_with_installed_other_patches.unwrap_or_default(),
         740  +
            instances_with_installed_pending_reboot_patches: self.instances_with_installed_pending_reboot_patches,
         741  +
            instances_with_installed_rejected_patches: self.instances_with_installed_rejected_patches,
         742  +
            instances_with_missing_patches: self.instances_with_missing_patches.unwrap_or_default(),
         743  +
            instances_with_failed_patches: self.instances_with_failed_patches.unwrap_or_default(),
         744  +
            instances_with_not_applicable_patches: self.instances_with_not_applicable_patches.unwrap_or_default(),
         745  +
            instances_with_unreported_not_applicable_patches: self.instances_with_unreported_not_applicable_patches,
         746  +
            instances_with_critical_non_compliant_patches: self.instances_with_critical_non_compliant_patches,
         747  +
            instances_with_security_non_compliant_patches: self.instances_with_security_non_compliant_patches,
         748  +
            instances_with_other_non_compliant_patches: self.instances_with_other_non_compliant_patches,
         749  +
            instances_with_available_security_updates: self.instances_with_available_security_updates,
         750  +
            _request_id: self._request_id,
         751  +
        }
         752  +
    }
         753  +
}

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

@@ -0,1 +0,125 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::describe_patch_group_state::_describe_patch_group_state_input::DescribePatchGroupStateInputBuilder;
           3  +
           4  +
pub use crate::operation::describe_patch_group_state::_describe_patch_group_state_output::DescribePatchGroupStateOutputBuilder;
           5  +
           6  +
impl crate::operation::describe_patch_group_state::builders::DescribePatchGroupStateInputBuilder {
           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_patch_group_state::DescribePatchGroupStateOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::describe_patch_group_state::DescribePatchGroupStateError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.describe_patch_group_state();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `DescribePatchGroupState`.
          24  +
///
          25  +
/// <p>Returns high-level aggregated patch compliance state information for a patch group.</p>
          26  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          27  +
pub struct DescribePatchGroupStateFluentBuilder {
          28  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          29  +
    inner: crate::operation::describe_patch_group_state::builders::DescribePatchGroupStateInputBuilder,
          30  +
    config_override: ::std::option::Option<crate::config::Builder>,
          31  +
}
          32  +
impl
          33  +
    crate::client::customize::internal::CustomizableSend<
          34  +
        crate::operation::describe_patch_group_state::DescribePatchGroupStateOutput,
          35  +
        crate::operation::describe_patch_group_state::DescribePatchGroupStateError,
          36  +
    > for DescribePatchGroupStateFluentBuilder
          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::describe_patch_group_state::DescribePatchGroupStateOutput,
          44  +
            crate::operation::describe_patch_group_state::DescribePatchGroupStateError,
          45  +
        >,
          46  +
    > {
          47  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          48  +
    }
          49  +
}
          50  +
impl DescribePatchGroupStateFluentBuilder {
          51  +
    /// Creates a new `DescribePatchGroupStateFluentBuilder`.
          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 DescribePatchGroupState as a reference.
          60  +
    pub fn as_input(&self) -> &crate::operation::describe_patch_group_state::builders::DescribePatchGroupStateInputBuilder {
          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::describe_patch_group_state::DescribePatchGroupStateOutput,
          75  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          76  +
            crate::operation::describe_patch_group_state::DescribePatchGroupStateError,
          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::describe_patch_group_state::DescribePatchGroupState::operation_runtime_plugins(
          85  +
            self.handle.runtime_plugins.clone(),
          86  +
            &self.handle.conf,
          87  +
            self.config_override,
          88  +
        );
          89  +
        crate::operation::describe_patch_group_state::DescribePatchGroupState::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::describe_patch_group_state::DescribePatchGroupStateOutput,
          97  +
        crate::operation::describe_patch_group_state::DescribePatchGroupStateError,
          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  +
    /// <p>The name of the patch group whose patch snapshot should be retrieved.</p>
         112  +
    pub fn patch_group(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         113  +
        self.inner = self.inner.patch_group(input.into());
         114  +
        self
         115  +
    }
         116  +
    /// <p>The name of the patch group whose patch snapshot should be retrieved.</p>
         117  +
    pub fn set_patch_group(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         118  +
        self.inner = self.inner.set_patch_group(input);
         119  +
        self
         120  +
    }
         121  +
    /// <p>The name of the patch group whose patch snapshot should be retrieved.</p>
         122  +
    pub fn get_patch_group(&self) -> &::std::option::Option<::std::string::String> {
         123  +
        self.inner.get_patch_group()
         124  +
    }
         125  +
}