AWS SDK for C++  0.14.3
AWS SDK for C++
Deployment.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>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace ECS
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  Deployment();
41  Deployment(const Aws::Utils::Json::JsonValue& jsonValue);
42  Deployment& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetId() const{ return m_id; }
49 
53  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 
58  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
59 
63  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
64 
68  inline Deployment& WithId(const Aws::String& value) { SetId(value); return *this;}
69 
73  inline Deployment& WithId(Aws::String&& value) { SetId(value); return *this;}
74 
78  inline Deployment& WithId(const char* value) { SetId(value); return *this;}
79 
87  inline const Aws::String& GetStatus() const{ return m_status; }
88 
96  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
97 
105  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
106 
114  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
115 
123  inline Deployment& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
124 
132  inline Deployment& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
133 
141  inline Deployment& WithStatus(const char* value) { SetStatus(value); return *this;}
142 
147  inline const Aws::String& GetTaskDefinition() const{ return m_taskDefinition; }
148 
153  inline void SetTaskDefinition(const Aws::String& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = value; }
154 
159  inline void SetTaskDefinition(Aws::String&& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = value; }
160 
165  inline void SetTaskDefinition(const char* value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition.assign(value); }
166 
171  inline Deployment& WithTaskDefinition(const Aws::String& value) { SetTaskDefinition(value); return *this;}
172 
177  inline Deployment& WithTaskDefinition(Aws::String&& value) { SetTaskDefinition(value); return *this;}
178 
183  inline Deployment& WithTaskDefinition(const char* value) { SetTaskDefinition(value); return *this;}
184 
189  inline int GetDesiredCount() const{ return m_desiredCount; }
190 
195  inline void SetDesiredCount(int value) { m_desiredCountHasBeenSet = true; m_desiredCount = value; }
196 
201  inline Deployment& WithDesiredCount(int value) { SetDesiredCount(value); return *this;}
202 
207  inline int GetPendingCount() const{ return m_pendingCount; }
208 
213  inline void SetPendingCount(int value) { m_pendingCountHasBeenSet = true; m_pendingCount = value; }
214 
219  inline Deployment& WithPendingCount(int value) { SetPendingCount(value); return *this;}
220 
225  inline int GetRunningCount() const{ return m_runningCount; }
226 
231  inline void SetRunningCount(int value) { m_runningCountHasBeenSet = true; m_runningCount = value; }
232 
237  inline Deployment& WithRunningCount(int value) { SetRunningCount(value); return *this;}
238 
242  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
243 
247  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
248 
252  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
253 
257  inline Deployment& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
258 
262  inline Deployment& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(value); return *this;}
263 
267  inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
268 
272  inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
273 
277  inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
278 
282  inline Deployment& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
283 
287  inline Deployment& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(value); return *this;}
288 
289  private:
290  Aws::String m_id;
291  bool m_idHasBeenSet;
292  Aws::String m_status;
293  bool m_statusHasBeenSet;
294  Aws::String m_taskDefinition;
295  bool m_taskDefinitionHasBeenSet;
296  int m_desiredCount;
297  bool m_desiredCountHasBeenSet;
298  int m_pendingCount;
299  bool m_pendingCountHasBeenSet;
300  int m_runningCount;
301  bool m_runningCountHasBeenSet;
302  Aws::Utils::DateTime m_createdAt;
303  bool m_createdAtHasBeenSet;
304  Aws::Utils::DateTime m_updatedAt;
305  bool m_updatedAtHasBeenSet;
306  };
307 
308 } // namespace Model
309 } // namespace ECS
310 } // namespace Aws
void SetId(const Aws::String &value)
Definition: Deployment.h:53
Deployment & WithTaskDefinition(const Aws::String &value)
Definition: Deployment.h:171
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: Deployment.h:252
int GetRunningCount() const
Definition: Deployment.h:225
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: Deployment.h:247
Deployment & WithStatus(const Aws::String &value)
Definition: Deployment.h:123
Deployment & WithStatus(Aws::String &&value)
Definition: Deployment.h:132
Deployment & WithRunningCount(int value)
Definition: Deployment.h:237
void SetUpdatedAt(const Aws::Utils::DateTime &value)
Definition: Deployment.h:272
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:37
void SetRunningCount(int value)
Definition: Deployment.h:231
Deployment & WithPendingCount(int value)
Definition: Deployment.h:219
void SetTaskDefinition(const Aws::String &value)
Definition: Deployment.h:153
void SetTaskDefinition(const char *value)
Definition: Deployment.h:165
const Aws::String & GetId() const
Definition: Deployment.h:48
Deployment & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: Deployment.h:262
Deployment & WithId(const Aws::String &value)
Definition: Deployment.h:68
void SetStatus(Aws::String &&value)
Definition: Deployment.h:105
void SetPendingCount(int value)
Definition: Deployment.h:213
int GetPendingCount() const
Definition: Deployment.h:207
Deployment & WithDesiredCount(int value)
Definition: Deployment.h:201
const Aws::String & GetTaskDefinition() const
Definition: Deployment.h:147
Deployment & WithUpdatedAt(Aws::Utils::DateTime &&value)
Definition: Deployment.h:287
void SetId(Aws::String &&value)
Definition: Deployment.h:58
Deployment & WithStatus(const char *value)
Definition: Deployment.h:141
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition: Deployment.h:267
Deployment & WithId(Aws::String &&value)
Definition: Deployment.h:73
Deployment & WithUpdatedAt(const Aws::Utils::DateTime &value)
Definition: Deployment.h:282
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetUpdatedAt(Aws::Utils::DateTime &&value)
Definition: Deployment.h:277
Deployment & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: Deployment.h:257
void SetTaskDefinition(Aws::String &&value)
Definition: Deployment.h:159
int GetDesiredCount() const
Definition: Deployment.h:189
void SetStatus(const Aws::String &value)
Definition: Deployment.h:96
void SetDesiredCount(int value)
Definition: Deployment.h:195
void SetId(const char *value)
Definition: Deployment.h:63
Deployment & WithTaskDefinition(Aws::String &&value)
Definition: Deployment.h:177
Deployment & WithTaskDefinition(const char *value)
Definition: Deployment.h:183
const Aws::String & GetStatus() const
Definition: Deployment.h:87
Deployment & WithId(const char *value)
Definition: Deployment.h:78
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: Deployment.h:242
JSON (JavaScript Object Notation).
void SetStatus(const char *value)
Definition: Deployment.h:114