AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
55 public:
56 AWS_SECURITYHUB_API FindingProviderFields() = default;
57 AWS_SECURITYHUB_API FindingProviderFields(Aws::Utils::Json::JsonView jsonValue);
59 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
60
62
68 inline int GetConfidence() const { return m_confidence; }
69 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
70 inline void SetConfidence(int value) {
71 m_confidenceHasBeenSet = true;
72 m_confidence = value;
73 }
75 SetConfidence(value);
76 return *this;
77 }
79
81
86 inline int GetCriticality() const { return m_criticality; }
87 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
88 inline void SetCriticality(int value) {
89 m_criticalityHasBeenSet = true;
90 m_criticality = value;
91 }
93 SetCriticality(value);
94 return *this;
95 }
97
99
102 inline const Aws::Vector<RelatedFinding>& GetRelatedFindings() const { return m_relatedFindings; }
103 inline bool RelatedFindingsHasBeenSet() const { return m_relatedFindingsHasBeenSet; }
104 template <typename RelatedFindingsT = Aws::Vector<RelatedFinding>>
105 void SetRelatedFindings(RelatedFindingsT&& value) {
106 m_relatedFindingsHasBeenSet = true;
107 m_relatedFindings = std::forward<RelatedFindingsT>(value);
108 }
109 template <typename RelatedFindingsT = Aws::Vector<RelatedFinding>>
110 FindingProviderFields& WithRelatedFindings(RelatedFindingsT&& value) {
111 SetRelatedFindings(std::forward<RelatedFindingsT>(value));
112 return *this;
113 }
114 template <typename RelatedFindingsT = RelatedFinding>
115 FindingProviderFields& AddRelatedFindings(RelatedFindingsT&& value) {
116 m_relatedFindingsHasBeenSet = true;
117 m_relatedFindings.emplace_back(std::forward<RelatedFindingsT>(value));
118 return *this;
119 }
121
123
126 inline const FindingProviderSeverity& GetSeverity() const { return m_severity; }
127 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
128 template <typename SeverityT = FindingProviderSeverity>
129 void SetSeverity(SeverityT&& value) {
130 m_severityHasBeenSet = true;
131 m_severity = std::forward<SeverityT>(value);
132 }
133 template <typename SeverityT = FindingProviderSeverity>
135 SetSeverity(std::forward<SeverityT>(value));
136 return *this;
137 }
139
141
147 inline const Aws::Vector<Aws::String>& GetTypes() const { return m_types; }
148 inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
149 template <typename TypesT = Aws::Vector<Aws::String>>
150 void SetTypes(TypesT&& value) {
151 m_typesHasBeenSet = true;
152 m_types = std::forward<TypesT>(value);
153 }
154 template <typename TypesT = Aws::Vector<Aws::String>>
156 SetTypes(std::forward<TypesT>(value));
157 return *this;
158 }
159 template <typename TypesT = Aws::String>
161 m_typesHasBeenSet = true;
162 m_types.emplace_back(std::forward<TypesT>(value));
163 return *this;
164 }
166 private:
167 int m_confidence{0};
168
169 int m_criticality{0};
170
171 Aws::Vector<RelatedFinding> m_relatedFindings;
172
173 FindingProviderSeverity m_severity;
174
176 bool m_confidenceHasBeenSet = false;
177 bool m_criticalityHasBeenSet = false;
178 bool m_relatedFindingsHasBeenSet = false;
179 bool m_severityHasBeenSet = false;
180 bool m_typesHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace SecurityHub
185} // 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