AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LanguageModel.h
1
6#pragma once
7#include <aws/transcribe/TranscribeService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/transcribe/model/CLMLanguageCode.h>
11#include <aws/transcribe/model/BaseModelName.h>
12#include <aws/transcribe/model/ModelStatus.h>
13#include <aws/transcribe/model/InputDataConfig.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace TranscribeService
27{
28namespace Model
29{
30
43 {
44 public:
45 AWS_TRANSCRIBESERVICE_API LanguageModel() = default;
46 AWS_TRANSCRIBESERVICE_API LanguageModel(Aws::Utils::Json::JsonView jsonValue);
47 AWS_TRANSCRIBESERVICE_API LanguageModel& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
57 inline const Aws::String& GetModelName() const { return m_modelName; }
58 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
59 template<typename ModelNameT = Aws::String>
60 void SetModelName(ModelNameT&& value) { m_modelNameHasBeenSet = true; m_modelName = std::forward<ModelNameT>(value); }
61 template<typename ModelNameT = Aws::String>
62 LanguageModel& WithModelName(ModelNameT&& value) { SetModelName(std::forward<ModelNameT>(value)); return *this;}
64
66
72 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
73 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
74 template<typename CreateTimeT = Aws::Utils::DateTime>
75 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
76 template<typename CreateTimeT = Aws::Utils::DateTime>
77 LanguageModel& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
79
81
87 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
88 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
89 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
90 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
91 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
92 LanguageModel& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
94
96
106 inline CLMLanguageCode GetLanguageCode() const { return m_languageCode; }
107 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
108 inline void SetLanguageCode(CLMLanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
109 inline LanguageModel& WithLanguageCode(CLMLanguageCode value) { SetLanguageCode(value); return *this;}
111
113
117 inline BaseModelName GetBaseModelName() const { return m_baseModelName; }
118 inline bool BaseModelNameHasBeenSet() const { return m_baseModelNameHasBeenSet; }
119 inline void SetBaseModelName(BaseModelName value) { m_baseModelNameHasBeenSet = true; m_baseModelName = value; }
120 inline LanguageModel& WithBaseModelName(BaseModelName value) { SetBaseModelName(value); return *this;}
122
124
128 inline ModelStatus GetModelStatus() const { return m_modelStatus; }
129 inline bool ModelStatusHasBeenSet() const { return m_modelStatusHasBeenSet; }
130 inline void SetModelStatus(ModelStatus value) { m_modelStatusHasBeenSet = true; m_modelStatus = value; }
131 inline LanguageModel& WithModelStatus(ModelStatus value) { SetModelStatus(value); return *this;}
133
135
144 inline bool GetUpgradeAvailability() const { return m_upgradeAvailability; }
145 inline bool UpgradeAvailabilityHasBeenSet() const { return m_upgradeAvailabilityHasBeenSet; }
146 inline void SetUpgradeAvailability(bool value) { m_upgradeAvailabilityHasBeenSet = true; m_upgradeAvailability = value; }
147 inline LanguageModel& WithUpgradeAvailability(bool value) { SetUpgradeAvailability(value); return *this;}
149
151
158 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
159 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
160 template<typename FailureReasonT = Aws::String>
161 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
162 template<typename FailureReasonT = Aws::String>
163 LanguageModel& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
165
167
172 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
173 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
174 template<typename InputDataConfigT = InputDataConfig>
175 void SetInputDataConfig(InputDataConfigT&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::forward<InputDataConfigT>(value); }
176 template<typename InputDataConfigT = InputDataConfig>
177 LanguageModel& WithInputDataConfig(InputDataConfigT&& value) { SetInputDataConfig(std::forward<InputDataConfigT>(value)); return *this;}
179 private:
180
181 Aws::String m_modelName;
182 bool m_modelNameHasBeenSet = false;
183
184 Aws::Utils::DateTime m_createTime{};
185 bool m_createTimeHasBeenSet = false;
186
187 Aws::Utils::DateTime m_lastModifiedTime{};
188 bool m_lastModifiedTimeHasBeenSet = false;
189
191 bool m_languageCodeHasBeenSet = false;
192
193 BaseModelName m_baseModelName{BaseModelName::NOT_SET};
194 bool m_baseModelNameHasBeenSet = false;
195
196 ModelStatus m_modelStatus{ModelStatus::NOT_SET};
197 bool m_modelStatusHasBeenSet = false;
198
199 bool m_upgradeAvailability{false};
200 bool m_upgradeAvailabilityHasBeenSet = false;
201
202 Aws::String m_failureReason;
203 bool m_failureReasonHasBeenSet = false;
204
205 InputDataConfig m_inputDataConfig;
206 bool m_inputDataConfigHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace TranscribeService
211} // namespace Aws
void SetLastModifiedTime(LastModifiedTimeT &&value)
LanguageModel & WithModelName(ModelNameT &&value)
LanguageModel & WithFailureReason(FailureReasonT &&value)
AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
LanguageModel & WithInputDataConfig(InputDataConfigT &&value)
void SetInputDataConfig(InputDataConfigT &&value)
LanguageModel & WithBaseModelName(BaseModelName value)
AWS_TRANSCRIBESERVICE_API LanguageModel & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetModelName() const
LanguageModel & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
const Aws::Utils::DateTime & GetCreateTime() const
const Aws::String & GetFailureReason() const
LanguageModel & WithModelStatus(ModelStatus value)
LanguageModel & WithUpgradeAvailability(bool value)
void SetFailureReason(FailureReasonT &&value)
void SetLanguageCode(CLMLanguageCode value)
const InputDataConfig & GetInputDataConfig() const
LanguageModel & WithLanguageCode(CLMLanguageCode value)
LanguageModel & WithCreateTime(CreateTimeT &&value)
AWS_TRANSCRIBESERVICE_API LanguageModel()=default
AWS_TRANSCRIBESERVICE_API LanguageModel(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue