AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
CisCheckAggregation.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/CisSecurityLevel.h>
10#include <aws/inspector2/model/StatusCounts.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
30 public:
31 AWS_INSPECTOR2_API CisCheckAggregation() = default;
32 AWS_INSPECTOR2_API CisCheckAggregation(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetScanArn() const { return m_scanArn; }
41 inline bool ScanArnHasBeenSet() const { return m_scanArnHasBeenSet; }
42 template <typename ScanArnT = Aws::String>
43 void SetScanArn(ScanArnT&& value) {
44 m_scanArnHasBeenSet = true;
45 m_scanArn = std::forward<ScanArnT>(value);
46 }
47 template <typename ScanArnT = Aws::String>
48 CisCheckAggregation& WithScanArn(ScanArnT&& value) {
49 SetScanArn(std::forward<ScanArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCheckId() const { return m_checkId; }
59 inline bool CheckIdHasBeenSet() const { return m_checkIdHasBeenSet; }
60 template <typename CheckIdT = Aws::String>
61 void SetCheckId(CheckIdT&& value) {
62 m_checkIdHasBeenSet = true;
63 m_checkId = std::forward<CheckIdT>(value);
64 }
65 template <typename CheckIdT = Aws::String>
66 CisCheckAggregation& WithCheckId(CheckIdT&& value) {
67 SetCheckId(std::forward<CheckIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetTitle() const { return m_title; }
77 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
78 template <typename TitleT = Aws::String>
79 void SetTitle(TitleT&& value) {
80 m_titleHasBeenSet = true;
81 m_title = std::forward<TitleT>(value);
82 }
83 template <typename TitleT = Aws::String>
84 CisCheckAggregation& WithTitle(TitleT&& value) {
85 SetTitle(std::forward<TitleT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetCheckDescription() const { return m_checkDescription; }
95 inline bool CheckDescriptionHasBeenSet() const { return m_checkDescriptionHasBeenSet; }
96 template <typename CheckDescriptionT = Aws::String>
97 void SetCheckDescription(CheckDescriptionT&& value) {
98 m_checkDescriptionHasBeenSet = true;
99 m_checkDescription = std::forward<CheckDescriptionT>(value);
100 }
101 template <typename CheckDescriptionT = Aws::String>
102 CisCheckAggregation& WithCheckDescription(CheckDescriptionT&& value) {
103 SetCheckDescription(std::forward<CheckDescriptionT>(value));
104 return *this;
105 }
107
109
112 inline CisSecurityLevel GetLevel() const { return m_level; }
113 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
114 inline void SetLevel(CisSecurityLevel value) {
115 m_levelHasBeenSet = true;
116 m_level = value;
117 }
119 SetLevel(value);
120 return *this;
121 }
123
125
128 inline const Aws::String& GetAccountId() const { return m_accountId; }
129 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
130 template <typename AccountIdT = Aws::String>
131 void SetAccountId(AccountIdT&& value) {
132 m_accountIdHasBeenSet = true;
133 m_accountId = std::forward<AccountIdT>(value);
134 }
135 template <typename AccountIdT = Aws::String>
136 CisCheckAggregation& WithAccountId(AccountIdT&& value) {
137 SetAccountId(std::forward<AccountIdT>(value));
138 return *this;
139 }
141
143
146 inline const StatusCounts& GetStatusCounts() const { return m_statusCounts; }
147 inline bool StatusCountsHasBeenSet() const { return m_statusCountsHasBeenSet; }
148 template <typename StatusCountsT = StatusCounts>
149 void SetStatusCounts(StatusCountsT&& value) {
150 m_statusCountsHasBeenSet = true;
151 m_statusCounts = std::forward<StatusCountsT>(value);
152 }
153 template <typename StatusCountsT = StatusCounts>
154 CisCheckAggregation& WithStatusCounts(StatusCountsT&& value) {
155 SetStatusCounts(std::forward<StatusCountsT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetPlatform() const { return m_platform; }
165 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
166 template <typename PlatformT = Aws::String>
167 void SetPlatform(PlatformT&& value) {
168 m_platformHasBeenSet = true;
169 m_platform = std::forward<PlatformT>(value);
170 }
171 template <typename PlatformT = Aws::String>
172 CisCheckAggregation& WithPlatform(PlatformT&& value) {
173 SetPlatform(std::forward<PlatformT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_scanArn;
179
180 Aws::String m_checkId;
181
182 Aws::String m_title;
183
184 Aws::String m_checkDescription;
185
187
188 Aws::String m_accountId;
189
190 StatusCounts m_statusCounts;
191
192 Aws::String m_platform;
193 bool m_scanArnHasBeenSet = false;
194 bool m_checkIdHasBeenSet = false;
195 bool m_titleHasBeenSet = false;
196 bool m_checkDescriptionHasBeenSet = false;
197 bool m_levelHasBeenSet = false;
198 bool m_accountIdHasBeenSet = false;
199 bool m_statusCountsHasBeenSet = false;
200 bool m_platformHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace Inspector2
205} // namespace Aws
CisCheckAggregation & WithPlatform(PlatformT &&value)
CisCheckAggregation & WithCheckId(CheckIdT &&value)
CisCheckAggregation & WithLevel(CisSecurityLevel value)
CisCheckAggregation & WithAccountId(AccountIdT &&value)
AWS_INSPECTOR2_API CisCheckAggregation()=default
void SetCheckDescription(CheckDescriptionT &&value)
AWS_INSPECTOR2_API CisCheckAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API CisCheckAggregation(Aws::Utils::Json::JsonView jsonValue)
CisCheckAggregation & WithCheckDescription(CheckDescriptionT &&value)
CisCheckAggregation & WithTitle(TitleT &&value)
CisCheckAggregation & WithStatusCounts(StatusCountsT &&value)
CisCheckAggregation & WithScanArn(ScanArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue