AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetectSentimentResult.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/SentimentType.h>
9#include <aws/comprehend/model/SentimentScore.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Comprehend
26{
27namespace Model
28{
30 {
31 public:
32 AWS_COMPREHEND_API DetectSentimentResult();
35
36
38
42 inline const SentimentType& GetSentiment() const{ return m_sentiment; }
43 inline void SetSentiment(const SentimentType& value) { m_sentiment = value; }
44 inline void SetSentiment(SentimentType&& value) { m_sentiment = std::move(value); }
45 inline DetectSentimentResult& WithSentiment(const SentimentType& value) { SetSentiment(value); return *this;}
46 inline DetectSentimentResult& WithSentiment(SentimentType&& value) { SetSentiment(std::move(value)); return *this;}
48
50
54 inline const SentimentScore& GetSentimentScore() const{ return m_sentimentScore; }
55 inline void SetSentimentScore(const SentimentScore& value) { m_sentimentScore = value; }
56 inline void SetSentimentScore(SentimentScore&& value) { m_sentimentScore = std::move(value); }
57 inline DetectSentimentResult& WithSentimentScore(const SentimentScore& value) { SetSentimentScore(value); return *this;}
58 inline DetectSentimentResult& WithSentimentScore(SentimentScore&& value) { SetSentimentScore(std::move(value)); return *this;}
60
62
63 inline const Aws::String& GetRequestId() const{ return m_requestId; }
64 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
65 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
66 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
67 inline DetectSentimentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
68 inline DetectSentimentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
69 inline DetectSentimentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
71 private:
72
73 SentimentType m_sentiment;
74
75 SentimentScore m_sentimentScore;
76
77 Aws::String m_requestId;
78 };
79
80} // namespace Model
81} // namespace Comprehend
82} // namespace Aws
DetectSentimentResult & WithRequestId(Aws::String &&value)
void SetSentimentScore(const SentimentScore &value)
AWS_COMPREHEND_API DetectSentimentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetectSentimentResult & WithSentimentScore(const SentimentScore &value)
DetectSentimentResult & WithRequestId(const char *value)
DetectSentimentResult & WithRequestId(const Aws::String &value)
AWS_COMPREHEND_API DetectSentimentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetectSentimentResult & WithSentiment(SentimentType &&value)
DetectSentimentResult & WithSentimentScore(SentimentScore &&value)
DetectSentimentResult & WithSentiment(const SentimentType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue