Struct aws_sdk_dynamodb::output::list_imports_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ListImportsOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn import_summary_list(self, input: ImportSummary) -> Self
pub fn import_summary_list(self, input: ImportSummary) -> Self
Appends an item to import_summary_list
.
To override the contents of this collection use set_import_summary_list
.
A list of ImportSummary
objects.
sourcepub fn set_import_summary_list(self, input: Option<Vec<ImportSummary>>) -> Self
pub fn set_import_summary_list(self, input: Option<Vec<ImportSummary>>) -> Self
A list of ImportSummary
objects.
Examples found in repository?
src/json_deser.rs (lines 3116-3118)
3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150
pub(crate) fn deser_operation_crate_operation_list_imports(
value: &[u8],
mut builder: crate::output::list_imports_output::Builder,
) -> Result<
crate::output::list_imports_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() {
"ImportSummaryList" => {
builder = builder.set_import_summary_list(
crate::json_deser::deser_list_com_amazonaws_dynamodb_import_summary_list(tokens)?
);
}
"NextToken" => {
builder = builder.set_next_token(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
If this value is returned, there are additional results to be displayed. To retrieve them, call ListImports
again, with NextToken
set to this value.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
If this value is returned, there are additional results to be displayed. To retrieve them, call ListImports
again, with NextToken
set to this value.
Examples found in repository?
src/json_deser.rs (lines 3121-3127)
3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150
pub(crate) fn deser_operation_crate_operation_list_imports(
value: &[u8],
mut builder: crate::output::list_imports_output::Builder,
) -> Result<
crate::output::list_imports_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() {
"ImportSummaryList" => {
builder = builder.set_import_summary_list(
crate::json_deser::deser_list_com_amazonaws_dynamodb_import_summary_list(tokens)?
);
}
"NextToken" => {
builder = builder.set_next_token(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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) -> ListImportsOutput
pub fn build(self) -> ListImportsOutput
Consumes the builder and constructs a ListImportsOutput
.
Examples found in repository?
src/operation_deser.rs (line 3418)
3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420
pub fn parse_list_imports_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::ListImportsOutput, crate::error::ListImportsError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::list_imports_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_list_imports(
response.body().as_ref(),
output,
)
.map_err(crate::error::ListImportsError::unhandled)?;
output.build()
})
}