pub struct Builder { /* private fields */ }Expand description
A builder for CreateBotVersionInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn bot_id(self, input: impl Into<String>) -> Self
pub fn bot_id(self, input: impl Into<String>) -> Self
The identifier of the bot to create the version for.
sourcepub fn set_bot_id(self, input: Option<String>) -> Self
pub fn set_bot_id(self, input: Option<String>) -> Self
The identifier of the bot to create the version for.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the version. Use the description to help identify the version in lists.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the version. Use the description to help identify the version in lists.
sourcepub fn bot_version_locale_specification(
self,
k: impl Into<String>,
v: BotVersionLocaleDetails
) -> Self
pub fn bot_version_locale_specification(
self,
k: impl Into<String>,
v: BotVersionLocaleDetails
) -> Self
Adds a key-value pair to bot_version_locale_specification.
To override the contents of this collection use set_bot_version_locale_specification.
Specifies the locales that Amazon Lex adds to this version. You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.
sourcepub fn set_bot_version_locale_specification(
self,
input: Option<HashMap<String, BotVersionLocaleDetails>>
) -> Self
pub fn set_bot_version_locale_specification(
self,
input: Option<HashMap<String, BotVersionLocaleDetails>>
) -> Self
Specifies the locales that Amazon Lex adds to this version. You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.
sourcepub fn build(self) -> Result<CreateBotVersionInput, BuildError>
pub fn build(self) -> Result<CreateBotVersionInput, BuildError>
Consumes the builder and constructs a CreateBotVersionInput.