AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
MentionSentiment.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Comprehend {
21namespace Model {
22
33 public:
34 AWS_COMPREHEND_API MentionSentiment() = default;
35 AWS_COMPREHEND_API MentionSentiment(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline SentimentType GetSentiment() const { return m_sentiment; }
44 inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; }
45 inline void SetSentiment(SentimentType value) {
46 m_sentimentHasBeenSet = true;
47 m_sentiment = value;
48 }
50 SetSentiment(value);
51 return *this;
52 }
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) {
61 m_sentimentScoreHasBeenSet = true;
62 m_sentimentScore = std::forward<SentimentScoreT>(value);
63 }
64 template <typename SentimentScoreT = SentimentScore>
65 MentionSentiment& WithSentimentScore(SentimentScoreT&& value) {
66 SetSentimentScore(std::forward<SentimentScoreT>(value));
67 return *this;
68 }
70 private:
72
73 SentimentScore m_sentimentScore;
74 bool m_sentimentHasBeenSet = false;
75 bool m_sentimentScoreHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Comprehend
80} // 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