AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
49 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
50 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
51 inline RepositoryAggregationResponse& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
52 inline RepositoryAggregationResponse& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
53 inline RepositoryAggregationResponse& WithAccountId(const char* value) { SetAccountId(value); return *this;}
55
57
60 inline long long GetAffectedImages() const{ return m_affectedImages; }
61 inline bool AffectedImagesHasBeenSet() const { return m_affectedImagesHasBeenSet; }
62 inline void SetAffectedImages(long long value) { m_affectedImagesHasBeenSet = true; m_affectedImages = value; }
63 inline RepositoryAggregationResponse& WithAffectedImages(long long value) { SetAffectedImages(value); return *this;}
65
67
70 inline const Aws::String& GetRepository() const{ return m_repository; }
71 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
72 inline void SetRepository(const Aws::String& value) { m_repositoryHasBeenSet = true; m_repository = value; }
73 inline void SetRepository(Aws::String&& value) { m_repositoryHasBeenSet = true; m_repository = std::move(value); }
74 inline void SetRepository(const char* value) { m_repositoryHasBeenSet = true; m_repository.assign(value); }
75 inline RepositoryAggregationResponse& WithRepository(const Aws::String& value) { SetRepository(value); return *this;}
76 inline RepositoryAggregationResponse& WithRepository(Aws::String&& value) { SetRepository(std::move(value)); return *this;}
77 inline RepositoryAggregationResponse& WithRepository(const char* value) { SetRepository(value); return *this;}
79
81
84 inline const SeverityCounts& GetSeverityCounts() const{ return m_severityCounts; }
85 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
86 inline void SetSeverityCounts(const SeverityCounts& value) { m_severityCountsHasBeenSet = true; m_severityCounts = value; }
87 inline void SetSeverityCounts(SeverityCounts&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::move(value); }
89 inline RepositoryAggregationResponse& WithSeverityCounts(SeverityCounts&& value) { SetSeverityCounts(std::move(value)); return *this;}
91 private:
92
93 Aws::String m_accountId;
94 bool m_accountIdHasBeenSet = false;
95
96 long long m_affectedImages;
97 bool m_affectedImagesHasBeenSet = false;
98
99 Aws::String m_repository;
100 bool m_repositoryHasBeenSet = false;
101
102 SeverityCounts m_severityCounts;
103 bool m_severityCountsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Inspector2
108} // namespace Aws
RepositoryAggregationResponse & WithRepository(Aws::String &&value)
AWS_INSPECTOR2_API RepositoryAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositoryAggregationResponse & WithAccountId(const Aws::String &value)
RepositoryAggregationResponse & WithSeverityCounts(SeverityCounts &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
RepositoryAggregationResponse & WithAccountId(const char *value)
RepositoryAggregationResponse & WithRepository(const Aws::String &value)
AWS_INSPECTOR2_API RepositoryAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
RepositoryAggregationResponse & WithAffectedImages(long long value)
RepositoryAggregationResponse & WithSeverityCounts(const SeverityCounts &value)
RepositoryAggregationResponse & WithRepository(const char *value)
RepositoryAggregationResponse & WithAccountId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue