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 ==
.