AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AnalyzeIDDetections.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/textract/Textract_EXPORTS.h>
9#include <aws/textract/model/NormalizedValue.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Textract {
21namespace Model {
22
30 public:
31 AWS_TEXTRACT_API AnalyzeIDDetections() = default;
34 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetText() const { return m_text; }
41 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
42 template <typename TextT = Aws::String>
43 void SetText(TextT&& value) {
44 m_textHasBeenSet = true;
45 m_text = std::forward<TextT>(value);
46 }
47 template <typename TextT = Aws::String>
48 AnalyzeIDDetections& WithText(TextT&& value) {
49 SetText(std::forward<TextT>(value));
50 return *this;
51 }
53
55
59 inline const NormalizedValue& GetNormalizedValue() const { return m_normalizedValue; }
60 inline bool NormalizedValueHasBeenSet() const { return m_normalizedValueHasBeenSet; }
61 template <typename NormalizedValueT = NormalizedValue>
62 void SetNormalizedValue(NormalizedValueT&& value) {
63 m_normalizedValueHasBeenSet = true;
64 m_normalizedValue = std::forward<NormalizedValueT>(value);
65 }
66 template <typename NormalizedValueT = NormalizedValue>
67 AnalyzeIDDetections& WithNormalizedValue(NormalizedValueT&& value) {
68 SetNormalizedValue(std::forward<NormalizedValueT>(value));
69 return *this;
70 }
72
74
77 inline double GetConfidence() const { return m_confidence; }
78 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
79 inline void SetConfidence(double value) {
80 m_confidenceHasBeenSet = true;
81 m_confidence = value;
82 }
83 inline AnalyzeIDDetections& WithConfidence(double value) {
84 SetConfidence(value);
85 return *this;
86 }
88 private:
89 Aws::String m_text;
90
91 NormalizedValue m_normalizedValue;
92
93 double m_confidence{0.0};
94 bool m_textHasBeenSet = false;
95 bool m_normalizedValueHasBeenSet = false;
96 bool m_confidenceHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Textract
101} // namespace Aws
void SetNormalizedValue(NormalizedValueT &&value)
AWS_TEXTRACT_API AnalyzeIDDetections & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TEXTRACT_API AnalyzeIDDetections(Aws::Utils::Json::JsonView jsonValue)
AnalyzeIDDetections & WithText(TextT &&value)
const NormalizedValue & GetNormalizedValue() const
AWS_TEXTRACT_API AnalyzeIDDetections()=default
AnalyzeIDDetections & WithConfidence(double value)
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
AnalyzeIDDetections & WithNormalizedValue(NormalizedValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue