AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
EcsTaskDetails.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/guardduty/model/Tag.h>
12#include <aws/guardduty/model/Volume.h>
13#include <aws/guardduty/model/Container.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GuardDuty
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_GUARDDUTY_API EcsTaskDetails() = default;
41 AWS_GUARDDUTY_API EcsTaskDetails(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 EcsTaskDetails& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_definitionArnHasBeenSet = true; m_definitionArn = std::forward<DefinitionArnT>(value); }
66 template<typename DefinitionArnT = Aws::String>
67 EcsTaskDetails& WithDefinitionArn(DefinitionArnT&& value) { SetDefinitionArn(std::forward<DefinitionArnT>(value)); return *this;}
69
71
74 inline const Aws::String& GetVersion() const { return m_version; }
75 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
76 template<typename VersionT = Aws::String>
77 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
78 template<typename VersionT = Aws::String>
79 EcsTaskDetails& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetTaskCreatedAt() const { return m_taskCreatedAt; }
87 inline bool TaskCreatedAtHasBeenSet() const { return m_taskCreatedAtHasBeenSet; }
88 template<typename TaskCreatedAtT = Aws::Utils::DateTime>
89 void SetTaskCreatedAt(TaskCreatedAtT&& value) { m_taskCreatedAtHasBeenSet = true; m_taskCreatedAt = std::forward<TaskCreatedAtT>(value); }
90 template<typename TaskCreatedAtT = Aws::Utils::DateTime>
91 EcsTaskDetails& WithTaskCreatedAt(TaskCreatedAtT&& value) { SetTaskCreatedAt(std::forward<TaskCreatedAtT>(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
99 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
100 template<typename StartedAtT = Aws::Utils::DateTime>
101 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
102 template<typename StartedAtT = Aws::Utils::DateTime>
103 EcsTaskDetails& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
105
107
110 inline const Aws::String& GetStartedBy() const { return m_startedBy; }
111 inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
112 template<typename StartedByT = Aws::String>
113 void SetStartedBy(StartedByT&& value) { m_startedByHasBeenSet = true; m_startedBy = std::forward<StartedByT>(value); }
114 template<typename StartedByT = Aws::String>
115 EcsTaskDetails& WithStartedBy(StartedByT&& value) { SetStartedBy(std::forward<StartedByT>(value)); return *this;}
117
119
122 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 template<typename TagsT = Aws::Vector<Tag>>
125 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
126 template<typename TagsT = Aws::Vector<Tag>>
127 EcsTaskDetails& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
128 template<typename TagsT = Tag>
129 EcsTaskDetails& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
131
133
136 inline const Aws::Vector<Volume>& GetVolumes() const { return m_volumes; }
137 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
138 template<typename VolumesT = Aws::Vector<Volume>>
139 void SetVolumes(VolumesT&& value) { m_volumesHasBeenSet = true; m_volumes = std::forward<VolumesT>(value); }
140 template<typename VolumesT = Aws::Vector<Volume>>
141 EcsTaskDetails& WithVolumes(VolumesT&& value) { SetVolumes(std::forward<VolumesT>(value)); return *this;}
142 template<typename VolumesT = Volume>
143 EcsTaskDetails& AddVolumes(VolumesT&& value) { m_volumesHasBeenSet = true; m_volumes.emplace_back(std::forward<VolumesT>(value)); return *this; }
145
147
150 inline const Aws::Vector<Container>& GetContainers() const { return m_containers; }
151 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
152 template<typename ContainersT = Aws::Vector<Container>>
153 void SetContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers = std::forward<ContainersT>(value); }
154 template<typename ContainersT = Aws::Vector<Container>>
155 EcsTaskDetails& WithContainers(ContainersT&& value) { SetContainers(std::forward<ContainersT>(value)); return *this;}
156 template<typename ContainersT = Container>
157 EcsTaskDetails& AddContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers.emplace_back(std::forward<ContainersT>(value)); return *this; }
159
161
164 inline const Aws::String& GetGroup() const { return m_group; }
165 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
166 template<typename GroupT = Aws::String>
167 void SetGroup(GroupT&& value) { m_groupHasBeenSet = true; m_group = std::forward<GroupT>(value); }
168 template<typename GroupT = Aws::String>
169 EcsTaskDetails& WithGroup(GroupT&& value) { SetGroup(std::forward<GroupT>(value)); return *this;}
171
173
177 inline const Aws::String& GetLaunchType() const { return m_launchType; }
178 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
179 template<typename LaunchTypeT = Aws::String>
180 void SetLaunchType(LaunchTypeT&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::forward<LaunchTypeT>(value); }
181 template<typename LaunchTypeT = Aws::String>
182 EcsTaskDetails& WithLaunchType(LaunchTypeT&& value) { SetLaunchType(std::forward<LaunchTypeT>(value)); return *this;}
184 private:
185
186 Aws::String m_arn;
187 bool m_arnHasBeenSet = false;
188
189 Aws::String m_definitionArn;
190 bool m_definitionArnHasBeenSet = false;
191
192 Aws::String m_version;
193 bool m_versionHasBeenSet = false;
194
195 Aws::Utils::DateTime m_taskCreatedAt{};
196 bool m_taskCreatedAtHasBeenSet = false;
197
198 Aws::Utils::DateTime m_startedAt{};
199 bool m_startedAtHasBeenSet = false;
200
201 Aws::String m_startedBy;
202 bool m_startedByHasBeenSet = false;
203
204 Aws::Vector<Tag> m_tags;
205 bool m_tagsHasBeenSet = false;
206
207 Aws::Vector<Volume> m_volumes;
208 bool m_volumesHasBeenSet = false;
209
210 Aws::Vector<Container> m_containers;
211 bool m_containersHasBeenSet = false;
212
213 Aws::String m_group;
214 bool m_groupHasBeenSet = false;
215
216 Aws::String m_launchType;
217 bool m_launchTypeHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace GuardDuty
222} // 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