AWS SDK for C++  1.8.95
AWS SDK for C++
DetectDocumentTextRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Textract
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DetectDocumentText"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
44  inline const Document& GetDocument() const{ return m_document; }
45 
53  inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
54 
62  inline void SetDocument(const Document& value) { m_documentHasBeenSet = true; m_document = value; }
63 
71  inline void SetDocument(Document&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
72 
80  inline DetectDocumentTextRequest& WithDocument(const Document& value) { SetDocument(value); return *this;}
81 
89  inline DetectDocumentTextRequest& WithDocument(Document&& value) { SetDocument(std::move(value)); return *this;}
90 
91  private:
92 
93  Document m_document;
94  bool m_documentHasBeenSet;
95  };
96 
97 } // namespace Model
98 } // namespace Textract
99 } // namespace Aws
DetectDocumentTextRequest & WithDocument(Document &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
#define AWS_TEXTRACT_API
DetectDocumentTextRequest & WithDocument(const Document &value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97