AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
PerFindingResult.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/model/ExploitabilityVerdict.h>
9#include <aws/continuum/model/FlowVerdict.h>
10#include <aws/continuum/model/ReasoningStep.h>
11#include <aws/continuum/model/ValidationExploitArtifact.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Continuum {
25namespace Model {
26
34 public:
35 AWS_CONTINUUM_API PerFindingResult() = default;
36 AWS_CONTINUUM_API PerFindingResult(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetFindingId() const { return m_findingId; }
45 inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; }
46 template <typename FindingIdT = Aws::String>
47 void SetFindingId(FindingIdT&& value) {
48 m_findingIdHasBeenSet = true;
49 m_findingId = std::forward<FindingIdT>(value);
50 }
51 template <typename FindingIdT = Aws::String>
52 PerFindingResult& WithFindingId(FindingIdT&& value) {
53 SetFindingId(std::forward<FindingIdT>(value));
54 return *this;
55 }
57
59
62 inline ExploitabilityVerdict GetExploitable() const { return m_exploitable; }
63 inline bool ExploitableHasBeenSet() const { return m_exploitableHasBeenSet; }
65 m_exploitableHasBeenSet = true;
66 m_exploitable = value;
67 }
69 SetExploitable(value);
70 return *this;
71 }
73
75
78 inline double GetConfidence() const { return m_confidence; }
79 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
80 inline void SetConfidence(double value) {
81 m_confidenceHasBeenSet = true;
82 m_confidence = value;
83 }
84 inline PerFindingResult& WithConfidence(double value) {
85 SetConfidence(value);
86 return *this;
87 }
89
91
94 inline const Aws::Vector<FlowVerdict>& GetFlowVerdicts() const { return m_flowVerdicts; }
95 inline bool FlowVerdictsHasBeenSet() const { return m_flowVerdictsHasBeenSet; }
96 template <typename FlowVerdictsT = Aws::Vector<FlowVerdict>>
97 void SetFlowVerdicts(FlowVerdictsT&& value) {
98 m_flowVerdictsHasBeenSet = true;
99 m_flowVerdicts = std::forward<FlowVerdictsT>(value);
100 }
101 template <typename FlowVerdictsT = Aws::Vector<FlowVerdict>>
102 PerFindingResult& WithFlowVerdicts(FlowVerdictsT&& value) {
103 SetFlowVerdicts(std::forward<FlowVerdictsT>(value));
104 return *this;
105 }
106 template <typename FlowVerdictsT = FlowVerdict>
107 PerFindingResult& AddFlowVerdicts(FlowVerdictsT&& value) {
108 m_flowVerdictsHasBeenSet = true;
109 m_flowVerdicts.emplace_back(std::forward<FlowVerdictsT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<ReasoningStep>& GetReasoningChain() const { return m_reasoningChain; }
119 inline bool ReasoningChainHasBeenSet() const { return m_reasoningChainHasBeenSet; }
120 template <typename ReasoningChainT = Aws::Vector<ReasoningStep>>
121 void SetReasoningChain(ReasoningChainT&& value) {
122 m_reasoningChainHasBeenSet = true;
123 m_reasoningChain = std::forward<ReasoningChainT>(value);
124 }
125 template <typename ReasoningChainT = Aws::Vector<ReasoningStep>>
126 PerFindingResult& WithReasoningChain(ReasoningChainT&& value) {
127 SetReasoningChain(std::forward<ReasoningChainT>(value));
128 return *this;
129 }
130 template <typename ReasoningChainT = ReasoningStep>
131 PerFindingResult& AddReasoningChain(ReasoningChainT&& value) {
132 m_reasoningChainHasBeenSet = true;
133 m_reasoningChain.emplace_back(std::forward<ReasoningChainT>(value));
134 return *this;
135 }
137
139
142 inline const ValidationExploitArtifact& GetExploitArtifact() const { return m_exploitArtifact; }
143 inline bool ExploitArtifactHasBeenSet() const { return m_exploitArtifactHasBeenSet; }
144 template <typename ExploitArtifactT = ValidationExploitArtifact>
145 void SetExploitArtifact(ExploitArtifactT&& value) {
146 m_exploitArtifactHasBeenSet = true;
147 m_exploitArtifact = std::forward<ExploitArtifactT>(value);
148 }
149 template <typename ExploitArtifactT = ValidationExploitArtifact>
150 PerFindingResult& WithExploitArtifact(ExploitArtifactT&& value) {
151 SetExploitArtifact(std::forward<ExploitArtifactT>(value));
152 return *this;
153 }
155 private:
156 Aws::String m_findingId;
157
159
160 double m_confidence{0.0};
161
162 Aws::Vector<FlowVerdict> m_flowVerdicts;
163
164 Aws::Vector<ReasoningStep> m_reasoningChain;
165
166 ValidationExploitArtifact m_exploitArtifact;
167 bool m_findingIdHasBeenSet = false;
168 bool m_exploitableHasBeenSet = false;
169 bool m_confidenceHasBeenSet = false;
170 bool m_flowVerdictsHasBeenSet = false;
171 bool m_reasoningChainHasBeenSet = false;
172 bool m_exploitArtifactHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace Continuum
177} // namespace Aws
AWS_CONTINUUM_API PerFindingResult(Aws::Utils::Json::JsonView jsonValue)
PerFindingResult & WithConfidence(double value)
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetFindingId() const
AWS_CONTINUUM_API PerFindingResult()=default
PerFindingResult & AddFlowVerdicts(FlowVerdictsT &&value)
PerFindingResult & WithFindingId(FindingIdT &&value)
PerFindingResult & WithReasoningChain(ReasoningChainT &&value)
AWS_CONTINUUM_API PerFindingResult & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< FlowVerdict > & GetFlowVerdicts() const
const ValidationExploitArtifact & GetExploitArtifact() const
PerFindingResult & WithExploitable(ExploitabilityVerdict value)
ExploitabilityVerdict GetExploitable() const
void SetExploitArtifact(ExploitArtifactT &&value)
void SetReasoningChain(ReasoningChainT &&value)
void SetExploitable(ExploitabilityVerdict value)
PerFindingResult & WithExploitArtifact(ExploitArtifactT &&value)
PerFindingResult & WithFlowVerdicts(FlowVerdictsT &&value)
const Aws::Vector< ReasoningStep > & GetReasoningChain() const
PerFindingResult & AddReasoningChain(ReasoningChainT &&value)
void SetFlowVerdicts(FlowVerdictsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue