AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RepositoryAggregationResponse.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/model/SeverityCounts.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_INSPECTOR2_API RepositoryAggregationResponse() = default;
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAccountId() const { return m_accountId; }
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 template<typename AccountIdT = Aws::String>
49 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
50 template<typename AccountIdT = Aws::String>
51 RepositoryAggregationResponse& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
53
55
58 inline long long GetAffectedImages() const { return m_affectedImages; }
59 inline bool AffectedImagesHasBeenSet() const { return m_affectedImagesHasBeenSet; }
60 inline void SetAffectedImages(long long value) { m_affectedImagesHasBeenSet = true; m_affectedImages = value; }
61 inline RepositoryAggregationResponse& WithAffectedImages(long long value) { SetAffectedImages(value); return *this;}
63
65
68 inline const Aws::String& GetRepository() const { return m_repository; }
69 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
70 template<typename RepositoryT = Aws::String>
71 void SetRepository(RepositoryT&& value) { m_repositoryHasBeenSet = true; m_repository = std::forward<RepositoryT>(value); }
72 template<typename RepositoryT = Aws::String>
73 RepositoryAggregationResponse& WithRepository(RepositoryT&& value) { SetRepository(std::forward<RepositoryT>(value)); return *this;}
75
77
80 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
81 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
82 template<typename SeverityCountsT = SeverityCounts>
83 void SetSeverityCounts(SeverityCountsT&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::forward<SeverityCountsT>(value); }
84 template<typename SeverityCountsT = SeverityCounts>
85 RepositoryAggregationResponse& WithSeverityCounts(SeverityCountsT&& value) { SetSeverityCounts(std::forward<SeverityCountsT>(value)); return *this;}
87 private:
88
89 Aws::String m_accountId;
90 bool m_accountIdHasBeenSet = false;
91
92 long long m_affectedImages{0};
93 bool m_affectedImagesHasBeenSet = false;
94
95 Aws::String m_repository;
96 bool m_repositoryHasBeenSet = false;
97
98 SeverityCounts m_severityCounts;
99 bool m_severityCountsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Inspector2
104} // 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