AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccountAggregationResponse.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 AccountAggregationResponse() = 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 AccountAggregationResponse& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
53
55
58 inline long long GetExploitAvailableCount() const { return m_exploitAvailableCount; }
59 inline bool ExploitAvailableCountHasBeenSet() const { return m_exploitAvailableCountHasBeenSet; }
60 inline void SetExploitAvailableCount(long long value) { m_exploitAvailableCountHasBeenSet = true; m_exploitAvailableCount = value; }
61 inline AccountAggregationResponse& WithExploitAvailableCount(long long value) { SetExploitAvailableCount(value); return *this;}
63
65
68 inline long long GetFixAvailableCount() const { return m_fixAvailableCount; }
69 inline bool FixAvailableCountHasBeenSet() const { return m_fixAvailableCountHasBeenSet; }
70 inline void SetFixAvailableCount(long long value) { m_fixAvailableCountHasBeenSet = true; m_fixAvailableCount = value; }
71 inline AccountAggregationResponse& WithFixAvailableCount(long long value) { SetFixAvailableCount(value); return *this;}
73
75
78 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
79 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
80 template<typename SeverityCountsT = SeverityCounts>
81 void SetSeverityCounts(SeverityCountsT&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::forward<SeverityCountsT>(value); }
82 template<typename SeverityCountsT = SeverityCounts>
83 AccountAggregationResponse& WithSeverityCounts(SeverityCountsT&& value) { SetSeverityCounts(std::forward<SeverityCountsT>(value)); return *this;}
85 private:
86
87 Aws::String m_accountId;
88 bool m_accountIdHasBeenSet = false;
89
90 long long m_exploitAvailableCount{0};
91 bool m_exploitAvailableCountHasBeenSet = false;
92
93 long long m_fixAvailableCount{0};
94 bool m_fixAvailableCountHasBeenSet = false;
95
96 SeverityCounts m_severityCounts;
97 bool m_severityCountsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace Inspector2
102} // namespace Aws
AWS_INSPECTOR2_API AccountAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API AccountAggregationResponse()=default
AccountAggregationResponse & WithExploitAvailableCount(long long value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API AccountAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
AccountAggregationResponse & WithAccountId(AccountIdT &&value)
AccountAggregationResponse & WithFixAvailableCount(long long value)
AccountAggregationResponse & WithSeverityCounts(SeverityCountsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue