/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace LexModelsV2 { namespace Model { class DescribeTestExecutionResult { public: AWS_LEXMODELSV2_API DescribeTestExecutionResult(); AWS_LEXMODELSV2_API DescribeTestExecutionResult(const Aws::AmazonWebServiceResult& result); AWS_LEXMODELSV2_API DescribeTestExecutionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The execution Id for the test set execution.

*/ inline const Aws::String& GetTestExecutionId() const{ return m_testExecutionId; } /** *

The execution Id for the test set execution.

*/ inline void SetTestExecutionId(const Aws::String& value) { m_testExecutionId = value; } /** *

The execution Id for the test set execution.

*/ inline void SetTestExecutionId(Aws::String&& value) { m_testExecutionId = std::move(value); } /** *

The execution Id for the test set execution.

*/ inline void SetTestExecutionId(const char* value) { m_testExecutionId.assign(value); } /** *

The execution Id for the test set execution.

*/ inline DescribeTestExecutionResult& WithTestExecutionId(const Aws::String& value) { SetTestExecutionId(value); return *this;} /** *

The execution Id for the test set execution.

*/ inline DescribeTestExecutionResult& WithTestExecutionId(Aws::String&& value) { SetTestExecutionId(std::move(value)); return *this;} /** *

The execution Id for the test set execution.

*/ inline DescribeTestExecutionResult& WithTestExecutionId(const char* value) { SetTestExecutionId(value); return *this;} /** *

The execution creation date and time for the test set execution.

*/ inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } /** *

The execution creation date and time for the test set execution.

*/ inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTime = value; } /** *

The execution creation date and time for the test set execution.

*/ inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTime = std::move(value); } /** *

The execution creation date and time for the test set execution.

*/ inline DescribeTestExecutionResult& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} /** *

The execution creation date and time for the test set execution.

*/ inline DescribeTestExecutionResult& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} /** *

The date and time of the last update for the execution.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; } /** *

The date and time of the last update for the execution.

*/ inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTime = value; } /** *

The date and time of the last update for the execution.

*/ inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTime = std::move(value); } /** *

The date and time of the last update for the execution.

*/ inline DescribeTestExecutionResult& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;} /** *

The date and time of the last update for the execution.

*/ inline DescribeTestExecutionResult& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;} /** *

The test execution status for the test execution.

*/ inline const TestExecutionStatus& GetTestExecutionStatus() const{ return m_testExecutionStatus; } /** *

The test execution status for the test execution.

*/ inline void SetTestExecutionStatus(const TestExecutionStatus& value) { m_testExecutionStatus = value; } /** *

The test execution status for the test execution.

*/ inline void SetTestExecutionStatus(TestExecutionStatus&& value) { m_testExecutionStatus = std::move(value); } /** *

The test execution status for the test execution.

*/ inline DescribeTestExecutionResult& WithTestExecutionStatus(const TestExecutionStatus& value) { SetTestExecutionStatus(value); return *this;} /** *

The test execution status for the test execution.

*/ inline DescribeTestExecutionResult& WithTestExecutionStatus(TestExecutionStatus&& value) { SetTestExecutionStatus(std::move(value)); return *this;} /** *

The test set Id for the test set execution.

*/ inline const Aws::String& GetTestSetId() const{ return m_testSetId; } /** *

The test set Id for the test set execution.

*/ inline void SetTestSetId(const Aws::String& value) { m_testSetId = value; } /** *

The test set Id for the test set execution.

*/ inline void SetTestSetId(Aws::String&& value) { m_testSetId = std::move(value); } /** *

The test set Id for the test set execution.

*/ inline void SetTestSetId(const char* value) { m_testSetId.assign(value); } /** *

The test set Id for the test set execution.

*/ inline DescribeTestExecutionResult& WithTestSetId(const Aws::String& value) { SetTestSetId(value); return *this;} /** *

The test set Id for the test set execution.

*/ inline DescribeTestExecutionResult& WithTestSetId(Aws::String&& value) { SetTestSetId(std::move(value)); return *this;} /** *

The test set Id for the test set execution.

*/ inline DescribeTestExecutionResult& WithTestSetId(const char* value) { SetTestSetId(value); return *this;} /** *

The test set name of the test set execution.

*/ inline const Aws::String& GetTestSetName() const{ return m_testSetName; } /** *

The test set name of the test set execution.

*/ inline void SetTestSetName(const Aws::String& value) { m_testSetName = value; } /** *

The test set name of the test set execution.

*/ inline void SetTestSetName(Aws::String&& value) { m_testSetName = std::move(value); } /** *

The test set name of the test set execution.

*/ inline void SetTestSetName(const char* value) { m_testSetName.assign(value); } /** *

The test set name of the test set execution.

*/ inline DescribeTestExecutionResult& WithTestSetName(const Aws::String& value) { SetTestSetName(value); return *this;} /** *

The test set name of the test set execution.

*/ inline DescribeTestExecutionResult& WithTestSetName(Aws::String&& value) { SetTestSetName(std::move(value)); return *this;} /** *

The test set name of the test set execution.

*/ inline DescribeTestExecutionResult& WithTestSetName(const char* value) { SetTestSetName(value); return *this;} /** *

The target bot for the test set execution details.

*/ inline const TestExecutionTarget& GetTarget() const{ return m_target; } /** *

The target bot for the test set execution details.

*/ inline void SetTarget(const TestExecutionTarget& value) { m_target = value; } /** *

The target bot for the test set execution details.

*/ inline void SetTarget(TestExecutionTarget&& value) { m_target = std::move(value); } /** *

The target bot for the test set execution details.

*/ inline DescribeTestExecutionResult& WithTarget(const TestExecutionTarget& value) { SetTarget(value); return *this;} /** *

The target bot for the test set execution details.

*/ inline DescribeTestExecutionResult& WithTarget(TestExecutionTarget&& value) { SetTarget(std::move(value)); return *this;} /** *

Indicates whether we use streaming or non-streaming APIs are used for the * test set execution. For streaming, StartConversation Amazon Lex * Runtime API is used. Whereas for non-streaming, RecognizeUtterance * and RecognizeText Amazon Lex Runtime API is used.

*/ inline const TestExecutionApiMode& GetApiMode() const{ return m_apiMode; } /** *

Indicates whether we use streaming or non-streaming APIs are used for the * test set execution. For streaming, StartConversation Amazon Lex * Runtime API is used. Whereas for non-streaming, RecognizeUtterance * and RecognizeText Amazon Lex Runtime API is used.

*/ inline void SetApiMode(const TestExecutionApiMode& value) { m_apiMode = value; } /** *

Indicates whether we use streaming or non-streaming APIs are used for the * test set execution. For streaming, StartConversation Amazon Lex * Runtime API is used. Whereas for non-streaming, RecognizeUtterance * and RecognizeText Amazon Lex Runtime API is used.

*/ inline void SetApiMode(TestExecutionApiMode&& value) { m_apiMode = std::move(value); } /** *

Indicates whether we use streaming or non-streaming APIs are used for the * test set execution. For streaming, StartConversation Amazon Lex * Runtime API is used. Whereas for non-streaming, RecognizeUtterance * and RecognizeText Amazon Lex Runtime API is used.

*/ inline DescribeTestExecutionResult& WithApiMode(const TestExecutionApiMode& value) { SetApiMode(value); return *this;} /** *

Indicates whether we use streaming or non-streaming APIs are used for the * test set execution. For streaming, StartConversation Amazon Lex * Runtime API is used. Whereas for non-streaming, RecognizeUtterance * and RecognizeText Amazon Lex Runtime API is used.

*/ inline DescribeTestExecutionResult& WithApiMode(TestExecutionApiMode&& value) { SetApiMode(std::move(value)); return *this;} /** *

Indicates whether test set is audio or text.

*/ inline const TestExecutionModality& GetTestExecutionModality() const{ return m_testExecutionModality; } /** *

Indicates whether test set is audio or text.

*/ inline void SetTestExecutionModality(const TestExecutionModality& value) { m_testExecutionModality = value; } /** *

Indicates whether test set is audio or text.

*/ inline void SetTestExecutionModality(TestExecutionModality&& value) { m_testExecutionModality = std::move(value); } /** *

Indicates whether test set is audio or text.

*/ inline DescribeTestExecutionResult& WithTestExecutionModality(const TestExecutionModality& value) { SetTestExecutionModality(value); return *this;} /** *

Indicates whether test set is audio or text.

*/ inline DescribeTestExecutionResult& WithTestExecutionModality(TestExecutionModality&& value) { SetTestExecutionModality(std::move(value)); return *this;} /** *

Reasons for the failure of the test set execution.

*/ inline const Aws::Vector& GetFailureReasons() const{ return m_failureReasons; } /** *

Reasons for the failure of the test set execution.

*/ inline void SetFailureReasons(const Aws::Vector& value) { m_failureReasons = value; } /** *

Reasons for the failure of the test set execution.

*/ inline void SetFailureReasons(Aws::Vector&& value) { m_failureReasons = std::move(value); } /** *

Reasons for the failure of the test set execution.

*/ inline DescribeTestExecutionResult& WithFailureReasons(const Aws::Vector& value) { SetFailureReasons(value); return *this;} /** *

Reasons for the failure of the test set execution.

*/ inline DescribeTestExecutionResult& WithFailureReasons(Aws::Vector&& value) { SetFailureReasons(std::move(value)); return *this;} /** *

Reasons for the failure of the test set execution.

*/ inline DescribeTestExecutionResult& AddFailureReasons(const Aws::String& value) { m_failureReasons.push_back(value); return *this; } /** *

Reasons for the failure of the test set execution.

*/ inline DescribeTestExecutionResult& AddFailureReasons(Aws::String&& value) { m_failureReasons.push_back(std::move(value)); return *this; } /** *

Reasons for the failure of the test set execution.

*/ inline DescribeTestExecutionResult& AddFailureReasons(const char* value) { m_failureReasons.push_back(value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeTestExecutionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeTestExecutionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeTestExecutionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_testExecutionId; Aws::Utils::DateTime m_creationDateTime; Aws::Utils::DateTime m_lastUpdatedDateTime; TestExecutionStatus m_testExecutionStatus; Aws::String m_testSetId; Aws::String m_testSetName; TestExecutionTarget m_target; TestExecutionApiMode m_apiMode; TestExecutionModality m_testExecutionModality; Aws::Vector m_failureReasons; Aws::String m_requestId; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws