AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const SentimentType& GetSentiment() const{ return m_sentiment; }
50 inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; }
51 inline void SetSentiment(const SentimentType& value) { m_sentimentHasBeenSet = true; m_sentiment = value; }
52 inline void SetSentiment(SentimentType&& value) { m_sentimentHasBeenSet = true; m_sentiment = std::move(value); }
53 inline MentionSentiment& WithSentiment(const SentimentType& value) { SetSentiment(value); return *this;}
54 inline MentionSentiment& WithSentiment(SentimentType&& value) { SetSentiment(std::move(value)); return *this;}
56
58
59 inline const SentimentScore& GetSentimentScore() const{ return m_sentimentScore; }
60 inline bool SentimentScoreHasBeenSet() const { return m_sentimentScoreHasBeenSet; }
61 inline void SetSentimentScore(const SentimentScore& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = value; }
62 inline void SetSentimentScore(SentimentScore&& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = std::move(value); }
63 inline MentionSentiment& WithSentimentScore(const SentimentScore& value) { SetSentimentScore(value); return *this;}
64 inline MentionSentiment& WithSentimentScore(SentimentScore&& value) { SetSentimentScore(std::move(value)); return *this;}
66 private:
67
68 SentimentType m_sentiment;
69 bool m_sentimentHasBeenSet = false;
70
71 SentimentScore m_sentimentScore;
72 bool m_sentimentScoreHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Comprehend
77} // namespace Aws
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSentimentScore(const SentimentScore &value)
AWS_COMPREHEND_API MentionSentiment & operator=(Aws::Utils::Json::JsonView jsonValue)
MentionSentiment & WithSentiment(const SentimentType &value)
void SetSentiment(SentimentType &&value)
MentionSentiment & WithSentimentScore(SentimentScore &&value)
void SetSentimentScore(SentimentScore &&value)
MentionSentiment & WithSentiment(SentimentType &&value)
const SentimentScore & GetSentimentScore() const
const SentimentType & GetSentiment() const
void SetSentiment(const SentimentType &value)
MentionSentiment & WithSentimentScore(const SentimentScore &value)
AWS_COMPREHEND_API MentionSentiment(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue