AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
SentimentResponse.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/lexv2-runtime/model/SentimentScore.h>
9#include <aws/lexv2-runtime/model/SentimentType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LexRuntimeV2 {
21namespace Model {
22
34 public:
35 AWS_LEXRUNTIMEV2_API SentimentResponse() = default;
36 AWS_LEXRUNTIMEV2_API SentimentResponse(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LEXRUNTIMEV2_API SentimentResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline SentimentType GetSentiment() const { return m_sentiment; }
47 inline bool SentimentHasBeenSet() const { return m_sentimentHasBeenSet; }
48 inline void SetSentiment(SentimentType value) {
49 m_sentimentHasBeenSet = true;
50 m_sentiment = value;
51 }
53 SetSentiment(value);
54 return *this;
55 }
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) {
64 m_sentimentScoreHasBeenSet = true;
65 m_sentimentScore = std::forward<SentimentScoreT>(value);
66 }
67 template <typename SentimentScoreT = SentimentScore>
68 SentimentResponse& WithSentimentScore(SentimentScoreT&& value) {
69 SetSentimentScore(std::forward<SentimentScoreT>(value));
70 return *this;
71 }
73 private:
75
76 SentimentScore m_sentimentScore;
77 bool m_sentimentHasBeenSet = false;
78 bool m_sentimentScoreHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace LexRuntimeV2
83} // 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