AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
EcsTaskDetails.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/Container.h>
12#include <aws/guardduty/model/Tag.h>
13#include <aws/guardduty/model/Volume.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GuardDuty {
25namespace Model {
26
34 public:
35 AWS_GUARDDUTY_API EcsTaskDetails() = default;
36 AWS_GUARDDUTY_API EcsTaskDetails(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
52 EcsTaskDetails& WithArn(ArnT&& value) {
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDefinitionArn() const { return m_definitionArn; }
63 inline bool DefinitionArnHasBeenSet() const { return m_definitionArnHasBeenSet; }
64 template <typename DefinitionArnT = Aws::String>
65 void SetDefinitionArn(DefinitionArnT&& value) {
66 m_definitionArnHasBeenSet = true;
67 m_definitionArn = std::forward<DefinitionArnT>(value);
68 }
69 template <typename DefinitionArnT = Aws::String>
70 EcsTaskDetails& WithDefinitionArn(DefinitionArnT&& value) {
71 SetDefinitionArn(std::forward<DefinitionArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetVersion() const { return m_version; }
81 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
82 template <typename VersionT = Aws::String>
83 void SetVersion(VersionT&& value) {
84 m_versionHasBeenSet = true;
85 m_version = std::forward<VersionT>(value);
86 }
87 template <typename VersionT = Aws::String>
88 EcsTaskDetails& WithVersion(VersionT&& value) {
89 SetVersion(std::forward<VersionT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetTaskCreatedAt() const { return m_taskCreatedAt; }
99 inline bool TaskCreatedAtHasBeenSet() const { return m_taskCreatedAtHasBeenSet; }
100 template <typename TaskCreatedAtT = Aws::Utils::DateTime>
101 void SetTaskCreatedAt(TaskCreatedAtT&& value) {
102 m_taskCreatedAtHasBeenSet = true;
103 m_taskCreatedAt = std::forward<TaskCreatedAtT>(value);
104 }
105 template <typename TaskCreatedAtT = Aws::Utils::DateTime>
106 EcsTaskDetails& WithTaskCreatedAt(TaskCreatedAtT&& value) {
107 SetTaskCreatedAt(std::forward<TaskCreatedAtT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
117 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
118 template <typename StartedAtT = Aws::Utils::DateTime>
119 void SetStartedAt(StartedAtT&& value) {
120 m_startedAtHasBeenSet = true;
121 m_startedAt = std::forward<StartedAtT>(value);
122 }
123 template <typename StartedAtT = Aws::Utils::DateTime>
124 EcsTaskDetails& WithStartedAt(StartedAtT&& value) {
125 SetStartedAt(std::forward<StartedAtT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetStartedBy() const { return m_startedBy; }
135 inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
136 template <typename StartedByT = Aws::String>
137 void SetStartedBy(StartedByT&& value) {
138 m_startedByHasBeenSet = true;
139 m_startedBy = std::forward<StartedByT>(value);
140 }
141 template <typename StartedByT = Aws::String>
142 EcsTaskDetails& WithStartedBy(StartedByT&& value) {
143 SetStartedBy(std::forward<StartedByT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 template <typename TagsT = Aws::Vector<Tag>>
155 void SetTags(TagsT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags = std::forward<TagsT>(value);
158 }
159 template <typename TagsT = Aws::Vector<Tag>>
160 EcsTaskDetails& WithTags(TagsT&& value) {
161 SetTags(std::forward<TagsT>(value));
162 return *this;
163 }
164 template <typename TagsT = Tag>
165 EcsTaskDetails& AddTags(TagsT&& value) {
166 m_tagsHasBeenSet = true;
167 m_tags.emplace_back(std::forward<TagsT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Vector<Volume>& GetVolumes() const { return m_volumes; }
177 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
178 template <typename VolumesT = Aws::Vector<Volume>>
179 void SetVolumes(VolumesT&& value) {
180 m_volumesHasBeenSet = true;
181 m_volumes = std::forward<VolumesT>(value);
182 }
183 template <typename VolumesT = Aws::Vector<Volume>>
184 EcsTaskDetails& WithVolumes(VolumesT&& value) {
185 SetVolumes(std::forward<VolumesT>(value));
186 return *this;
187 }
188 template <typename VolumesT = Volume>
189 EcsTaskDetails& AddVolumes(VolumesT&& value) {
190 m_volumesHasBeenSet = true;
191 m_volumes.emplace_back(std::forward<VolumesT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Vector<Container>& GetContainers() const { return m_containers; }
201 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
202 template <typename ContainersT = Aws::Vector<Container>>
203 void SetContainers(ContainersT&& value) {
204 m_containersHasBeenSet = true;
205 m_containers = std::forward<ContainersT>(value);
206 }
207 template <typename ContainersT = Aws::Vector<Container>>
208 EcsTaskDetails& WithContainers(ContainersT&& value) {
209 SetContainers(std::forward<ContainersT>(value));
210 return *this;
211 }
212 template <typename ContainersT = Container>
213 EcsTaskDetails& AddContainers(ContainersT&& value) {
214 m_containersHasBeenSet = true;
215 m_containers.emplace_back(std::forward<ContainersT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetGroup() const { return m_group; }
225 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
226 template <typename GroupT = Aws::String>
227 void SetGroup(GroupT&& value) {
228 m_groupHasBeenSet = true;
229 m_group = std::forward<GroupT>(value);
230 }
231 template <typename GroupT = Aws::String>
232 EcsTaskDetails& WithGroup(GroupT&& value) {
233 SetGroup(std::forward<GroupT>(value));
234 return *this;
235 }
237
239
243 inline const Aws::String& GetLaunchType() const { return m_launchType; }
244 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
245 template <typename LaunchTypeT = Aws::String>
246 void SetLaunchType(LaunchTypeT&& value) {
247 m_launchTypeHasBeenSet = true;
248 m_launchType = std::forward<LaunchTypeT>(value);
249 }
250 template <typename LaunchTypeT = Aws::String>
251 EcsTaskDetails& WithLaunchType(LaunchTypeT&& value) {
252 SetLaunchType(std::forward<LaunchTypeT>(value));
253 return *this;
254 }
256 private:
257 Aws::String m_arn;
258
259 Aws::String m_definitionArn;
260
261 Aws::String m_version;
262
263 Aws::Utils::DateTime m_taskCreatedAt{};
264
265 Aws::Utils::DateTime m_startedAt{};
266
267 Aws::String m_startedBy;
268
269 Aws::Vector<Tag> m_tags;
270
271 Aws::Vector<Volume> m_volumes;
272
273 Aws::Vector<Container> m_containers;
274
275 Aws::String m_group;
276
277 Aws::String m_launchType;
278 bool m_arnHasBeenSet = false;
279 bool m_definitionArnHasBeenSet = false;
280 bool m_versionHasBeenSet = false;
281 bool m_taskCreatedAtHasBeenSet = false;
282 bool m_startedAtHasBeenSet = false;
283 bool m_startedByHasBeenSet = false;
284 bool m_tagsHasBeenSet = false;
285 bool m_volumesHasBeenSet = false;
286 bool m_containersHasBeenSet = false;
287 bool m_groupHasBeenSet = false;
288 bool m_launchTypeHasBeenSet = false;
289};
290
291} // namespace Model
292} // namespace GuardDuty
293} // namespace Aws
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDefinitionArn(DefinitionArnT &&value)
EcsTaskDetails & WithTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetLaunchType() const
const Aws::String & GetDefinitionArn() const
EcsTaskDetails & AddContainers(ContainersT &&value)
EcsTaskDetails & WithVolumes(VolumesT &&value)
EcsTaskDetails & WithStartedAt(StartedAtT &&value)
EcsTaskDetails & WithDefinitionArn(DefinitionArnT &&value)
EcsTaskDetails & AddTags(TagsT &&value)
void SetTaskCreatedAt(TaskCreatedAtT &&value)
EcsTaskDetails & WithContainers(ContainersT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
const Aws::Vector< Container > & GetContainers() const
const Aws::String & GetGroup() const
EcsTaskDetails & WithVersion(VersionT &&value)
EcsTaskDetails & WithStartedBy(StartedByT &&value)
EcsTaskDetails & AddVolumes(VolumesT &&value)
EcsTaskDetails & WithGroup(GroupT &&value)
const Aws::String & GetStartedBy() const
const Aws::Utils::DateTime & GetTaskCreatedAt() const
EcsTaskDetails & WithTaskCreatedAt(TaskCreatedAtT &&value)
void SetStartedBy(StartedByT &&value)
void SetContainers(ContainersT &&value)
AWS_GUARDDUTY_API EcsTaskDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API EcsTaskDetails()=default
EcsTaskDetails & WithArn(ArnT &&value)
void SetLaunchType(LaunchTypeT &&value)
EcsTaskDetails & WithLaunchType(LaunchTypeT &&value)
const Aws::Vector< Volume > & GetVolumes() const
AWS_GUARDDUTY_API EcsTaskDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVersion() const
const Aws::String & GetArn() const
void SetStartedAt(StartedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue