AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetectSyntaxRequest.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/ComprehendRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/comprehend/model/SyntaxLanguageCode.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Comprehend
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_COMPREHEND_API DetectSyntaxRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DetectSyntax"; }
32
33 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetText() const{ return m_text; }
43 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
44 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
45 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
46 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
47 inline DetectSyntaxRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
48 inline DetectSyntaxRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
49 inline DetectSyntaxRequest& WithText(const char* value) { SetText(value); return *this;}
51
53
58 inline const SyntaxLanguageCode& GetLanguageCode() const{ return m_languageCode; }
59 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
60 inline void SetLanguageCode(const SyntaxLanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
61 inline void SetLanguageCode(SyntaxLanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
62 inline DetectSyntaxRequest& WithLanguageCode(const SyntaxLanguageCode& value) { SetLanguageCode(value); return *this;}
63 inline DetectSyntaxRequest& WithLanguageCode(SyntaxLanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
65 private:
66
67 Aws::String m_text;
68 bool m_textHasBeenSet = false;
69
70 SyntaxLanguageCode m_languageCode;
71 bool m_languageCodeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Comprehend
76} // namespace Aws
AWS_COMPREHEND_API Aws::String SerializePayload() const override
const SyntaxLanguageCode & GetLanguageCode() const
DetectSyntaxRequest & WithLanguageCode(SyntaxLanguageCode &&value)
DetectSyntaxRequest & WithText(Aws::String &&value)
void SetLanguageCode(const SyntaxLanguageCode &value)
void SetLanguageCode(SyntaxLanguageCode &&value)
virtual const char * GetServiceRequestName() const override
DetectSyntaxRequest & WithText(const char *value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DetectSyntaxRequest & WithText(const Aws::String &value)
DetectSyntaxRequest & WithLanguageCode(const SyntaxLanguageCode &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String