AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CisCheckAggregation.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/CisSecurityLevel.h>
10#include <aws/inspector2/model/StatusCounts.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_INSPECTOR2_API CisCheckAggregation() = default;
37 AWS_INSPECTOR2_API CisCheckAggregation(Aws::Utils::Json::JsonView jsonValue);
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 CisCheckAggregation& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetCheckDescription() const { return m_checkDescription; }
59 inline bool CheckDescriptionHasBeenSet() const { return m_checkDescriptionHasBeenSet; }
60 template<typename CheckDescriptionT = Aws::String>
61 void SetCheckDescription(CheckDescriptionT&& value) { m_checkDescriptionHasBeenSet = true; m_checkDescription = std::forward<CheckDescriptionT>(value); }
62 template<typename CheckDescriptionT = Aws::String>
63 CisCheckAggregation& WithCheckDescription(CheckDescriptionT&& value) { SetCheckDescription(std::forward<CheckDescriptionT>(value)); return *this;}
65
67
70 inline const Aws::String& GetCheckId() const { return m_checkId; }
71 inline bool CheckIdHasBeenSet() const { return m_checkIdHasBeenSet; }
72 template<typename CheckIdT = Aws::String>
73 void SetCheckId(CheckIdT&& value) { m_checkIdHasBeenSet = true; m_checkId = std::forward<CheckIdT>(value); }
74 template<typename CheckIdT = Aws::String>
75 CisCheckAggregation& WithCheckId(CheckIdT&& value) { SetCheckId(std::forward<CheckIdT>(value)); return *this;}
77
79
82 inline CisSecurityLevel GetLevel() const { return m_level; }
83 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
84 inline void SetLevel(CisSecurityLevel value) { m_levelHasBeenSet = true; m_level = value; }
85 inline CisCheckAggregation& WithLevel(CisSecurityLevel value) { SetLevel(value); return *this;}
87
89
92 inline const Aws::String& GetPlatform() const { return m_platform; }
93 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
94 template<typename PlatformT = Aws::String>
95 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet = true; m_platform = std::forward<PlatformT>(value); }
96 template<typename PlatformT = Aws::String>
97 CisCheckAggregation& WithPlatform(PlatformT&& value) { SetPlatform(std::forward<PlatformT>(value)); return *this;}
99
101
104 inline const Aws::String& GetScanArn() const { return m_scanArn; }
105 inline bool ScanArnHasBeenSet() const { return m_scanArnHasBeenSet; }
106 template<typename ScanArnT = Aws::String>
107 void SetScanArn(ScanArnT&& value) { m_scanArnHasBeenSet = true; m_scanArn = std::forward<ScanArnT>(value); }
108 template<typename ScanArnT = Aws::String>
109 CisCheckAggregation& WithScanArn(ScanArnT&& value) { SetScanArn(std::forward<ScanArnT>(value)); return *this;}
111
113
116 inline const StatusCounts& GetStatusCounts() const { return m_statusCounts; }
117 inline bool StatusCountsHasBeenSet() const { return m_statusCountsHasBeenSet; }
118 template<typename StatusCountsT = StatusCounts>
119 void SetStatusCounts(StatusCountsT&& value) { m_statusCountsHasBeenSet = true; m_statusCounts = std::forward<StatusCountsT>(value); }
120 template<typename StatusCountsT = StatusCounts>
121 CisCheckAggregation& WithStatusCounts(StatusCountsT&& value) { SetStatusCounts(std::forward<StatusCountsT>(value)); return *this;}
123
125
128 inline const Aws::String& GetTitle() const { return m_title; }
129 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
130 template<typename TitleT = Aws::String>
131 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
132 template<typename TitleT = Aws::String>
133 CisCheckAggregation& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
135 private:
136
137 Aws::String m_accountId;
138 bool m_accountIdHasBeenSet = false;
139
140 Aws::String m_checkDescription;
141 bool m_checkDescriptionHasBeenSet = false;
142
143 Aws::String m_checkId;
144 bool m_checkIdHasBeenSet = false;
145
147 bool m_levelHasBeenSet = false;
148
149 Aws::String m_platform;
150 bool m_platformHasBeenSet = false;
151
152 Aws::String m_scanArn;
153 bool m_scanArnHasBeenSet = false;
154
155 StatusCounts m_statusCounts;
156 bool m_statusCountsHasBeenSet = false;
157
158 Aws::String m_title;
159 bool m_titleHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace Inspector2
164} // 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