pub struct Builder { /* private fields */ }
Expand description
A builder for DescribeContinuousBackupsOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn continuous_backups_description(
self,
input: ContinuousBackupsDescription
) -> Self
pub fn continuous_backups_description(
self,
input: ContinuousBackupsDescription
) -> Self
Represents the continuous backups and point in time recovery settings on the table.
sourcepub fn set_continuous_backups_description(
self,
input: Option<ContinuousBackupsDescription>
) -> Self
pub fn set_continuous_backups_description(
self,
input: Option<ContinuousBackupsDescription>
) -> Self
Represents the continuous backups and point in time recovery settings on the table.
Examples found in repository?
src/json_deser.rs (lines 1309-1311)
1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 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
pub(crate) fn deser_operation_crate_operation_describe_continuous_backups(
value: &[u8],
mut builder: crate::output::describe_continuous_backups_output::Builder,
) -> Result<
crate::output::describe_continuous_backups_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() {
"ContinuousBackupsDescription" => {
builder = builder.set_continuous_backups_description(
crate::json_deser::deser_structure_crate_model_continuous_backups_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) -> DescribeContinuousBackupsOutput
pub fn build(self) -> DescribeContinuousBackupsOutput
Consumes the builder and constructs a DescribeContinuousBackupsOutput
.
Examples found in repository?
src/operation_deser.rs (line 1298)
1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300
pub fn parse_describe_continuous_backups_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::DescribeContinuousBackupsOutput,
crate::error::DescribeContinuousBackupsError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::describe_continuous_backups_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_describe_continuous_backups(
response.body().as_ref(),
output,
)
.map_err(crate::error::DescribeContinuousBackupsError::unhandled)?;
output.build()
})
}