AWS SDK for C++  0.14.3
AWS SDK for C++
SubmitContainerStateChangeRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ecs/ECS_EXPORTS.h>
17 #include <aws/ecs/ECSRequest.h>
21 
22 namespace Aws
23 {
24 namespace ECS
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
43  inline const Aws::String& GetCluster() const{ return m_cluster; }
44 
49  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
50 
55  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = value; }
56 
61  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
62 
67  inline SubmitContainerStateChangeRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
68 
73  inline SubmitContainerStateChangeRequest& WithCluster(Aws::String&& value) { SetCluster(value); return *this;}
74 
79  inline SubmitContainerStateChangeRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
80 
85  inline const Aws::String& GetTask() const{ return m_task; }
86 
91  inline void SetTask(const Aws::String& value) { m_taskHasBeenSet = true; m_task = value; }
92 
97  inline void SetTask(Aws::String&& value) { m_taskHasBeenSet = true; m_task = value; }
98 
103  inline void SetTask(const char* value) { m_taskHasBeenSet = true; m_task.assign(value); }
104 
109  inline SubmitContainerStateChangeRequest& WithTask(const Aws::String& value) { SetTask(value); return *this;}
110 
115  inline SubmitContainerStateChangeRequest& WithTask(Aws::String&& value) { SetTask(value); return *this;}
116 
121  inline SubmitContainerStateChangeRequest& WithTask(const char* value) { SetTask(value); return *this;}
122 
126  inline const Aws::String& GetContainerName() const{ return m_containerName; }
127 
131  inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
132 
136  inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
137 
141  inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
142 
146  inline SubmitContainerStateChangeRequest& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
147 
151  inline SubmitContainerStateChangeRequest& WithContainerName(Aws::String&& value) { SetContainerName(value); return *this;}
152 
156  inline SubmitContainerStateChangeRequest& WithContainerName(const char* value) { SetContainerName(value); return *this;}
157 
161  inline const Aws::String& GetStatus() const{ return m_status; }
162 
166  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
167 
171  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
172 
176  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
177 
181  inline SubmitContainerStateChangeRequest& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
182 
186  inline SubmitContainerStateChangeRequest& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
187 
191  inline SubmitContainerStateChangeRequest& WithStatus(const char* value) { SetStatus(value); return *this;}
192 
196  inline int GetExitCode() const{ return m_exitCode; }
197 
201  inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
202 
206  inline SubmitContainerStateChangeRequest& WithExitCode(int value) { SetExitCode(value); return *this;}
207 
211  inline const Aws::String& GetReason() const{ return m_reason; }
212 
216  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
217 
221  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = value; }
222 
226  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
227 
231  inline SubmitContainerStateChangeRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
232 
236  inline SubmitContainerStateChangeRequest& WithReason(Aws::String&& value) { SetReason(value); return *this;}
237 
241  inline SubmitContainerStateChangeRequest& WithReason(const char* value) { SetReason(value); return *this;}
242 
246  inline const Aws::Vector<NetworkBinding>& GetNetworkBindings() const{ return m_networkBindings; }
247 
251  inline void SetNetworkBindings(const Aws::Vector<NetworkBinding>& value) { m_networkBindingsHasBeenSet = true; m_networkBindings = value; }
252 
256  inline void SetNetworkBindings(Aws::Vector<NetworkBinding>&& value) { m_networkBindingsHasBeenSet = true; m_networkBindings = value; }
257 
261  inline SubmitContainerStateChangeRequest& WithNetworkBindings(const Aws::Vector<NetworkBinding>& value) { SetNetworkBindings(value); return *this;}
262 
266  inline SubmitContainerStateChangeRequest& WithNetworkBindings(Aws::Vector<NetworkBinding>&& value) { SetNetworkBindings(value); return *this;}
267 
271  inline SubmitContainerStateChangeRequest& AddNetworkBindings(const NetworkBinding& value) { m_networkBindingsHasBeenSet = true; m_networkBindings.push_back(value); return *this; }
272 
276  inline SubmitContainerStateChangeRequest& AddNetworkBindings(NetworkBinding&& value) { m_networkBindingsHasBeenSet = true; m_networkBindings.push_back(value); return *this; }
277 
278  private:
279  Aws::String m_cluster;
280  bool m_clusterHasBeenSet;
281  Aws::String m_task;
282  bool m_taskHasBeenSet;
283  Aws::String m_containerName;
284  bool m_containerNameHasBeenSet;
285  Aws::String m_status;
286  bool m_statusHasBeenSet;
287  int m_exitCode;
288  bool m_exitCodeHasBeenSet;
289  Aws::String m_reason;
290  bool m_reasonHasBeenSet;
291  Aws::Vector<NetworkBinding> m_networkBindings;
292  bool m_networkBindingsHasBeenSet;
293  };
294 
295 } // namespace Model
296 } // namespace ECS
297 } // namespace Aws
SubmitContainerStateChangeRequest & WithNetworkBindings(const Aws::Vector< NetworkBinding > &value)
SubmitContainerStateChangeRequest & WithStatus(Aws::String &&value)
SubmitContainerStateChangeRequest & WithReason(Aws::String &&value)
SubmitContainerStateChangeRequest & WithStatus(const Aws::String &value)
SubmitContainerStateChangeRequest & WithTask(const Aws::String &value)
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:37
SubmitContainerStateChangeRequest & WithContainerName(Aws::String &&value)
SubmitContainerStateChangeRequest & WithCluster(Aws::String &&value)
SubmitContainerStateChangeRequest & WithContainerName(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
SubmitContainerStateChangeRequest & WithReason(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
SubmitContainerStateChangeRequest & WithCluster(const Aws::String &value)
SubmitContainerStateChangeRequest & WithTask(Aws::String &&value)
SubmitContainerStateChangeRequest & AddNetworkBindings(NetworkBinding &&value)
SubmitContainerStateChangeRequest & WithContainerName(const Aws::String &value)
const Aws::Vector< NetworkBinding > & GetNetworkBindings() const
SubmitContainerStateChangeRequest & WithNetworkBindings(Aws::Vector< NetworkBinding > &&value)
SubmitContainerStateChangeRequest & WithCluster(const char *value)
SubmitContainerStateChangeRequest & WithStatus(const char *value)
void SetNetworkBindings(Aws::Vector< NetworkBinding > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SubmitContainerStateChangeRequest & AddNetworkBindings(const NetworkBinding &value)
void SetNetworkBindings(const Aws::Vector< NetworkBinding > &value)
SubmitContainerStateChangeRequest & WithExitCode(int value)
SubmitContainerStateChangeRequest & WithReason(const Aws::String &value)
SubmitContainerStateChangeRequest & WithTask(const char *value)
JSON (JavaScript Object Notation).