AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetectSentimentRequest.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/LanguageCode.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Comprehend
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_COMPREHEND_API DetectSentimentRequest();
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 "DetectSentiment"; }
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 DetectSentimentRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
48 inline DetectSentimentRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
49 inline DetectSentimentRequest& WithText(const char* value) { SetText(value); return *this;}
51
53
58 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
59 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
60 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
61 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
62 inline DetectSentimentRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
63 inline DetectSentimentRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
65 private:
66
67 Aws::String m_text;
68 bool m_textHasBeenSet = false;
69
70 LanguageCode m_languageCode;
71 bool m_languageCodeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Comprehend
76} // namespace Aws
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DetectSentimentRequest & WithText(const char *value)
DetectSentimentRequest & WithLanguageCode(LanguageCode &&value)
DetectSentimentRequest & WithText(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AWS_COMPREHEND_API Aws::String SerializePayload() const override
DetectSentimentRequest & WithLanguageCode(const LanguageCode &value)
DetectSentimentRequest & WithText(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String