AWS SDK for C++  1.9.14
AWS SDK for C++
SubmitContainerStateChangeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ECS
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "SubmitContainerStateChange"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetCluster() const{ return m_cluster; }
43 
47  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
48 
52  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
53 
57  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
58 
62  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
63 
67  inline SubmitContainerStateChangeRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
68 
72  inline SubmitContainerStateChangeRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
73 
77  inline SubmitContainerStateChangeRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
78 
79 
84  inline const Aws::String& GetTask() const{ return m_task; }
85 
90  inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
91 
96  inline void SetTask(const Aws::String& value) { m_taskHasBeenSet = true; m_task = value; }
97 
102  inline void SetTask(Aws::String&& value) { m_taskHasBeenSet = true; m_task = std::move(value); }
103 
108  inline void SetTask(const char* value) { m_taskHasBeenSet = true; m_task.assign(value); }
109 
114  inline SubmitContainerStateChangeRequest& WithTask(const Aws::String& value) { SetTask(value); return *this;}
115 
120  inline SubmitContainerStateChangeRequest& WithTask(Aws::String&& value) { SetTask(std::move(value)); return *this;}
121 
126  inline SubmitContainerStateChangeRequest& WithTask(const char* value) { SetTask(value); return *this;}
127 
128 
132  inline const Aws::String& GetContainerName() const{ return m_containerName; }
133 
137  inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
138 
142  inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
143 
147  inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
148 
152  inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
153 
157  inline SubmitContainerStateChangeRequest& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
158 
162  inline SubmitContainerStateChangeRequest& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
163 
167  inline SubmitContainerStateChangeRequest& WithContainerName(const char* value) { SetContainerName(value); return *this;}
168 
169 
173  inline const Aws::String& GetRuntimeId() const{ return m_runtimeId; }
174 
178  inline bool RuntimeIdHasBeenSet() const { return m_runtimeIdHasBeenSet; }
179 
183  inline void SetRuntimeId(const Aws::String& value) { m_runtimeIdHasBeenSet = true; m_runtimeId = value; }
184 
188  inline void SetRuntimeId(Aws::String&& value) { m_runtimeIdHasBeenSet = true; m_runtimeId = std::move(value); }
189 
193  inline void SetRuntimeId(const char* value) { m_runtimeIdHasBeenSet = true; m_runtimeId.assign(value); }
194 
198  inline SubmitContainerStateChangeRequest& WithRuntimeId(const Aws::String& value) { SetRuntimeId(value); return *this;}
199 
203  inline SubmitContainerStateChangeRequest& WithRuntimeId(Aws::String&& value) { SetRuntimeId(std::move(value)); return *this;}
204 
208  inline SubmitContainerStateChangeRequest& WithRuntimeId(const char* value) { SetRuntimeId(value); return *this;}
209 
210 
214  inline const Aws::String& GetStatus() const{ return m_status; }
215 
219  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
220 
224  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
225 
229  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
230 
234  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
235 
239  inline SubmitContainerStateChangeRequest& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
240 
244  inline SubmitContainerStateChangeRequest& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
245 
249  inline SubmitContainerStateChangeRequest& WithStatus(const char* value) { SetStatus(value); return *this;}
250 
251 
255  inline int GetExitCode() const{ return m_exitCode; }
256 
260  inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
261 
265  inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
266 
270  inline SubmitContainerStateChangeRequest& WithExitCode(int value) { SetExitCode(value); return *this;}
271 
272 
276  inline const Aws::String& GetReason() const{ return m_reason; }
277 
281  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
282 
286  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
287 
291  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
292 
296  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
297 
301  inline SubmitContainerStateChangeRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
302 
306  inline SubmitContainerStateChangeRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
307 
311  inline SubmitContainerStateChangeRequest& WithReason(const char* value) { SetReason(value); return *this;}
312 
313 
317  inline const Aws::Vector<NetworkBinding>& GetNetworkBindings() const{ return m_networkBindings; }
318 
322  inline bool NetworkBindingsHasBeenSet() const { return m_networkBindingsHasBeenSet; }
323 
327  inline void SetNetworkBindings(const Aws::Vector<NetworkBinding>& value) { m_networkBindingsHasBeenSet = true; m_networkBindings = value; }
328 
332  inline void SetNetworkBindings(Aws::Vector<NetworkBinding>&& value) { m_networkBindingsHasBeenSet = true; m_networkBindings = std::move(value); }
333 
337  inline SubmitContainerStateChangeRequest& WithNetworkBindings(const Aws::Vector<NetworkBinding>& value) { SetNetworkBindings(value); return *this;}
338 
342  inline SubmitContainerStateChangeRequest& WithNetworkBindings(Aws::Vector<NetworkBinding>&& value) { SetNetworkBindings(std::move(value)); return *this;}
343 
347  inline SubmitContainerStateChangeRequest& AddNetworkBindings(const NetworkBinding& value) { m_networkBindingsHasBeenSet = true; m_networkBindings.push_back(value); return *this; }
348 
352  inline SubmitContainerStateChangeRequest& AddNetworkBindings(NetworkBinding&& value) { m_networkBindingsHasBeenSet = true; m_networkBindings.push_back(std::move(value)); return *this; }
353 
354  private:
355 
356  Aws::String m_cluster;
357  bool m_clusterHasBeenSet;
358 
359  Aws::String m_task;
360  bool m_taskHasBeenSet;
361 
362  Aws::String m_containerName;
363  bool m_containerNameHasBeenSet;
364 
365  Aws::String m_runtimeId;
366  bool m_runtimeIdHasBeenSet;
367 
368  Aws::String m_status;
369  bool m_statusHasBeenSet;
370 
371  int m_exitCode;
372  bool m_exitCodeHasBeenSet;
373 
374  Aws::String m_reason;
375  bool m_reasonHasBeenSet;
376 
377  Aws::Vector<NetworkBinding> m_networkBindings;
378  bool m_networkBindingsHasBeenSet;
379  };
380 
381 } // namespace Model
382 } // namespace ECS
383 } // namespace Aws
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithReason
SubmitContainerStateChangeRequest & WithReason(const char *value)
Definition: SubmitContainerStateChangeRequest.h:311
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetTask
void SetTask(const char *value)
Definition: SubmitContainerStateChangeRequest.h:108
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithRuntimeId
SubmitContainerStateChangeRequest & WithRuntimeId(const Aws::String &value)
Definition: SubmitContainerStateChangeRequest.h:198
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithTask
SubmitContainerStateChangeRequest & WithTask(const char *value)
Definition: SubmitContainerStateChangeRequest.h:126
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithContainerName
SubmitContainerStateChangeRequest & WithContainerName(const Aws::String &value)
Definition: SubmitContainerStateChangeRequest.h:157
Aws::ECS::Model::SubmitContainerStateChangeRequest::SubmitContainerStateChangeRequest
SubmitContainerStateChangeRequest()
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetContainerName
void SetContainerName(const char *value)
Definition: SubmitContainerStateChangeRequest.h:152
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: SubmitContainerStateChangeRequest.h:52
Aws::ECS::Model::SubmitContainerStateChangeRequest::RuntimeIdHasBeenSet
bool RuntimeIdHasBeenSet() const
Definition: SubmitContainerStateChangeRequest.h:178
Aws::ECS::Model::SubmitContainerStateChangeRequest
Definition: SubmitContainerStateChangeRequest.h:24
Aws::ECS::Model::SubmitContainerStateChangeRequest::AddNetworkBindings
SubmitContainerStateChangeRequest & AddNetworkBindings(const NetworkBinding &value)
Definition: SubmitContainerStateChangeRequest.h:347
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetNetworkBindings
void SetNetworkBindings(const Aws::Vector< NetworkBinding > &value)
Definition: SubmitContainerStateChangeRequest.h:327
Aws::ECS::Model::SubmitContainerStateChangeRequest::ContainerNameHasBeenSet
bool ContainerNameHasBeenSet() const
Definition: SubmitContainerStateChangeRequest.h:137
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetStatus
void SetStatus(const Aws::String &value)
Definition: SubmitContainerStateChangeRequest.h:224
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetReason
void SetReason(Aws::String &&value)
Definition: SubmitContainerStateChangeRequest.h:291
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetReason
void SetReason(const char *value)
Definition: SubmitContainerStateChangeRequest.h:296
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::SubmitContainerStateChangeRequest::GetReason
const Aws::String & GetReason() const
Definition: SubmitContainerStateChangeRequest.h:276
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithNetworkBindings
SubmitContainerStateChangeRequest & WithNetworkBindings(Aws::Vector< NetworkBinding > &&value)
Definition: SubmitContainerStateChangeRequest.h:342
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithStatus
SubmitContainerStateChangeRequest & WithStatus(const Aws::String &value)
Definition: SubmitContainerStateChangeRequest.h:239
Aws::ECS::Model::SubmitContainerStateChangeRequest::GetNetworkBindings
const Aws::Vector< NetworkBinding > & GetNetworkBindings() const
Definition: SubmitContainerStateChangeRequest.h:317
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetContainerName
void SetContainerName(const Aws::String &value)
Definition: SubmitContainerStateChangeRequest.h:142
Aws::ECS::Model::SubmitContainerStateChangeRequest::GetCluster
const Aws::String & GetCluster() const
Definition: SubmitContainerStateChangeRequest.h:42
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithCluster
SubmitContainerStateChangeRequest & WithCluster(const Aws::String &value)
Definition: SubmitContainerStateChangeRequest.h:67
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithTask
SubmitContainerStateChangeRequest & WithTask(Aws::String &&value)
Definition: SubmitContainerStateChangeRequest.h:120
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetTask
void SetTask(const Aws::String &value)
Definition: SubmitContainerStateChangeRequest.h:96
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetStatus
void SetStatus(const char *value)
Definition: SubmitContainerStateChangeRequest.h:234
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: SubmitContainerStateChangeRequest.h:57
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithRuntimeId
SubmitContainerStateChangeRequest & WithRuntimeId(Aws::String &&value)
Definition: SubmitContainerStateChangeRequest.h:203
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithReason
SubmitContainerStateChangeRequest & WithReason(Aws::String &&value)
Definition: SubmitContainerStateChangeRequest.h:306
NetworkBinding.h
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetContainerName
void SetContainerName(Aws::String &&value)
Definition: SubmitContainerStateChangeRequest.h:147
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithStatus
SubmitContainerStateChangeRequest & WithStatus(Aws::String &&value)
Definition: SubmitContainerStateChangeRequest.h:244
Aws::ECS::Model::SubmitContainerStateChangeRequest::AddNetworkBindings
SubmitContainerStateChangeRequest & AddNetworkBindings(NetworkBinding &&value)
Definition: SubmitContainerStateChangeRequest.h:352
Aws::ECS::Model::SubmitContainerStateChangeRequest::GetExitCode
int GetExitCode() const
Definition: SubmitContainerStateChangeRequest.h:255
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithExitCode
SubmitContainerStateChangeRequest & WithExitCode(int value)
Definition: SubmitContainerStateChangeRequest.h:270
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetRuntimeId
void SetRuntimeId(const Aws::String &value)
Definition: SubmitContainerStateChangeRequest.h:183
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetReason
void SetReason(const Aws::String &value)
Definition: SubmitContainerStateChangeRequest.h:286
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithContainerName
SubmitContainerStateChangeRequest & WithContainerName(Aws::String &&value)
Definition: SubmitContainerStateChangeRequest.h:162
Aws::ECS::Model::SubmitContainerStateChangeRequest::TaskHasBeenSet
bool TaskHasBeenSet() const
Definition: SubmitContainerStateChangeRequest.h:90
AWSString.h
Aws::ECS::Model::SubmitContainerStateChangeRequest::NetworkBindingsHasBeenSet
bool NetworkBindingsHasBeenSet() const
Definition: SubmitContainerStateChangeRequest.h:322
Aws::ECS::Model::SubmitContainerStateChangeRequest::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: SubmitContainerStateChangeRequest.h:281
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithTask
SubmitContainerStateChangeRequest & WithTask(const Aws::String &value)
Definition: SubmitContainerStateChangeRequest.h:114
Aws::ECS::Model::SubmitContainerStateChangeRequest::GetContainerName
const Aws::String & GetContainerName() const
Definition: SubmitContainerStateChangeRequest.h:132
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetNetworkBindings
void SetNetworkBindings(Aws::Vector< NetworkBinding > &&value)
Definition: SubmitContainerStateChangeRequest.h:332
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetExitCode
void SetExitCode(int value)
Definition: SubmitContainerStateChangeRequest.h:265
Aws::ECS::Model::SubmitContainerStateChangeRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: SubmitContainerStateChangeRequest.h:219
Aws::ECS::Model::SubmitContainerStateChangeRequest::ExitCodeHasBeenSet
bool ExitCodeHasBeenSet() const
Definition: SubmitContainerStateChangeRequest.h:260
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithContainerName
SubmitContainerStateChangeRequest & WithContainerName(const char *value)
Definition: SubmitContainerStateChangeRequest.h:167
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetTask
void SetTask(Aws::String &&value)
Definition: SubmitContainerStateChangeRequest.h:102
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithNetworkBindings
SubmitContainerStateChangeRequest & WithNetworkBindings(const Aws::Vector< NetworkBinding > &value)
Definition: SubmitContainerStateChangeRequest.h:337
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithRuntimeId
SubmitContainerStateChangeRequest & WithRuntimeId(const char *value)
Definition: SubmitContainerStateChangeRequest.h:208
Aws::ECS::Model::SubmitContainerStateChangeRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::SubmitContainerStateChangeRequest::GetStatus
const Aws::String & GetStatus() const
Definition: SubmitContainerStateChangeRequest.h:214
Aws::ECS::Model::SubmitContainerStateChangeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SubmitContainerStateChangeRequest.h:32
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithCluster
SubmitContainerStateChangeRequest & WithCluster(Aws::String &&value)
Definition: SubmitContainerStateChangeRequest.h:72
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithStatus
SubmitContainerStateChangeRequest & WithStatus(const char *value)
Definition: SubmitContainerStateChangeRequest.h:249
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithReason
SubmitContainerStateChangeRequest & WithReason(const Aws::String &value)
Definition: SubmitContainerStateChangeRequest.h:301
Aws::ECS::Model::SubmitContainerStateChangeRequest::GetRuntimeId
const Aws::String & GetRuntimeId() const
Definition: SubmitContainerStateChangeRequest.h:173
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetStatus
void SetStatus(Aws::String &&value)
Definition: SubmitContainerStateChangeRequest.h:229
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetCluster
void SetCluster(const char *value)
Definition: SubmitContainerStateChangeRequest.h:62
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetRuntimeId
void SetRuntimeId(Aws::String &&value)
Definition: SubmitContainerStateChangeRequest.h:188
Aws::ECS::Model::NetworkBinding
Definition: NetworkBinding.h:37
Aws::ECS::Model::SubmitContainerStateChangeRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: SubmitContainerStateChangeRequest.h:47
Aws::ECS::Model::SubmitContainerStateChangeRequest::GetTask
const Aws::String & GetTask() const
Definition: SubmitContainerStateChangeRequest.h:84
Aws::ECS::Model::SubmitContainerStateChangeRequest::SetRuntimeId
void SetRuntimeId(const char *value)
Definition: SubmitContainerStateChangeRequest.h:193
ECS_EXPORTS.h
Aws::ECS::Model::SubmitContainerStateChangeRequest::SerializePayload
Aws::String SerializePayload() const override
ECSRequest.h
Aws::ECS::Model::SubmitContainerStateChangeRequest::WithCluster
SubmitContainerStateChangeRequest & WithCluster(const char *value)
Definition: SubmitContainerStateChangeRequest.h:77