AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
MentionSentiment.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Comprehend
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_COMPREHEND_API MentionSentiment() = default;
40 AWS_COMPREHEND_API MentionSentiment(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline SentimentType GetSentiment() const { return m_sentiment; }
50 inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; }
51 inline void SetSentiment(SentimentType value) { m_sentimentHasBeenSet = true; m_sentiment = value; }
52 inline MentionSentiment& WithSentiment(SentimentType value) { SetSentiment(value); return *this;}
54
56
57 inline const SentimentScore& GetSentimentScore() const { return m_sentimentScore; }
58 inline bool SentimentScoreHasBeenSet() const { return m_sentimentScoreHasBeenSet; }
59 template<typename SentimentScoreT = SentimentScore>
60 void SetSentimentScore(SentimentScoreT&& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = std::forward<SentimentScoreT>(value); }
61 template<typename SentimentScoreT = SentimentScore>
62 MentionSentiment& WithSentimentScore(SentimentScoreT&& value) { SetSentimentScore(std::forward<SentimentScoreT>(value)); return *this;}
64 private:
65
67 bool m_sentimentHasBeenSet = false;
68
69 SentimentScore m_sentimentScore;
70 bool m_sentimentScoreHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Comprehend
75} // namespace Aws
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSentimentScore(SentimentScoreT &&value)
AWS_COMPREHEND_API MentionSentiment & operator=(Aws::Utils::Json::JsonView jsonValue)
MentionSentiment & WithSentimentScore(SentimentScoreT &&value)
const SentimentScore & GetSentimentScore() const
MentionSentiment & WithSentiment(SentimentType value)
AWS_COMPREHEND_API MentionSentiment()=default
AWS_COMPREHEND_API MentionSentiment(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue