pub struct Builder { /* private fields */ }
Expand description
A builder for ContinuousBackupsDescription
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn continuous_backups_status(self, input: ContinuousBackupsStatus) -> Self
pub fn continuous_backups_status(self, input: ContinuousBackupsStatus) -> Self
ContinuousBackupsStatus
can be one of the following states: ENABLED, DISABLED
sourcepub fn set_continuous_backups_status(
self,
input: Option<ContinuousBackupsStatus>
) -> Self
pub fn set_continuous_backups_status(
self,
input: Option<ContinuousBackupsStatus>
) -> Self
ContinuousBackupsStatus
can be one of the following states: ENABLED, DISABLED
Examples found in repository?
src/json_deser.rs (lines 5344-5354)
5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382
pub(crate) fn deser_structure_crate_model_continuous_backups_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ContinuousBackupsDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::continuous_backups_description::Builder::default();
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() {
"ContinuousBackupsStatus" => {
builder = builder.set_continuous_backups_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::ContinuousBackupsStatus::from(u.as_ref())
})
})
.transpose()?,
);
}
"PointInTimeRecoveryDescription" => {
builder = builder.set_point_in_time_recovery_description(
crate::json_deser::deser_structure_crate_model_point_in_time_recovery_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
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn point_in_time_recovery_description(
self,
input: PointInTimeRecoveryDescription
) -> Self
pub fn point_in_time_recovery_description(
self,
input: PointInTimeRecoveryDescription
) -> Self
The description of the point in time recovery settings applied to the table.
sourcepub fn set_point_in_time_recovery_description(
self,
input: Option<PointInTimeRecoveryDescription>
) -> Self
pub fn set_point_in_time_recovery_description(
self,
input: Option<PointInTimeRecoveryDescription>
) -> Self
The description of the point in time recovery settings applied to the table.
Examples found in repository?
src/json_deser.rs (lines 5357-5359)
5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382
pub(crate) fn deser_structure_crate_model_continuous_backups_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ContinuousBackupsDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::continuous_backups_description::Builder::default();
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() {
"ContinuousBackupsStatus" => {
builder = builder.set_continuous_backups_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::ContinuousBackupsStatus::from(u.as_ref())
})
})
.transpose()?,
);
}
"PointInTimeRecoveryDescription" => {
builder = builder.set_point_in_time_recovery_description(
crate::json_deser::deser_structure_crate_model_point_in_time_recovery_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
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn build(self) -> ContinuousBackupsDescription
pub fn build(self) -> ContinuousBackupsDescription
Consumes the builder and constructs a ContinuousBackupsDescription
.
Examples found in repository?
src/json_deser.rs (line 5374)
5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382
pub(crate) fn deser_structure_crate_model_continuous_backups_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ContinuousBackupsDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::continuous_backups_description::Builder::default();
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() {
"ContinuousBackupsStatus" => {
builder = builder.set_continuous_backups_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::ContinuousBackupsStatus::from(u.as_ref())
})
})
.transpose()?,
);
}
"PointInTimeRecoveryDescription" => {
builder = builder.set_point_in_time_recovery_description(
crate::json_deser::deser_structure_crate_model_point_in_time_recovery_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
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}