Struct aws_sdk_lexmodelsv2::operation::create_bot_version::builders::CreateBotVersionInputBuilder
source · #[non_exhaustive]pub struct CreateBotVersionInputBuilder { /* private fields */ }
Expand description
A builder for CreateBotVersionInput
.
Implementations§
source§impl CreateBotVersionInputBuilder
impl CreateBotVersionInputBuilder
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.
This field is required.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 get_bot_id(&self) -> &Option<String>
pub fn get_bot_id(&self) -> &Option<String>
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 get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
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 get_bot_version_locale_specification(
&self
) -> &Option<HashMap<String, BotVersionLocaleDetails>>
pub fn get_bot_version_locale_specification( &self ) -> &Option<HashMap<String, BotVersionLocaleDetails>>
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
.
source§impl CreateBotVersionInputBuilder
impl CreateBotVersionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateBotVersionOutput, SdkError<CreateBotVersionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateBotVersionOutput, SdkError<CreateBotVersionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateBotVersionInputBuilder
impl Clone for CreateBotVersionInputBuilder
source§fn clone(&self) -> CreateBotVersionInputBuilder
fn clone(&self) -> CreateBotVersionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateBotVersionInputBuilder
impl Debug for CreateBotVersionInputBuilder
source§impl Default for CreateBotVersionInputBuilder
impl Default for CreateBotVersionInputBuilder
source§fn default() -> CreateBotVersionInputBuilder
fn default() -> CreateBotVersionInputBuilder
source§impl PartialEq for CreateBotVersionInputBuilder
impl PartialEq for CreateBotVersionInputBuilder
source§fn eq(&self, other: &CreateBotVersionInputBuilder) -> bool
fn eq(&self, other: &CreateBotVersionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateBotVersionInputBuilder
Auto Trait Implementations§
impl Freeze for CreateBotVersionInputBuilder
impl RefUnwindSafe for CreateBotVersionInputBuilder
impl Send for CreateBotVersionInputBuilder
impl Sync for CreateBotVersionInputBuilder
impl Unpin for CreateBotVersionInputBuilder
impl UnwindSafe for CreateBotVersionInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more