AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SentimentResponse.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/lexv2-runtime/model/SentimentType.h>
9#include <aws/lexv2-runtime/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 LexRuntimeV2
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_LEXRUNTIMEV2_API SentimentResponse();
41 AWS_LEXRUNTIMEV2_API SentimentResponse(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LEXRUNTIMEV2_API SentimentResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const SentimentType& GetSentiment() const{ return m_sentiment; }
53 inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; }
54 inline void SetSentiment(const SentimentType& value) { m_sentimentHasBeenSet = true; m_sentiment = value; }
55 inline void SetSentiment(SentimentType&& value) { m_sentimentHasBeenSet = true; m_sentiment = std::move(value); }
56 inline SentimentResponse& WithSentiment(const SentimentType& value) { SetSentiment(value); return *this;}
57 inline SentimentResponse& WithSentiment(SentimentType&& value) { SetSentiment(std::move(value)); return *this;}
59
61
62 inline const SentimentScore& GetSentimentScore() const{ return m_sentimentScore; }
63 inline bool SentimentScoreHasBeenSet() const { return m_sentimentScoreHasBeenSet; }
64 inline void SetSentimentScore(const SentimentScore& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = value; }
65 inline void SetSentimentScore(SentimentScore&& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = std::move(value); }
66 inline SentimentResponse& WithSentimentScore(const SentimentScore& value) { SetSentimentScore(value); return *this;}
67 inline SentimentResponse& WithSentimentScore(SentimentScore&& value) { SetSentimentScore(std::move(value)); return *this;}
69 private:
70
71 SentimentType m_sentiment;
72 bool m_sentimentHasBeenSet = false;
73
74 SentimentScore m_sentimentScore;
75 bool m_sentimentScoreHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace LexRuntimeV2
80} // namespace Aws
void SetSentimentScore(SentimentScore &&value)
const SentimentScore & GetSentimentScore() const
AWS_LEXRUNTIMEV2_API SentimentResponse(Aws::Utils::Json::JsonView jsonValue)
const SentimentType & GetSentiment() const
void SetSentiment(const SentimentType &value)
SentimentResponse & WithSentimentScore(SentimentScore &&value)
AWS_LEXRUNTIMEV2_API SentimentResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSentimentScore(const SentimentScore &value)
SentimentResponse & WithSentiment(const SentimentType &value)
SentimentResponse & WithSentiment(SentimentType &&value)
SentimentResponse & WithSentimentScore(const SentimentScore &value)
Aws::Utils::Json::JsonValue JsonValue