AWS SDK for C++  1.8.95
AWS SDK for C++
StartDocumentTextDetectionRequest.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 "StartDocumentTextDetection"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
43  inline const DocumentLocation& GetDocumentLocation() const{ return m_documentLocation; }
44 
48  inline bool DocumentLocationHasBeenSet() const { return m_documentLocationHasBeenSet; }
49 
53  inline void SetDocumentLocation(const DocumentLocation& value) { m_documentLocationHasBeenSet = true; m_documentLocation = value; }
54 
58  inline void SetDocumentLocation(DocumentLocation&& value) { m_documentLocationHasBeenSet = true; m_documentLocation = std::move(value); }
59 
63  inline StartDocumentTextDetectionRequest& WithDocumentLocation(const DocumentLocation& value) { SetDocumentLocation(value); return *this;}
64 
68  inline StartDocumentTextDetectionRequest& WithDocumentLocation(DocumentLocation&& value) { SetDocumentLocation(std::move(value)); return *this;}
69 
70 
80  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
81 
91  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
92 
102  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
103 
113  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
114 
124  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
125 
135  inline StartDocumentTextDetectionRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
136 
146  inline StartDocumentTextDetectionRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
147 
157  inline StartDocumentTextDetectionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
158 
159 
166  inline const Aws::String& GetJobTag() const{ return m_jobTag; }
167 
174  inline bool JobTagHasBeenSet() const { return m_jobTagHasBeenSet; }
175 
182  inline void SetJobTag(const Aws::String& value) { m_jobTagHasBeenSet = true; m_jobTag = value; }
183 
190  inline void SetJobTag(Aws::String&& value) { m_jobTagHasBeenSet = true; m_jobTag = std::move(value); }
191 
198  inline void SetJobTag(const char* value) { m_jobTagHasBeenSet = true; m_jobTag.assign(value); }
199 
206  inline StartDocumentTextDetectionRequest& WithJobTag(const Aws::String& value) { SetJobTag(value); return *this;}
207 
214  inline StartDocumentTextDetectionRequest& WithJobTag(Aws::String&& value) { SetJobTag(std::move(value)); return *this;}
215 
222  inline StartDocumentTextDetectionRequest& WithJobTag(const char* value) { SetJobTag(value); return *this;}
223 
224 
229  inline const NotificationChannel& GetNotificationChannel() const{ return m_notificationChannel; }
230 
235  inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
236 
241  inline void SetNotificationChannel(const NotificationChannel& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = value; }
242 
247  inline void SetNotificationChannel(NotificationChannel&& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = std::move(value); }
248 
253  inline StartDocumentTextDetectionRequest& WithNotificationChannel(const NotificationChannel& value) { SetNotificationChannel(value); return *this;}
254 
259  inline StartDocumentTextDetectionRequest& WithNotificationChannel(NotificationChannel&& value) { SetNotificationChannel(std::move(value)); return *this;}
260 
261 
267  inline const OutputConfig& GetOutputConfig() const{ return m_outputConfig; }
268 
274  inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
275 
281  inline void SetOutputConfig(const OutputConfig& value) { m_outputConfigHasBeenSet = true; m_outputConfig = value; }
282 
288  inline void SetOutputConfig(OutputConfig&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::move(value); }
289 
295  inline StartDocumentTextDetectionRequest& WithOutputConfig(const OutputConfig& value) { SetOutputConfig(value); return *this;}
296 
302  inline StartDocumentTextDetectionRequest& WithOutputConfig(OutputConfig&& value) { SetOutputConfig(std::move(value)); return *this;}
303 
304 
312  inline const Aws::String& GetKMSKeyId() const{ return m_kMSKeyId; }
313 
321  inline bool KMSKeyIdHasBeenSet() const { return m_kMSKeyIdHasBeenSet; }
322 
330  inline void SetKMSKeyId(const Aws::String& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = value; }
331 
339  inline void SetKMSKeyId(Aws::String&& value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId = std::move(value); }
340 
348  inline void SetKMSKeyId(const char* value) { m_kMSKeyIdHasBeenSet = true; m_kMSKeyId.assign(value); }
349 
357  inline StartDocumentTextDetectionRequest& WithKMSKeyId(const Aws::String& value) { SetKMSKeyId(value); return *this;}
358 
366  inline StartDocumentTextDetectionRequest& WithKMSKeyId(Aws::String&& value) { SetKMSKeyId(std::move(value)); return *this;}
367 
375  inline StartDocumentTextDetectionRequest& WithKMSKeyId(const char* value) { SetKMSKeyId(value); return *this;}
376 
377  private:
378 
379  DocumentLocation m_documentLocation;
380  bool m_documentLocationHasBeenSet;
381 
382  Aws::String m_clientRequestToken;
383  bool m_clientRequestTokenHasBeenSet;
384 
385  Aws::String m_jobTag;
386  bool m_jobTagHasBeenSet;
387 
388  NotificationChannel m_notificationChannel;
389  bool m_notificationChannelHasBeenSet;
390 
391  OutputConfig m_outputConfig;
392  bool m_outputConfigHasBeenSet;
393 
394  Aws::String m_kMSKeyId;
395  bool m_kMSKeyIdHasBeenSet;
396  };
397 
398 } // namespace Model
399 } // namespace Textract
400 } // namespace Aws
StartDocumentTextDetectionRequest & WithJobTag(const Aws::String &value)
StartDocumentTextDetectionRequest & WithClientRequestToken(const char *value)
StartDocumentTextDetectionRequest & WithClientRequestToken(const Aws::String &value)
StartDocumentTextDetectionRequest & WithJobTag(Aws::String &&value)
StartDocumentTextDetectionRequest & WithClientRequestToken(Aws::String &&value)
StartDocumentTextDetectionRequest & WithKMSKeyId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
StartDocumentTextDetectionRequest & WithOutputConfig(OutputConfig &&value)
#define AWS_TEXTRACT_API
StartDocumentTextDetectionRequest & WithNotificationChannel(NotificationChannel &&value)
StartDocumentTextDetectionRequest & WithKMSKeyId(Aws::String &&value)
StartDocumentTextDetectionRequest & WithDocumentLocation(DocumentLocation &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StartDocumentTextDetectionRequest & WithNotificationChannel(const NotificationChannel &value)
StartDocumentTextDetectionRequest & WithOutputConfig(const OutputConfig &value)
StartDocumentTextDetectionRequest & WithKMSKeyId(const Aws::String &value)
StartDocumentTextDetectionRequest & WithJobTag(const char *value)
StartDocumentTextDetectionRequest & WithDocumentLocation(const DocumentLocation &value)