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/lex/LexRuntimeService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexRuntimeService
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_LEXRUNTIMESERVICE_API SentimentResponse() = default;
37 AWS_LEXRUNTIMESERVICE_API SentimentResponse(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXRUNTIMESERVICE_API SentimentResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetSentimentLabel() const { return m_sentimentLabel; }
48 inline bool SentimentLabelHasBeenSet() const { return m_sentimentLabelHasBeenSet; }
49 template<typename SentimentLabelT = Aws::String>
50 void SetSentimentLabel(SentimentLabelT&& value) { m_sentimentLabelHasBeenSet = true; m_sentimentLabel = std::forward<SentimentLabelT>(value); }
51 template<typename SentimentLabelT = Aws::String>
52 SentimentResponse& WithSentimentLabel(SentimentLabelT&& value) { SetSentimentLabel(std::forward<SentimentLabelT>(value)); return *this;}
54
56
59 inline const Aws::String& GetSentimentScore() const { return m_sentimentScore; }
60 inline bool SentimentScoreHasBeenSet() const { return m_sentimentScoreHasBeenSet; }
61 template<typename SentimentScoreT = Aws::String>
62 void SetSentimentScore(SentimentScoreT&& value) { m_sentimentScoreHasBeenSet = true; m_sentimentScore = std::forward<SentimentScoreT>(value); }
63 template<typename SentimentScoreT = Aws::String>
64 SentimentResponse& WithSentimentScore(SentimentScoreT&& value) { SetSentimentScore(std::forward<SentimentScoreT>(value)); return *this;}
66 private:
67
68 Aws::String m_sentimentLabel;
69 bool m_sentimentLabelHasBeenSet = false;
70
71 Aws::String m_sentimentScore;
72 bool m_sentimentScoreHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace LexRuntimeService
77} // namespace Aws
SentimentResponse & WithSentimentLabel(SentimentLabelT &&value)
AWS_LEXRUNTIMESERVICE_API SentimentResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMESERVICE_API SentimentResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
SentimentResponse & WithSentimentScore(SentimentScoreT &&value)
AWS_LEXRUNTIMESERVICE_API SentimentResponse()=default
AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue