AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 SentimentType GetSentiment() const { return m_sentiment; }
53 inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; }
54 inline void SetSentiment(SentimentType value) { m_sentimentHasBeenSet = true; m_sentiment = value; }
55 inline SentimentResponse& WithSentiment(SentimentType value) { SetSentiment(value); return *this;}
57
59
60 inline const SentimentScore& GetSentimentScore() const { return m_sentimentScore; }
61 inline bool SentimentScoreHasBeenSet() const { return m_sentimentScoreHasBeenSet; }
62 template<typename SentimentScoreT = SentimentScore>
63 void SetSentimentScore(SentimentScoreT&& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = std::forward<SentimentScoreT>(value); }
64 template<typename SentimentScoreT = SentimentScore>
65 SentimentResponse& WithSentimentScore(SentimentScoreT&& value) { SetSentimentScore(std::forward<SentimentScoreT>(value)); return *this;}
67 private:
68
70 bool m_sentimentHasBeenSet = false;
71
72 SentimentScore m_sentimentScore;
73 bool m_sentimentScoreHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace LexRuntimeV2
78} // namespace Aws
const SentimentScore & GetSentimentScore() const
AWS_LEXRUNTIMEV2_API SentimentResponse(Aws::Utils::Json::JsonView jsonValue)
SentimentResponse & WithSentimentScore(SentimentScoreT &&value)
AWS_LEXRUNTIMEV2_API SentimentResponse()=default
AWS_LEXRUNTIMEV2_API SentimentResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
SentimentResponse & WithSentiment(SentimentType value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSentimentScore(SentimentScoreT &&value)
Aws::Utils::Json::JsonValue JsonValue