AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DetectAnomalyResult.h
1
6#pragma once
7#include <aws/lookoutvision/LookoutforVision_EXPORTS.h>
8#include <aws/lookoutvision/model/ImageSource.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/Array.h>
11#include <aws/lookoutvision/model/Anomaly.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LookoutforVision
25{
26namespace Model
27{
28
42 {
43 public:
44 AWS_LOOKOUTFORVISION_API DetectAnomalyResult() = default;
45 AWS_LOOKOUTFORVISION_API DetectAnomalyResult(Aws::Utils::Json::JsonView jsonValue);
46 AWS_LOOKOUTFORVISION_API DetectAnomalyResult& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_LOOKOUTFORVISION_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const ImageSource& GetSource() const { return m_source; }
56 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
57 template<typename SourceT = ImageSource>
58 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
59 template<typename SourceT = ImageSource>
60 DetectAnomalyResult& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
62
64
68 inline bool GetIsAnomalous() const { return m_isAnomalous; }
69 inline bool IsAnomalousHasBeenSet() const { return m_isAnomalousHasBeenSet; }
70 inline void SetIsAnomalous(bool value) { m_isAnomalousHasBeenSet = true; m_isAnomalous = value; }
71 inline DetectAnomalyResult& WithIsAnomalous(bool value) { SetIsAnomalous(value); return *this;}
73
75
79 inline double GetConfidence() const { return m_confidence; }
80 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
81 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
82 inline DetectAnomalyResult& WithConfidence(double value) { SetConfidence(value); return *this;}
84
86
98 inline const Aws::Vector<Anomaly>& GetAnomalies() const { return m_anomalies; }
99 inline bool AnomaliesHasBeenSet() const { return m_anomaliesHasBeenSet; }
100 template<typename AnomaliesT = Aws::Vector<Anomaly>>
101 void SetAnomalies(AnomaliesT&& value) { m_anomaliesHasBeenSet = true; m_anomalies = std::forward<AnomaliesT>(value); }
102 template<typename AnomaliesT = Aws::Vector<Anomaly>>
103 DetectAnomalyResult& WithAnomalies(AnomaliesT&& value) { SetAnomalies(std::forward<AnomaliesT>(value)); return *this;}
104 template<typename AnomaliesT = Anomaly>
105 DetectAnomalyResult& AddAnomalies(AnomaliesT&& value) { m_anomaliesHasBeenSet = true; m_anomalies.emplace_back(std::forward<AnomaliesT>(value)); return *this; }
107
109
116 inline const Aws::Utils::ByteBuffer& GetAnomalyMask() const { return m_anomalyMask; }
117 inline bool AnomalyMaskHasBeenSet() const { return m_anomalyMaskHasBeenSet; }
118 template<typename AnomalyMaskT = Aws::Utils::ByteBuffer>
119 void SetAnomalyMask(AnomalyMaskT&& value) { m_anomalyMaskHasBeenSet = true; m_anomalyMask = std::forward<AnomalyMaskT>(value); }
120 template<typename AnomalyMaskT = Aws::Utils::ByteBuffer>
121 DetectAnomalyResult& WithAnomalyMask(AnomalyMaskT&& value) { SetAnomalyMask(std::forward<AnomalyMaskT>(value)); return *this;}
123 private:
124
125 ImageSource m_source;
126 bool m_sourceHasBeenSet = false;
127
128 bool m_isAnomalous{false};
129 bool m_isAnomalousHasBeenSet = false;
130
131 double m_confidence{0.0};
132 bool m_confidenceHasBeenSet = false;
133
134 Aws::Vector<Anomaly> m_anomalies;
135 bool m_anomaliesHasBeenSet = false;
136
137 Aws::Utils::ByteBuffer m_anomalyMask{};
138 bool m_anomalyMaskHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace LookoutforVision
143} // namespace Aws
AWS_LOOKOUTFORVISION_API DetectAnomalyResult & operator=(Aws::Utils::Json::JsonView jsonValue)
DetectAnomalyResult & WithAnomalyMask(AnomalyMaskT &&value)
AWS_LOOKOUTFORVISION_API Aws::Utils::Json::JsonValue Jsonize() const
DetectAnomalyResult & AddAnomalies(AnomaliesT &&value)
const Aws::Vector< Anomaly > & GetAnomalies() const
const Aws::Utils::ByteBuffer & GetAnomalyMask() const
AWS_LOOKOUTFORVISION_API DetectAnomalyResult(Aws::Utils::Json::JsonView jsonValue)
AWS_LOOKOUTFORVISION_API DetectAnomalyResult()=default
DetectAnomalyResult & WithAnomalies(AnomaliesT &&value)
DetectAnomalyResult & WithIsAnomalous(bool value)
DetectAnomalyResult & WithSource(SourceT &&value)
DetectAnomalyResult & WithConfidence(double value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue