pub struct Builder { /* private fields */ }Expand description
A builder for UpdateGlobalNetworkOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn global_network(self, input: GlobalNetwork) -> Self
pub fn global_network(self, input: GlobalNetwork) -> Self
Information about the global network object.
sourcepub fn set_global_network(self, input: Option<GlobalNetwork>) -> Self
pub fn set_global_network(self, input: Option<GlobalNetwork>) -> Self
Information about the global network object.
Examples found in repository?
src/json_deser.rs (lines 4175-4177)
4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200
pub(crate) fn deser_operation_crate_operation_update_global_network(
value: &[u8],
mut builder: crate::output::update_global_network_output::Builder,
) -> Result<
crate::output::update_global_network_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() {
"GlobalNetwork" => {
builder = builder.set_global_network(
crate::json_deser::deser_structure_crate_model_global_network(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) -> UpdateGlobalNetworkOutput
pub fn build(self) -> UpdateGlobalNetworkOutput
Consumes the builder and constructs a UpdateGlobalNetworkOutput.
Examples found in repository?
src/operation_deser.rs (line 11460)
11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462
pub fn parse_update_global_network_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::UpdateGlobalNetworkOutput,
crate::error::UpdateGlobalNetworkError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::update_global_network_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_update_global_network(
response.body().as_ref(),
output,
)
.map_err(crate::error::UpdateGlobalNetworkError::unhandled)?;
output.build()
})
}