AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AnalyzeDocumentRequest.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/textract/TextractRequest.h>
9#include <aws/textract/model/Document.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/textract/model/HumanLoopConfig.h>
12#include <aws/textract/model/QueriesConfig.h>
13#include <aws/textract/model/AdaptersConfig.h>
14#include <aws/textract/model/FeatureType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Textract
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_TEXTRACT_API AnalyzeDocumentRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "AnalyzeDocument"; }
36
37 AWS_TEXTRACT_API Aws::String SerializePayload() const override;
38
40
41
43
50 inline const Document& GetDocument() const { return m_document; }
51 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
52 template<typename DocumentT = Document>
53 void SetDocument(DocumentT&& value) { m_documentHasBeenSet = true; m_document = std::forward<DocumentT>(value); }
54 template<typename DocumentT = Document>
55 AnalyzeDocumentRequest& WithDocument(DocumentT&& value) { SetDocument(std::forward<DocumentT>(value)); return *this;}
57
59
68 inline const Aws::Vector<FeatureType>& GetFeatureTypes() const { return m_featureTypes; }
69 inline bool FeatureTypesHasBeenSet() const { return m_featureTypesHasBeenSet; }
70 template<typename FeatureTypesT = Aws::Vector<FeatureType>>
71 void SetFeatureTypes(FeatureTypesT&& value) { m_featureTypesHasBeenSet = true; m_featureTypes = std::forward<FeatureTypesT>(value); }
72 template<typename FeatureTypesT = Aws::Vector<FeatureType>>
73 AnalyzeDocumentRequest& WithFeatureTypes(FeatureTypesT&& value) { SetFeatureTypes(std::forward<FeatureTypesT>(value)); return *this;}
74 inline AnalyzeDocumentRequest& AddFeatureTypes(FeatureType value) { m_featureTypesHasBeenSet = true; m_featureTypes.push_back(value); return *this; }
76
78
82 inline const HumanLoopConfig& GetHumanLoopConfig() const { return m_humanLoopConfig; }
83 inline bool HumanLoopConfigHasBeenSet() const { return m_humanLoopConfigHasBeenSet; }
84 template<typename HumanLoopConfigT = HumanLoopConfig>
85 void SetHumanLoopConfig(HumanLoopConfigT&& value) { m_humanLoopConfigHasBeenSet = true; m_humanLoopConfig = std::forward<HumanLoopConfigT>(value); }
86 template<typename HumanLoopConfigT = HumanLoopConfig>
87 AnalyzeDocumentRequest& WithHumanLoopConfig(HumanLoopConfigT&& value) { SetHumanLoopConfig(std::forward<HumanLoopConfigT>(value)); return *this;}
89
91
95 inline const QueriesConfig& GetQueriesConfig() const { return m_queriesConfig; }
96 inline bool QueriesConfigHasBeenSet() const { return m_queriesConfigHasBeenSet; }
97 template<typename QueriesConfigT = QueriesConfig>
98 void SetQueriesConfig(QueriesConfigT&& value) { m_queriesConfigHasBeenSet = true; m_queriesConfig = std::forward<QueriesConfigT>(value); }
99 template<typename QueriesConfigT = QueriesConfig>
100 AnalyzeDocumentRequest& WithQueriesConfig(QueriesConfigT&& value) { SetQueriesConfig(std::forward<QueriesConfigT>(value)); return *this;}
102
104
107 inline const AdaptersConfig& GetAdaptersConfig() const { return m_adaptersConfig; }
108 inline bool AdaptersConfigHasBeenSet() const { return m_adaptersConfigHasBeenSet; }
109 template<typename AdaptersConfigT = AdaptersConfig>
110 void SetAdaptersConfig(AdaptersConfigT&& value) { m_adaptersConfigHasBeenSet = true; m_adaptersConfig = std::forward<AdaptersConfigT>(value); }
111 template<typename AdaptersConfigT = AdaptersConfig>
112 AnalyzeDocumentRequest& WithAdaptersConfig(AdaptersConfigT&& value) { SetAdaptersConfig(std::forward<AdaptersConfigT>(value)); return *this;}
114 private:
115
116 Document m_document;
117 bool m_documentHasBeenSet = false;
118
119 Aws::Vector<FeatureType> m_featureTypes;
120 bool m_featureTypesHasBeenSet = false;
121
122 HumanLoopConfig m_humanLoopConfig;
123 bool m_humanLoopConfigHasBeenSet = false;
124
125 QueriesConfig m_queriesConfig;
126 bool m_queriesConfigHasBeenSet = false;
127
128 AdaptersConfig m_adaptersConfig;
129 bool m_adaptersConfigHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Textract
134} // namespace Aws
AnalyzeDocumentRequest & WithFeatureTypes(FeatureTypesT &&value)
AWS_TEXTRACT_API Aws::String SerializePayload() const override
const HumanLoopConfig & GetHumanLoopConfig() const
AnalyzeDocumentRequest & WithQueriesConfig(QueriesConfigT &&value)
const Aws::Vector< FeatureType > & GetFeatureTypes() const
AnalyzeDocumentRequest & WithDocument(DocumentT &&value)
AnalyzeDocumentRequest & WithAdaptersConfig(AdaptersConfigT &&value)
AWS_TEXTRACT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AnalyzeDocumentRequest & WithHumanLoopConfig(HumanLoopConfigT &&value)
virtual const char * GetServiceRequestName() const override
AnalyzeDocumentRequest & AddFeatureTypes(FeatureType value)
AWS_TEXTRACT_API AnalyzeDocumentRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector