Struct aws_sdk_lexmodelsv2::operation::start_test_execution::builders::StartTestExecutionInputBuilder
source · #[non_exhaustive]pub struct StartTestExecutionInputBuilder { /* private fields */ }
Expand description
A builder for StartTestExecutionInput
.
Implementations§
source§impl StartTestExecutionInputBuilder
impl StartTestExecutionInputBuilder
sourcepub fn test_set_id(self, input: impl Into<String>) -> Self
pub fn test_set_id(self, input: impl Into<String>) -> Self
The test set Id for the test set execution.
This field is required.sourcepub fn set_test_set_id(self, input: Option<String>) -> Self
pub fn set_test_set_id(self, input: Option<String>) -> Self
The test set Id for the test set execution.
sourcepub fn get_test_set_id(&self) -> &Option<String>
pub fn get_test_set_id(&self) -> &Option<String>
The test set Id for the test set execution.
sourcepub fn target(self, input: TestExecutionTarget) -> Self
pub fn target(self, input: TestExecutionTarget) -> Self
The target bot for the test set execution.
This field is required.sourcepub fn set_target(self, input: Option<TestExecutionTarget>) -> Self
pub fn set_target(self, input: Option<TestExecutionTarget>) -> Self
The target bot for the test set execution.
sourcepub fn get_target(&self) -> &Option<TestExecutionTarget>
pub fn get_target(&self) -> &Option<TestExecutionTarget>
The target bot for the test set execution.
sourcepub fn api_mode(self, input: TestExecutionApiMode) -> Self
pub fn api_mode(self, input: TestExecutionApiMode) -> Self
Indicates whether we use streaming or non-streaming APIs for the test set execution. For streaming, StartConversation Runtime API is used. Whereas, for non-streaming, RecognizeUtterance and RecognizeText Amazon Lex Runtime API are used.
This field is required.sourcepub fn set_api_mode(self, input: Option<TestExecutionApiMode>) -> Self
pub fn set_api_mode(self, input: Option<TestExecutionApiMode>) -> Self
Indicates whether we use streaming or non-streaming APIs for the test set execution. For streaming, StartConversation Runtime API is used. Whereas, for non-streaming, RecognizeUtterance and RecognizeText Amazon Lex Runtime API are used.
sourcepub fn get_api_mode(&self) -> &Option<TestExecutionApiMode>
pub fn get_api_mode(&self) -> &Option<TestExecutionApiMode>
Indicates whether we use streaming or non-streaming APIs for the test set execution. For streaming, StartConversation Runtime API is used. Whereas, for non-streaming, RecognizeUtterance and RecognizeText Amazon Lex Runtime API are used.
sourcepub fn test_execution_modality(self, input: TestExecutionModality) -> Self
pub fn test_execution_modality(self, input: TestExecutionModality) -> Self
Indicates whether audio or text is used.
sourcepub fn set_test_execution_modality(
self,
input: Option<TestExecutionModality>,
) -> Self
pub fn set_test_execution_modality( self, input: Option<TestExecutionModality>, ) -> Self
Indicates whether audio or text is used.
sourcepub fn get_test_execution_modality(&self) -> &Option<TestExecutionModality>
pub fn get_test_execution_modality(&self) -> &Option<TestExecutionModality>
Indicates whether audio or text is used.
sourcepub fn build(self) -> Result<StartTestExecutionInput, BuildError>
pub fn build(self) -> Result<StartTestExecutionInput, BuildError>
Consumes the builder and constructs a StartTestExecutionInput
.
source§impl StartTestExecutionInputBuilder
impl StartTestExecutionInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<StartTestExecutionOutput, SdkError<StartTestExecutionError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<StartTestExecutionOutput, SdkError<StartTestExecutionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for StartTestExecutionInputBuilder
impl Clone for StartTestExecutionInputBuilder
source§fn clone(&self) -> StartTestExecutionInputBuilder
fn clone(&self) -> StartTestExecutionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for StartTestExecutionInputBuilder
impl Default for StartTestExecutionInputBuilder
source§fn default() -> StartTestExecutionInputBuilder
fn default() -> StartTestExecutionInputBuilder
source§impl PartialEq for StartTestExecutionInputBuilder
impl PartialEq for StartTestExecutionInputBuilder
source§fn eq(&self, other: &StartTestExecutionInputBuilder) -> bool
fn eq(&self, other: &StartTestExecutionInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for StartTestExecutionInputBuilder
Auto Trait Implementations§
impl Freeze for StartTestExecutionInputBuilder
impl RefUnwindSafe for StartTestExecutionInputBuilder
impl Send for StartTestExecutionInputBuilder
impl Sync for StartTestExecutionInputBuilder
impl Unpin for StartTestExecutionInputBuilder
impl UnwindSafe for StartTestExecutionInputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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