AWS SDK for C++  1.9.108
AWS SDK for C++
DetectAnomalyResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace LookoutforVision
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
45  inline const ImageSource& GetSource() const{ return m_source; }
46 
51  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
52 
57  inline void SetSource(const ImageSource& value) { m_sourceHasBeenSet = true; m_source = value; }
58 
63  inline void SetSource(ImageSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
64 
69  inline DetectAnomalyResult& WithSource(const ImageSource& value) { SetSource(value); return *this;}
70 
75  inline DetectAnomalyResult& WithSource(ImageSource&& value) { SetSource(std::move(value)); return *this;}
76 
77 
81  inline bool GetIsAnomalous() const{ return m_isAnomalous; }
82 
86  inline bool IsAnomalousHasBeenSet() const { return m_isAnomalousHasBeenSet; }
87 
91  inline void SetIsAnomalous(bool value) { m_isAnomalousHasBeenSet = true; m_isAnomalous = value; }
92 
96  inline DetectAnomalyResult& WithIsAnomalous(bool value) { SetIsAnomalous(value); return *this;}
97 
98 
103  inline double GetConfidence() const{ return m_confidence; }
104 
109  inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
110 
115  inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
116 
121  inline DetectAnomalyResult& WithConfidence(double value) { SetConfidence(value); return *this;}
122 
123  private:
124 
125  ImageSource m_source;
126  bool m_sourceHasBeenSet;
127 
128  bool m_isAnomalous;
129  bool m_isAnomalousHasBeenSet;
130 
131  double m_confidence;
132  bool m_confidenceHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace LookoutforVision
137 } // namespace Aws
Aws::LookoutforVision::Model::DetectAnomalyResult::WithConfidence
DetectAnomalyResult & WithConfidence(double value)
Definition: DetectAnomalyResult.h:121
Aws::LookoutforVision::Model::DetectAnomalyResult::GetSource
const ImageSource & GetSource() const
Definition: DetectAnomalyResult.h:45
Aws::LookoutforVision::Model::DetectAnomalyResult::SetIsAnomalous
void SetIsAnomalous(bool value)
Definition: DetectAnomalyResult.h:91
ImageSource.h
Aws::LookoutforVision::Model::DetectAnomalyResult::ConfidenceHasBeenSet
bool ConfidenceHasBeenSet() const
Definition: DetectAnomalyResult.h:109
Aws::LookoutforVision::Model::DetectAnomalyResult::DetectAnomalyResult
DetectAnomalyResult()
LookoutforVision_EXPORTS.h
Aws::LookoutforVision::Model::ImageSource
Definition: ImageSource.h:32
Aws::LookoutforVision::Model::DetectAnomalyResult::WithSource
DetectAnomalyResult & WithSource(ImageSource &&value)
Definition: DetectAnomalyResult.h:75
Aws::LookoutforVision::Model::DetectAnomalyResult::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::LookoutforVision::Model::DetectAnomalyResult::DetectAnomalyResult
DetectAnomalyResult(Aws::Utils::Json::JsonView jsonValue)
Aws::LookoutforVision::Model::DetectAnomalyResult::GetIsAnomalous
bool GetIsAnomalous() const
Definition: DetectAnomalyResult.h:81
Aws::LookoutforVision::Model::DetectAnomalyResult::IsAnomalousHasBeenSet
bool IsAnomalousHasBeenSet() const
Definition: DetectAnomalyResult.h:86
Aws::LookoutforVision::Model::DetectAnomalyResult::WithSource
DetectAnomalyResult & WithSource(const ImageSource &value)
Definition: DetectAnomalyResult.h:69
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::LookoutforVision::Model::DetectAnomalyResult::SetSource
void SetSource(ImageSource &&value)
Definition: DetectAnomalyResult.h:63
Aws::LookoutforVision::Model::DetectAnomalyResult::WithIsAnomalous
DetectAnomalyResult & WithIsAnomalous(bool value)
Definition: DetectAnomalyResult.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::LookoutforVision::Model::DetectAnomalyResult
Definition: DetectAnomalyResult.h:33
Aws::LookoutforVision::Model::DetectAnomalyResult::SetConfidence
void SetConfidence(double value)
Definition: DetectAnomalyResult.h:115
Aws::LookoutforVision::Model::DetectAnomalyResult::operator=
DetectAnomalyResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOOKOUTFORVISION_API
#define AWS_LOOKOUTFORVISION_API
Definition: LookoutforVision_EXPORTS.h:28
Aws::LookoutforVision::Model::DetectAnomalyResult::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: DetectAnomalyResult.h:51
Aws::LookoutforVision::Model::DetectAnomalyResult::GetConfidence
double GetConfidence() const
Definition: DetectAnomalyResult.h:103
Aws::LookoutforVision::Model::DetectAnomalyResult::SetSource
void SetSource(const ImageSource &value)
Definition: DetectAnomalyResult.h:57