AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
InventoryFinding.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/model/FindingReason.h>
9#include <aws/acm/model/FindingRuleId.h>
10#include <aws/acm/model/FindingScope.h>
11#include <aws/acm/model/FindingSeverity.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ACM {
25namespace Model {
26
34 public:
35 AWS_ACM_API InventoryFinding() = default;
39
41
46 inline const Aws::String& GetFindingId() const { return m_findingId; }
47 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
48 template <typename FindingIdT = Aws::String>
49 void SetFindingId(FindingIdT&& value) {
50 m_findingIdHasBeenSet = true;
51 m_findingId = std::forward<FindingIdT>(value);
52 }
53 template <typename FindingIdT = Aws::String>
54 InventoryFinding& WithFindingId(FindingIdT&& value) {
55 SetFindingId(std::forward<FindingIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetCertificateIdentifier() const { return m_certificateIdentifier; }
65 inline bool CertificateIdentifierHasBeenSet() const { return m_certificateIdentifierHasBeenSet; }
66 template <typename CertificateIdentifierT = Aws::String>
67 void SetCertificateIdentifier(CertificateIdentifierT&& value) {
68 m_certificateIdentifierHasBeenSet = true;
69 m_certificateIdentifier = std::forward<CertificateIdentifierT>(value);
70 }
71 template <typename CertificateIdentifierT = Aws::String>
72 InventoryFinding& WithCertificateIdentifier(CertificateIdentifierT&& value) {
73 SetCertificateIdentifier(std::forward<CertificateIdentifierT>(value));
74 return *this;
75 }
77
79
82 inline FindingRuleId GetRuleId() const { return m_ruleId; }
83 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
84 inline void SetRuleId(FindingRuleId value) {
85 m_ruleIdHasBeenSet = true;
86 m_ruleId = value;
87 }
89 SetRuleId(value);
90 return *this;
91 }
93
95
98 inline FindingSeverity GetSeverity() const { return m_severity; }
99 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
100 inline void SetSeverity(FindingSeverity value) {
101 m_severityHasBeenSet = true;
102 m_severity = value;
103 }
105 SetSeverity(value);
106 return *this;
107 }
109
111
114 inline const FindingScope& GetScope() const { return m_scope; }
115 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
116 template <typename ScopeT = FindingScope>
117 void SetScope(ScopeT&& value) {
118 m_scopeHasBeenSet = true;
119 m_scope = std::forward<ScopeT>(value);
120 }
121 template <typename ScopeT = FindingScope>
122 InventoryFinding& WithScope(ScopeT&& value) {
123 SetScope(std::forward<ScopeT>(value));
124 return *this;
125 }
127
129
133 inline FindingReason GetReason() const { return m_reason; }
134 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
135 inline void SetReason(FindingReason value) {
136 m_reasonHasBeenSet = true;
137 m_reason = value;
138 }
140 SetReason(value);
141 return *this;
142 }
144
146
150 inline const Aws::String& GetExpected() const { return m_expected; }
151 inline bool ExpectedHasBeenSet() const { return m_expectedHasBeenSet; }
152 template <typename ExpectedT = Aws::String>
153 void SetExpected(ExpectedT&& value) {
154 m_expectedHasBeenSet = true;
155 m_expected = std::forward<ExpectedT>(value);
156 }
157 template <typename ExpectedT = Aws::String>
158 InventoryFinding& WithExpected(ExpectedT&& value) {
159 SetExpected(std::forward<ExpectedT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::String& GetActual() const { return m_actual; }
170 inline bool ActualHasBeenSet() const { return m_actualHasBeenSet; }
171 template <typename ActualT = Aws::String>
172 void SetActual(ActualT&& value) {
173 m_actualHasBeenSet = true;
174 m_actual = std::forward<ActualT>(value);
175 }
176 template <typename ActualT = Aws::String>
177 InventoryFinding& WithActual(ActualT&& value) {
178 SetActual(std::forward<ActualT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::String& GetRemediation() const { return m_remediation; }
189 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
190 template <typename RemediationT = Aws::String>
191 void SetRemediation(RemediationT&& value) {
192 m_remediationHasBeenSet = true;
193 m_remediation = std::forward<RemediationT>(value);
194 }
195 template <typename RemediationT = Aws::String>
196 InventoryFinding& WithRemediation(RemediationT&& value) {
197 SetRemediation(std::forward<RemediationT>(value));
198 return *this;
199 }
201
203
208 inline const Aws::Utils::DateTime& GetEvaluatedAt() const { return m_evaluatedAt; }
209 inline bool EvaluatedAtHasBeenSet() const { return m_evaluatedAtHasBeenSet; }
210 template <typename EvaluatedAtT = Aws::Utils::DateTime>
211 void SetEvaluatedAt(EvaluatedAtT&& value) {
212 m_evaluatedAtHasBeenSet = true;
213 m_evaluatedAt = std::forward<EvaluatedAtT>(value);
214 }
215 template <typename EvaluatedAtT = Aws::Utils::DateTime>
216 InventoryFinding& WithEvaluatedAt(EvaluatedAtT&& value) {
217 SetEvaluatedAt(std::forward<EvaluatedAtT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_findingId;
223
224 Aws::String m_certificateIdentifier;
225
227
229
230 FindingScope m_scope;
231
233
234 Aws::String m_expected;
235
236 Aws::String m_actual;
237
238 Aws::String m_remediation;
239
240 Aws::Utils::DateTime m_evaluatedAt{};
241 bool m_findingIdHasBeenSet = false;
242 bool m_certificateIdentifierHasBeenSet = false;
243 bool m_ruleIdHasBeenSet = false;
244 bool m_severityHasBeenSet = false;
245 bool m_scopeHasBeenSet = false;
246 bool m_reasonHasBeenSet = false;
247 bool m_expectedHasBeenSet = false;
248 bool m_actualHasBeenSet = false;
249 bool m_remediationHasBeenSet = false;
250 bool m_evaluatedAtHasBeenSet = false;
251};
252
253} // namespace Model
254} // namespace ACM
255} // namespace Aws
const Aws::Utils::DateTime & GetEvaluatedAt() const
InventoryFinding & WithEvaluatedAt(EvaluatedAtT &&value)
InventoryFinding & WithActual(ActualT &&value)
void SetEvaluatedAt(EvaluatedAtT &&value)
void SetRemediation(RemediationT &&value)
const Aws::String & GetFindingId() const
InventoryFinding & WithCertificateIdentifier(CertificateIdentifierT &&value)
InventoryFinding & WithReason(FindingReason value)
const Aws::String & GetExpected() const
void SetCertificateIdentifier(CertificateIdentifierT &&value)
InventoryFinding & WithFindingId(FindingIdT &&value)
const Aws::String & GetCertificateIdentifier() const
void SetExpected(ExpectedT &&value)
InventoryFinding & WithExpected(ExpectedT &&value)
AWS_ACM_API InventoryFinding()=default
const Aws::String & GetActual() const
AWS_ACM_API InventoryFinding(Aws::Utils::Json::JsonView jsonValue)
void SetSeverity(FindingSeverity value)
InventoryFinding & WithRemediation(RemediationT &&value)
const Aws::String & GetRemediation() const
InventoryFinding & WithSeverity(FindingSeverity value)
void SetReason(FindingReason value)
AWS_ACM_API InventoryFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRuleId(FindingRuleId value)
InventoryFinding & WithScope(ScopeT &&value)
InventoryFinding & WithRuleId(FindingRuleId value)
FindingSeverity GetSeverity() const
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFindingId(FindingIdT &&value)
const FindingScope & GetScope() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue