AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
35
36
38
42 inline SentimentType GetSentiment() const { return m_sentiment; }
43 inline void SetSentiment(SentimentType value) { m_sentimentHasBeenSet = true; m_sentiment = value; }
44 inline DetectSentimentResult& WithSentiment(SentimentType value) { SetSentiment(value); return *this;}
46
48
52 inline const SentimentScore& GetSentimentScore() const { return m_sentimentScore; }
53 template<typename SentimentScoreT = SentimentScore>
54 void SetSentimentScore(SentimentScoreT&& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = std::forward<SentimentScoreT>(value); }
55 template<typename SentimentScoreT = SentimentScore>
56 DetectSentimentResult& WithSentimentScore(SentimentScoreT&& value) { SetSentimentScore(std::forward<SentimentScoreT>(value)); return *this;}
58
60
61 inline const Aws::String& GetRequestId() const { return m_requestId; }
62 template<typename RequestIdT = Aws::String>
63 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
64 template<typename RequestIdT = Aws::String>
65 DetectSentimentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
67 private:
68
70 bool m_sentimentHasBeenSet = false;
71
72 SentimentScore m_sentimentScore;
73 bool m_sentimentScoreHasBeenSet = false;
74
75 Aws::String m_requestId;
76 bool m_requestIdHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Comprehend
81} // 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