AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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