AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartTestExecutionRequest.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/LexModelsV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-models/model/TestExecutionTarget.h>
11#include <aws/lexv2-models/model/TestExecutionApiMode.h>
12#include <aws/lexv2-models/model/TestExecutionModality.h>
13#include <utility>
14
15namespace Aws
16{
17namespace LexModelsV2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LEXMODELSV2_API StartTestExecutionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartTestExecution"; }
34
35 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetTestSetId() const { return m_testSetId; }
43 inline bool TestSetIdHasBeenSet() const { return m_testSetIdHasBeenSet; }
44 template<typename TestSetIdT = Aws::String>
45 void SetTestSetId(TestSetIdT&& value) { m_testSetIdHasBeenSet = true; m_testSetId = std::forward<TestSetIdT>(value); }
46 template<typename TestSetIdT = Aws::String>
47 StartTestExecutionRequest& WithTestSetId(TestSetIdT&& value) { SetTestSetId(std::forward<TestSetIdT>(value)); return *this;}
49
51
54 inline const TestExecutionTarget& GetTarget() const { return m_target; }
55 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
56 template<typename TargetT = TestExecutionTarget>
57 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
58 template<typename TargetT = TestExecutionTarget>
59 StartTestExecutionRequest& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
61
63
69 inline TestExecutionApiMode GetApiMode() const { return m_apiMode; }
70 inline bool ApiModeHasBeenSet() const { return m_apiModeHasBeenSet; }
71 inline void SetApiMode(TestExecutionApiMode value) { m_apiModeHasBeenSet = true; m_apiMode = value; }
74
76
79 inline TestExecutionModality GetTestExecutionModality() const { return m_testExecutionModality; }
80 inline bool TestExecutionModalityHasBeenSet() const { return m_testExecutionModalityHasBeenSet; }
81 inline void SetTestExecutionModality(TestExecutionModality value) { m_testExecutionModalityHasBeenSet = true; m_testExecutionModality = value; }
84 private:
85
86 Aws::String m_testSetId;
87 bool m_testSetIdHasBeenSet = false;
88
89 TestExecutionTarget m_target;
90 bool m_targetHasBeenSet = false;
91
93 bool m_apiModeHasBeenSet = false;
94
96 bool m_testExecutionModalityHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace LexModelsV2
101} // namespace Aws
StartTestExecutionRequest & WithTestSetId(TestSetIdT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
AWS_LEXMODELSV2_API StartTestExecutionRequest()=default
virtual const char * GetServiceRequestName() const override
StartTestExecutionRequest & WithApiMode(TestExecutionApiMode value)
StartTestExecutionRequest & WithTarget(TargetT &&value)
StartTestExecutionRequest & WithTestExecutionModality(TestExecutionModality value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String