pub struct Builder { /* private fields */ }Expand description
A builder for ExportResourceSpecification.
Implementations§
source§impl Builder
impl Builder
sourcepub fn bot_export_specification(self, input: BotExportSpecification) -> Self
pub fn bot_export_specification(self, input: BotExportSpecification) -> Self
Parameters for exporting a bot.
sourcepub fn set_bot_export_specification(
self,
input: Option<BotExportSpecification>
) -> Self
pub fn set_bot_export_specification(
self,
input: Option<BotExportSpecification>
) -> Self
Parameters for exporting a bot.
Examples found in repository?
src/json_deser.rs (lines 6769-6771)
6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804
pub(crate) fn deser_structure_crate_model_export_resource_specification<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ExportResourceSpecification>,
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::export_resource_specification::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() {
"botExportSpecification" => {
builder = builder.set_bot_export_specification(
crate::json_deser::deser_structure_crate_model_bot_export_specification(tokens)?
);
}
"botLocaleExportSpecification" => {
builder = builder.set_bot_locale_export_specification(
crate::json_deser::deser_structure_crate_model_bot_locale_export_specification(tokens)?
);
}
"customVocabularyExportSpecification" => {
builder = builder.set_custom_vocabulary_export_specification(
crate::json_deser::deser_structure_crate_model_custom_vocabulary_export_specification(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 bot_locale_export_specification(
self,
input: BotLocaleExportSpecification
) -> Self
pub fn bot_locale_export_specification(
self,
input: BotLocaleExportSpecification
) -> Self
Parameters for exporting a bot locale.
sourcepub fn set_bot_locale_export_specification(
self,
input: Option<BotLocaleExportSpecification>
) -> Self
pub fn set_bot_locale_export_specification(
self,
input: Option<BotLocaleExportSpecification>
) -> Self
Parameters for exporting a bot locale.
Examples found in repository?
src/json_deser.rs (lines 6774-6776)
6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804
pub(crate) fn deser_structure_crate_model_export_resource_specification<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ExportResourceSpecification>,
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::export_resource_specification::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() {
"botExportSpecification" => {
builder = builder.set_bot_export_specification(
crate::json_deser::deser_structure_crate_model_bot_export_specification(tokens)?
);
}
"botLocaleExportSpecification" => {
builder = builder.set_bot_locale_export_specification(
crate::json_deser::deser_structure_crate_model_bot_locale_export_specification(tokens)?
);
}
"customVocabularyExportSpecification" => {
builder = builder.set_custom_vocabulary_export_specification(
crate::json_deser::deser_structure_crate_model_custom_vocabulary_export_specification(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 custom_vocabulary_export_specification(
self,
input: CustomVocabularyExportSpecification
) -> Self
pub fn custom_vocabulary_export_specification(
self,
input: CustomVocabularyExportSpecification
) -> Self
The parameters required to export a custom vocabulary.
sourcepub fn set_custom_vocabulary_export_specification(
self,
input: Option<CustomVocabularyExportSpecification>
) -> Self
pub fn set_custom_vocabulary_export_specification(
self,
input: Option<CustomVocabularyExportSpecification>
) -> Self
The parameters required to export a custom vocabulary.
Examples found in repository?
src/json_deser.rs (lines 6779-6781)
6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804
pub(crate) fn deser_structure_crate_model_export_resource_specification<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ExportResourceSpecification>,
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::export_resource_specification::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() {
"botExportSpecification" => {
builder = builder.set_bot_export_specification(
crate::json_deser::deser_structure_crate_model_bot_export_specification(tokens)?
);
}
"botLocaleExportSpecification" => {
builder = builder.set_bot_locale_export_specification(
crate::json_deser::deser_structure_crate_model_bot_locale_export_specification(tokens)?
);
}
"customVocabularyExportSpecification" => {
builder = builder.set_custom_vocabulary_export_specification(
crate::json_deser::deser_structure_crate_model_custom_vocabulary_export_specification(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) -> ExportResourceSpecification
pub fn build(self) -> ExportResourceSpecification
Consumes the builder and constructs a ExportResourceSpecification.
Examples found in repository?
src/json_deser.rs (line 6796)
6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804
pub(crate) fn deser_structure_crate_model_export_resource_specification<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ExportResourceSpecification>,
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::export_resource_specification::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() {
"botExportSpecification" => {
builder = builder.set_bot_export_specification(
crate::json_deser::deser_structure_crate_model_bot_export_specification(tokens)?
);
}
"botLocaleExportSpecification" => {
builder = builder.set_bot_locale_export_specification(
crate::json_deser::deser_structure_crate_model_bot_locale_export_specification(tokens)?
);
}
"customVocabularyExportSpecification" => {
builder = builder.set_custom_vocabulary_export_specification(
crate::json_deser::deser_structure_crate_model_custom_vocabulary_export_specification(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",
),
),
}
}