AWS SDK for C++  1.8.95
AWS SDK for C++
AnalyzeDocumentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Textract
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "AnalyzeDocument"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
47  inline const Document& GetDocument() const{ return m_document; }
48 
56  inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
57 
65  inline void SetDocument(const Document& value) { m_documentHasBeenSet = true; m_document = value; }
66 
74  inline void SetDocument(Document&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
75 
83  inline AnalyzeDocumentRequest& WithDocument(const Document& value) { SetDocument(value); return *this;}
84 
92  inline AnalyzeDocumentRequest& WithDocument(Document&& value) { SetDocument(std::move(value)); return *this;}
93 
94 
103  inline const Aws::Vector<FeatureType>& GetFeatureTypes() const{ return m_featureTypes; }
104 
113  inline bool FeatureTypesHasBeenSet() const { return m_featureTypesHasBeenSet; }
114 
123  inline void SetFeatureTypes(const Aws::Vector<FeatureType>& value) { m_featureTypesHasBeenSet = true; m_featureTypes = value; }
124 
133  inline void SetFeatureTypes(Aws::Vector<FeatureType>&& value) { m_featureTypesHasBeenSet = true; m_featureTypes = std::move(value); }
134 
143  inline AnalyzeDocumentRequest& WithFeatureTypes(const Aws::Vector<FeatureType>& value) { SetFeatureTypes(value); return *this;}
144 
153  inline AnalyzeDocumentRequest& WithFeatureTypes(Aws::Vector<FeatureType>&& value) { SetFeatureTypes(std::move(value)); return *this;}
154 
163  inline AnalyzeDocumentRequest& AddFeatureTypes(const FeatureType& value) { m_featureTypesHasBeenSet = true; m_featureTypes.push_back(value); return *this; }
164 
173  inline AnalyzeDocumentRequest& AddFeatureTypes(FeatureType&& value) { m_featureTypesHasBeenSet = true; m_featureTypes.push_back(std::move(value)); return *this; }
174 
175 
180  inline const HumanLoopConfig& GetHumanLoopConfig() const{ return m_humanLoopConfig; }
181 
186  inline bool HumanLoopConfigHasBeenSet() const { return m_humanLoopConfigHasBeenSet; }
187 
192  inline void SetHumanLoopConfig(const HumanLoopConfig& value) { m_humanLoopConfigHasBeenSet = true; m_humanLoopConfig = value; }
193 
198  inline void SetHumanLoopConfig(HumanLoopConfig&& value) { m_humanLoopConfigHasBeenSet = true; m_humanLoopConfig = std::move(value); }
199 
204  inline AnalyzeDocumentRequest& WithHumanLoopConfig(const HumanLoopConfig& value) { SetHumanLoopConfig(value); return *this;}
205 
210  inline AnalyzeDocumentRequest& WithHumanLoopConfig(HumanLoopConfig&& value) { SetHumanLoopConfig(std::move(value)); return *this;}
211 
212  private:
213 
214  Document m_document;
215  bool m_documentHasBeenSet;
216 
217  Aws::Vector<FeatureType> m_featureTypes;
218  bool m_featureTypesHasBeenSet;
219 
220  HumanLoopConfig m_humanLoopConfig;
221  bool m_humanLoopConfigHasBeenSet;
222  };
223 
224 } // namespace Model
225 } // namespace Textract
226 } // namespace Aws
void SetFeatureTypes(const Aws::Vector< FeatureType > &value)
AnalyzeDocumentRequest & WithHumanLoopConfig(const HumanLoopConfig &value)
AnalyzeDocumentRequest & AddFeatureTypes(FeatureType &&value)
virtual const char * GetServiceRequestName() const override
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AnalyzeDocumentRequest & AddFeatureTypes(const FeatureType &value)
#define AWS_TEXTRACT_API
AnalyzeDocumentRequest & WithDocument(const Document &value)
void SetFeatureTypes(Aws::Vector< FeatureType > &&value)
AnalyzeDocumentRequest & WithDocument(Document &&value)
AnalyzeDocumentRequest & WithFeatureTypes(Aws::Vector< FeatureType > &&value)
const HumanLoopConfig & GetHumanLoopConfig() const
AnalyzeDocumentRequest & WithFeatureTypes(const Aws::Vector< FeatureType > &value)
AnalyzeDocumentRequest & WithHumanLoopConfig(HumanLoopConfig &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< FeatureType > & GetFeatureTypes() const
void SetHumanLoopConfig(const HumanLoopConfig &value)