AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Task.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecs/model/Connectivity.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/ecs/model/HealthStatus.h>
13#include <aws/ecs/model/LaunchType.h>
14#include <aws/ecs/model/TaskOverride.h>
15#include <aws/ecs/model/TaskStopCode.h>
16#include <aws/ecs/model/EphemeralStorage.h>
17#include <aws/ecs/model/TaskEphemeralStorage.h>
18#include <aws/ecs/model/Attachment.h>
19#include <aws/ecs/model/Attribute.h>
20#include <aws/ecs/model/Container.h>
21#include <aws/ecs/model/InferenceAccelerator.h>
22#include <aws/ecs/model/Tag.h>
23#include <utility>
24
25namespace Aws
26{
27namespace Utils
28{
29namespace Json
30{
31 class JsonValue;
32 class JsonView;
33} // namespace Json
34} // namespace Utils
35namespace ECS
36{
37namespace Model
38{
39
45 class Task
46 {
47 public:
48 AWS_ECS_API Task();
49 AWS_ECS_API Task(Aws::Utils::Json::JsonView jsonValue);
50 AWS_ECS_API Task& operator=(Aws::Utils::Json::JsonView jsonValue);
52
53
55
59 inline const Aws::Vector<Attachment>& GetAttachments() const{ return m_attachments; }
60 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
61 inline void SetAttachments(const Aws::Vector<Attachment>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
62 inline void SetAttachments(Aws::Vector<Attachment>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
63 inline Task& WithAttachments(const Aws::Vector<Attachment>& value) { SetAttachments(value); return *this;}
64 inline Task& WithAttachments(Aws::Vector<Attachment>&& value) { SetAttachments(std::move(value)); return *this;}
65 inline Task& AddAttachments(const Attachment& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
66 inline Task& AddAttachments(Attachment&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
68
70
73 inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
74 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
75 inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
76 inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
77 inline Task& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
78 inline Task& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
79 inline Task& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
80 inline Task& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
82
84
87 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
88 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
89 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
90 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
91 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
92 inline Task& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
93 inline Task& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
94 inline Task& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
96
98
101 inline const Aws::String& GetCapacityProviderName() const{ return m_capacityProviderName; }
102 inline bool CapacityProviderNameHasBeenSet() const { return m_capacityProviderNameHasBeenSet; }
103 inline void SetCapacityProviderName(const Aws::String& value) { m_capacityProviderNameHasBeenSet = true; m_capacityProviderName = value; }
104 inline void SetCapacityProviderName(Aws::String&& value) { m_capacityProviderNameHasBeenSet = true; m_capacityProviderName = std::move(value); }
105 inline void SetCapacityProviderName(const char* value) { m_capacityProviderNameHasBeenSet = true; m_capacityProviderName.assign(value); }
106 inline Task& WithCapacityProviderName(const Aws::String& value) { SetCapacityProviderName(value); return *this;}
107 inline Task& WithCapacityProviderName(Aws::String&& value) { SetCapacityProviderName(std::move(value)); return *this;}
108 inline Task& WithCapacityProviderName(const char* value) { SetCapacityProviderName(value); return *this;}
110
112
115 inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
116 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
117 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
118 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
119 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
120 inline Task& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
121 inline Task& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
122 inline Task& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
124
126
129 inline const Connectivity& GetConnectivity() const{ return m_connectivity; }
130 inline bool ConnectivityHasBeenSet() const { return m_connectivityHasBeenSet; }
131 inline void SetConnectivity(const Connectivity& value) { m_connectivityHasBeenSet = true; m_connectivity = value; }
132 inline void SetConnectivity(Connectivity&& value) { m_connectivityHasBeenSet = true; m_connectivity = std::move(value); }
133 inline Task& WithConnectivity(const Connectivity& value) { SetConnectivity(value); return *this;}
134 inline Task& WithConnectivity(Connectivity&& value) { SetConnectivity(std::move(value)); return *this;}
136
138
142 inline const Aws::Utils::DateTime& GetConnectivityAt() const{ return m_connectivityAt; }
143 inline bool ConnectivityAtHasBeenSet() const { return m_connectivityAtHasBeenSet; }
144 inline void SetConnectivityAt(const Aws::Utils::DateTime& value) { m_connectivityAtHasBeenSet = true; m_connectivityAt = value; }
145 inline void SetConnectivityAt(Aws::Utils::DateTime&& value) { m_connectivityAtHasBeenSet = true; m_connectivityAt = std::move(value); }
146 inline Task& WithConnectivityAt(const Aws::Utils::DateTime& value) { SetConnectivityAt(value); return *this;}
147 inline Task& WithConnectivityAt(Aws::Utils::DateTime&& value) { SetConnectivityAt(std::move(value)); return *this;}
149
151
154 inline const Aws::String& GetContainerInstanceArn() const{ return m_containerInstanceArn; }
155 inline bool ContainerInstanceArnHasBeenSet() const { return m_containerInstanceArnHasBeenSet; }
156 inline void SetContainerInstanceArn(const Aws::String& value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn = value; }
157 inline void SetContainerInstanceArn(Aws::String&& value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn = std::move(value); }
158 inline void SetContainerInstanceArn(const char* value) { m_containerInstanceArnHasBeenSet = true; m_containerInstanceArn.assign(value); }
159 inline Task& WithContainerInstanceArn(const Aws::String& value) { SetContainerInstanceArn(value); return *this;}
160 inline Task& WithContainerInstanceArn(Aws::String&& value) { SetContainerInstanceArn(std::move(value)); return *this;}
161 inline Task& WithContainerInstanceArn(const char* value) { SetContainerInstanceArn(value); return *this;}
163
165
168 inline const Aws::Vector<Container>& GetContainers() const{ return m_containers; }
169 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
170 inline void SetContainers(const Aws::Vector<Container>& value) { m_containersHasBeenSet = true; m_containers = value; }
171 inline void SetContainers(Aws::Vector<Container>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
172 inline Task& WithContainers(const Aws::Vector<Container>& value) { SetContainers(value); return *this;}
173 inline Task& WithContainers(Aws::Vector<Container>&& value) { SetContainers(std::move(value)); return *this;}
174 inline Task& AddContainers(const Container& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
175 inline Task& AddContainers(Container&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
177
179
206 inline const Aws::String& GetCpu() const{ return m_cpu; }
207 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
208 inline void SetCpu(const Aws::String& value) { m_cpuHasBeenSet = true; m_cpu = value; }
209 inline void SetCpu(Aws::String&& value) { m_cpuHasBeenSet = true; m_cpu = std::move(value); }
210 inline void SetCpu(const char* value) { m_cpuHasBeenSet = true; m_cpu.assign(value); }
211 inline Task& WithCpu(const Aws::String& value) { SetCpu(value); return *this;}
212 inline Task& WithCpu(Aws::String&& value) { SetCpu(std::move(value)); return *this;}
213 inline Task& WithCpu(const char* value) { SetCpu(value); return *this;}
215
217
221 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
222 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
223 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
224 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
225 inline Task& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
226 inline Task& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
228
230
235 inline const Aws::String& GetDesiredStatus() const{ return m_desiredStatus; }
236 inline bool DesiredStatusHasBeenSet() const { return m_desiredStatusHasBeenSet; }
237 inline void SetDesiredStatus(const Aws::String& value) { m_desiredStatusHasBeenSet = true; m_desiredStatus = value; }
238 inline void SetDesiredStatus(Aws::String&& value) { m_desiredStatusHasBeenSet = true; m_desiredStatus = std::move(value); }
239 inline void SetDesiredStatus(const char* value) { m_desiredStatusHasBeenSet = true; m_desiredStatus.assign(value); }
240 inline Task& WithDesiredStatus(const Aws::String& value) { SetDesiredStatus(value); return *this;}
241 inline Task& WithDesiredStatus(Aws::String&& value) { SetDesiredStatus(std::move(value)); return *this;}
242 inline Task& WithDesiredStatus(const char* value) { SetDesiredStatus(value); return *this;}
244
246
251 inline bool GetEnableExecuteCommand() const{ return m_enableExecuteCommand; }
252 inline bool EnableExecuteCommandHasBeenSet() const { return m_enableExecuteCommandHasBeenSet; }
253 inline void SetEnableExecuteCommand(bool value) { m_enableExecuteCommandHasBeenSet = true; m_enableExecuteCommand = value; }
254 inline Task& WithEnableExecuteCommand(bool value) { SetEnableExecuteCommand(value); return *this;}
256
258
261 inline const Aws::Utils::DateTime& GetExecutionStoppedAt() const{ return m_executionStoppedAt; }
262 inline bool ExecutionStoppedAtHasBeenSet() const { return m_executionStoppedAtHasBeenSet; }
263 inline void SetExecutionStoppedAt(const Aws::Utils::DateTime& value) { m_executionStoppedAtHasBeenSet = true; m_executionStoppedAt = value; }
264 inline void SetExecutionStoppedAt(Aws::Utils::DateTime&& value) { m_executionStoppedAtHasBeenSet = true; m_executionStoppedAt = std::move(value); }
265 inline Task& WithExecutionStoppedAt(const Aws::Utils::DateTime& value) { SetExecutionStoppedAt(value); return *this;}
266 inline Task& WithExecutionStoppedAt(Aws::Utils::DateTime&& value) { SetExecutionStoppedAt(std::move(value)); return *this;}
268
270
273 inline const Aws::String& GetGroup() const{ return m_group; }
274 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
275 inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; }
276 inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
277 inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); }
278 inline Task& WithGroup(const Aws::String& value) { SetGroup(value); return *this;}
279 inline Task& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;}
280 inline Task& WithGroup(const char* value) { SetGroup(value); return *this;}
282
284
298 inline const HealthStatus& GetHealthStatus() const{ return m_healthStatus; }
299 inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; }
300 inline void SetHealthStatus(const HealthStatus& value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; }
301 inline void SetHealthStatus(HealthStatus&& value) { m_healthStatusHasBeenSet = true; m_healthStatus = std::move(value); }
302 inline Task& WithHealthStatus(const HealthStatus& value) { SetHealthStatus(value); return *this;}
303 inline Task& WithHealthStatus(HealthStatus&& value) { SetHealthStatus(std::move(value)); return *this;}
305
307
310 inline const Aws::Vector<InferenceAccelerator>& GetInferenceAccelerators() const{ return m_inferenceAccelerators; }
311 inline bool InferenceAcceleratorsHasBeenSet() const { return m_inferenceAcceleratorsHasBeenSet; }
312 inline void SetInferenceAccelerators(const Aws::Vector<InferenceAccelerator>& value) { m_inferenceAcceleratorsHasBeenSet = true; m_inferenceAccelerators = value; }
313 inline void SetInferenceAccelerators(Aws::Vector<InferenceAccelerator>&& value) { m_inferenceAcceleratorsHasBeenSet = true; m_inferenceAccelerators = std::move(value); }
316 inline Task& AddInferenceAccelerators(const InferenceAccelerator& value) { m_inferenceAcceleratorsHasBeenSet = true; m_inferenceAccelerators.push_back(value); return *this; }
317 inline Task& AddInferenceAccelerators(InferenceAccelerator&& value) { m_inferenceAcceleratorsHasBeenSet = true; m_inferenceAccelerators.push_back(std::move(value)); return *this; }
319
321
326 inline const Aws::String& GetLastStatus() const{ return m_lastStatus; }
327 inline bool LastStatusHasBeenSet() const { return m_lastStatusHasBeenSet; }
328 inline void SetLastStatus(const Aws::String& value) { m_lastStatusHasBeenSet = true; m_lastStatus = value; }
329 inline void SetLastStatus(Aws::String&& value) { m_lastStatusHasBeenSet = true; m_lastStatus = std::move(value); }
330 inline void SetLastStatus(const char* value) { m_lastStatusHasBeenSet = true; m_lastStatus.assign(value); }
331 inline Task& WithLastStatus(const Aws::String& value) { SetLastStatus(value); return *this;}
332 inline Task& WithLastStatus(Aws::String&& value) { SetLastStatus(std::move(value)); return *this;}
333 inline Task& WithLastStatus(const char* value) { SetLastStatus(value); return *this;}
335
337
343 inline const LaunchType& GetLaunchType() const{ return m_launchType; }
344 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
345 inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
346 inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
347 inline Task& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
348 inline Task& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
350
352
376 inline const Aws::String& GetMemory() const{ return m_memory; }
377 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
378 inline void SetMemory(const Aws::String& value) { m_memoryHasBeenSet = true; m_memory = value; }
379 inline void SetMemory(Aws::String&& value) { m_memoryHasBeenSet = true; m_memory = std::move(value); }
380 inline void SetMemory(const char* value) { m_memoryHasBeenSet = true; m_memory.assign(value); }
381 inline Task& WithMemory(const Aws::String& value) { SetMemory(value); return *this;}
382 inline Task& WithMemory(Aws::String&& value) { SetMemory(std::move(value)); return *this;}
383 inline Task& WithMemory(const char* value) { SetMemory(value); return *this;}
385
387
390 inline const TaskOverride& GetOverrides() const{ return m_overrides; }
391 inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; }
392 inline void SetOverrides(const TaskOverride& value) { m_overridesHasBeenSet = true; m_overrides = value; }
393 inline void SetOverrides(TaskOverride&& value) { m_overridesHasBeenSet = true; m_overrides = std::move(value); }
394 inline Task& WithOverrides(const TaskOverride& value) { SetOverrides(value); return *this;}
395 inline Task& WithOverrides(TaskOverride&& value) { SetOverrides(std::move(value)); return *this;}
397
399
407 inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
408 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
409 inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
410 inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); }
411 inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
412 inline Task& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;}
413 inline Task& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;}
414 inline Task& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
416
418
424 inline const Aws::String& GetPlatformFamily() const{ return m_platformFamily; }
425 inline bool PlatformFamilyHasBeenSet() const { return m_platformFamilyHasBeenSet; }
426 inline void SetPlatformFamily(const Aws::String& value) { m_platformFamilyHasBeenSet = true; m_platformFamily = value; }
427 inline void SetPlatformFamily(Aws::String&& value) { m_platformFamilyHasBeenSet = true; m_platformFamily = std::move(value); }
428 inline void SetPlatformFamily(const char* value) { m_platformFamilyHasBeenSet = true; m_platformFamily.assign(value); }
429 inline Task& WithPlatformFamily(const Aws::String& value) { SetPlatformFamily(value); return *this;}
430 inline Task& WithPlatformFamily(Aws::String&& value) { SetPlatformFamily(std::move(value)); return *this;}
431 inline Task& WithPlatformFamily(const char* value) { SetPlatformFamily(value); return *this;}
433
435
438 inline const Aws::Utils::DateTime& GetPullStartedAt() const{ return m_pullStartedAt; }
439 inline bool PullStartedAtHasBeenSet() const { return m_pullStartedAtHasBeenSet; }
440 inline void SetPullStartedAt(const Aws::Utils::DateTime& value) { m_pullStartedAtHasBeenSet = true; m_pullStartedAt = value; }
441 inline void SetPullStartedAt(Aws::Utils::DateTime&& value) { m_pullStartedAtHasBeenSet = true; m_pullStartedAt = std::move(value); }
442 inline Task& WithPullStartedAt(const Aws::Utils::DateTime& value) { SetPullStartedAt(value); return *this;}
443 inline Task& WithPullStartedAt(Aws::Utils::DateTime&& value) { SetPullStartedAt(std::move(value)); return *this;}
445
447
450 inline const Aws::Utils::DateTime& GetPullStoppedAt() const{ return m_pullStoppedAt; }
451 inline bool PullStoppedAtHasBeenSet() const { return m_pullStoppedAtHasBeenSet; }
452 inline void SetPullStoppedAt(const Aws::Utils::DateTime& value) { m_pullStoppedAtHasBeenSet = true; m_pullStoppedAt = value; }
453 inline void SetPullStoppedAt(Aws::Utils::DateTime&& value) { m_pullStoppedAtHasBeenSet = true; m_pullStoppedAt = std::move(value); }
454 inline Task& WithPullStoppedAt(const Aws::Utils::DateTime& value) { SetPullStoppedAt(value); return *this;}
455 inline Task& WithPullStoppedAt(Aws::Utils::DateTime&& value) { SetPullStoppedAt(std::move(value)); return *this;}
457
459
464 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
465 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
466 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
467 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
468 inline Task& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
469 inline Task& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
471
473
478 inline const Aws::String& GetStartedBy() const{ return m_startedBy; }
479 inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
480 inline void SetStartedBy(const Aws::String& value) { m_startedByHasBeenSet = true; m_startedBy = value; }
481 inline void SetStartedBy(Aws::String&& value) { m_startedByHasBeenSet = true; m_startedBy = std::move(value); }
482 inline void SetStartedBy(const char* value) { m_startedByHasBeenSet = true; m_startedBy.assign(value); }
483 inline Task& WithStartedBy(const Aws::String& value) { SetStartedBy(value); return *this;}
484 inline Task& WithStartedBy(Aws::String&& value) { SetStartedBy(std::move(value)); return *this;}
485 inline Task& WithStartedBy(const char* value) { SetStartedBy(value); return *this;}
487
489
496 inline const TaskStopCode& GetStopCode() const{ return m_stopCode; }
497 inline bool StopCodeHasBeenSet() const { return m_stopCodeHasBeenSet; }
498 inline void SetStopCode(const TaskStopCode& value) { m_stopCodeHasBeenSet = true; m_stopCode = value; }
499 inline void SetStopCode(TaskStopCode&& value) { m_stopCodeHasBeenSet = true; m_stopCode = std::move(value); }
500 inline Task& WithStopCode(const TaskStopCode& value) { SetStopCode(value); return *this;}
501 inline Task& WithStopCode(TaskStopCode&& value) { SetStopCode(std::move(value)); return *this;}
503
505
510 inline const Aws::Utils::DateTime& GetStoppedAt() const{ return m_stoppedAt; }
511 inline bool StoppedAtHasBeenSet() const { return m_stoppedAtHasBeenSet; }
512 inline void SetStoppedAt(const Aws::Utils::DateTime& value) { m_stoppedAtHasBeenSet = true; m_stoppedAt = value; }
513 inline void SetStoppedAt(Aws::Utils::DateTime&& value) { m_stoppedAtHasBeenSet = true; m_stoppedAt = std::move(value); }
514 inline Task& WithStoppedAt(const Aws::Utils::DateTime& value) { SetStoppedAt(value); return *this;}
515 inline Task& WithStoppedAt(Aws::Utils::DateTime&& value) { SetStoppedAt(std::move(value)); return *this;}
517
519
522 inline const Aws::String& GetStoppedReason() const{ return m_stoppedReason; }
523 inline bool StoppedReasonHasBeenSet() const { return m_stoppedReasonHasBeenSet; }
524 inline void SetStoppedReason(const Aws::String& value) { m_stoppedReasonHasBeenSet = true; m_stoppedReason = value; }
525 inline void SetStoppedReason(Aws::String&& value) { m_stoppedReasonHasBeenSet = true; m_stoppedReason = std::move(value); }
526 inline void SetStoppedReason(const char* value) { m_stoppedReasonHasBeenSet = true; m_stoppedReason.assign(value); }
527 inline Task& WithStoppedReason(const Aws::String& value) { SetStoppedReason(value); return *this;}
528 inline Task& WithStoppedReason(Aws::String&& value) { SetStoppedReason(std::move(value)); return *this;}
529 inline Task& WithStoppedReason(const char* value) { SetStoppedReason(value); return *this;}
531
533
538 inline const Aws::Utils::DateTime& GetStoppingAt() const{ return m_stoppingAt; }
539 inline bool StoppingAtHasBeenSet() const { return m_stoppingAtHasBeenSet; }
540 inline void SetStoppingAt(const Aws::Utils::DateTime& value) { m_stoppingAtHasBeenSet = true; m_stoppingAt = value; }
541 inline void SetStoppingAt(Aws::Utils::DateTime&& value) { m_stoppingAtHasBeenSet = true; m_stoppingAt = std::move(value); }
542 inline Task& WithStoppingAt(const Aws::Utils::DateTime& value) { SetStoppingAt(value); return *this;}
543 inline Task& WithStoppingAt(Aws::Utils::DateTime&& value) { SetStoppingAt(std::move(value)); return *this;}
545
547
566 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
567 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
568 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
569 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
570 inline Task& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
571 inline Task& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
572 inline Task& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
573 inline Task& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
575
577
580 inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
581 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
582 inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
583 inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
584 inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
585 inline Task& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
586 inline Task& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
587 inline Task& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
589
591
594 inline const Aws::String& GetTaskDefinitionArn() const{ return m_taskDefinitionArn; }
595 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
596 inline void SetTaskDefinitionArn(const Aws::String& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = value; }
597 inline void SetTaskDefinitionArn(Aws::String&& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = std::move(value); }
598 inline void SetTaskDefinitionArn(const char* value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn.assign(value); }
599 inline Task& WithTaskDefinitionArn(const Aws::String& value) { SetTaskDefinitionArn(value); return *this;}
600 inline Task& WithTaskDefinitionArn(Aws::String&& value) { SetTaskDefinitionArn(std::move(value)); return *this;}
601 inline Task& WithTaskDefinitionArn(const char* value) { SetTaskDefinitionArn(value); return *this;}
603
605
613 inline long long GetVersion() const{ return m_version; }
614 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
615 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
616 inline Task& WithVersion(long long value) { SetVersion(value); return *this;}
618
620
623 inline const EphemeralStorage& GetEphemeralStorage() const{ return m_ephemeralStorage; }
624 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
625 inline void SetEphemeralStorage(const EphemeralStorage& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = value; }
626 inline void SetEphemeralStorage(EphemeralStorage&& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = std::move(value); }
627 inline Task& WithEphemeralStorage(const EphemeralStorage& value) { SetEphemeralStorage(value); return *this;}
628 inline Task& WithEphemeralStorage(EphemeralStorage&& value) { SetEphemeralStorage(std::move(value)); return *this;}
630
632
635 inline const TaskEphemeralStorage& GetFargateEphemeralStorage() const{ return m_fargateEphemeralStorage; }
636 inline bool FargateEphemeralStorageHasBeenSet() const { return m_fargateEphemeralStorageHasBeenSet; }
637 inline void SetFargateEphemeralStorage(const TaskEphemeralStorage& value) { m_fargateEphemeralStorageHasBeenSet = true; m_fargateEphemeralStorage = value; }
638 inline void SetFargateEphemeralStorage(TaskEphemeralStorage&& value) { m_fargateEphemeralStorageHasBeenSet = true; m_fargateEphemeralStorage = std::move(value); }
640 inline Task& WithFargateEphemeralStorage(TaskEphemeralStorage&& value) { SetFargateEphemeralStorage(std::move(value)); return *this;}
642 private:
643
644 Aws::Vector<Attachment> m_attachments;
645 bool m_attachmentsHasBeenSet = false;
646
647 Aws::Vector<Attribute> m_attributes;
648 bool m_attributesHasBeenSet = false;
649
650 Aws::String m_availabilityZone;
651 bool m_availabilityZoneHasBeenSet = false;
652
653 Aws::String m_capacityProviderName;
654 bool m_capacityProviderNameHasBeenSet = false;
655
656 Aws::String m_clusterArn;
657 bool m_clusterArnHasBeenSet = false;
658
659 Connectivity m_connectivity;
660 bool m_connectivityHasBeenSet = false;
661
662 Aws::Utils::DateTime m_connectivityAt;
663 bool m_connectivityAtHasBeenSet = false;
664
665 Aws::String m_containerInstanceArn;
666 bool m_containerInstanceArnHasBeenSet = false;
667
668 Aws::Vector<Container> m_containers;
669 bool m_containersHasBeenSet = false;
670
671 Aws::String m_cpu;
672 bool m_cpuHasBeenSet = false;
673
674 Aws::Utils::DateTime m_createdAt;
675 bool m_createdAtHasBeenSet = false;
676
677 Aws::String m_desiredStatus;
678 bool m_desiredStatusHasBeenSet = false;
679
680 bool m_enableExecuteCommand;
681 bool m_enableExecuteCommandHasBeenSet = false;
682
683 Aws::Utils::DateTime m_executionStoppedAt;
684 bool m_executionStoppedAtHasBeenSet = false;
685
686 Aws::String m_group;
687 bool m_groupHasBeenSet = false;
688
689 HealthStatus m_healthStatus;
690 bool m_healthStatusHasBeenSet = false;
691
692 Aws::Vector<InferenceAccelerator> m_inferenceAccelerators;
693 bool m_inferenceAcceleratorsHasBeenSet = false;
694
695 Aws::String m_lastStatus;
696 bool m_lastStatusHasBeenSet = false;
697
698 LaunchType m_launchType;
699 bool m_launchTypeHasBeenSet = false;
700
701 Aws::String m_memory;
702 bool m_memoryHasBeenSet = false;
703
704 TaskOverride m_overrides;
705 bool m_overridesHasBeenSet = false;
706
707 Aws::String m_platformVersion;
708 bool m_platformVersionHasBeenSet = false;
709
710 Aws::String m_platformFamily;
711 bool m_platformFamilyHasBeenSet = false;
712
713 Aws::Utils::DateTime m_pullStartedAt;
714 bool m_pullStartedAtHasBeenSet = false;
715
716 Aws::Utils::DateTime m_pullStoppedAt;
717 bool m_pullStoppedAtHasBeenSet = false;
718
719 Aws::Utils::DateTime m_startedAt;
720 bool m_startedAtHasBeenSet = false;
721
722 Aws::String m_startedBy;
723 bool m_startedByHasBeenSet = false;
724
725 TaskStopCode m_stopCode;
726 bool m_stopCodeHasBeenSet = false;
727
728 Aws::Utils::DateTime m_stoppedAt;
729 bool m_stoppedAtHasBeenSet = false;
730
731 Aws::String m_stoppedReason;
732 bool m_stoppedReasonHasBeenSet = false;
733
734 Aws::Utils::DateTime m_stoppingAt;
735 bool m_stoppingAtHasBeenSet = false;
736
737 Aws::Vector<Tag> m_tags;
738 bool m_tagsHasBeenSet = false;
739
740 Aws::String m_taskArn;
741 bool m_taskArnHasBeenSet = false;
742
743 Aws::String m_taskDefinitionArn;
744 bool m_taskDefinitionArnHasBeenSet = false;
745
746 long long m_version;
747 bool m_versionHasBeenSet = false;
748
749 EphemeralStorage m_ephemeralStorage;
750 bool m_ephemeralStorageHasBeenSet = false;
751
752 TaskEphemeralStorage m_fargateEphemeralStorage;
753 bool m_fargateEphemeralStorageHasBeenSet = false;
754 };
755
756} // namespace Model
757} // namespace ECS
758} // namespace Aws
Task & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Task.h:226
Task & AddContainers(const Container &value)
Definition Task.h:174
Task & WithClusterArn(const Aws::String &value)
Definition Task.h:120
void SetLastStatus(const char *value)
Definition Task.h:330
void SetStartedBy(const char *value)
Definition Task.h:482
void SetPlatformVersion(Aws::String &&value)
Definition Task.h:410
Task & AddAttachments(Attachment &&value)
Definition Task.h:66
bool EphemeralStorageHasBeenSet() const
Definition Task.h:624
void SetStopCode(TaskStopCode &&value)
Definition Task.h:499
Task & WithExecutionStoppedAt(const Aws::Utils::DateTime &value)
Definition Task.h:265
void SetStoppingAt(const Aws::Utils::DateTime &value)
Definition Task.h:540
Task & WithAttributes(const Aws::Vector< Attribute > &value)
Definition Task.h:77
void SetStoppedAt(Aws::Utils::DateTime &&value)
Definition Task.h:513
Task & AddAttributes(const Attribute &value)
Definition Task.h:79
Task & WithMemory(const char *value)
Definition Task.h:383
void SetInferenceAccelerators(Aws::Vector< InferenceAccelerator > &&value)
Definition Task.h:313
long long GetVersion() const
Definition Task.h:613
Task & WithLaunchType(const LaunchType &value)
Definition Task.h:347
Task & WithContainerInstanceArn(Aws::String &&value)
Definition Task.h:160
const Connectivity & GetConnectivity() const
Definition Task.h:129
void SetTags(const Aws::Vector< Tag > &value)
Definition Task.h:568
void SetTaskDefinitionArn(Aws::String &&value)
Definition Task.h:597
void SetClusterArn(const Aws::String &value)
Definition Task.h:117
bool VersionHasBeenSet() const
Definition Task.h:614
Task & WithContainers(Aws::Vector< Container > &&value)
Definition Task.h:173
bool DesiredStatusHasBeenSet() const
Definition Task.h:236
Task & WithInferenceAccelerators(Aws::Vector< InferenceAccelerator > &&value)
Definition Task.h:315
bool HealthStatusHasBeenSet() const
Definition Task.h:299
bool CapacityProviderNameHasBeenSet() const
Definition Task.h:102
Task & WithStartedAt(const Aws::Utils::DateTime &value)
Definition Task.h:468
const Aws::Vector< Attachment > & GetAttachments() const
Definition Task.h:59
const LaunchType & GetLaunchType() const
Definition Task.h:343
Task & WithStartedAt(Aws::Utils::DateTime &&value)
Definition Task.h:469
bool OverridesHasBeenSet() const
Definition Task.h:391
void SetHealthStatus(const HealthStatus &value)
Definition Task.h:300
const Aws::String & GetAvailabilityZone() const
Definition Task.h:87
Task & WithCpu(Aws::String &&value)
Definition Task.h:212
Task & WithStopCode(TaskStopCode &&value)
Definition Task.h:501
void SetClusterArn(Aws::String &&value)
Definition Task.h:118
void SetStoppedReason(const Aws::String &value)
Definition Task.h:524
bool AttachmentsHasBeenSet() const
Definition Task.h:60
bool StartedAtHasBeenSet() const
Definition Task.h:465
const TaskOverride & GetOverrides() const
Definition Task.h:390
Task & WithTaskDefinitionArn(const char *value)
Definition Task.h:601
Task & WithStoppedReason(const Aws::String &value)
Definition Task.h:527
void SetAvailabilityZone(const Aws::String &value)
Definition Task.h:89
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Task.h:221
void SetStartedBy(const Aws::String &value)
Definition Task.h:480
Task & WithAvailabilityZone(const Aws::String &value)
Definition Task.h:92
Task & WithStartedBy(Aws::String &&value)
Definition Task.h:484
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition Task.h:75
bool TaskArnHasBeenSet() const
Definition Task.h:581
bool LastStatusHasBeenSet() const
Definition Task.h:327
Task & WithConnectivity(Connectivity &&value)
Definition Task.h:134
void SetContainerInstanceArn(const char *value)
Definition Task.h:158
void SetLastStatus(const Aws::String &value)
Definition Task.h:328
bool FargateEphemeralStorageHasBeenSet() const
Definition Task.h:636
void SetPullStoppedAt(const Aws::Utils::DateTime &value)
Definition Task.h:452
Task & AddTags(Tag &&value)
Definition Task.h:573
Task & WithAttributes(Aws::Vector< Attribute > &&value)
Definition Task.h:78
void SetVersion(long long value)
Definition Task.h:615
Task & WithContainerInstanceArn(const Aws::String &value)
Definition Task.h:159
void SetCpu(const Aws::String &value)
Definition Task.h:208
Task & WithEphemeralStorage(EphemeralStorage &&value)
Definition Task.h:628
Task & WithPlatformVersion(const char *value)
Definition Task.h:414
void SetGroup(Aws::String &&value)
Definition Task.h:276
Task & AddInferenceAccelerators(const InferenceAccelerator &value)
Definition Task.h:316
Task & WithConnectivityAt(const Aws::Utils::DateTime &value)
Definition Task.h:146
bool EnableExecuteCommandHasBeenSet() const
Definition Task.h:252
Task & WithPlatformVersion(Aws::String &&value)
Definition Task.h:413
void SetDesiredStatus(const Aws::String &value)
Definition Task.h:237
void SetTaskArn(const Aws::String &value)
Definition Task.h:582
bool PlatformVersionHasBeenSet() const
Definition Task.h:408
void SetLaunchType(LaunchType &&value)
Definition Task.h:346
void SetStoppingAt(Aws::Utils::DateTime &&value)
Definition Task.h:541
void SetPullStoppedAt(Aws::Utils::DateTime &&value)
Definition Task.h:453
Task & WithPullStartedAt(const Aws::Utils::DateTime &value)
Definition Task.h:442
Task & AddInferenceAccelerators(InferenceAccelerator &&value)
Definition Task.h:317
void SetMemory(Aws::String &&value)
Definition Task.h:379
Task & WithTags(Aws::Vector< Tag > &&value)
Definition Task.h:571
void SetEphemeralStorage(const EphemeralStorage &value)
Definition Task.h:625
Task & WithDesiredStatus(const Aws::String &value)
Definition Task.h:240
Task & WithCapacityProviderName(const char *value)
Definition Task.h:108
bool StopCodeHasBeenSet() const
Definition Task.h:497
Task & WithEnableExecuteCommand(bool value)
Definition Task.h:254
void SetAvailabilityZone(Aws::String &&value)
Definition Task.h:90
AWS_ECS_API Task()
const Aws::Utils::DateTime & GetStartedAt() const
Definition Task.h:464
void SetTaskArn(Aws::String &&value)
Definition Task.h:583
void SetStartedAt(const Aws::Utils::DateTime &value)
Definition Task.h:466
void SetExecutionStoppedAt(const Aws::Utils::DateTime &value)
Definition Task.h:263
Task & WithCpu(const char *value)
Definition Task.h:213
void SetTags(Aws::Vector< Tag > &&value)
Definition Task.h:569
AWS_ECS_API Task & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExecutionStoppedAt(Aws::Utils::DateTime &&value)
Definition Task.h:264
const Aws::String & GetStoppedReason() const
Definition Task.h:522
Task & WithPlatformFamily(Aws::String &&value)
Definition Task.h:430
bool TaskDefinitionArnHasBeenSet() const
Definition Task.h:595
void SetContainerInstanceArn(Aws::String &&value)
Definition Task.h:157
Task & WithOverrides(const TaskOverride &value)
Definition Task.h:394
bool ExecutionStoppedAtHasBeenSet() const
Definition Task.h:262
Task & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Task.h:225
Task & WithGroup(const Aws::String &value)
Definition Task.h:278
Task & WithConnectivity(const Connectivity &value)
Definition Task.h:133
void SetPlatformVersion(const char *value)
Definition Task.h:411
bool AvailabilityZoneHasBeenSet() const
Definition Task.h:88
Task & AddContainers(Container &&value)
Definition Task.h:175
const Aws::String & GetContainerInstanceArn() const
Definition Task.h:154
Task & WithStoppedAt(Aws::Utils::DateTime &&value)
Definition Task.h:515
void SetGroup(const Aws::String &value)
Definition Task.h:275
Task & WithConnectivityAt(Aws::Utils::DateTime &&value)
Definition Task.h:147
const Aws::String & GetTaskArn() const
Definition Task.h:580
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition Task.h:76
void SetAttachments(Aws::Vector< Attachment > &&value)
Definition Task.h:62
void SetCpu(const char *value)
Definition Task.h:210
bool PlatformFamilyHasBeenSet() const
Definition Task.h:425
void SetInferenceAccelerators(const Aws::Vector< InferenceAccelerator > &value)
Definition Task.h:312
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Task.h:224
bool ConnectivityHasBeenSet() const
Definition Task.h:130
Task & WithHealthStatus(HealthStatus &&value)
Definition Task.h:303
Task & WithClusterArn(const char *value)
Definition Task.h:122
bool ContainersHasBeenSet() const
Definition Task.h:169
bool CreatedAtHasBeenSet() const
Definition Task.h:222
Task & WithVersion(long long value)
Definition Task.h:616
Task & WithPlatformVersion(const Aws::String &value)
Definition Task.h:412
const Aws::Utils::DateTime & GetConnectivityAt() const
Definition Task.h:142
void SetOverrides(const TaskOverride &value)
Definition Task.h:392
void SetCapacityProviderName(const Aws::String &value)
Definition Task.h:103
void SetDesiredStatus(const char *value)
Definition Task.h:239
Task & WithStopCode(const TaskStopCode &value)
Definition Task.h:500
Task & WithOverrides(TaskOverride &&value)
Definition Task.h:395
Task & AddAttributes(Attribute &&value)
Definition Task.h:80
bool StoppingAtHasBeenSet() const
Definition Task.h:539
Task & WithTaskArn(const char *value)
Definition Task.h:587
Task & WithTaskArn(Aws::String &&value)
Definition Task.h:586
const Aws::String & GetClusterArn() const
Definition Task.h:115
const Aws::String & GetLastStatus() const
Definition Task.h:326
const Aws::String & GetMemory() const
Definition Task.h:376
Task & AddAttachments(const Attachment &value)
Definition Task.h:65
void SetCapacityProviderName(const char *value)
Definition Task.h:105
Task & WithDesiredStatus(Aws::String &&value)
Definition Task.h:241
const Aws::Utils::DateTime & GetStoppedAt() const
Definition Task.h:510
const Aws::String & GetCapacityProviderName() const
Definition Task.h:101
void SetPlatformFamily(const Aws::String &value)
Definition Task.h:426
void SetPlatformFamily(Aws::String &&value)
Definition Task.h:427
void SetLastStatus(Aws::String &&value)
Definition Task.h:329
void SetContainers(const Aws::Vector< Container > &value)
Definition Task.h:170
Task & WithStoppedAt(const Aws::Utils::DateTime &value)
Definition Task.h:514
const Aws::Utils::DateTime & GetPullStoppedAt() const
Definition Task.h:450
void SetTaskDefinitionArn(const Aws::String &value)
Definition Task.h:596
Task & WithMemory(Aws::String &&value)
Definition Task.h:382
void SetFargateEphemeralStorage(TaskEphemeralStorage &&value)
Definition Task.h:638
const Aws::Vector< Tag > & GetTags() const
Definition Task.h:566
Task & AddTags(const Tag &value)
Definition Task.h:572
bool MemoryHasBeenSet() const
Definition Task.h:377
void SetStartedBy(Aws::String &&value)
Definition Task.h:481
bool TagsHasBeenSet() const
Definition Task.h:567
const EphemeralStorage & GetEphemeralStorage() const
Definition Task.h:623
void SetContainerInstanceArn(const Aws::String &value)
Definition Task.h:156
Task & WithPlatformFamily(const Aws::String &value)
Definition Task.h:429
void SetPullStartedAt(Aws::Utils::DateTime &&value)
Definition Task.h:441
void SetPlatformVersion(const Aws::String &value)
Definition Task.h:409
void SetDesiredStatus(Aws::String &&value)
Definition Task.h:238
const Aws::String & GetCpu() const
Definition Task.h:206
void SetEnableExecuteCommand(bool value)
Definition Task.h:253
Task & WithExecutionStoppedAt(Aws::Utils::DateTime &&value)
Definition Task.h:266
Task & WithAttachments(Aws::Vector< Attachment > &&value)
Definition Task.h:64
Task & WithCpu(const Aws::String &value)
Definition Task.h:211
const Aws::String & GetGroup() const
Definition Task.h:273
void SetHealthStatus(HealthStatus &&value)
Definition Task.h:301
Task & WithInferenceAccelerators(const Aws::Vector< InferenceAccelerator > &value)
Definition Task.h:314
const Aws::Vector< Container > & GetContainers() const
Definition Task.h:168
bool GroupHasBeenSet() const
Definition Task.h:274
Task & WithGroup(Aws::String &&value)
Definition Task.h:279
const HealthStatus & GetHealthStatus() const
Definition Task.h:298
void SetFargateEphemeralStorage(const TaskEphemeralStorage &value)
Definition Task.h:637
Task & WithTaskDefinitionArn(Aws::String &&value)
Definition Task.h:600
void SetMemory(const Aws::String &value)
Definition Task.h:378
Task & WithAttachments(const Aws::Vector< Attachment > &value)
Definition Task.h:63
Task & WithAvailabilityZone(Aws::String &&value)
Definition Task.h:93
void SetContainers(Aws::Vector< Container > &&value)
Definition Task.h:171
void SetStoppedReason(Aws::String &&value)
Definition Task.h:525
Task & WithContainers(const Aws::Vector< Container > &value)
Definition Task.h:172
const Aws::String & GetDesiredStatus() const
Definition Task.h:235
Task & WithClusterArn(Aws::String &&value)
Definition Task.h:121
Task & WithCapacityProviderName(const Aws::String &value)
Definition Task.h:106
bool StartedByHasBeenSet() const
Definition Task.h:479
const Aws::Utils::DateTime & GetStoppingAt() const
Definition Task.h:538
bool ClusterArnHasBeenSet() const
Definition Task.h:116
Task & WithFargateEphemeralStorage(const TaskEphemeralStorage &value)
Definition Task.h:639
void SetClusterArn(const char *value)
Definition Task.h:119
Task & WithTaskArn(const Aws::String &value)
Definition Task.h:585
Task & WithStoppingAt(const Aws::Utils::DateTime &value)
Definition Task.h:542
bool PullStartedAtHasBeenSet() const
Definition Task.h:439
Task & WithStartedBy(const Aws::String &value)
Definition Task.h:483
Task & WithPullStartedAt(Aws::Utils::DateTime &&value)
Definition Task.h:443
Task & WithStartedBy(const char *value)
Definition Task.h:485
bool AttributesHasBeenSet() const
Definition Task.h:74
const Aws::String & GetStartedBy() const
Definition Task.h:478
Task & WithDesiredStatus(const char *value)
Definition Task.h:242
void SetMemory(const char *value)
Definition Task.h:380
void SetStoppedAt(const Aws::Utils::DateTime &value)
Definition Task.h:512
void SetEphemeralStorage(EphemeralStorage &&value)
Definition Task.h:626
void SetStopCode(const TaskStopCode &value)
Definition Task.h:498
bool InferenceAcceleratorsHasBeenSet() const
Definition Task.h:311
const Aws::String & GetPlatformVersion() const
Definition Task.h:407
Task & WithGroup(const char *value)
Definition Task.h:280
Task & WithLastStatus(const char *value)
Definition Task.h:333
void SetCapacityProviderName(Aws::String &&value)
Definition Task.h:104
void SetOverrides(TaskOverride &&value)
Definition Task.h:393
Task & WithContainerInstanceArn(const char *value)
Definition Task.h:161
void SetAttachments(const Aws::Vector< Attachment > &value)
Definition Task.h:61
void SetStoppedReason(const char *value)
Definition Task.h:526
void SetConnectivity(Connectivity &&value)
Definition Task.h:132
const TaskStopCode & GetStopCode() const
Definition Task.h:496
Task & WithPullStoppedAt(Aws::Utils::DateTime &&value)
Definition Task.h:455
bool PullStoppedAtHasBeenSet() const
Definition Task.h:451
Task & WithPullStoppedAt(const Aws::Utils::DateTime &value)
Definition Task.h:454
Task & WithCapacityProviderName(Aws::String &&value)
Definition Task.h:107
Task & WithAvailabilityZone(const char *value)
Definition Task.h:94
void SetAvailabilityZone(const char *value)
Definition Task.h:91
void SetLaunchType(const LaunchType &value)
Definition Task.h:345
void SetConnectivity(const Connectivity &value)
Definition Task.h:131
Task & WithFargateEphemeralStorage(TaskEphemeralStorage &&value)
Definition Task.h:640
const Aws::Utils::DateTime & GetPullStartedAt() const
Definition Task.h:438
Task & WithHealthStatus(const HealthStatus &value)
Definition Task.h:302
bool LaunchTypeHasBeenSet() const
Definition Task.h:344
bool GetEnableExecuteCommand() const
Definition Task.h:251
bool StoppedAtHasBeenSet() const
Definition Task.h:511
void SetStartedAt(Aws::Utils::DateTime &&value)
Definition Task.h:467
Task & WithStoppingAt(Aws::Utils::DateTime &&value)
Definition Task.h:543
Task & WithLastStatus(const Aws::String &value)
Definition Task.h:331
bool CpuHasBeenSet() const
Definition Task.h:207
void SetGroup(const char *value)
Definition Task.h:277
const TaskEphemeralStorage & GetFargateEphemeralStorage() const
Definition Task.h:635
void SetPlatformFamily(const char *value)
Definition Task.h:428
void SetConnectivityAt(Aws::Utils::DateTime &&value)
Definition Task.h:145
bool StoppedReasonHasBeenSet() const
Definition Task.h:523
bool ConnectivityAtHasBeenSet() const
Definition Task.h:143
Task & WithTags(const Aws::Vector< Tag > &value)
Definition Task.h:570
Task & WithStoppedReason(const char *value)
Definition Task.h:529
const Aws::Vector< Attribute > & GetAttributes() const
Definition Task.h:73
AWS_ECS_API Task(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Task.h:223
void SetCpu(Aws::String &&value)
Definition Task.h:209
Task & WithStoppedReason(Aws::String &&value)
Definition Task.h:528
const Aws::String & GetPlatformFamily() const
Definition Task.h:424
void SetConnectivityAt(const Aws::Utils::DateTime &value)
Definition Task.h:144
void SetTaskArn(const char *value)
Definition Task.h:584
const Aws::String & GetTaskDefinitionArn() const
Definition Task.h:594
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< InferenceAccelerator > & GetInferenceAccelerators() const
Definition Task.h:310
Task & WithTaskDefinitionArn(const Aws::String &value)
Definition Task.h:599
Task & WithLastStatus(Aws::String &&value)
Definition Task.h:332
Task & WithLaunchType(LaunchType &&value)
Definition Task.h:348
const Aws::Utils::DateTime & GetExecutionStoppedAt() const
Definition Task.h:261
void SetTaskDefinitionArn(const char *value)
Definition Task.h:598
void SetPullStartedAt(const Aws::Utils::DateTime &value)
Definition Task.h:440
Task & WithEphemeralStorage(const EphemeralStorage &value)
Definition Task.h:627
bool ContainerInstanceArnHasBeenSet() const
Definition Task.h:155
Task & WithPlatformFamily(const char *value)
Definition Task.h:431
Task & WithMemory(const Aws::String &value)
Definition Task.h:381
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue