Struct aws_sdk_securityhub::model::aws_ssm_patch::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AwsSsmPatch
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn compliance_summary(self, input: AwsSsmComplianceSummary) -> Self
pub fn compliance_summary(self, input: AwsSsmComplianceSummary) -> Self
The compliance status details for the patch.
sourcepub fn set_compliance_summary(
self,
input: Option<AwsSsmComplianceSummary>
) -> Self
pub fn set_compliance_summary(
self,
input: Option<AwsSsmComplianceSummary>
) -> Self
The compliance status details for the patch.
Examples found in repository?
src/json_deser.rs (lines 25900-25902)
25878 25879 25880 25881 25882 25883 25884 25885 25886 25887 25888 25889 25890 25891 25892 25893 25894 25895 25896 25897 25898 25899 25900 25901 25902 25903 25904 25905 25906 25907 25908 25909 25910 25911 25912 25913 25914 25915 25916 25917 25918 25919 25920 25921 25922 25923 25924 25925
pub(crate) fn deser_structure_crate_model_aws_ssm_patch<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::AwsSsmPatch>, aws_smithy_json::deserialize::error::DeserializeError>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ssm_patch::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"ComplianceSummary" => {
builder = builder.set_compliance_summary(
crate::json_deser::deser_structure_crate_model_aws_ssm_compliance_summary(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn build(self) -> AwsSsmPatch
pub fn build(self) -> AwsSsmPatch
Consumes the builder and constructs a AwsSsmPatch
.
Examples found in repository?
src/json_deser.rs (line 25917)
25878 25879 25880 25881 25882 25883 25884 25885 25886 25887 25888 25889 25890 25891 25892 25893 25894 25895 25896 25897 25898 25899 25900 25901 25902 25903 25904 25905 25906 25907 25908 25909 25910 25911 25912 25913 25914 25915 25916 25917 25918 25919 25920 25921 25922 25923 25924 25925
pub(crate) fn deser_structure_crate_model_aws_ssm_patch<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::AwsSsmPatch>, aws_smithy_json::deserialize::error::DeserializeError>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ssm_patch::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"ComplianceSummary" => {
builder = builder.set_compliance_summary(
crate::json_deser::deser_structure_crate_model_aws_ssm_compliance_summary(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}