AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSource(const ImageSource& value) { m_sourceHasBeenSet = true; m_source = value; }
58 inline void SetSource(ImageSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
59 inline DetectAnomalyResult& WithSource(const ImageSource& value) { SetSource(value); return *this;}
60 inline DetectAnomalyResult& WithSource(ImageSource&& value) { SetSource(std::move(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 inline void SetAnomalies(const Aws::Vector<Anomaly>& value) { m_anomaliesHasBeenSet = true; m_anomalies = value; }
101 inline void SetAnomalies(Aws::Vector<Anomaly>&& value) { m_anomaliesHasBeenSet = true; m_anomalies = std::move(value); }
102 inline DetectAnomalyResult& WithAnomalies(const Aws::Vector<Anomaly>& value) { SetAnomalies(value); return *this;}
103 inline DetectAnomalyResult& WithAnomalies(Aws::Vector<Anomaly>&& value) { SetAnomalies(std::move(value)); return *this;}
104 inline DetectAnomalyResult& AddAnomalies(const Anomaly& value) { m_anomaliesHasBeenSet = true; m_anomalies.push_back(value); return *this; }
105 inline DetectAnomalyResult& AddAnomalies(Anomaly&& value) { m_anomaliesHasBeenSet = true; m_anomalies.push_back(std::move(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 inline void SetAnomalyMask(const Aws::Utils::ByteBuffer& value) { m_anomalyMaskHasBeenSet = true; m_anomalyMask = value; }
119 inline void SetAnomalyMask(Aws::Utils::ByteBuffer&& value) { m_anomalyMaskHasBeenSet = true; m_anomalyMask = std::move(value); }
120 inline DetectAnomalyResult& WithAnomalyMask(const Aws::Utils::ByteBuffer& value) { SetAnomalyMask(value); return *this;}
121 inline DetectAnomalyResult& WithAnomalyMask(Aws::Utils::ByteBuffer&& value) { SetAnomalyMask(std::move(value)); return *this;}
123 private:
124
125 ImageSource m_source;
126 bool m_sourceHasBeenSet = false;
127
128 bool m_isAnomalous;
129 bool m_isAnomalousHasBeenSet = false;
130
131 double m_confidence;
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
DetectAnomalyResult & WithSource(ImageSource &&value)
DetectAnomalyResult & WithAnomalyMask(Aws::Utils::ByteBuffer &&value)
void SetAnomalyMask(const Aws::Utils::ByteBuffer &value)
DetectAnomalyResult & WithAnomalies(const Aws::Vector< Anomaly > &value)
AWS_LOOKOUTFORVISION_API DetectAnomalyResult & operator=(Aws::Utils::Json::JsonView jsonValue)
DetectAnomalyResult & AddAnomalies(Anomaly &&value)
DetectAnomalyResult & WithAnomalyMask(const Aws::Utils::ByteBuffer &value)
void SetAnomalyMask(Aws::Utils::ByteBuffer &&value)
AWS_LOOKOUTFORVISION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Anomaly > & GetAnomalies() const
const Aws::Utils::ByteBuffer & GetAnomalyMask() const
DetectAnomalyResult & WithSource(const ImageSource &value)
AWS_LOOKOUTFORVISION_API DetectAnomalyResult(Aws::Utils::Json::JsonView jsonValue)
DetectAnomalyResult & AddAnomalies(const Anomaly &value)
void SetAnomalies(const Aws::Vector< Anomaly > &value)
DetectAnomalyResult & WithIsAnomalous(bool value)
DetectAnomalyResult & WithAnomalies(Aws::Vector< Anomaly > &&value)
DetectAnomalyResult & WithConfidence(double value)
void SetAnomalies(Aws::Vector< Anomaly > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue