Struct aws_sdk_dynamodb::output::describe_backup_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for DescribeBackupOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn backup_description(self, input: BackupDescription) -> Self
pub fn backup_description(self, input: BackupDescription) -> Self
Contains the description of the backup created for the table.
sourcepub fn set_backup_description(self, input: Option<BackupDescription>) -> Self
pub fn set_backup_description(self, input: Option<BackupDescription>) -> Self
Contains the description of the backup created for the table.
Examples found in repository?
src/json_deser.rs (lines 1262-1266)
1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289
pub(crate) fn deser_operation_crate_operation_describe_backup(
value: &[u8],
mut builder: crate::output::describe_backup_output::Builder,
) -> Result<
crate::output::describe_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() {
"BackupDescription" => {
builder = builder.set_backup_description(
crate::json_deser::deser_structure_crate_model_backup_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) -> DescribeBackupOutput
pub fn build(self) -> DescribeBackupOutput
Consumes the builder and constructs a DescribeBackupOutput
.
Examples found in repository?
src/operation_deser.rs (line 1203)
1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205
pub fn parse_describe_backup_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::DescribeBackupOutput, crate::error::DescribeBackupError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::describe_backup_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_describe_backup(
response.body().as_ref(),
output,
)
.map_err(crate::error::DescribeBackupError::unhandled)?;
output.build()
})
}