AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
SentimentScore.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Comprehend {
17namespace Model {
18
26 public:
27 AWS_COMPREHEND_API SentimentScore() = default;
28 AWS_COMPREHEND_API SentimentScore(Aws::Utils::Json::JsonView jsonValue);
29 AWS_COMPREHEND_API SentimentScore& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
37 inline double GetPositive() const { return m_positive; }
38 inline bool PositiveHasBeenSet() const { return m_positiveHasBeenSet; }
39 inline void SetPositive(double value) {
40 m_positiveHasBeenSet = true;
41 m_positive = value;
42 }
43 inline SentimentScore& WithPositive(double value) {
44 SetPositive(value);
45 return *this;
46 }
48
50
54 inline double GetNegative() const { return m_negative; }
55 inline bool NegativeHasBeenSet() const { return m_negativeHasBeenSet; }
56 inline void SetNegative(double value) {
57 m_negativeHasBeenSet = true;
58 m_negative = value;
59 }
60 inline SentimentScore& WithNegative(double value) {
61 SetNegative(value);
62 return *this;
63 }
65
67
71 inline double GetNeutral() const { return m_neutral; }
72 inline bool NeutralHasBeenSet() const { return m_neutralHasBeenSet; }
73 inline void SetNeutral(double value) {
74 m_neutralHasBeenSet = true;
75 m_neutral = value;
76 }
77 inline SentimentScore& WithNeutral(double value) {
78 SetNeutral(value);
79 return *this;
80 }
82
84
88 inline double GetMixed() const { return m_mixed; }
89 inline bool MixedHasBeenSet() const { return m_mixedHasBeenSet; }
90 inline void SetMixed(double value) {
91 m_mixedHasBeenSet = true;
92 m_mixed = value;
93 }
94 inline SentimentScore& WithMixed(double value) {
95 SetMixed(value);
96 return *this;
97 }
99 private:
100 double m_positive{0.0};
101
102 double m_negative{0.0};
103
104 double m_neutral{0.0};
105
106 double m_mixed{0.0};
107 bool m_positiveHasBeenSet = false;
108 bool m_negativeHasBeenSet = false;
109 bool m_neutralHasBeenSet = false;
110 bool m_mixedHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace Comprehend
115} // namespace Aws
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
SentimentScore & WithNeutral(double value)
SentimentScore & WithPositive(double value)
SentimentScore & WithNegative(double value)
AWS_COMPREHEND_API SentimentScore & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API SentimentScore()=default
AWS_COMPREHEND_API SentimentScore(Aws::Utils::Json::JsonView jsonValue)
SentimentScore & WithMixed(double value)
Aws::Utils::Json::JsonValue JsonValue