AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
CreateTestRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/resiliencehubv2/Resiliencehubv2Request.h>
11#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
12#include <aws/resiliencehubv2/model/LoggingConfiguration.h>
13#include <aws/resiliencehubv2/model/StopCondition.h>
14
15#include <utility>
16
17namespace Aws {
18namespace resiliencehubv2 {
19namespace Model {
20
24 public:
25 AWS_RESILIENCEHUBV2_API CreateTestRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateTest"; }
32
33 AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
40 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
41 template <typename ServiceArnT = Aws::String>
42 void SetServiceArn(ServiceArnT&& value) {
43 m_serviceArnHasBeenSet = true;
44 m_serviceArn = std::forward<ServiceArnT>(value);
45 }
46 template <typename ServiceArnT = Aws::String>
47 CreateTestRequest& WithServiceArn(ServiceArnT&& value) {
48 SetServiceArn(std::forward<ServiceArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetTestTemplateArn() const { return m_testTemplateArn; }
58 inline bool TestTemplateArnHasBeenSet() const { return m_testTemplateArnHasBeenSet; }
59 template <typename TestTemplateArnT = Aws::String>
60 void SetTestTemplateArn(TestTemplateArnT&& value) {
61 m_testTemplateArnHasBeenSet = true;
62 m_testTemplateArn = std::forward<TestTemplateArnT>(value);
63 }
64 template <typename TestTemplateArnT = Aws::String>
65 CreateTestRequest& WithTestTemplateArn(TestTemplateArnT&& value) {
66 SetTestTemplateArn(std::forward<TestTemplateArnT>(value));
67 return *this;
68 }
70
72
75 inline const LoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
76 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
77 template <typename LoggingConfigurationT = LoggingConfiguration>
78 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
79 m_loggingConfigurationHasBeenSet = true;
80 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
81 }
82 template <typename LoggingConfigurationT = LoggingConfiguration>
83 CreateTestRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) {
84 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Vector<StopCondition>& GetStopConditions() const { return m_stopConditions; }
94 inline bool StopConditionsHasBeenSet() const { return m_stopConditionsHasBeenSet; }
95 template <typename StopConditionsT = Aws::Vector<StopCondition>>
96 void SetStopConditions(StopConditionsT&& value) {
97 m_stopConditionsHasBeenSet = true;
98 m_stopConditions = std::forward<StopConditionsT>(value);
99 }
100 template <typename StopConditionsT = Aws::Vector<StopCondition>>
101 CreateTestRequest& WithStopConditions(StopConditionsT&& value) {
102 SetStopConditions(std::forward<StopConditionsT>(value));
103 return *this;
104 }
105 template <typename StopConditionsT = StopCondition>
106 CreateTestRequest& AddStopConditions(StopConditionsT&& value) {
107 m_stopConditionsHasBeenSet = true;
108 m_stopConditions.emplace_back(std::forward<StopConditionsT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetRoleName() const { return m_roleName; }
118 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
119 template <typename RoleNameT = Aws::String>
120 void SetRoleName(RoleNameT&& value) {
121 m_roleNameHasBeenSet = true;
122 m_roleName = std::forward<RoleNameT>(value);
123 }
124 template <typename RoleNameT = Aws::String>
125 CreateTestRequest& WithRoleName(RoleNameT&& value) {
126 SetRoleName(std::forward<RoleNameT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
136 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
137 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
138 void SetParameters(ParametersT&& value) {
139 m_parametersHasBeenSet = true;
140 m_parameters = std::forward<ParametersT>(value);
141 }
142 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
143 CreateTestRequest& WithParameters(ParametersT&& value) {
144 SetParameters(std::forward<ParametersT>(value));
145 return *this;
146 }
147 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
148 CreateTestRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
149 m_parametersHasBeenSet = true;
150 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_serviceArn;
156
157 Aws::String m_testTemplateArn;
158
159 LoggingConfiguration m_loggingConfiguration;
160
161 Aws::Vector<StopCondition> m_stopConditions;
162
163 Aws::String m_roleName;
164
166 bool m_serviceArnHasBeenSet = false;
167 bool m_testTemplateArnHasBeenSet = false;
168 bool m_loggingConfigurationHasBeenSet = false;
169 bool m_stopConditionsHasBeenSet = false;
170 bool m_roleNameHasBeenSet = false;
171 bool m_parametersHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace resiliencehubv2
176} // namespace Aws
CreateTestRequest & WithParameters(ParametersT &&value)
virtual const char * GetServiceRequestName() const override
CreateTestRequest & WithTestTemplateArn(TestTemplateArnT &&value)
const LoggingConfiguration & GetLoggingConfiguration() const
AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override
AWS_RESILIENCEHUBV2_API CreateTestRequest()=default
CreateTestRequest & WithStopConditions(StopConditionsT &&value)
CreateTestRequest & WithLoggingConfiguration(LoggingConfigurationT &&value)
void SetStopConditions(StopConditionsT &&value)
void SetTestTemplateArn(TestTemplateArnT &&value)
const Aws::Vector< StopCondition > & GetStopConditions() const
CreateTestRequest & WithRoleName(RoleNameT &&value)
void SetLoggingConfiguration(LoggingConfigurationT &&value)
CreateTestRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
CreateTestRequest & WithServiceArn(ServiceArnT &&value)
CreateTestRequest & AddStopConditions(StopConditionsT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector