AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LanguageWithScore.h
1
6#pragma once
7#include <aws/transcribestreaming/TranscribeStreamingService_EXPORTS.h>
8#include <aws/transcribestreaming/model/LanguageCode.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 TranscribeStreamingService
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_TRANSCRIBESTREAMINGSERVICE_API LanguageWithScore() = default;
39 AWS_TRANSCRIBESTREAMINGSERVICE_API LanguageWithScore(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TRANSCRIBESTREAMINGSERVICE_API LanguageWithScore& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
49 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
50 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
51 inline LanguageWithScore& WithLanguageCode(LanguageCode value) { SetLanguageCode(value); return *this;}
53
55
60 inline double GetScore() const { return m_score; }
61 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
62 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
63 inline LanguageWithScore& WithScore(double value) { SetScore(value); return *this;}
65 private:
66
67 LanguageCode m_languageCode{LanguageCode::NOT_SET};
68 bool m_languageCodeHasBeenSet = false;
69
70 double m_score{0.0};
71 bool m_scoreHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace TranscribeStreamingService
76} // namespace Aws
LanguageWithScore & WithLanguageCode(LanguageCode value)
AWS_TRANSCRIBESTREAMINGSERVICE_API LanguageWithScore & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESTREAMINGSERVICE_API LanguageWithScore()=default
AWS_TRANSCRIBESTREAMINGSERVICE_API LanguageWithScore(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue