AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
AssessmentFinding.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/Kafka_EXPORTS.h>
9#include <aws/kafka/model/FindingCategory.h>
10#include <aws/kafka/model/FindingRemediation.h>
11#include <aws/kafka/model/FindingSeverity.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Kafka {
23namespace Model {
24
32 public:
33 AWS_KAFKA_API AssessmentFinding() = default;
36 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline FindingCategory GetCategory() const { return m_category; }
43 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
44 inline void SetCategory(FindingCategory value) {
45 m_categoryHasBeenSet = true;
46 m_category = value;
47 }
49 SetCategory(value);
50 return *this;
51 }
53
55
60 inline const Aws::String& GetFindingId() const { return m_findingId; }
61 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
62 template <typename FindingIdT = Aws::String>
63 void SetFindingId(FindingIdT&& value) {
64 m_findingIdHasBeenSet = true;
65 m_findingId = std::forward<FindingIdT>(value);
66 }
67 template <typename FindingIdT = Aws::String>
68 AssessmentFinding& WithFindingId(FindingIdT&& value) {
69 SetFindingId(std::forward<FindingIdT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetMessage() const { return m_message; }
80 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
81 template <typename MessageT = Aws::String>
82 void SetMessage(MessageT&& value) {
83 m_messageHasBeenSet = true;
84 m_message = std::forward<MessageT>(value);
85 }
86 template <typename MessageT = Aws::String>
87 AssessmentFinding& WithMessage(MessageT&& value) {
88 SetMessage(std::forward<MessageT>(value));
89 return *this;
90 }
92
94
98 inline const FindingRemediation& GetRemediation() const { return m_remediation; }
99 inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
100 template <typename RemediationT = FindingRemediation>
101 void SetRemediation(RemediationT&& value) {
102 m_remediationHasBeenSet = true;
103 m_remediation = std::forward<RemediationT>(value);
104 }
105 template <typename RemediationT = FindingRemediation>
106 AssessmentFinding& WithRemediation(RemediationT&& value) {
107 SetRemediation(std::forward<RemediationT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetResource() const { return m_resource; }
118 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
119 template <typename ResourceT = Aws::String>
120 void SetResource(ResourceT&& value) {
121 m_resourceHasBeenSet = true;
122 m_resource = std::forward<ResourceT>(value);
123 }
124 template <typename ResourceT = Aws::String>
125 AssessmentFinding& WithResource(ResourceT&& value) {
126 SetResource(std::forward<ResourceT>(value));
127 return *this;
128 }
130
132
135 inline FindingSeverity GetSeverity() const { return m_severity; }
136 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
137 inline void SetSeverity(FindingSeverity value) {
138 m_severityHasBeenSet = true;
139 m_severity = value;
140 }
142 SetSeverity(value);
143 return *this;
144 }
146 private:
148
149 Aws::String m_findingId;
150
151 Aws::String m_message;
152
153 FindingRemediation m_remediation;
154
155 Aws::String m_resource;
156
158 bool m_categoryHasBeenSet = false;
159 bool m_findingIdHasBeenSet = false;
160 bool m_messageHasBeenSet = false;
161 bool m_remediationHasBeenSet = false;
162 bool m_resourceHasBeenSet = false;
163 bool m_severityHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace Kafka
168} // namespace Aws
AssessmentFinding & WithSeverity(FindingSeverity value)
AssessmentFinding & WithFindingId(FindingIdT &&value)
AWS_KAFKA_API AssessmentFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API AssessmentFinding()=default
AssessmentFinding & WithCategory(FindingCategory value)
const FindingRemediation & GetRemediation() const
AssessmentFinding & WithRemediation(RemediationT &&value)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFindingId(FindingIdT &&value)
const Aws::String & GetResource() const
const Aws::String & GetMessage() const
AssessmentFinding & WithResource(ResourceT &&value)
AWS_KAFKA_API AssessmentFinding(Aws::Utils::Json::JsonView jsonValue)
void SetSeverity(FindingSeverity value)
void SetCategory(FindingCategory value)
void SetRemediation(RemediationT &&value)
const Aws::String & GetFindingId() const
AssessmentFinding & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue