AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
FlowVerdict.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/model/FlowVerdictValue.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Continuum {
22namespace Model {
23
30 public:
31 AWS_CONTINUUM_API FlowVerdict() = default;
32 AWS_CONTINUUM_API FlowVerdict(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONTINUUM_API FlowVerdict& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetFlowId() const { return m_flowId; }
41 inline bool FlowIdHasBeenSet() const { return m_flowIdHasBeenSet; }
42 template <typename FlowIdT = Aws::String>
43 void SetFlowId(FlowIdT&& value) {
44 m_flowIdHasBeenSet = true;
45 m_flowId = std::forward<FlowIdT>(value);
46 }
47 template <typename FlowIdT = Aws::String>
48 FlowVerdict& WithFlowId(FlowIdT&& value) {
49 SetFlowId(std::forward<FlowIdT>(value));
50 return *this;
51 }
53
55
58 inline FlowVerdictValue GetVerdict() const { return m_verdict; }
59 inline bool VerdictHasBeenSet() const { return m_verdictHasBeenSet; }
60 inline void SetVerdict(FlowVerdictValue value) {
61 m_verdictHasBeenSet = true;
62 m_verdict = value;
63 }
65 SetVerdict(value);
66 return *this;
67 }
69
71
74 inline double GetConfidence() const { return m_confidence; }
75 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
76 inline void SetConfidence(double value) {
77 m_confidenceHasBeenSet = true;
78 m_confidence = value;
79 }
80 inline FlowVerdict& WithConfidence(double value) {
81 SetConfidence(value);
82 return *this;
83 }
85
87
90 inline const Aws::Vector<Aws::String>& GetEvidence() const { return m_evidence; }
91 inline bool EvidenceHasBeenSet() const { return m_evidenceHasBeenSet; }
92 template <typename EvidenceT = Aws::Vector<Aws::String>>
93 void SetEvidence(EvidenceT&& value) {
94 m_evidenceHasBeenSet = true;
95 m_evidence = std::forward<EvidenceT>(value);
96 }
97 template <typename EvidenceT = Aws::Vector<Aws::String>>
98 FlowVerdict& WithEvidence(EvidenceT&& value) {
99 SetEvidence(std::forward<EvidenceT>(value));
100 return *this;
101 }
102 template <typename EvidenceT = Aws::String>
103 FlowVerdict& AddEvidence(EvidenceT&& value) {
104 m_evidenceHasBeenSet = true;
105 m_evidence.emplace_back(std::forward<EvidenceT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_flowId;
111
113
114 double m_confidence{0.0};
115
116 Aws::Vector<Aws::String> m_evidence;
117 bool m_flowIdHasBeenSet = false;
118 bool m_verdictHasBeenSet = false;
119 bool m_confidenceHasBeenSet = false;
120 bool m_evidenceHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Continuum
125} // namespace Aws
FlowVerdict & WithFlowId(FlowIdT &&value)
Definition FlowVerdict.h:48
FlowVerdict & WithVerdict(FlowVerdictValue value)
Definition FlowVerdict.h:64
FlowVerdictValue GetVerdict() const
Definition FlowVerdict.h:58
FlowVerdict & WithEvidence(EvidenceT &&value)
Definition FlowVerdict.h:98
FlowVerdict & WithConfidence(double value)
Definition FlowVerdict.h:80
AWS_CONTINUUM_API FlowVerdict & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVerdict(FlowVerdictValue value)
Definition FlowVerdict.h:60
void SetFlowId(FlowIdT &&value)
Definition FlowVerdict.h:43
void SetEvidence(EvidenceT &&value)
Definition FlowVerdict.h:93
const Aws::String & GetFlowId() const
Definition FlowVerdict.h:40
AWS_CONTINUUM_API FlowVerdict(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetEvidence() const
Definition FlowVerdict.h:90
FlowVerdict & AddEvidence(EvidenceT &&value)
AWS_CONTINUUM_API FlowVerdict()=default
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() 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