AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
RepositoryAggregationResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/SeverityCounts.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector2 {
21namespace Model {
22
30 public:
31 AWS_INSPECTOR2_API RepositoryAggregationResponse() = default;
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRepository() const { return m_repository; }
41 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
42 template <typename RepositoryT = Aws::String>
43 void SetRepository(RepositoryT&& value) {
44 m_repositoryHasBeenSet = true;
45 m_repository = std::forward<RepositoryT>(value);
46 }
47 template <typename RepositoryT = Aws::String>
49 SetRepository(std::forward<RepositoryT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAccountId() const { return m_accountId; }
59 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
60 template <typename AccountIdT = Aws::String>
61 void SetAccountId(AccountIdT&& value) {
62 m_accountIdHasBeenSet = true;
63 m_accountId = std::forward<AccountIdT>(value);
64 }
65 template <typename AccountIdT = Aws::String>
67 SetAccountId(std::forward<AccountIdT>(value));
68 return *this;
69 }
71
73
76 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
77 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
78 template <typename SeverityCountsT = SeverityCounts>
79 void SetSeverityCounts(SeverityCountsT&& value) {
80 m_severityCountsHasBeenSet = true;
81 m_severityCounts = std::forward<SeverityCountsT>(value);
82 }
83 template <typename SeverityCountsT = SeverityCounts>
85 SetSeverityCounts(std::forward<SeverityCountsT>(value));
86 return *this;
87 }
89
91
94 inline long long GetAffectedImages() const { return m_affectedImages; }
95 inline bool AffectedImagesHasBeenSet() const { return m_affectedImagesHasBeenSet; }
96 inline void SetAffectedImages(long long value) {
97 m_affectedImagesHasBeenSet = true;
98 m_affectedImages = value;
99 }
101 SetAffectedImages(value);
102 return *this;
103 }
105 private:
106 Aws::String m_repository;
107
108 Aws::String m_accountId;
109
110 SeverityCounts m_severityCounts;
111
112 long long m_affectedImages{0};
113 bool m_repositoryHasBeenSet = false;
114 bool m_accountIdHasBeenSet = false;
115 bool m_severityCountsHasBeenSet = false;
116 bool m_affectedImagesHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace Inspector2
121} // namespace Aws
AWS_INSPECTOR2_API RepositoryAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositoryAggregationResponse & WithSeverityCounts(SeverityCountsT &&value)
RepositoryAggregationResponse & WithRepository(RepositoryT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API RepositoryAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
RepositoryAggregationResponse & WithAffectedImages(long long value)
RepositoryAggregationResponse & WithAccountId(AccountIdT &&value)
AWS_INSPECTOR2_API RepositoryAggregationResponse()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue