AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CisScan.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/inspector2/model/CisSecurityLevel.h>
11#include <aws/inspector2/model/CisScanStatus.h>
12#include <aws/inspector2/model/CisTargets.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Inspector2
26{
27namespace Model
28{
29
35 class CisScan
36 {
37 public:
38 AWS_INSPECTOR2_API CisScan();
39 AWS_INSPECTOR2_API CisScan(Aws::Utils::Json::JsonView jsonValue);
40 AWS_INSPECTOR2_API CisScan& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline int GetFailedChecks() const{ return m_failedChecks; }
49 inline bool FailedChecksHasBeenSet() const { return m_failedChecksHasBeenSet; }
50 inline void SetFailedChecks(int value) { m_failedChecksHasBeenSet = true; m_failedChecks = value; }
51 inline CisScan& WithFailedChecks(int value) { SetFailedChecks(value); return *this;}
53
55
58 inline const Aws::String& GetScanArn() const{ return m_scanArn; }
59 inline bool ScanArnHasBeenSet() const { return m_scanArnHasBeenSet; }
60 inline void SetScanArn(const Aws::String& value) { m_scanArnHasBeenSet = true; m_scanArn = value; }
61 inline void SetScanArn(Aws::String&& value) { m_scanArnHasBeenSet = true; m_scanArn = std::move(value); }
62 inline void SetScanArn(const char* value) { m_scanArnHasBeenSet = true; m_scanArn.assign(value); }
63 inline CisScan& WithScanArn(const Aws::String& value) { SetScanArn(value); return *this;}
64 inline CisScan& WithScanArn(Aws::String&& value) { SetScanArn(std::move(value)); return *this;}
65 inline CisScan& WithScanArn(const char* value) { SetScanArn(value); return *this;}
67
69
72 inline const Aws::String& GetScanConfigurationArn() const{ return m_scanConfigurationArn; }
73 inline bool ScanConfigurationArnHasBeenSet() const { return m_scanConfigurationArnHasBeenSet; }
74 inline void SetScanConfigurationArn(const Aws::String& value) { m_scanConfigurationArnHasBeenSet = true; m_scanConfigurationArn = value; }
75 inline void SetScanConfigurationArn(Aws::String&& value) { m_scanConfigurationArnHasBeenSet = true; m_scanConfigurationArn = std::move(value); }
76 inline void SetScanConfigurationArn(const char* value) { m_scanConfigurationArnHasBeenSet = true; m_scanConfigurationArn.assign(value); }
77 inline CisScan& WithScanConfigurationArn(const Aws::String& value) { SetScanConfigurationArn(value); return *this;}
78 inline CisScan& WithScanConfigurationArn(Aws::String&& value) { SetScanConfigurationArn(std::move(value)); return *this;}
79 inline CisScan& WithScanConfigurationArn(const char* value) { SetScanConfigurationArn(value); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetScanDate() const{ return m_scanDate; }
87 inline bool ScanDateHasBeenSet() const { return m_scanDateHasBeenSet; }
88 inline void SetScanDate(const Aws::Utils::DateTime& value) { m_scanDateHasBeenSet = true; m_scanDate = value; }
89 inline void SetScanDate(Aws::Utils::DateTime&& value) { m_scanDateHasBeenSet = true; m_scanDate = std::move(value); }
90 inline CisScan& WithScanDate(const Aws::Utils::DateTime& value) { SetScanDate(value); return *this;}
91 inline CisScan& WithScanDate(Aws::Utils::DateTime&& value) { SetScanDate(std::move(value)); return *this;}
93
95
98 inline const Aws::String& GetScanName() const{ return m_scanName; }
99 inline bool ScanNameHasBeenSet() const { return m_scanNameHasBeenSet; }
100 inline void SetScanName(const Aws::String& value) { m_scanNameHasBeenSet = true; m_scanName = value; }
101 inline void SetScanName(Aws::String&& value) { m_scanNameHasBeenSet = true; m_scanName = std::move(value); }
102 inline void SetScanName(const char* value) { m_scanNameHasBeenSet = true; m_scanName.assign(value); }
103 inline CisScan& WithScanName(const Aws::String& value) { SetScanName(value); return *this;}
104 inline CisScan& WithScanName(Aws::String&& value) { SetScanName(std::move(value)); return *this;}
105 inline CisScan& WithScanName(const char* value) { SetScanName(value); return *this;}
107
109
112 inline const Aws::String& GetScheduledBy() const{ return m_scheduledBy; }
113 inline bool ScheduledByHasBeenSet() const { return m_scheduledByHasBeenSet; }
114 inline void SetScheduledBy(const Aws::String& value) { m_scheduledByHasBeenSet = true; m_scheduledBy = value; }
115 inline void SetScheduledBy(Aws::String&& value) { m_scheduledByHasBeenSet = true; m_scheduledBy = std::move(value); }
116 inline void SetScheduledBy(const char* value) { m_scheduledByHasBeenSet = true; m_scheduledBy.assign(value); }
117 inline CisScan& WithScheduledBy(const Aws::String& value) { SetScheduledBy(value); return *this;}
118 inline CisScan& WithScheduledBy(Aws::String&& value) { SetScheduledBy(std::move(value)); return *this;}
119 inline CisScan& WithScheduledBy(const char* value) { SetScheduledBy(value); return *this;}
121
123
127 inline const CisSecurityLevel& GetSecurityLevel() const{ return m_securityLevel; }
128 inline bool SecurityLevelHasBeenSet() const { return m_securityLevelHasBeenSet; }
129 inline void SetSecurityLevel(const CisSecurityLevel& value) { m_securityLevelHasBeenSet = true; m_securityLevel = value; }
130 inline void SetSecurityLevel(CisSecurityLevel&& value) { m_securityLevelHasBeenSet = true; m_securityLevel = std::move(value); }
131 inline CisScan& WithSecurityLevel(const CisSecurityLevel& value) { SetSecurityLevel(value); return *this;}
132 inline CisScan& WithSecurityLevel(CisSecurityLevel&& value) { SetSecurityLevel(std::move(value)); return *this;}
134
136
139 inline const CisScanStatus& GetStatus() const{ return m_status; }
140 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
141 inline void SetStatus(const CisScanStatus& value) { m_statusHasBeenSet = true; m_status = value; }
142 inline void SetStatus(CisScanStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
143 inline CisScan& WithStatus(const CisScanStatus& value) { SetStatus(value); return *this;}
144 inline CisScan& WithStatus(CisScanStatus&& value) { SetStatus(std::move(value)); return *this;}
146
148
151 inline const CisTargets& GetTargets() const{ return m_targets; }
152 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
153 inline void SetTargets(const CisTargets& value) { m_targetsHasBeenSet = true; m_targets = value; }
154 inline void SetTargets(CisTargets&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
155 inline CisScan& WithTargets(const CisTargets& value) { SetTargets(value); return *this;}
156 inline CisScan& WithTargets(CisTargets&& value) { SetTargets(std::move(value)); return *this;}
158
160
163 inline int GetTotalChecks() const{ return m_totalChecks; }
164 inline bool TotalChecksHasBeenSet() const { return m_totalChecksHasBeenSet; }
165 inline void SetTotalChecks(int value) { m_totalChecksHasBeenSet = true; m_totalChecks = value; }
166 inline CisScan& WithTotalChecks(int value) { SetTotalChecks(value); return *this;}
168 private:
169
170 int m_failedChecks;
171 bool m_failedChecksHasBeenSet = false;
172
173 Aws::String m_scanArn;
174 bool m_scanArnHasBeenSet = false;
175
176 Aws::String m_scanConfigurationArn;
177 bool m_scanConfigurationArnHasBeenSet = false;
178
179 Aws::Utils::DateTime m_scanDate;
180 bool m_scanDateHasBeenSet = false;
181
182 Aws::String m_scanName;
183 bool m_scanNameHasBeenSet = false;
184
185 Aws::String m_scheduledBy;
186 bool m_scheduledByHasBeenSet = false;
187
188 CisSecurityLevel m_securityLevel;
189 bool m_securityLevelHasBeenSet = false;
190
191 CisScanStatus m_status;
192 bool m_statusHasBeenSet = false;
193
194 CisTargets m_targets;
195 bool m_targetsHasBeenSet = false;
196
197 int m_totalChecks;
198 bool m_totalChecksHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace Inspector2
203} // namespace Aws
CisScan & WithScanArn(const char *value)
Definition CisScan.h:65
AWS_INSPECTOR2_API CisScan & operator=(Aws::Utils::Json::JsonView jsonValue)
const CisTargets & GetTargets() const
Definition CisScan.h:151
void SetSecurityLevel(const CisSecurityLevel &value)
Definition CisScan.h:129
void SetTargets(CisTargets &&value)
Definition CisScan.h:154
void SetScanName(const Aws::String &value)
Definition CisScan.h:100
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(CisScanStatus &&value)
Definition CisScan.h:142
void SetScheduledBy(const char *value)
Definition CisScan.h:116
bool ScanNameHasBeenSet() const
Definition CisScan.h:99
AWS_INSPECTOR2_API CisScan(Aws::Utils::Json::JsonView jsonValue)
CisScan & WithTotalChecks(int value)
Definition CisScan.h:166
void SetScanConfigurationArn(const Aws::String &value)
Definition CisScan.h:74
bool TotalChecksHasBeenSet() const
Definition CisScan.h:164
CisScan & WithStatus(CisScanStatus &&value)
Definition CisScan.h:144
void SetScanDate(Aws::Utils::DateTime &&value)
Definition CisScan.h:89
void SetScanDate(const Aws::Utils::DateTime &value)
Definition CisScan.h:88
CisScan & WithScanName(const Aws::String &value)
Definition CisScan.h:103
AWS_INSPECTOR2_API CisScan()
const Aws::String & GetScanName() const
Definition CisScan.h:98
const Aws::String & GetScanArn() const
Definition CisScan.h:58
CisScan & WithFailedChecks(int value)
Definition CisScan.h:51
void SetScanArn(const char *value)
Definition CisScan.h:62
void SetSecurityLevel(CisSecurityLevel &&value)
Definition CisScan.h:130
const CisScanStatus & GetStatus() const
Definition CisScan.h:139
CisScan & WithSecurityLevel(CisSecurityLevel &&value)
Definition CisScan.h:132
bool SecurityLevelHasBeenSet() const
Definition CisScan.h:128
CisScan & WithScanArn(const Aws::String &value)
Definition CisScan.h:63
const Aws::Utils::DateTime & GetScanDate() const
Definition CisScan.h:86
const CisSecurityLevel & GetSecurityLevel() const
Definition CisScan.h:127
void SetFailedChecks(int value)
Definition CisScan.h:50
void SetScanConfigurationArn(Aws::String &&value)
Definition CisScan.h:75
void SetTotalChecks(int value)
Definition CisScan.h:165
CisScan & WithScanConfigurationArn(const char *value)
Definition CisScan.h:79
CisScan & WithScanConfigurationArn(Aws::String &&value)
Definition CisScan.h:78
const Aws::String & GetScheduledBy() const
Definition CisScan.h:112
bool FailedChecksHasBeenSet() const
Definition CisScan.h:49
CisScan & WithScanName(Aws::String &&value)
Definition CisScan.h:104
CisScan & WithScanDate(Aws::Utils::DateTime &&value)
Definition CisScan.h:91
CisScan & WithTargets(CisTargets &&value)
Definition CisScan.h:156
const Aws::String & GetScanConfigurationArn() const
Definition CisScan.h:72
bool ScanDateHasBeenSet() const
Definition CisScan.h:87
CisScan & WithScheduledBy(const char *value)
Definition CisScan.h:119
void SetScanName(const char *value)
Definition CisScan.h:102
CisScan & WithStatus(const CisScanStatus &value)
Definition CisScan.h:143
void SetStatus(const CisScanStatus &value)
Definition CisScan.h:141
void SetScanName(Aws::String &&value)
Definition CisScan.h:101
CisScan & WithScheduledBy(const Aws::String &value)
Definition CisScan.h:117
CisScan & WithSecurityLevel(const CisSecurityLevel &value)
Definition CisScan.h:131
void SetScheduledBy(Aws::String &&value)
Definition CisScan.h:115
void SetScheduledBy(const Aws::String &value)
Definition CisScan.h:114
CisScan & WithScanArn(Aws::String &&value)
Definition CisScan.h:64
void SetTargets(const CisTargets &value)
Definition CisScan.h:153
void SetScanConfigurationArn(const char *value)
Definition CisScan.h:76
CisScan & WithScheduledBy(Aws::String &&value)
Definition CisScan.h:118
CisScan & WithScanDate(const Aws::Utils::DateTime &value)
Definition CisScan.h:90
CisScan & WithScanName(const char *value)
Definition CisScan.h:105
CisScan & WithScanConfigurationArn(const Aws::String &value)
Definition CisScan.h:77
bool ScheduledByHasBeenSet() const
Definition CisScan.h:113
void SetScanArn(const Aws::String &value)
Definition CisScan.h:60
CisScan & WithTargets(const CisTargets &value)
Definition CisScan.h:155
void SetScanArn(Aws::String &&value)
Definition CisScan.h:61
bool ScanConfigurationArnHasBeenSet() const
Definition CisScan.h:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue