AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
EcsTask.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/EcsLaunchType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty {
23namespace Model {
24
32class EcsTask {
33 public:
34 AWS_GUARDDUTY_API EcsTask() = default;
35 AWS_GUARDDUTY_API EcsTask(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API EcsTask& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
45 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
46 template <typename CreatedAtT = Aws::Utils::DateTime>
47 void SetCreatedAt(CreatedAtT&& value) {
48 m_createdAtHasBeenSet = true;
49 m_createdAt = std::forward<CreatedAtT>(value);
50 }
51 template <typename CreatedAtT = Aws::Utils::DateTime>
52 EcsTask& WithCreatedAt(CreatedAtT&& value) {
53 SetCreatedAt(std::forward<CreatedAtT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetTaskDefinitionArn() const { return m_taskDefinitionArn; }
64 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
65 template <typename TaskDefinitionArnT = Aws::String>
66 void SetTaskDefinitionArn(TaskDefinitionArnT&& value) {
67 m_taskDefinitionArnHasBeenSet = true;
68 m_taskDefinitionArn = std::forward<TaskDefinitionArnT>(value);
69 }
70 template <typename TaskDefinitionArnT = Aws::String>
71 EcsTask& WithTaskDefinitionArn(TaskDefinitionArnT&& value) {
72 SetTaskDefinitionArn(std::forward<TaskDefinitionArnT>(value));
73 return *this;
74 }
76
78
81 inline EcsLaunchType GetLaunchType() const { return m_launchType; }
82 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
83 inline void SetLaunchType(EcsLaunchType value) {
84 m_launchTypeHasBeenSet = true;
85 m_launchType = value;
86 }
88 SetLaunchType(value);
89 return *this;
90 }
92
94
98 inline const Aws::Vector<Aws::String>& GetContainerUids() const { return m_containerUids; }
99 inline bool ContainerUidsHasBeenSet() const { return m_containerUidsHasBeenSet; }
100 template <typename ContainerUidsT = Aws::Vector<Aws::String>>
101 void SetContainerUids(ContainerUidsT&& value) {
102 m_containerUidsHasBeenSet = true;
103 m_containerUids = std::forward<ContainerUidsT>(value);
104 }
105 template <typename ContainerUidsT = Aws::Vector<Aws::String>>
106 EcsTask& WithContainerUids(ContainerUidsT&& value) {
107 SetContainerUids(std::forward<ContainerUidsT>(value));
108 return *this;
109 }
110 template <typename ContainerUidsT = Aws::String>
111 EcsTask& AddContainerUids(ContainerUidsT&& value) {
112 m_containerUidsHasBeenSet = true;
113 m_containerUids.emplace_back(std::forward<ContainerUidsT>(value));
114 return *this;
115 }
117 private:
118 Aws::Utils::DateTime m_createdAt{};
119
120 Aws::String m_taskDefinitionArn;
121
123
124 Aws::Vector<Aws::String> m_containerUids;
125 bool m_createdAtHasBeenSet = false;
126 bool m_taskDefinitionArnHasBeenSet = false;
127 bool m_launchTypeHasBeenSet = false;
128 bool m_containerUidsHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace GuardDuty
133} // namespace Aws
void SetContainerUids(ContainerUidsT &&value)
Definition EcsTask.h:101
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
EcsTask & AddContainerUids(ContainerUidsT &&value)
Definition EcsTask.h:111
void SetLaunchType(EcsLaunchType value)
Definition EcsTask.h:83
bool TaskDefinitionArnHasBeenSet() const
Definition EcsTask.h:64
AWS_GUARDDUTY_API EcsTask()=default
AWS_GUARDDUTY_API EcsTask(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetContainerUids() const
Definition EcsTask.h:98
void SetCreatedAt(CreatedAtT &&value)
Definition EcsTask.h:47
bool LaunchTypeHasBeenSet() const
Definition EcsTask.h:82
EcsTask & WithContainerUids(ContainerUidsT &&value)
Definition EcsTask.h:106
EcsTask & WithTaskDefinitionArn(TaskDefinitionArnT &&value)
Definition EcsTask.h:71
const Aws::String & GetTaskDefinitionArn() const
Definition EcsTask.h:63
EcsTask & WithLaunchType(EcsLaunchType value)
Definition EcsTask.h:87
bool CreatedAtHasBeenSet() const
Definition EcsTask.h:45
bool ContainerUidsHasBeenSet() const
Definition EcsTask.h:99
AWS_GUARDDUTY_API EcsTask & operator=(Aws::Utils::Json::JsonView jsonValue)
EcsTask & WithCreatedAt(CreatedAtT &&value)
Definition EcsTask.h:52
void SetTaskDefinitionArn(TaskDefinitionArnT &&value)
Definition EcsTask.h:66
const Aws::Utils::DateTime & GetCreatedAt() const
Definition EcsTask.h:44
EcsLaunchType GetLaunchType() const
Definition EcsTask.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue