AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsEcrContainerAggregationResponse.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/inspector2/model/SeverityCounts.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 Inspector2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_INSPECTOR2_API AwsEcrContainerAggregationResponse() = default;
41 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetAccountId() const { return m_accountId; }
50 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
51 template<typename AccountIdT = Aws::String>
52 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
53 template<typename AccountIdT = Aws::String>
54 AwsEcrContainerAggregationResponse& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetArchitecture() const { return m_architecture; }
62 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
63 template<typename ArchitectureT = Aws::String>
64 void SetArchitecture(ArchitectureT&& value) { m_architectureHasBeenSet = true; m_architecture = std::forward<ArchitectureT>(value); }
65 template<typename ArchitectureT = Aws::String>
66 AwsEcrContainerAggregationResponse& WithArchitecture(ArchitectureT&& value) { SetArchitecture(std::forward<ArchitectureT>(value)); return *this;}
68
70
73 inline const Aws::String& GetImageSha() const { return m_imageSha; }
74 inline bool ImageShaHasBeenSet() const { return m_imageShaHasBeenSet; }
75 template<typename ImageShaT = Aws::String>
76 void SetImageSha(ImageShaT&& value) { m_imageShaHasBeenSet = true; m_imageSha = std::forward<ImageShaT>(value); }
77 template<typename ImageShaT = Aws::String>
78 AwsEcrContainerAggregationResponse& WithImageSha(ImageShaT&& value) { SetImageSha(std::forward<ImageShaT>(value)); return *this;}
80
82
85 inline const Aws::Vector<Aws::String>& GetImageTags() const { return m_imageTags; }
86 inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
87 template<typename ImageTagsT = Aws::Vector<Aws::String>>
88 void SetImageTags(ImageTagsT&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::forward<ImageTagsT>(value); }
89 template<typename ImageTagsT = Aws::Vector<Aws::String>>
90 AwsEcrContainerAggregationResponse& WithImageTags(ImageTagsT&& value) { SetImageTags(std::forward<ImageTagsT>(value)); return *this;}
91 template<typename ImageTagsT = Aws::String>
92 AwsEcrContainerAggregationResponse& AddImageTags(ImageTagsT&& value) { m_imageTagsHasBeenSet = true; m_imageTags.emplace_back(std::forward<ImageTagsT>(value)); return *this; }
94
96
100 inline long long GetInUseCount() const { return m_inUseCount; }
101 inline bool InUseCountHasBeenSet() const { return m_inUseCountHasBeenSet; }
102 inline void SetInUseCount(long long value) { m_inUseCountHasBeenSet = true; m_inUseCount = value; }
103 inline AwsEcrContainerAggregationResponse& WithInUseCount(long long value) { SetInUseCount(value); return *this;}
105
107
111 inline const Aws::Utils::DateTime& GetLastInUseAt() const { return m_lastInUseAt; }
112 inline bool LastInUseAtHasBeenSet() const { return m_lastInUseAtHasBeenSet; }
113 template<typename LastInUseAtT = Aws::Utils::DateTime>
114 void SetLastInUseAt(LastInUseAtT&& value) { m_lastInUseAtHasBeenSet = true; m_lastInUseAt = std::forward<LastInUseAtT>(value); }
115 template<typename LastInUseAtT = Aws::Utils::DateTime>
116 AwsEcrContainerAggregationResponse& WithLastInUseAt(LastInUseAtT&& value) { SetLastInUseAt(std::forward<LastInUseAtT>(value)); return *this;}
118
120
123 inline const Aws::String& GetRepository() const { return m_repository; }
124 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
125 template<typename RepositoryT = Aws::String>
126 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet = true; m_repository = std::forward<RepositoryT>(value); }
127 template<typename RepositoryT = Aws::String>
128 AwsEcrContainerAggregationResponse& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
130
132
135 inline const Aws::String& GetResourceId() const { return m_resourceId; }
136 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
137 template<typename ResourceIdT = Aws::String>
138 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
139 template<typename ResourceIdT = Aws::String>
140 AwsEcrContainerAggregationResponse& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
142
144
147 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
148 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
149 template<typename SeverityCountsT = SeverityCounts>
150 void SetSeverityCounts(SeverityCountsT&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::forward<SeverityCountsT>(value); }
151 template<typename SeverityCountsT = SeverityCounts>
152 AwsEcrContainerAggregationResponse& WithSeverityCounts(SeverityCountsT&& value) { SetSeverityCounts(std::forward<SeverityCountsT>(value)); return *this;}
154 private:
155
156 Aws::String m_accountId;
157 bool m_accountIdHasBeenSet = false;
158
159 Aws::String m_architecture;
160 bool m_architectureHasBeenSet = false;
161
162 Aws::String m_imageSha;
163 bool m_imageShaHasBeenSet = false;
164
165 Aws::Vector<Aws::String> m_imageTags;
166 bool m_imageTagsHasBeenSet = false;
167
168 long long m_inUseCount{0};
169 bool m_inUseCountHasBeenSet = false;
170
171 Aws::Utils::DateTime m_lastInUseAt{};
172 bool m_lastInUseAtHasBeenSet = false;
173
174 Aws::String m_repository;
175 bool m_repositoryHasBeenSet = false;
176
177 Aws::String m_resourceId;
178 bool m_resourceIdHasBeenSet = false;
179
180 SeverityCounts m_severityCounts;
181 bool m_severityCountsHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace Inspector2
186} // namespace Aws
AwsEcrContainerAggregationResponse & WithInUseCount(long long value)
AwsEcrContainerAggregationResponse & WithImageTags(ImageTagsT &&value)
AwsEcrContainerAggregationResponse & AddImageTags(ImageTagsT &&value)
AWS_INSPECTOR2_API AwsEcrContainerAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
AwsEcrContainerAggregationResponse & WithArchitecture(ArchitectureT &&value)
AwsEcrContainerAggregationResponse & WithImageSha(ImageShaT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEcrContainerAggregationResponse & WithAccountId(AccountIdT &&value)
AWS_INSPECTOR2_API AwsEcrContainerAggregationResponse()=default
AwsEcrContainerAggregationResponse & WithSeverityCounts(SeverityCountsT &&value)
AwsEcrContainerAggregationResponse & WithResourceId(ResourceIdT &&value)
AWS_INSPECTOR2_API AwsEcrContainerAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEcrContainerAggregationResponse & WithLastInUseAt(LastInUseAtT &&value)
AwsEcrContainerAggregationResponse & WithRepository(RepositoryT &&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