AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
StartTestExecutionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-models/LexModelsV2Request.h>
9#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
10#include <aws/lexv2-models/model/TestExecutionApiMode.h>
11#include <aws/lexv2-models/model/TestExecutionModality.h>
12#include <aws/lexv2-models/model/TestExecutionTarget.h>
13
14#include <utility>
15
16namespace Aws {
17namespace LexModelsV2 {
18namespace Model {
19
23 public:
24 AWS_LEXMODELSV2_API StartTestExecutionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StartTestExecution"; }
31
32 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetTestSetId() const { return m_testSetId; }
39 inline bool TestSetIdHasBeenSet() const { return m_testSetIdHasBeenSet; }
40 template <typename TestSetIdT = Aws::String>
41 void SetTestSetId(TestSetIdT&& value) {
42 m_testSetIdHasBeenSet = true;
43 m_testSetId = std::forward<TestSetIdT>(value);
44 }
45 template <typename TestSetIdT = Aws::String>
47 SetTestSetId(std::forward<TestSetIdT>(value));
48 return *this;
49 }
51
53
56 inline const TestExecutionTarget& GetTarget() const { return m_target; }
57 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
58 template <typename TargetT = TestExecutionTarget>
59 void SetTarget(TargetT&& value) {
60 m_targetHasBeenSet = true;
61 m_target = std::forward<TargetT>(value);
62 }
63 template <typename TargetT = TestExecutionTarget>
65 SetTarget(std::forward<TargetT>(value));
66 return *this;
67 }
69
71
77 inline TestExecutionApiMode GetApiMode() const { return m_apiMode; }
78 inline bool ApiModeHasBeenSet() const { return m_apiModeHasBeenSet; }
79 inline void SetApiMode(TestExecutionApiMode value) {
80 m_apiModeHasBeenSet = true;
81 m_apiMode = value;
82 }
84 SetApiMode(value);
85 return *this;
86 }
88
90
93 inline TestExecutionModality GetTestExecutionModality() const { return m_testExecutionModality; }
94 inline bool TestExecutionModalityHasBeenSet() const { return m_testExecutionModalityHasBeenSet; }
96 m_testExecutionModalityHasBeenSet = true;
97 m_testExecutionModality = value;
98 }
101 return *this;
102 }
104 private:
105 Aws::String m_testSetId;
106
107 TestExecutionTarget m_target;
108
110
112 bool m_testSetIdHasBeenSet = false;
113 bool m_targetHasBeenSet = false;
114 bool m_apiModeHasBeenSet = false;
115 bool m_testExecutionModalityHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace LexModelsV2
120} // 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