AWS SDK for C++

AWS SDK for C++ Version 1.11.870

Loading...
Searching...
No Matches
UpdateTestRequest.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 UpdateTestRequest() = 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 "UpdateTest"; }
32
33 AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetTestId() const { return m_testId; }
40 inline bool TestIdHasBeenSet() const { return m_testIdHasBeenSet; }
41 template <typename TestIdT = Aws::String>
42 void SetTestId(TestIdT&& value) {
43 m_testIdHasBeenSet = true;
44 m_testId = std::forward<TestIdT>(value);
45 }
46 template <typename TestIdT = Aws::String>
47 UpdateTestRequest& WithTestId(TestIdT&& value) {
48 SetTestId(std::forward<TestIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
58 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
59 template <typename ServiceArnT = Aws::String>
60 void SetServiceArn(ServiceArnT&& value) {
61 m_serviceArnHasBeenSet = true;
62 m_serviceArn = std::forward<ServiceArnT>(value);
63 }
64 template <typename ServiceArnT = Aws::String>
65 UpdateTestRequest& WithServiceArn(ServiceArnT&& value) {
66 SetServiceArn(std::forward<ServiceArnT>(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 UpdateTestRequest& 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 UpdateTestRequest& WithStopConditions(StopConditionsT&& value) {
102 SetStopConditions(std::forward<StopConditionsT>(value));
103 return *this;
104 }
105 template <typename StopConditionsT = StopCondition>
106 UpdateTestRequest& 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 UpdateTestRequest& 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 UpdateTestRequest& 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 UpdateTestRequest& 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_testId;
156
157 Aws::String m_serviceArn;
158
159 LoggingConfiguration m_loggingConfiguration;
160
161 Aws::Vector<StopCondition> m_stopConditions;
162
163 Aws::String m_roleName;
164
166 bool m_testIdHasBeenSet = false;
167 bool m_serviceArnHasBeenSet = 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
AWS_RESILIENCEHUBV2_API UpdateTestRequest()=default
UpdateTestRequest & WithTestId(TestIdT &&value)
const Aws::Vector< StopCondition > & GetStopConditions() const
UpdateTestRequest & WithStopConditions(StopConditionsT &&value)
AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override
UpdateTestRequest & AddStopConditions(StopConditionsT &&value)
UpdateTestRequest & WithLoggingConfiguration(LoggingConfigurationT &&value)
UpdateTestRequest & WithServiceArn(ServiceArnT &&value)
const LoggingConfiguration & GetLoggingConfiguration() const
void SetStopConditions(StopConditionsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
void SetLoggingConfiguration(LoggingConfigurationT &&value)
UpdateTestRequest & WithParameters(ParametersT &&value)
UpdateTestRequest & WithRoleName(RoleNameT &&value)
UpdateTestRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
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