pub struct Builder { /* private fields */ }
Expand description
A builder for RestoreTableFromBackupOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn table_description(self, input: TableDescription) -> Self
pub fn table_description(self, input: TableDescription) -> Self
The description of the table created from an existing backup.
sourcepub fn set_table_description(self, input: Option<TableDescription>) -> Self
pub fn set_table_description(self, input: Option<TableDescription>) -> Self
The description of the table created from an existing backup.
Examples found in repository?
src/json_deser.rs (lines 3465-3469)
3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492
pub(crate) fn deser_operation_crate_operation_restore_table_from_backup(
value: &[u8],
mut builder: crate::output::restore_table_from_backup_output::Builder,
) -> Result<
crate::output::restore_table_from_backup_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() {
"TableDescription" => {
builder = builder.set_table_description(
crate::json_deser::deser_structure_crate_model_table_description(
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) -> RestoreTableFromBackupOutput
pub fn build(self) -> RestoreTableFromBackupOutput
Consumes the builder and constructs a RestoreTableFromBackupOutput
.
Examples found in repository?
src/operation_deser.rs (line 4033)
4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035
pub fn parse_restore_table_from_backup_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::RestoreTableFromBackupOutput,
crate::error::RestoreTableFromBackupError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::restore_table_from_backup_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_restore_table_from_backup(
response.body().as_ref(),
output,
)
.map_err(crate::error::RestoreTableFromBackupError::unhandled)?;
output.build()
})
}