AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DetectSentimentResult.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/SentimentScore.h>
9#include <aws/comprehend/model/SentimentType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Comprehend {
24namespace Model {
26 public:
27 AWS_COMPREHEND_API DetectSentimentResult() = default;
30
32
36 inline SentimentType GetSentiment() const { return m_sentiment; }
37 inline void SetSentiment(SentimentType value) {
38 m_sentimentHasBeenSet = true;
39 m_sentiment = value;
40 }
42 SetSentiment(value);
43 return *this;
44 }
46
48
52 inline const SentimentScore& GetSentimentScore() const { return m_sentimentScore; }
53 template <typename SentimentScoreT = SentimentScore>
54 void SetSentimentScore(SentimentScoreT&& value) {
55 m_sentimentScoreHasBeenSet = true;
56 m_sentimentScore = std::forward<SentimentScoreT>(value);
57 }
58 template <typename SentimentScoreT = SentimentScore>
59 DetectSentimentResult& WithSentimentScore(SentimentScoreT&& value) {
60 SetSentimentScore(std::forward<SentimentScoreT>(value));
61 return *this;
62 }
64
66
67 inline const Aws::String& GetRequestId() const { return m_requestId; }
68 template <typename RequestIdT = Aws::String>
69 void SetRequestId(RequestIdT&& value) {
70 m_requestIdHasBeenSet = true;
71 m_requestId = std::forward<RequestIdT>(value);
72 }
73 template <typename RequestIdT = Aws::String>
74 DetectSentimentResult& WithRequestId(RequestIdT&& value) {
75 SetRequestId(std::forward<RequestIdT>(value));
76 return *this;
77 }
79 private:
81
82 SentimentScore m_sentimentScore;
83
84 Aws::String m_requestId;
85 bool m_sentimentHasBeenSet = false;
86 bool m_sentimentScoreHasBeenSet = false;
87 bool m_requestIdHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace Comprehend
92} // namespace Aws
AWS_COMPREHEND_API DetectSentimentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COMPREHEND_API DetectSentimentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetectSentimentResult & WithRequestId(RequestIdT &&value)
DetectSentimentResult & WithSentimentScore(SentimentScoreT &&value)
AWS_COMPREHEND_API DetectSentimentResult()=default
DetectSentimentResult & WithSentiment(SentimentType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue