AWS SDK for C++  1.9.158
AWS SDK for C++
GetTextDetectionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Rekognition
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 "GetTextDetection"; }
31 
32  Aws::String SerializePayload() const override;
33 
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 GetTextDetectionRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
78 
84  inline GetTextDetectionRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
85 
91  inline GetTextDetectionRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
92 
93 
98  inline int GetMaxResults() const{ return m_maxResults; }
99 
104  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
105 
110  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
111 
116  inline GetTextDetectionRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
117 
118 
124  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
125 
131  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
132 
138  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
139 
145  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
146 
152  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
153 
159  inline GetTextDetectionRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
160 
166  inline GetTextDetectionRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
167 
173  inline GetTextDetectionRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
174 
175  private:
176 
177  Aws::String m_jobId;
178  bool m_jobIdHasBeenSet;
179 
180  int m_maxResults;
181  bool m_maxResultsHasBeenSet;
182 
183  Aws::String m_nextToken;
184  bool m_nextTokenHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace Rekognition
189 } // namespace Aws
Aws::Rekognition::Model::GetTextDetectionRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetTextDetectionRequest.h:124
Aws::Rekognition::Model::GetTextDetectionRequest::WithMaxResults
GetTextDetectionRequest & WithMaxResults(int value)
Definition: GetTextDetectionRequest.h:116
Aws::Rekognition::Model::GetTextDetectionRequest::SetJobId
void SetJobId(const Aws::String &value)
Definition: GetTextDetectionRequest.h:56
Aws::Rekognition::Model::GetTextDetectionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Rekognition::Model::GetTextDetectionRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetTextDetectionRequest.h:152
Aws::Rekognition::Model::GetTextDetectionRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetTextDetectionRequest.h:145
Aws::Rekognition::Model::GetTextDetectionRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetTextDetectionRequest.h:131
Aws::Rekognition::Model::GetTextDetectionRequest::WithNextToken
GetTextDetectionRequest & WithNextToken(const char *value)
Definition: GetTextDetectionRequest.h:173
Aws::Rekognition::Model::GetTextDetectionRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetTextDetectionRequest.h:110
Aws::Rekognition::Model::GetTextDetectionRequest::GetTextDetectionRequest
GetTextDetectionRequest()
Aws::Rekognition::Model::GetTextDetectionRequest::SetJobId
void SetJobId(const char *value)
Definition: GetTextDetectionRequest.h:70
Aws::Rekognition::Model::GetTextDetectionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetTextDetectionRequest.h:30
Aws::Rekognition::Model::GetTextDetectionRequest::WithJobId
GetTextDetectionRequest & WithJobId(Aws::String &&value)
Definition: GetTextDetectionRequest.h:84
Aws::Rekognition::Model::GetTextDetectionRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetTextDetectionRequest.h:138
Aws::Rekognition::RekognitionRequest
Definition: RekognitionRequest.h:17
Aws::Rekognition::Model::GetTextDetectionRequest::WithNextToken
GetTextDetectionRequest & WithNextToken(Aws::String &&value)
Definition: GetTextDetectionRequest.h:166
AWSString.h
Aws::Rekognition::Model::GetTextDetectionRequest::WithNextToken
GetTextDetectionRequest & WithNextToken(const Aws::String &value)
Definition: GetTextDetectionRequest.h:159
Aws::Rekognition::Model::GetTextDetectionRequest::WithJobId
GetTextDetectionRequest & WithJobId(const char *value)
Definition: GetTextDetectionRequest.h:91
Aws::Rekognition::Model::GetTextDetectionRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_REKOGNITION_API
#define AWS_REKOGNITION_API
Definition: Rekognition_EXPORTS.h:28
Aws::Rekognition::Model::GetTextDetectionRequest::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: GetTextDetectionRequest.h:49
Aws
Definition: AccessManagementClient.h:15
Rekognition_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Rekognition::Model::GetTextDetectionRequest
Definition: GetTextDetectionRequest.h:22
Aws::Rekognition::Model::GetTextDetectionRequest::GetJobId
const Aws::String & GetJobId() const
Definition: GetTextDetectionRequest.h:42
Aws::Rekognition::Model::GetTextDetectionRequest::SetJobId
void SetJobId(Aws::String &&value)
Definition: GetTextDetectionRequest.h:63
Aws::Rekognition::Model::GetTextDetectionRequest::GetMaxResults
int GetMaxResults() const
Definition: GetTextDetectionRequest.h:98
Aws::Rekognition::Model::GetTextDetectionRequest::WithJobId
GetTextDetectionRequest & WithJobId(const Aws::String &value)
Definition: GetTextDetectionRequest.h:77
RekognitionRequest.h
Aws::Rekognition::Model::GetTextDetectionRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetTextDetectionRequest.h:104