AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Prediction.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Textract
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_TEXTRACT_API Prediction() = default;
37 AWS_TEXTRACT_API Prediction(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TEXTRACT_API Prediction& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetValue() const { return m_value; }
47 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
48 template<typename ValueT = Aws::String>
49 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
50 template<typename ValueT = Aws::String>
51 Prediction& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
53
55
58 inline double GetConfidence() const { return m_confidence; }
59 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
60 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
61 inline Prediction& WithConfidence(double value) { SetConfidence(value); return *this;}
63 private:
64
65 Aws::String m_value;
66 bool m_valueHasBeenSet = false;
67
68 double m_confidence{0.0};
69 bool m_confidenceHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Textract
74} // namespace Aws
AWS_TEXTRACT_API Prediction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TEXTRACT_API Prediction(Aws::Utils::Json::JsonView jsonValue)
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetValue() const
Definition Prediction.h:46
void SetConfidence(double value)
Definition Prediction.h:60
void SetValue(ValueT &&value)
Definition Prediction.h:49
Prediction & WithConfidence(double value)
Definition Prediction.h:61
Prediction & WithValue(ValueT &&value)
Definition Prediction.h:51
AWS_TEXTRACT_API Prediction()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue