pub struct Builder { /* private fields */ }Expand description
A builder for StartExportTaskOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn export_id(self, input: impl Into<String>) -> Self
pub fn export_id(self, input: impl Into<String>) -> Self
A unique identifier used to query the status of an export request.
sourcepub fn set_export_id(self, input: Option<String>) -> Self
pub fn set_export_id(self, input: Option<String>) -> Self
A unique identifier used to query the status of an export request.
Examples found in repository?
src/json_deser.rs (lines 1324-1330)
1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353
pub(crate) fn deser_operation_crate_operation_start_export_task(
value: &[u8],
mut builder: crate::output::start_export_task_output::Builder,
) -> Result<
crate::output::start_export_task_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() {
"exportId" => {
builder = builder.set_export_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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) -> StartExportTaskOutput
pub fn build(self) -> StartExportTaskOutput
Consumes the builder and constructs a StartExportTaskOutput.
Examples found in repository?
src/operation_deser.rs (line 2870)
2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872
pub fn parse_start_export_task_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::StartExportTaskOutput, crate::error::StartExportTaskError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::start_export_task_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_start_export_task(
response.body().as_ref(),
output,
)
.map_err(crate::error::StartExportTaskError::unhandled)?;
output.build()
})
}