AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AuditFinding.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/iot/model/AuditFindingSeverity.h>
11#include <aws/iot/model/NonCompliantResource.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/iot/model/RelatedResource.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace IoT
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_IOT_API AuditFinding();
43
44
46
50 inline const Aws::String& GetFindingId() const{ return m_findingId; }
51 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
52 inline void SetFindingId(const Aws::String& value) { m_findingIdHasBeenSet = true; m_findingId = value; }
53 inline void SetFindingId(Aws::String&& value) { m_findingIdHasBeenSet = true; m_findingId = std::move(value); }
54 inline void SetFindingId(const char* value) { m_findingIdHasBeenSet = true; m_findingId.assign(value); }
55 inline AuditFinding& WithFindingId(const Aws::String& value) { SetFindingId(value); return *this;}
56 inline AuditFinding& WithFindingId(Aws::String&& value) { SetFindingId(std::move(value)); return *this;}
57 inline AuditFinding& WithFindingId(const char* value) { SetFindingId(value); return *this;}
59
61
64 inline const Aws::String& GetTaskId() const{ return m_taskId; }
65 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
66 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
67 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
68 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
69 inline AuditFinding& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
70 inline AuditFinding& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
71 inline AuditFinding& WithTaskId(const char* value) { SetTaskId(value); return *this;}
73
75
78 inline const Aws::String& GetCheckName() const{ return m_checkName; }
79 inline bool CheckNameHasBeenSet() const { return m_checkNameHasBeenSet; }
80 inline void SetCheckName(const Aws::String& value) { m_checkNameHasBeenSet = true; m_checkName = value; }
81 inline void SetCheckName(Aws::String&& value) { m_checkNameHasBeenSet = true; m_checkName = std::move(value); }
82 inline void SetCheckName(const char* value) { m_checkNameHasBeenSet = true; m_checkName.assign(value); }
83 inline AuditFinding& WithCheckName(const Aws::String& value) { SetCheckName(value); return *this;}
84 inline AuditFinding& WithCheckName(Aws::String&& value) { SetCheckName(std::move(value)); return *this;}
85 inline AuditFinding& WithCheckName(const char* value) { SetCheckName(value); return *this;}
87
89
92 inline const Aws::Utils::DateTime& GetTaskStartTime() const{ return m_taskStartTime; }
93 inline bool TaskStartTimeHasBeenSet() const { return m_taskStartTimeHasBeenSet; }
94 inline void SetTaskStartTime(const Aws::Utils::DateTime& value) { m_taskStartTimeHasBeenSet = true; m_taskStartTime = value; }
95 inline void SetTaskStartTime(Aws::Utils::DateTime&& value) { m_taskStartTimeHasBeenSet = true; m_taskStartTime = std::move(value); }
96 inline AuditFinding& WithTaskStartTime(const Aws::Utils::DateTime& value) { SetTaskStartTime(value); return *this;}
97 inline AuditFinding& WithTaskStartTime(Aws::Utils::DateTime&& value) { SetTaskStartTime(std::move(value)); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetFindingTime() const{ return m_findingTime; }
105 inline bool FindingTimeHasBeenSet() const { return m_findingTimeHasBeenSet; }
106 inline void SetFindingTime(const Aws::Utils::DateTime& value) { m_findingTimeHasBeenSet = true; m_findingTime = value; }
107 inline void SetFindingTime(Aws::Utils::DateTime&& value) { m_findingTimeHasBeenSet = true; m_findingTime = std::move(value); }
108 inline AuditFinding& WithFindingTime(const Aws::Utils::DateTime& value) { SetFindingTime(value); return *this;}
109 inline AuditFinding& WithFindingTime(Aws::Utils::DateTime&& value) { SetFindingTime(std::move(value)); return *this;}
111
113
116 inline const AuditFindingSeverity& GetSeverity() const{ return m_severity; }
117 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
118 inline void SetSeverity(const AuditFindingSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
119 inline void SetSeverity(AuditFindingSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
120 inline AuditFinding& WithSeverity(const AuditFindingSeverity& value) { SetSeverity(value); return *this;}
121 inline AuditFinding& WithSeverity(AuditFindingSeverity&& value) { SetSeverity(std::move(value)); return *this;}
123
125
128 inline const NonCompliantResource& GetNonCompliantResource() const{ return m_nonCompliantResource; }
129 inline bool NonCompliantResourceHasBeenSet() const { return m_nonCompliantResourceHasBeenSet; }
130 inline void SetNonCompliantResource(const NonCompliantResource& value) { m_nonCompliantResourceHasBeenSet = true; m_nonCompliantResource = value; }
131 inline void SetNonCompliantResource(NonCompliantResource&& value) { m_nonCompliantResourceHasBeenSet = true; m_nonCompliantResource = std::move(value); }
133 inline AuditFinding& WithNonCompliantResource(NonCompliantResource&& value) { SetNonCompliantResource(std::move(value)); return *this;}
135
137
140 inline const Aws::Vector<RelatedResource>& GetRelatedResources() const{ return m_relatedResources; }
141 inline bool RelatedResourcesHasBeenSet() const { return m_relatedResourcesHasBeenSet; }
142 inline void SetRelatedResources(const Aws::Vector<RelatedResource>& value) { m_relatedResourcesHasBeenSet = true; m_relatedResources = value; }
143 inline void SetRelatedResources(Aws::Vector<RelatedResource>&& value) { m_relatedResourcesHasBeenSet = true; m_relatedResources = std::move(value); }
145 inline AuditFinding& WithRelatedResources(Aws::Vector<RelatedResource>&& value) { SetRelatedResources(std::move(value)); return *this;}
146 inline AuditFinding& AddRelatedResources(const RelatedResource& value) { m_relatedResourcesHasBeenSet = true; m_relatedResources.push_back(value); return *this; }
147 inline AuditFinding& AddRelatedResources(RelatedResource&& value) { m_relatedResourcesHasBeenSet = true; m_relatedResources.push_back(std::move(value)); return *this; }
149
151
154 inline const Aws::String& GetReasonForNonCompliance() const{ return m_reasonForNonCompliance; }
155 inline bool ReasonForNonComplianceHasBeenSet() const { return m_reasonForNonComplianceHasBeenSet; }
156 inline void SetReasonForNonCompliance(const Aws::String& value) { m_reasonForNonComplianceHasBeenSet = true; m_reasonForNonCompliance = value; }
157 inline void SetReasonForNonCompliance(Aws::String&& value) { m_reasonForNonComplianceHasBeenSet = true; m_reasonForNonCompliance = std::move(value); }
158 inline void SetReasonForNonCompliance(const char* value) { m_reasonForNonComplianceHasBeenSet = true; m_reasonForNonCompliance.assign(value); }
160 inline AuditFinding& WithReasonForNonCompliance(Aws::String&& value) { SetReasonForNonCompliance(std::move(value)); return *this;}
161 inline AuditFinding& WithReasonForNonCompliance(const char* value) { SetReasonForNonCompliance(value); return *this;}
163
165
168 inline const Aws::String& GetReasonForNonComplianceCode() const{ return m_reasonForNonComplianceCode; }
169 inline bool ReasonForNonComplianceCodeHasBeenSet() const { return m_reasonForNonComplianceCodeHasBeenSet; }
170 inline void SetReasonForNonComplianceCode(const Aws::String& value) { m_reasonForNonComplianceCodeHasBeenSet = true; m_reasonForNonComplianceCode = value; }
171 inline void SetReasonForNonComplianceCode(Aws::String&& value) { m_reasonForNonComplianceCodeHasBeenSet = true; m_reasonForNonComplianceCode = std::move(value); }
172 inline void SetReasonForNonComplianceCode(const char* value) { m_reasonForNonComplianceCodeHasBeenSet = true; m_reasonForNonComplianceCode.assign(value); }
175 inline AuditFinding& WithReasonForNonComplianceCode(const char* value) { SetReasonForNonComplianceCode(value); return *this;}
177
179
183 inline bool GetIsSuppressed() const{ return m_isSuppressed; }
184 inline bool IsSuppressedHasBeenSet() const { return m_isSuppressedHasBeenSet; }
185 inline void SetIsSuppressed(bool value) { m_isSuppressedHasBeenSet = true; m_isSuppressed = value; }
186 inline AuditFinding& WithIsSuppressed(bool value) { SetIsSuppressed(value); return *this;}
188 private:
189
190 Aws::String m_findingId;
191 bool m_findingIdHasBeenSet = false;
192
193 Aws::String m_taskId;
194 bool m_taskIdHasBeenSet = false;
195
196 Aws::String m_checkName;
197 bool m_checkNameHasBeenSet = false;
198
199 Aws::Utils::DateTime m_taskStartTime;
200 bool m_taskStartTimeHasBeenSet = false;
201
202 Aws::Utils::DateTime m_findingTime;
203 bool m_findingTimeHasBeenSet = false;
204
205 AuditFindingSeverity m_severity;
206 bool m_severityHasBeenSet = false;
207
208 NonCompliantResource m_nonCompliantResource;
209 bool m_nonCompliantResourceHasBeenSet = false;
210
211 Aws::Vector<RelatedResource> m_relatedResources;
212 bool m_relatedResourcesHasBeenSet = false;
213
214 Aws::String m_reasonForNonCompliance;
215 bool m_reasonForNonComplianceHasBeenSet = false;
216
217 Aws::String m_reasonForNonComplianceCode;
218 bool m_reasonForNonComplianceCodeHasBeenSet = false;
219
220 bool m_isSuppressed;
221 bool m_isSuppressedHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace IoT
226} // namespace Aws
void SetTaskId(Aws::String &&value)
void SetTaskId(const char *value)
void SetTaskId(const Aws::String &value)
AuditFinding & WithNonCompliantResource(const NonCompliantResource &value)
void SetIsSuppressed(bool value)
void SetRelatedResources(Aws::Vector< RelatedResource > &&value)
void SetSeverity(AuditFindingSeverity &&value)
void SetRelatedResources(const Aws::Vector< RelatedResource > &value)
void SetCheckName(Aws::String &&value)
void SetFindingTime(Aws::Utils::DateTime &&value)
const NonCompliantResource & GetNonCompliantResource() const
void SetReasonForNonCompliance(const char *value)
void SetReasonForNonComplianceCode(const Aws::String &value)
AuditFinding & WithTaskId(const Aws::String &value)
const Aws::String & GetCheckName() const
void SetNonCompliantResource(NonCompliantResource &&value)
AuditFinding & WithReasonForNonCompliance(Aws::String &&value)
AuditFinding & WithReasonForNonComplianceCode(Aws::String &&value)
const AuditFindingSeverity & GetSeverity() const
AuditFinding & WithIsSuppressed(bool value)
void SetTaskStartTime(const Aws::Utils::DateTime &value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AuditFinding & WithSeverity(AuditFindingSeverity &&value)
AuditFinding & WithSeverity(const AuditFindingSeverity &value)
void SetFindingId(const Aws::String &value)
AuditFinding & WithRelatedResources(Aws::Vector< RelatedResource > &&value)
AuditFinding & WithCheckName(const Aws::String &value)
const Aws::String & GetReasonForNonComplianceCode() const
AWS_IOT_API AuditFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCheckName(const Aws::String &value)
const Aws::Vector< RelatedResource > & GetRelatedResources() const
AuditFinding & WithTaskStartTime(Aws::Utils::DateTime &&value)
AuditFinding & WithCheckName(const char *value)
AuditFinding & WithFindingId(const char *value)
AuditFinding & WithReasonForNonComplianceCode(const char *value)
AWS_IOT_API AuditFinding(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetFindingTime() const
void SetCheckName(const char *value)
bool ReasonForNonComplianceCodeHasBeenSet() const
AuditFinding & WithNonCompliantResource(NonCompliantResource &&value)
AuditFinding & AddRelatedResources(RelatedResource &&value)
void SetFindingId(Aws::String &&value)
void SetNonCompliantResource(const NonCompliantResource &value)
AuditFinding & WithReasonForNonCompliance(const char *value)
void SetFindingId(const char *value)
AuditFinding & WithReasonForNonCompliance(const Aws::String &value)
bool RelatedResourcesHasBeenSet() const
AuditFinding & WithFindingId(const Aws::String &value)
AuditFinding & WithRelatedResources(const Aws::Vector< RelatedResource > &value)
AuditFinding & WithTaskStartTime(const Aws::Utils::DateTime &value)
AuditFinding & WithTaskId(Aws::String &&value)
AuditFinding & WithReasonForNonComplianceCode(const Aws::String &value)
AuditFinding & WithFindingId(Aws::String &&value)
AuditFinding & WithCheckName(Aws::String &&value)
bool ReasonForNonComplianceHasBeenSet() const
const Aws::String & GetFindingId() const
void SetReasonForNonCompliance(Aws::String &&value)
void SetFindingTime(const Aws::Utils::DateTime &value)
const Aws::String & GetTaskId() const
void SetReasonForNonCompliance(const Aws::String &value)
void SetReasonForNonComplianceCode(Aws::String &&value)
void SetReasonForNonComplianceCode(const char *value)
const Aws::String & GetReasonForNonCompliance() const
AuditFinding & WithTaskId(const char *value)
AuditFinding & AddRelatedResources(const RelatedResource &value)
void SetTaskStartTime(Aws::Utils::DateTime &&value)
AuditFinding & WithFindingTime(Aws::Utils::DateTime &&value)
void SetSeverity(const AuditFindingSeverity &value)
bool NonCompliantResourceHasBeenSet() const
AuditFinding & WithFindingTime(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetTaskStartTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue