AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
54 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
55 inline EcsTaskDetails& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline EcsTaskDetails& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline EcsTaskDetails& WithArn(const char* value) { SetArn(value); return *this;}
59
61
64 inline const Aws::String& GetDefinitionArn() const{ return m_definitionArn; }
65 inline bool DefinitionArnHasBeenSet() const { return m_definitionArnHasBeenSet; }
66 inline void SetDefinitionArn(const Aws::String& value) { m_definitionArnHasBeenSet = true; m_definitionArn = value; }
67 inline void SetDefinitionArn(Aws::String&& value) { m_definitionArnHasBeenSet = true; m_definitionArn = std::move(value); }
68 inline void SetDefinitionArn(const char* value) { m_definitionArnHasBeenSet = true; m_definitionArn.assign(value); }
69 inline EcsTaskDetails& WithDefinitionArn(const Aws::String& value) { SetDefinitionArn(value); return *this;}
70 inline EcsTaskDetails& WithDefinitionArn(Aws::String&& value) { SetDefinitionArn(std::move(value)); return *this;}
71 inline EcsTaskDetails& WithDefinitionArn(const char* value) { SetDefinitionArn(value); return *this;}
73
75
78 inline const Aws::String& GetVersion() const{ return m_version; }
79 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
80 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
81 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
82 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
83 inline EcsTaskDetails& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
84 inline EcsTaskDetails& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
85 inline EcsTaskDetails& WithVersion(const char* value) { SetVersion(value); return *this;}
87
89
92 inline const Aws::Utils::DateTime& GetTaskCreatedAt() const{ return m_taskCreatedAt; }
93 inline bool TaskCreatedAtHasBeenSet() const { return m_taskCreatedAtHasBeenSet; }
94 inline void SetTaskCreatedAt(const Aws::Utils::DateTime& value) { m_taskCreatedAtHasBeenSet = true; m_taskCreatedAt = value; }
95 inline void SetTaskCreatedAt(Aws::Utils::DateTime&& value) { m_taskCreatedAtHasBeenSet = true; m_taskCreatedAt = std::move(value); }
96 inline EcsTaskDetails& WithTaskCreatedAt(const Aws::Utils::DateTime& value) { SetTaskCreatedAt(value); return *this;}
97 inline EcsTaskDetails& WithTaskCreatedAt(Aws::Utils::DateTime&& value) { SetTaskCreatedAt(std::move(value)); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
105 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
106 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
107 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
108 inline EcsTaskDetails& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
109 inline EcsTaskDetails& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
111
113
116 inline const Aws::String& GetStartedBy() const{ return m_startedBy; }
117 inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
118 inline void SetStartedBy(const Aws::String& value) { m_startedByHasBeenSet = true; m_startedBy = value; }
119 inline void SetStartedBy(Aws::String&& value) { m_startedByHasBeenSet = true; m_startedBy = std::move(value); }
120 inline void SetStartedBy(const char* value) { m_startedByHasBeenSet = true; m_startedBy.assign(value); }
121 inline EcsTaskDetails& WithStartedBy(const Aws::String& value) { SetStartedBy(value); return *this;}
122 inline EcsTaskDetails& WithStartedBy(Aws::String&& value) { SetStartedBy(std::move(value)); return *this;}
123 inline EcsTaskDetails& WithStartedBy(const char* value) { SetStartedBy(value); return *this;}
125
127
130 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
133 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
134 inline EcsTaskDetails& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
135 inline EcsTaskDetails& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
136 inline EcsTaskDetails& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
137 inline EcsTaskDetails& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
139
141
144 inline const Aws::Vector<Volume>& GetVolumes() const{ return m_volumes; }
145 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
146 inline void SetVolumes(const Aws::Vector<Volume>& value) { m_volumesHasBeenSet = true; m_volumes = value; }
147 inline void SetVolumes(Aws::Vector<Volume>&& value) { m_volumesHasBeenSet = true; m_volumes = std::move(value); }
148 inline EcsTaskDetails& WithVolumes(const Aws::Vector<Volume>& value) { SetVolumes(value); return *this;}
149 inline EcsTaskDetails& WithVolumes(Aws::Vector<Volume>&& value) { SetVolumes(std::move(value)); return *this;}
150 inline EcsTaskDetails& AddVolumes(const Volume& value) { m_volumesHasBeenSet = true; m_volumes.push_back(value); return *this; }
151 inline EcsTaskDetails& AddVolumes(Volume&& value) { m_volumesHasBeenSet = true; m_volumes.push_back(std::move(value)); return *this; }
153
155
158 inline const Aws::Vector<Container>& GetContainers() const{ return m_containers; }
159 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
160 inline void SetContainers(const Aws::Vector<Container>& value) { m_containersHasBeenSet = true; m_containers = value; }
161 inline void SetContainers(Aws::Vector<Container>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
162 inline EcsTaskDetails& WithContainers(const Aws::Vector<Container>& value) { SetContainers(value); return *this;}
163 inline EcsTaskDetails& WithContainers(Aws::Vector<Container>&& value) { SetContainers(std::move(value)); return *this;}
164 inline EcsTaskDetails& AddContainers(const Container& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
165 inline EcsTaskDetails& AddContainers(Container&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
167
169
172 inline const Aws::String& GetGroup() const{ return m_group; }
173 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
174 inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; }
175 inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
176 inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); }
177 inline EcsTaskDetails& WithGroup(const Aws::String& value) { SetGroup(value); return *this;}
178 inline EcsTaskDetails& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;}
179 inline EcsTaskDetails& WithGroup(const char* value) { SetGroup(value); return *this;}
181
183
187 inline const Aws::String& GetLaunchType() const{ return m_launchType; }
188 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
189 inline void SetLaunchType(const Aws::String& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
190 inline void SetLaunchType(Aws::String&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
191 inline void SetLaunchType(const char* value) { m_launchTypeHasBeenSet = true; m_launchType.assign(value); }
192 inline EcsTaskDetails& WithLaunchType(const Aws::String& value) { SetLaunchType(value); return *this;}
193 inline EcsTaskDetails& WithLaunchType(Aws::String&& value) { SetLaunchType(std::move(value)); return *this;}
194 inline EcsTaskDetails& WithLaunchType(const char* value) { SetLaunchType(value); return *this;}
196 private:
197
198 Aws::String m_arn;
199 bool m_arnHasBeenSet = false;
200
201 Aws::String m_definitionArn;
202 bool m_definitionArnHasBeenSet = false;
203
204 Aws::String m_version;
205 bool m_versionHasBeenSet = false;
206
207 Aws::Utils::DateTime m_taskCreatedAt;
208 bool m_taskCreatedAtHasBeenSet = false;
209
210 Aws::Utils::DateTime m_startedAt;
211 bool m_startedAtHasBeenSet = false;
212
213 Aws::String m_startedBy;
214 bool m_startedByHasBeenSet = false;
215
216 Aws::Vector<Tag> m_tags;
217 bool m_tagsHasBeenSet = false;
218
219 Aws::Vector<Volume> m_volumes;
220 bool m_volumesHasBeenSet = false;
221
222 Aws::Vector<Container> m_containers;
223 bool m_containersHasBeenSet = false;
224
225 Aws::String m_group;
226 bool m_groupHasBeenSet = false;
227
228 Aws::String m_launchType;
229 bool m_launchTypeHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace GuardDuty
234} // namespace Aws
EcsTaskDetails & AddContainers(Container &&value)
EcsTaskDetails & WithStartedBy(Aws::String &&value)
EcsTaskDetails & WithArn(const char *value)
EcsTaskDetails & WithStartedAt(const Aws::Utils::DateTime &value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
EcsTaskDetails & AddTags(const Tag &value)
void SetArn(Aws::String &&value)
EcsTaskDetails & WithLaunchType(const char *value)
EcsTaskDetails & WithGroup(Aws::String &&value)
void SetStartedAt(const Aws::Utils::DateTime &value)
EcsTaskDetails & WithVersion(Aws::String &&value)
EcsTaskDetails & WithLaunchType(Aws::String &&value)
EcsTaskDetails & WithTaskCreatedAt(Aws::Utils::DateTime &&value)
const Aws::Vector< Tag > & GetTags() const
void SetVersion(const Aws::String &value)
EcsTaskDetails & WithVersion(const Aws::String &value)
void SetArn(const Aws::String &value)
const Aws::String & GetLaunchType() const
const Aws::String & GetDefinitionArn() const
EcsTaskDetails & WithGroup(const Aws::String &value)
void SetDefinitionArn(const Aws::String &value)
void SetTaskCreatedAt(const Aws::Utils::DateTime &value)
void SetStartedBy(const Aws::String &value)
EcsTaskDetails & WithStartedBy(const char *value)
EcsTaskDetails & WithVolumes(const Aws::Vector< Volume > &value)
void SetGroup(const Aws::String &value)
EcsTaskDetails & WithContainers(Aws::Vector< Container > &&value)
void SetLaunchType(const Aws::String &value)
EcsTaskDetails & WithArn(const Aws::String &value)
EcsTaskDetails & AddVolumes(Volume &&value)
EcsTaskDetails & WithDefinitionArn(Aws::String &&value)
EcsTaskDetails & WithArn(Aws::String &&value)
void SetContainers(const Aws::Vector< Container > &value)
EcsTaskDetails & WithVolumes(Aws::Vector< Volume > &&value)
EcsTaskDetails & WithLaunchType(const Aws::String &value)
EcsTaskDetails & WithTags(Aws::Vector< Tag > &&value)
void SetVolumes(Aws::Vector< Volume > &&value)
EcsTaskDetails & AddTags(Tag &&value)
EcsTaskDetails & WithTaskCreatedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStartedAt() const
void SetLaunchType(Aws::String &&value)
EcsTaskDetails & AddVolumes(const Volume &value)
const Aws::Vector< Container > & GetContainers() const
const Aws::String & GetGroup() const
void SetDefinitionArn(Aws::String &&value)
EcsTaskDetails & WithStartedBy(const Aws::String &value)
void SetStartedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetStartedBy() const
EcsTaskDetails & WithStartedAt(Aws::Utils::DateTime &&value)
EcsTaskDetails & WithVersion(const char *value)
const Aws::Utils::DateTime & GetTaskCreatedAt() const
void SetTags(Aws::Vector< Tag > &&value)
EcsTaskDetails & WithDefinitionArn(const char *value)
void SetContainers(Aws::Vector< Container > &&value)
void SetStartedBy(Aws::String &&value)
void SetVersion(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetTaskCreatedAt(Aws::Utils::DateTime &&value)
AWS_GUARDDUTY_API EcsTaskDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
EcsTaskDetails & WithTags(const Aws::Vector< Tag > &value)
EcsTaskDetails & WithDefinitionArn(const Aws::String &value)
void SetGroup(Aws::String &&value)
void SetDefinitionArn(const char *value)
EcsTaskDetails & WithGroup(const char *value)
const Aws::Vector< Volume > & GetVolumes() const
void SetLaunchType(const char *value)
AWS_GUARDDUTY_API EcsTaskDetails(Aws::Utils::Json::JsonView jsonValue)
EcsTaskDetails & WithContainers(const Aws::Vector< Container > &value)
void SetVolumes(const Aws::Vector< Volume > &value)
const Aws::String & GetVersion() const
const Aws::String & GetArn() const
EcsTaskDetails & AddContainers(const Container &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