AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
SpeechRecognitionSettings.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/SpeechModelConfig.h>
9#include <aws/lexv2-models/model/SpeechModelPreference.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LexModelsV2 {
21namespace Model {
22
30 public:
31 AWS_LEXMODELSV2_API SpeechRecognitionSettings() = default;
34 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline SpeechModelPreference GetSpeechModelPreference() const { return m_speechModelPreference; }
41 inline bool SpeechModelPreferenceHasBeenSet() const { return m_speechModelPreferenceHasBeenSet; }
43 m_speechModelPreferenceHasBeenSet = true;
44 m_speechModelPreference = value;
45 }
48 return *this;
49 }
51
53
56 inline const SpeechModelConfig& GetSpeechModelConfig() const { return m_speechModelConfig; }
57 inline bool SpeechModelConfigHasBeenSet() const { return m_speechModelConfigHasBeenSet; }
58 template <typename SpeechModelConfigT = SpeechModelConfig>
59 void SetSpeechModelConfig(SpeechModelConfigT&& value) {
60 m_speechModelConfigHasBeenSet = true;
61 m_speechModelConfig = std::forward<SpeechModelConfigT>(value);
62 }
63 template <typename SpeechModelConfigT = SpeechModelConfig>
64 SpeechRecognitionSettings& WithSpeechModelConfig(SpeechModelConfigT&& value) {
65 SetSpeechModelConfig(std::forward<SpeechModelConfigT>(value));
66 return *this;
67 }
69 private:
71
72 SpeechModelConfig m_speechModelConfig;
73 bool m_speechModelPreferenceHasBeenSet = false;
74 bool m_speechModelConfigHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace LexModelsV2
79} // namespace Aws
SpeechRecognitionSettings & WithSpeechModelConfig(SpeechModelConfigT &&value)
AWS_LEXMODELSV2_API SpeechRecognitionSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API SpeechRecognitionSettings(Aws::Utils::Json::JsonView jsonValue)
SpeechRecognitionSettings & WithSpeechModelPreference(SpeechModelPreference value)
AWS_LEXMODELSV2_API SpeechRecognitionSettings()=default
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue