Struct aws_sdk_dynamodb::model::backup_description::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for BackupDescription
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn backup_details(self, input: BackupDetails) -> Self
pub fn backup_details(self, input: BackupDetails) -> Self
Contains the details of the backup created for the table.
sourcepub fn set_backup_details(self, input: Option<BackupDetails>) -> Self
pub fn set_backup_details(self, input: Option<BackupDetails>) -> Self
Contains the details of the backup created for the table.
Examples found in repository?
src/json_deser.rs (lines 5076-5080)
5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113
pub(crate) fn deser_structure_crate_model_backup_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::BackupDescription>,
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::backup_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() {
"BackupDetails" => {
builder = builder.set_backup_details(
crate::json_deser::deser_structure_crate_model_backup_details(
tokens,
)?,
);
}
"SourceTableDetails" => {
builder = builder.set_source_table_details(
crate::json_deser::deser_structure_crate_model_source_table_details(tokens)?
);
}
"SourceTableFeatureDetails" => {
builder = builder.set_source_table_feature_details(
crate::json_deser::deser_structure_crate_model_source_table_feature_details(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 source_table_details(self, input: SourceTableDetails) -> Self
pub fn source_table_details(self, input: SourceTableDetails) -> Self
Contains the details of the table when the backup was created.
sourcepub fn set_source_table_details(self, input: Option<SourceTableDetails>) -> Self
pub fn set_source_table_details(self, input: Option<SourceTableDetails>) -> Self
Contains the details of the table when the backup was created.
Examples found in repository?
src/json_deser.rs (lines 5083-5085)
5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113
pub(crate) fn deser_structure_crate_model_backup_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::BackupDescription>,
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::backup_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() {
"BackupDetails" => {
builder = builder.set_backup_details(
crate::json_deser::deser_structure_crate_model_backup_details(
tokens,
)?,
);
}
"SourceTableDetails" => {
builder = builder.set_source_table_details(
crate::json_deser::deser_structure_crate_model_source_table_details(tokens)?
);
}
"SourceTableFeatureDetails" => {
builder = builder.set_source_table_feature_details(
crate::json_deser::deser_structure_crate_model_source_table_feature_details(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 source_table_feature_details(
self,
input: SourceTableFeatureDetails
) -> Self
pub fn source_table_feature_details(
self,
input: SourceTableFeatureDetails
) -> Self
Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.
sourcepub fn set_source_table_feature_details(
self,
input: Option<SourceTableFeatureDetails>
) -> Self
pub fn set_source_table_feature_details(
self,
input: Option<SourceTableFeatureDetails>
) -> Self
Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.
Examples found in repository?
src/json_deser.rs (lines 5088-5090)
5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113
pub(crate) fn deser_structure_crate_model_backup_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::BackupDescription>,
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::backup_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() {
"BackupDetails" => {
builder = builder.set_backup_details(
crate::json_deser::deser_structure_crate_model_backup_details(
tokens,
)?,
);
}
"SourceTableDetails" => {
builder = builder.set_source_table_details(
crate::json_deser::deser_structure_crate_model_source_table_details(tokens)?
);
}
"SourceTableFeatureDetails" => {
builder = builder.set_source_table_feature_details(
crate::json_deser::deser_structure_crate_model_source_table_feature_details(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) -> BackupDescription
pub fn build(self) -> BackupDescription
Consumes the builder and constructs a BackupDescription
.
Examples found in repository?
src/json_deser.rs (line 5105)
5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113
pub(crate) fn deser_structure_crate_model_backup_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::BackupDescription>,
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::backup_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() {
"BackupDetails" => {
builder = builder.set_backup_details(
crate::json_deser::deser_structure_crate_model_backup_details(
tokens,
)?,
);
}
"SourceTableDetails" => {
builder = builder.set_source_table_details(
crate::json_deser::deser_structure_crate_model_source_table_details(tokens)?
);
}
"SourceTableFeatureDetails" => {
builder = builder.set_source_table_feature_details(
crate::json_deser::deser_structure_crate_model_source_table_feature_details(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",
),
),
}
}