pub struct Builder { /* private fields */ }
Expand description
A builder for SourceTableFeatureDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn local_secondary_indexes(self, input: LocalSecondaryIndexInfo) -> Self
pub fn local_secondary_indexes(self, input: LocalSecondaryIndexInfo) -> Self
Appends an item to local_secondary_indexes
.
To override the contents of this collection use set_local_secondary_indexes
.
Represents the LSI properties for the table when the backup was created. It includes the IndexName, KeySchema and Projection for the LSIs on the table at the time of backup.
sourcepub fn set_local_secondary_indexes(
self,
input: Option<Vec<LocalSecondaryIndexInfo>>
) -> Self
pub fn set_local_secondary_indexes(
self,
input: Option<Vec<LocalSecondaryIndexInfo>>
) -> Self
Represents the LSI properties for the table when the backup was created. It includes the IndexName, KeySchema and Projection for the LSIs on the table at the time of backup.
Examples found in repository?
7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961
pub(crate) fn deser_structure_crate_model_source_table_feature_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::SourceTableFeatureDetails>,
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::source_table_feature_details::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() {
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_local_secondary_indexes(tokens)?
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_global_secondary_indexes(tokens)?
);
}
"StreamDescription" => {
builder = builder.set_stream_description(
crate::json_deser::deser_structure_crate_model_stream_specification(tokens)?
);
}
"TimeToLiveDescription" => {
builder = builder.set_time_to_live_description(
crate::json_deser::deser_structure_crate_model_time_to_live_description(tokens)?
);
}
"SSEDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_sse_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 global_secondary_indexes(self, input: GlobalSecondaryIndexInfo) -> Self
pub fn global_secondary_indexes(self, input: GlobalSecondaryIndexInfo) -> Self
Appends an item to global_secondary_indexes
.
To override the contents of this collection use set_global_secondary_indexes
.
Represents the GSI properties for the table when the backup was created. It includes the IndexName, KeySchema, Projection, and ProvisionedThroughput for the GSIs on the table at the time of backup.
sourcepub fn set_global_secondary_indexes(
self,
input: Option<Vec<GlobalSecondaryIndexInfo>>
) -> Self
pub fn set_global_secondary_indexes(
self,
input: Option<Vec<GlobalSecondaryIndexInfo>>
) -> Self
Represents the GSI properties for the table when the backup was created. It includes the IndexName, KeySchema, Projection, and ProvisionedThroughput for the GSIs on the table at the time of backup.
Examples found in repository?
7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961
pub(crate) fn deser_structure_crate_model_source_table_feature_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::SourceTableFeatureDetails>,
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::source_table_feature_details::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() {
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_local_secondary_indexes(tokens)?
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_global_secondary_indexes(tokens)?
);
}
"StreamDescription" => {
builder = builder.set_stream_description(
crate::json_deser::deser_structure_crate_model_stream_specification(tokens)?
);
}
"TimeToLiveDescription" => {
builder = builder.set_time_to_live_description(
crate::json_deser::deser_structure_crate_model_time_to_live_description(tokens)?
);
}
"SSEDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_sse_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 stream_description(self, input: StreamSpecification) -> Self
pub fn stream_description(self, input: StreamSpecification) -> Self
Stream settings on the table when the backup was created.
sourcepub fn set_stream_description(self, input: Option<StreamSpecification>) -> Self
pub fn set_stream_description(self, input: Option<StreamSpecification>) -> Self
Stream settings on the table when the backup was created.
Examples found in repository?
7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961
pub(crate) fn deser_structure_crate_model_source_table_feature_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::SourceTableFeatureDetails>,
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::source_table_feature_details::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() {
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_local_secondary_indexes(tokens)?
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_global_secondary_indexes(tokens)?
);
}
"StreamDescription" => {
builder = builder.set_stream_description(
crate::json_deser::deser_structure_crate_model_stream_specification(tokens)?
);
}
"TimeToLiveDescription" => {
builder = builder.set_time_to_live_description(
crate::json_deser::deser_structure_crate_model_time_to_live_description(tokens)?
);
}
"SSEDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_sse_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 time_to_live_description(self, input: TimeToLiveDescription) -> Self
pub fn time_to_live_description(self, input: TimeToLiveDescription) -> Self
Time to Live settings on the table when the backup was created.
sourcepub fn set_time_to_live_description(
self,
input: Option<TimeToLiveDescription>
) -> Self
pub fn set_time_to_live_description(
self,
input: Option<TimeToLiveDescription>
) -> Self
Time to Live settings on the table when the backup was created.
Examples found in repository?
7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961
pub(crate) fn deser_structure_crate_model_source_table_feature_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::SourceTableFeatureDetails>,
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::source_table_feature_details::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() {
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_local_secondary_indexes(tokens)?
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_global_secondary_indexes(tokens)?
);
}
"StreamDescription" => {
builder = builder.set_stream_description(
crate::json_deser::deser_structure_crate_model_stream_specification(tokens)?
);
}
"TimeToLiveDescription" => {
builder = builder.set_time_to_live_description(
crate::json_deser::deser_structure_crate_model_time_to_live_description(tokens)?
);
}
"SSEDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_sse_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 sse_description(self, input: SseDescription) -> Self
pub fn sse_description(self, input: SseDescription) -> Self
The description of the server-side encryption status on the table when the backup was created.
sourcepub fn set_sse_description(self, input: Option<SseDescription>) -> Self
pub fn set_sse_description(self, input: Option<SseDescription>) -> Self
The description of the server-side encryption status on the table when the backup was created.
Examples found in repository?
7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961
pub(crate) fn deser_structure_crate_model_source_table_feature_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::SourceTableFeatureDetails>,
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::source_table_feature_details::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() {
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_local_secondary_indexes(tokens)?
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_global_secondary_indexes(tokens)?
);
}
"StreamDescription" => {
builder = builder.set_stream_description(
crate::json_deser::deser_structure_crate_model_stream_specification(tokens)?
);
}
"TimeToLiveDescription" => {
builder = builder.set_time_to_live_description(
crate::json_deser::deser_structure_crate_model_time_to_live_description(tokens)?
);
}
"SSEDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_sse_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) -> SourceTableFeatureDetails
pub fn build(self) -> SourceTableFeatureDetails
Consumes the builder and constructs a SourceTableFeatureDetails
.
Examples found in repository?
7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961
pub(crate) fn deser_structure_crate_model_source_table_feature_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::SourceTableFeatureDetails>,
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::source_table_feature_details::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() {
"LocalSecondaryIndexes" => {
builder = builder.set_local_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_local_secondary_indexes(tokens)?
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_global_secondary_indexes(tokens)?
);
}
"StreamDescription" => {
builder = builder.set_stream_description(
crate::json_deser::deser_structure_crate_model_stream_specification(tokens)?
);
}
"TimeToLiveDescription" => {
builder = builder.set_time_to_live_description(
crate::json_deser::deser_structure_crate_model_time_to_live_description(tokens)?
);
}
"SSEDescription" => {
builder = builder.set_sse_description(
crate::json_deser::deser_structure_crate_model_sse_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",
),
),
}
}