AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
49 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
50 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
51 inline Prediction& WithValue(const Aws::String& value) { SetValue(value); return *this;}
52 inline Prediction& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
53 inline Prediction& WithValue(const char* value) { SetValue(value); return *this;}
55
57
60 inline double GetConfidence() const{ return m_confidence; }
61 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
62 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
63 inline Prediction& WithConfidence(double value) { SetConfidence(value); return *this;}
65 private:
66
67 Aws::String m_value;
68 bool m_valueHasBeenSet = false;
69
70 double m_confidence;
71 bool m_confidenceHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Textract
76} // namespace Aws
AWS_TEXTRACT_API Prediction & operator=(Aws::Utils::Json::JsonView jsonValue)
Prediction & WithValue(const char *value)
Definition Prediction.h:53
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
Prediction & WithValue(Aws::String &&value)
Definition Prediction.h:52
void SetConfidence(double value)
Definition Prediction.h:62
void SetValue(Aws::String &&value)
Definition Prediction.h:49
Prediction & WithConfidence(double value)
Definition Prediction.h:63
void SetValue(const Aws::String &value)
Definition Prediction.h:48
Prediction & WithValue(const Aws::String &value)
Definition Prediction.h:51
void SetValue(const char *value)
Definition Prediction.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue