AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
50 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
51 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
52 inline AwsEcsTaskDetails& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
53 inline AwsEcsTaskDetails& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
54 inline AwsEcsTaskDetails& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
56
58
61 inline const Aws::String& GetTaskDefinitionArn() const{ return m_taskDefinitionArn; }
62 inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
63 inline void SetTaskDefinitionArn(const Aws::String& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = value; }
64 inline void SetTaskDefinitionArn(Aws::String&& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = std::move(value); }
65 inline void SetTaskDefinitionArn(const char* value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn.assign(value); }
66 inline AwsEcsTaskDetails& WithTaskDefinitionArn(const Aws::String& value) { SetTaskDefinitionArn(value); return *this;}
67 inline AwsEcsTaskDetails& WithTaskDefinitionArn(Aws::String&& value) { SetTaskDefinitionArn(std::move(value)); return *this;}
68 inline AwsEcsTaskDetails& WithTaskDefinitionArn(const char* value) { SetTaskDefinitionArn(value); return *this;}
70
72
75 inline const Aws::String& GetVersion() const{ return m_version; }
76 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
77 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
78 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
79 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
80 inline AwsEcsTaskDetails& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
81 inline AwsEcsTaskDetails& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
82 inline AwsEcsTaskDetails& WithVersion(const char* value) { SetVersion(value); return *this;}
84
86
90 inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
91 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
92 inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
93 inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
94 inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
95 inline AwsEcsTaskDetails& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
96 inline AwsEcsTaskDetails& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
97 inline AwsEcsTaskDetails& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
99
101
106 inline const Aws::String& GetStartedAt() const{ return m_startedAt; }
107 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
108 inline void SetStartedAt(const Aws::String& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
109 inline void SetStartedAt(Aws::String&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
110 inline void SetStartedAt(const char* value) { m_startedAtHasBeenSet = true; m_startedAt.assign(value); }
111 inline AwsEcsTaskDetails& WithStartedAt(const Aws::String& value) { SetStartedAt(value); return *this;}
112 inline AwsEcsTaskDetails& WithStartedAt(Aws::String&& value) { SetStartedAt(std::move(value)); return *this;}
113 inline AwsEcsTaskDetails& WithStartedAt(const char* value) { SetStartedAt(value); return *this;}
115
117
122 inline const Aws::String& GetStartedBy() const{ return m_startedBy; }
123 inline bool StartedByHasBeenSet() const { return m_startedByHasBeenSet; }
124 inline void SetStartedBy(const Aws::String& value) { m_startedByHasBeenSet = true; m_startedBy = value; }
125 inline void SetStartedBy(Aws::String&& value) { m_startedByHasBeenSet = true; m_startedBy = std::move(value); }
126 inline void SetStartedBy(const char* value) { m_startedByHasBeenSet = true; m_startedBy.assign(value); }
127 inline AwsEcsTaskDetails& WithStartedBy(const Aws::String& value) { SetStartedBy(value); return *this;}
128 inline AwsEcsTaskDetails& WithStartedBy(Aws::String&& value) { SetStartedBy(std::move(value)); return *this;}
129 inline AwsEcsTaskDetails& WithStartedBy(const char* value) { SetStartedBy(value); return *this;}
131
133
136 inline const Aws::String& GetGroup() const{ return m_group; }
137 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
138 inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; }
139 inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
140 inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); }
141 inline AwsEcsTaskDetails& WithGroup(const Aws::String& value) { SetGroup(value); return *this;}
142 inline AwsEcsTaskDetails& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;}
143 inline AwsEcsTaskDetails& WithGroup(const char* value) { SetGroup(value); return *this;}
145
147
150 inline const Aws::Vector<AwsEcsTaskVolumeDetails>& GetVolumes() const{ return m_volumes; }
151 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
152 inline void SetVolumes(const Aws::Vector<AwsEcsTaskVolumeDetails>& value) { m_volumesHasBeenSet = true; m_volumes = value; }
153 inline void SetVolumes(Aws::Vector<AwsEcsTaskVolumeDetails>&& value) { m_volumesHasBeenSet = true; m_volumes = std::move(value); }
155 inline AwsEcsTaskDetails& WithVolumes(Aws::Vector<AwsEcsTaskVolumeDetails>&& value) { SetVolumes(std::move(value)); return *this;}
156 inline AwsEcsTaskDetails& AddVolumes(const AwsEcsTaskVolumeDetails& value) { m_volumesHasBeenSet = true; m_volumes.push_back(value); return *this; }
157 inline AwsEcsTaskDetails& AddVolumes(AwsEcsTaskVolumeDetails&& value) { m_volumesHasBeenSet = true; m_volumes.push_back(std::move(value)); return *this; }
159
161
164 inline const Aws::Vector<AwsEcsContainerDetails>& GetContainers() const{ return m_containers; }
165 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
166 inline void SetContainers(const Aws::Vector<AwsEcsContainerDetails>& value) { m_containersHasBeenSet = true; m_containers = value; }
167 inline void SetContainers(Aws::Vector<AwsEcsContainerDetails>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
169 inline AwsEcsTaskDetails& WithContainers(Aws::Vector<AwsEcsContainerDetails>&& value) { SetContainers(std::move(value)); return *this;}
170 inline AwsEcsTaskDetails& AddContainers(const AwsEcsContainerDetails& value) { m_containersHasBeenSet = true; m_containers.push_back(value); return *this; }
171 inline AwsEcsTaskDetails& AddContainers(AwsEcsContainerDetails&& value) { m_containersHasBeenSet = true; m_containers.push_back(std::move(value)); return *this; }
173 private:
174
175 Aws::String m_clusterArn;
176 bool m_clusterArnHasBeenSet = false;
177
178 Aws::String m_taskDefinitionArn;
179 bool m_taskDefinitionArnHasBeenSet = false;
180
181 Aws::String m_version;
182 bool m_versionHasBeenSet = false;
183
184 Aws::String m_createdAt;
185 bool m_createdAtHasBeenSet = false;
186
187 Aws::String m_startedAt;
188 bool m_startedAtHasBeenSet = false;
189
190 Aws::String m_startedBy;
191 bool m_startedByHasBeenSet = false;
192
193 Aws::String m_group;
194 bool m_groupHasBeenSet = false;
195
197 bool m_volumesHasBeenSet = false;
198
200 bool m_containersHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace SecurityHub
205} // namespace Aws
AwsEcsTaskDetails & AddContainers(const AwsEcsContainerDetails &value)
AwsEcsTaskDetails & WithVolumes(const Aws::Vector< AwsEcsTaskVolumeDetails > &value)
void SetContainers(const Aws::Vector< AwsEcsContainerDetails > &value)
void SetGroup(const Aws::String &value)
void SetVolumes(Aws::Vector< AwsEcsTaskVolumeDetails > &&value)
AwsEcsTaskDetails & WithStartedAt(const char *value)
void SetVersion(const Aws::String &value)
AwsEcsTaskDetails & WithVersion(Aws::String &&value)
AwsEcsTaskDetails & AddContainers(AwsEcsContainerDetails &&value)
void SetStartedBy(const Aws::String &value)
AWS_SECURITYHUB_API AwsEcsTaskDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AwsEcsContainerDetails > & GetContainers() const
AwsEcsTaskDetails & WithGroup(Aws::String &&value)
AwsEcsTaskDetails & WithStartedAt(const Aws::String &value)
AwsEcsTaskDetails & WithStartedAt(Aws::String &&value)
void SetContainers(Aws::Vector< AwsEcsContainerDetails > &&value)
AwsEcsTaskDetails & WithGroup(const char *value)
AwsEcsTaskDetails & WithCreatedAt(const Aws::String &value)
void SetVolumes(const Aws::Vector< AwsEcsTaskVolumeDetails > &value)
void SetCreatedAt(const Aws::String &value)
AwsEcsTaskDetails & WithClusterArn(Aws::String &&value)
AwsEcsTaskDetails & WithTaskDefinitionArn(const char *value)
AwsEcsTaskDetails & WithVolumes(Aws::Vector< AwsEcsTaskVolumeDetails > &&value)
AwsEcsTaskDetails & WithClusterArn(const Aws::String &value)
AwsEcsTaskDetails & WithTaskDefinitionArn(const Aws::String &value)
void SetStartedAt(const Aws::String &value)
AwsEcsTaskDetails & WithClusterArn(const char *value)
AwsEcsTaskDetails & WithTaskDefinitionArn(Aws::String &&value)
const Aws::String & GetTaskDefinitionArn() const
AwsEcsTaskDetails & WithContainers(const Aws::Vector< AwsEcsContainerDetails > &value)
AwsEcsTaskDetails & WithContainers(Aws::Vector< AwsEcsContainerDetails > &&value)
AwsEcsTaskDetails & WithVersion(const char *value)
AWS_SECURITYHUB_API AwsEcsTaskDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTaskDefinitionArn(const Aws::String &value)
AwsEcsTaskDetails & WithStartedBy(const char *value)
AwsEcsTaskDetails & WithGroup(const Aws::String &value)
AwsEcsTaskDetails & WithCreatedAt(const char *value)
void SetClusterArn(const Aws::String &value)
AwsEcsTaskDetails & WithVersion(const Aws::String &value)
AwsEcsTaskDetails & AddVolumes(AwsEcsTaskVolumeDetails &&value)
AwsEcsTaskDetails & WithStartedBy(const Aws::String &value)
AwsEcsTaskDetails & WithStartedBy(Aws::String &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AwsEcsTaskVolumeDetails > & GetVolumes() const
AwsEcsTaskDetails & WithCreatedAt(Aws::String &&value)
AwsEcsTaskDetails & AddVolumes(const AwsEcsTaskVolumeDetails &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