AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
FindingProviderFields.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/FindingProviderSeverity.h>
11#include <aws/securityhub/model/RelatedFinding.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub {
23namespace Model {
24
56 public:
57 AWS_SECURITYHUB_API FindingProviderFields() = default;
58 AWS_SECURITYHUB_API FindingProviderFields(Aws::Utils::Json::JsonView jsonValue);
60 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
61
63
69 inline int GetConfidence() const { return m_confidence; }
70 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
71 inline void SetConfidence(int value) {
72 m_confidenceHasBeenSet = true;
73 m_confidence = value;
74 }
76 SetConfidence(value);
77 return *this;
78 }
80
82
87 inline int GetCriticality() const { return m_criticality; }
88 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
89 inline void SetCriticality(int value) {
90 m_criticalityHasBeenSet = true;
91 m_criticality = value;
92 }
94 SetCriticality(value);
95 return *this;
96 }
98
100
103 inline const Aws::Vector<RelatedFinding>& GetRelatedFindings() const { return m_relatedFindings; }
104 inline bool RelatedFindingsHasBeenSet() const { return m_relatedFindingsHasBeenSet; }
105 template <typename RelatedFindingsT = Aws::Vector<RelatedFinding>>
106 void SetRelatedFindings(RelatedFindingsT&& value) {
107 m_relatedFindingsHasBeenSet = true;
108 m_relatedFindings = std::forward<RelatedFindingsT>(value);
109 }
110 template <typename RelatedFindingsT = Aws::Vector<RelatedFinding>>
111 FindingProviderFields& WithRelatedFindings(RelatedFindingsT&& value) {
112 SetRelatedFindings(std::forward<RelatedFindingsT>(value));
113 return *this;
114 }
115 template <typename RelatedFindingsT = RelatedFinding>
116 FindingProviderFields& AddRelatedFindings(RelatedFindingsT&& value) {
117 m_relatedFindingsHasBeenSet = true;
118 m_relatedFindings.emplace_back(std::forward<RelatedFindingsT>(value));
119 return *this;
120 }
122
124
127 inline const FindingProviderSeverity& GetSeverity() const { return m_severity; }
128 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
129 template <typename SeverityT = FindingProviderSeverity>
130 void SetSeverity(SeverityT&& value) {
131 m_severityHasBeenSet = true;
132 m_severity = std::forward<SeverityT>(value);
133 }
134 template <typename SeverityT = FindingProviderSeverity>
136 SetSeverity(std::forward<SeverityT>(value));
137 return *this;
138 }
140
142
148 inline const Aws::Vector<Aws::String>& GetTypes() const { return m_types; }
149 inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
150 template <typename TypesT = Aws::Vector<Aws::String>>
151 void SetTypes(TypesT&& value) {
152 m_typesHasBeenSet = true;
153 m_types = std::forward<TypesT>(value);
154 }
155 template <typename TypesT = Aws::Vector<Aws::String>>
157 SetTypes(std::forward<TypesT>(value));
158 return *this;
159 }
160 template <typename TypesT = Aws::String>
162 m_typesHasBeenSet = true;
163 m_types.emplace_back(std::forward<TypesT>(value));
164 return *this;
165 }
167 private:
168 int m_confidence{0};
169
170 int m_criticality{0};
171
172 Aws::Vector<RelatedFinding> m_relatedFindings;
173
174 FindingProviderSeverity m_severity;
175
177 bool m_confidenceHasBeenSet = false;
178 bool m_criticalityHasBeenSet = false;
179 bool m_relatedFindingsHasBeenSet = false;
180 bool m_severityHasBeenSet = false;
181 bool m_typesHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace SecurityHub
186} // namespace Aws
FindingProviderFields & WithSeverity(SeverityT &&value)
const Aws::Vector< Aws::String > & GetTypes() const
AWS_SECURITYHUB_API FindingProviderFields()=default
FindingProviderFields & WithCriticality(int value)
const FindingProviderSeverity & GetSeverity() const
AWS_SECURITYHUB_API FindingProviderFields & operator=(Aws::Utils::Json::JsonView jsonValue)
FindingProviderFields & WithConfidence(int value)
FindingProviderFields & AddRelatedFindings(RelatedFindingsT &&value)
FindingProviderFields & WithRelatedFindings(RelatedFindingsT &&value)
AWS_SECURITYHUB_API FindingProviderFields(Aws::Utils::Json::JsonView jsonValue)
FindingProviderFields & AddTypes(TypesT &&value)
FindingProviderFields & WithTypes(TypesT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< RelatedFinding > & GetRelatedFindings() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue