AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AwsEcsTaskDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsEcsContainerDetails.h>
11#include <aws/securityhub/model/AwsEcsTaskVolumeDetails.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub {
23namespace Model {
24
31 public:
32 AWS_SECURITYHUB_API AwsEcsTaskDetails() = default;
33 AWS_SECURITYHUB_API AwsEcsTaskDetails(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
42 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
43 template <typename ClusterArnT = Aws::String>
44 void SetClusterArn(ClusterArnT&& value) {
45 m_clusterArnHasBeenSet = true;
46 m_clusterArn = std::forward<ClusterArnT>(value);
47 }
48 template <typename ClusterArnT = Aws::String>
49 AwsEcsTaskDetails& WithClusterArn(ClusterArnT&& value) {
50 SetClusterArn(std::forward<ClusterArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTaskDefinitionArn() const { return m_taskDefinitionArn; }
60 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
61 template <typename TaskDefinitionArnT = Aws::String>
62 void SetTaskDefinitionArn(TaskDefinitionArnT&& value) {
63 m_taskDefinitionArnHasBeenSet = true;
64 m_taskDefinitionArn = std::forward<TaskDefinitionArnT>(value);
65 }
66 template <typename TaskDefinitionArnT = Aws::String>
67 AwsEcsTaskDetails& WithTaskDefinitionArn(TaskDefinitionArnT&& value) {
68 SetTaskDefinitionArn(std::forward<TaskDefinitionArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetVersion() const { return m_version; }
78 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
79 template <typename VersionT = Aws::String>
80 void SetVersion(VersionT&& value) {
81 m_versionHasBeenSet = true;
82 m_version = std::forward<VersionT>(value);
83 }
84 template <typename VersionT = Aws::String>
85 AwsEcsTaskDetails& WithVersion(VersionT&& value) {
86 SetVersion(std::forward<VersionT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
97 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
98 template <typename CreatedAtT = Aws::String>
99 void SetCreatedAt(CreatedAtT&& value) {
100 m_createdAtHasBeenSet = true;
101 m_createdAt = std::forward<CreatedAtT>(value);
102 }
103 template <typename CreatedAtT = Aws::String>
104 AwsEcsTaskDetails& WithCreatedAt(CreatedAtT&& value) {
105 SetCreatedAt(std::forward<CreatedAtT>(value));
106 return *this;
107 }
109
111
116 inline const Aws::String& GetStartedAt() const { return m_startedAt; }
117 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
118 template <typename StartedAtT = Aws::String>
119 void SetStartedAt(StartedAtT&& value) {
120 m_startedAtHasBeenSet = true;
121 m_startedAt = std::forward<StartedAtT>(value);
122 }
123 template <typename StartedAtT = Aws::String>
124 AwsEcsTaskDetails& WithStartedAt(StartedAtT&& value) {
125 SetStartedAt(std::forward<StartedAtT>(value));
126 return *this;
127 }
129
131
136 inline const Aws::String& GetStartedBy() const { return m_startedBy; }
137 inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
138 template <typename StartedByT = Aws::String>
139 void SetStartedBy(StartedByT&& value) {
140 m_startedByHasBeenSet = true;
141 m_startedBy = std::forward<StartedByT>(value);
142 }
143 template <typename StartedByT = Aws::String>
144 AwsEcsTaskDetails& WithStartedBy(StartedByT&& value) {
145 SetStartedBy(std::forward<StartedByT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetGroup() const { return m_group; }
155 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
156 template <typename GroupT = Aws::String>
157 void SetGroup(GroupT&& value) {
158 m_groupHasBeenSet = true;
159 m_group = std::forward<GroupT>(value);
160 }
161 template <typename GroupT = Aws::String>
162 AwsEcsTaskDetails& WithGroup(GroupT&& value) {
163 SetGroup(std::forward<GroupT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Vector<AwsEcsTaskVolumeDetails>& GetVolumes() const { return m_volumes; }
173 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
174 template <typename VolumesT = Aws::Vector<AwsEcsTaskVolumeDetails>>
175 void SetVolumes(VolumesT&& value) {
176 m_volumesHasBeenSet = true;
177 m_volumes = std::forward<VolumesT>(value);
178 }
179 template <typename VolumesT = Aws::Vector<AwsEcsTaskVolumeDetails>>
180 AwsEcsTaskDetails& WithVolumes(VolumesT&& value) {
181 SetVolumes(std::forward<VolumesT>(value));
182 return *this;
183 }
184 template <typename VolumesT = AwsEcsTaskVolumeDetails>
185 AwsEcsTaskDetails& AddVolumes(VolumesT&& value) {
186 m_volumesHasBeenSet = true;
187 m_volumes.emplace_back(std::forward<VolumesT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::Vector<AwsEcsContainerDetails>& GetContainers() const { return m_containers; }
197 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
198 template <typename ContainersT = Aws::Vector<AwsEcsContainerDetails>>
199 void SetContainers(ContainersT&& value) {
200 m_containersHasBeenSet = true;
201 m_containers = std::forward<ContainersT>(value);
202 }
203 template <typename ContainersT = Aws::Vector<AwsEcsContainerDetails>>
204 AwsEcsTaskDetails& WithContainers(ContainersT&& value) {
205 SetContainers(std::forward<ContainersT>(value));
206 return *this;
207 }
208 template <typename ContainersT = AwsEcsContainerDetails>
209 AwsEcsTaskDetails& AddContainers(ContainersT&& value) {
210 m_containersHasBeenSet = true;
211 m_containers.emplace_back(std::forward<ContainersT>(value));
212 return *this;
213 }
215 private:
216 Aws::String m_clusterArn;
217
218 Aws::String m_taskDefinitionArn;
219
220 Aws::String m_version;
221
222 Aws::String m_createdAt;
223
224 Aws::String m_startedAt;
225
226 Aws::String m_startedBy;
227
228 Aws::String m_group;
229
231
233 bool m_clusterArnHasBeenSet = false;
234 bool m_taskDefinitionArnHasBeenSet = false;
235 bool m_versionHasBeenSet = false;
236 bool m_createdAtHasBeenSet = false;
237 bool m_startedAtHasBeenSet = false;
238 bool m_startedByHasBeenSet = false;
239 bool m_groupHasBeenSet = false;
240 bool m_volumesHasBeenSet = false;
241 bool m_containersHasBeenSet = false;
242};
243
244} // namespace Model
245} // namespace SecurityHub
246} // namespace Aws
AwsEcsTaskDetails & AddContainers(ContainersT &&value)
AwsEcsTaskDetails & WithClusterArn(ClusterArnT &&value)
AwsEcsTaskDetails & WithTaskDefinitionArn(TaskDefinitionArnT &&value)
AWS_SECURITYHUB_API AwsEcsTaskDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AwsEcsContainerDetails > & GetContainers() const
AwsEcsTaskDetails & AddVolumes(VolumesT &&value)
AwsEcsTaskDetails & WithVolumes(VolumesT &&value)
AwsEcsTaskDetails & WithGroup(GroupT &&value)
AwsEcsTaskDetails & WithVersion(VersionT &&value)
AwsEcsTaskDetails & WithStartedAt(StartedAtT &&value)
AwsEcsTaskDetails & WithContainers(ContainersT &&value)
const Aws::String & GetTaskDefinitionArn() const
AwsEcsTaskDetails & WithCreatedAt(CreatedAtT &&value)
AWS_SECURITYHUB_API AwsEcsTaskDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEcsTaskDetails & WithStartedBy(StartedByT &&value)
AWS_SECURITYHUB_API AwsEcsTaskDetails()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AwsEcsTaskVolumeDetails > & GetVolumes() const
void SetTaskDefinitionArn(TaskDefinitionArnT &&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