AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SentimentScore.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Comprehend
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_COMPREHEND_API SentimentScore();
34 AWS_COMPREHEND_API SentimentScore(Aws::Utils::Json::JsonView jsonValue);
35 AWS_COMPREHEND_API SentimentScore& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
44 inline double GetPositive() const{ return m_positive; }
45 inline bool PositiveHasBeenSet() const { return m_positiveHasBeenSet; }
46 inline void SetPositive(double value) { m_positiveHasBeenSet = true; m_positive = value; }
47 inline SentimentScore& WithPositive(double value) { SetPositive(value); return *this;}
49
51
55 inline double GetNegative() const{ return m_negative; }
56 inline bool NegativeHasBeenSet() const { return m_negativeHasBeenSet; }
57 inline void SetNegative(double value) { m_negativeHasBeenSet = true; m_negative = value; }
58 inline SentimentScore& WithNegative(double value) { SetNegative(value); return *this;}
60
62
66 inline double GetNeutral() const{ return m_neutral; }
67 inline bool NeutralHasBeenSet() const { return m_neutralHasBeenSet; }
68 inline void SetNeutral(double value) { m_neutralHasBeenSet = true; m_neutral = value; }
69 inline SentimentScore& WithNeutral(double value) { SetNeutral(value); return *this;}
71
73
77 inline double GetMixed() const{ return m_mixed; }
78 inline bool MixedHasBeenSet() const { return m_mixedHasBeenSet; }
79 inline void SetMixed(double value) { m_mixedHasBeenSet = true; m_mixed = value; }
80 inline SentimentScore& WithMixed(double value) { SetMixed(value); return *this;}
82 private:
83
84 double m_positive;
85 bool m_positiveHasBeenSet = false;
86
87 double m_negative;
88 bool m_negativeHasBeenSet = false;
89
90 double m_neutral;
91 bool m_neutralHasBeenSet = false;
92
93 double m_mixed;
94 bool m_mixedHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Comprehend
99} // 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(Aws::Utils::Json::JsonView jsonValue)
SentimentScore & WithMixed(double value)
Aws::Utils::Json::JsonValue JsonValue