AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
ConfidenceScore.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace LexRuntimeV2 {
17namespace Model {
18
27 public:
28 AWS_LEXRUNTIMEV2_API ConfidenceScore() = default;
29 AWS_LEXRUNTIMEV2_API ConfidenceScore(Aws::Utils::Json::JsonView jsonValue);
30 AWS_LEXRUNTIMEV2_API ConfidenceScore& operator=(Aws::Utils::Json::JsonView jsonValue);
31 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
32
34
39 inline double GetScore() const { return m_score; }
40 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
41 inline void SetScore(double value) {
42 m_scoreHasBeenSet = true;
43 m_score = value;
44 }
45 inline ConfidenceScore& WithScore(double value) {
46 SetScore(value);
47 return *this;
48 }
50 private:
51 double m_score{0.0};
52 bool m_scoreHasBeenSet = false;
53};
54
55} // namespace Model
56} // namespace LexRuntimeV2
57} // namespace Aws
AWS_LEXRUNTIMEV2_API ConfidenceScore()=default
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
ConfidenceScore & WithScore(double value)
AWS_LEXRUNTIMEV2_API ConfidenceScore(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMEV2_API ConfidenceScore & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue