AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsEcsTaskDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsEcsTaskVolumeDetails.h>
11#include <aws/securityhub/model/AwsEcsContainerDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_SECURITYHUB_API AwsEcsTaskDetails() = default;
38 AWS_SECURITYHUB_API AwsEcsTaskDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
48 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
49 template<typename ClusterArnT = Aws::String>
50 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
51 template<typename ClusterArnT = Aws::String>
52 AwsEcsTaskDetails& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
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) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = std::forward<TaskDefinitionArnT>(value); }
63 template<typename TaskDefinitionArnT = Aws::String>
64 AwsEcsTaskDetails& WithTaskDefinitionArn(TaskDefinitionArnT&& value) { SetTaskDefinitionArn(std::forward<TaskDefinitionArnT>(value)); return *this;}
66
68
71 inline const Aws::String& GetVersion() const { return m_version; }
72 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
73 template<typename VersionT = Aws::String>
74 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
75 template<typename VersionT = Aws::String>
76 AwsEcsTaskDetails& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
78
80
84 inline const Aws::String& GetCreatedAt() const { return m_createdAt; }
85 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
86 template<typename CreatedAtT = Aws::String>
87 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
88 template<typename CreatedAtT = Aws::String>
89 AwsEcsTaskDetails& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
91
93
98 inline const Aws::String& GetStartedAt() const { return m_startedAt; }
99 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
100 template<typename StartedAtT = Aws::String>
101 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::forward<StartedAtT>(value); }
102 template<typename StartedAtT = Aws::String>
103 AwsEcsTaskDetails& WithStartedAt(StartedAtT&& value) { SetStartedAt(std::forward<StartedAtT>(value)); return *this;}
105
107
112 inline const Aws::String& GetStartedBy() const { return m_startedBy; }
113 inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
114 template<typename StartedByT = Aws::String>
115 void SetStartedBy(StartedByT&& value) { m_startedByHasBeenSet = true; m_startedBy = std::forward<StartedByT>(value); }
116 template<typename StartedByT = Aws::String>
117 AwsEcsTaskDetails& WithStartedBy(StartedByT&& value) { SetStartedBy(std::forward<StartedByT>(value)); return *this;}
119
121
124 inline const Aws::String& GetGroup() const { return m_group; }
125 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
126 template<typename GroupT = Aws::String>
127 void SetGroup(GroupT&& value) { m_groupHasBeenSet = true; m_group = std::forward<GroupT>(value); }
128 template<typename GroupT = Aws::String>
129 AwsEcsTaskDetails& WithGroup(GroupT&& value) { SetGroup(std::forward<GroupT>(value)); return *this;}
131
133
136 inline const Aws::Vector<AwsEcsTaskVolumeDetails>& GetVolumes() const { return m_volumes; }
137 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
138 template<typename VolumesT = Aws::Vector<AwsEcsTaskVolumeDetails>>
139 void SetVolumes(VolumesT&& value) { m_volumesHasBeenSet = true; m_volumes = std::forward<VolumesT>(value); }
140 template<typename VolumesT = Aws::Vector<AwsEcsTaskVolumeDetails>>
141 AwsEcsTaskDetails& WithVolumes(VolumesT&& value) { SetVolumes(std::forward<VolumesT>(value)); return *this;}
142 template<typename VolumesT = AwsEcsTaskVolumeDetails>
143 AwsEcsTaskDetails& AddVolumes(VolumesT&& value) { m_volumesHasBeenSet = true; m_volumes.emplace_back(std::forward<VolumesT>(value)); return *this; }
145
147
150 inline const Aws::Vector<AwsEcsContainerDetails>& GetContainers() const { return m_containers; }
151 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
152 template<typename ContainersT = Aws::Vector<AwsEcsContainerDetails>>
153 void SetContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers = std::forward<ContainersT>(value); }
154 template<typename ContainersT = Aws::Vector<AwsEcsContainerDetails>>
155 AwsEcsTaskDetails& WithContainers(ContainersT&& value) { SetContainers(std::forward<ContainersT>(value)); return *this;}
156 template<typename ContainersT = AwsEcsContainerDetails>
157 AwsEcsTaskDetails& AddContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers.emplace_back(std::forward<ContainersT>(value)); return *this; }
159 private:
160
161 Aws::String m_clusterArn;
162 bool m_clusterArnHasBeenSet = false;
163
164 Aws::String m_taskDefinitionArn;
165 bool m_taskDefinitionArnHasBeenSet = false;
166
167 Aws::String m_version;
168 bool m_versionHasBeenSet = false;
169
170 Aws::String m_createdAt;
171 bool m_createdAtHasBeenSet = false;
172
173 Aws::String m_startedAt;
174 bool m_startedAtHasBeenSet = false;
175
176 Aws::String m_startedBy;
177 bool m_startedByHasBeenSet = false;
178
179 Aws::String m_group;
180 bool m_groupHasBeenSet = false;
181
183 bool m_volumesHasBeenSet = false;
184
186 bool m_containersHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace SecurityHub
191} // 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