pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateNetworkSettingsOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn network_settings(self, input: NetworkSettings) -> Self
pub fn network_settings(self, input: NetworkSettings) -> Self
The network settings.
sourcepub fn set_network_settings(self, input: Option<NetworkSettings>) -> Self
pub fn set_network_settings(self, input: Option<NetworkSettings>) -> Self
The network settings.
Examples found in repository?
src/json_deser.rs (lines 2006-2010)
1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033
pub(crate) fn deser_operation_crate_operation_update_network_settings(
value: &[u8],
mut builder: crate::output::update_network_settings_output::Builder,
) -> Result<
crate::output::update_network_settings_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
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() {
"networkSettings" => {
builder = builder.set_network_settings(
crate::json_deser::deser_structure_crate_model_network_settings(
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
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}
sourcepub fn build(self) -> UpdateNetworkSettingsOutput
pub fn build(self) -> UpdateNetworkSettingsOutput
Consumes the builder and constructs a UpdateNetworkSettingsOutput
.
Examples found in repository?
src/operation_deser.rs (line 5530)
5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532
pub fn parse_update_network_settings_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::UpdateNetworkSettingsOutput,
crate::error::UpdateNetworkSettingsError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::update_network_settings_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_update_network_settings(
response.body().as_ref(),
output,
)
.map_err(crate::error::UpdateNetworkSettingsError::unhandled)?;
output.build()
})
}