AWS SDK for C++  1.8.95
AWS SDK for C++
GetDocumentAnalysisRequest.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 "GetDocumentAnalysis"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
42  inline const Aws::String& GetJobId() const{ return m_jobId; }
43 
49  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
50 
56  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
57 
63  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
64 
70  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
71 
77  inline GetDocumentAnalysisRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
78 
84  inline GetDocumentAnalysisRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
85 
91  inline GetDocumentAnalysisRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
92 
93 
99  inline int GetMaxResults() const{ return m_maxResults; }
100 
106  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
107 
113  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
114 
120  inline GetDocumentAnalysisRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
121 
122 
128  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
129 
135  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
136 
142  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
143 
149  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
150 
156  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
157 
163  inline GetDocumentAnalysisRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
164 
170  inline GetDocumentAnalysisRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
171 
177  inline GetDocumentAnalysisRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
178 
179  private:
180 
181  Aws::String m_jobId;
182  bool m_jobIdHasBeenSet;
183 
184  int m_maxResults;
185  bool m_maxResultsHasBeenSet;
186 
187  Aws::String m_nextToken;
188  bool m_nextTokenHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace Textract
193 } // namespace Aws
GetDocumentAnalysisRequest & WithNextToken(const char *value)
GetDocumentAnalysisRequest & WithJobId(const Aws::String &value)
GetDocumentAnalysisRequest & WithNextToken(Aws::String &&value)
GetDocumentAnalysisRequest & WithNextToken(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
#define AWS_TEXTRACT_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetDocumentAnalysisRequest & WithMaxResults(int value)
GetDocumentAnalysisRequest & WithJobId(Aws::String &&value)
GetDocumentAnalysisRequest & WithJobId(const char *value)
virtual const char * GetServiceRequestName() const override