AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
LanguageModel.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/transcribe/TranscribeService_EXPORTS.h>
10#include <aws/transcribe/model/BaseModelName.h>
11#include <aws/transcribe/model/CLMLanguageCode.h>
12#include <aws/transcribe/model/InputDataConfig.h>
13#include <aws/transcribe/model/ModelStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace TranscribeService {
25namespace Model {
26
39 public:
40 AWS_TRANSCRIBESERVICE_API LanguageModel() = default;
41 AWS_TRANSCRIBESERVICE_API LanguageModel(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TRANSCRIBESERVICE_API LanguageModel& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
51 inline const Aws::String& GetModelName() const { return m_modelName; }
52 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
53 template <typename ModelNameT = Aws::String>
54 void SetModelName(ModelNameT&& value) {
55 m_modelNameHasBeenSet = true;
56 m_modelName = std::forward<ModelNameT>(value);
57 }
58 template <typename ModelNameT = Aws::String>
59 LanguageModel& WithModelName(ModelNameT&& value) {
60 SetModelName(std::forward<ModelNameT>(value));
61 return *this;
62 }
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) {
76 m_createTimeHasBeenSet = true;
77 m_createTime = std::forward<CreateTimeT>(value);
78 }
79 template <typename CreateTimeT = Aws::Utils::DateTime>
80 LanguageModel& WithCreateTime(CreateTimeT&& value) {
81 SetCreateTime(std::forward<CreateTimeT>(value));
82 return *this;
83 }
85
87
93 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
94 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
95 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
96 void SetLastModifiedTime(LastModifiedTimeT&& value) {
97 m_lastModifiedTimeHasBeenSet = true;
98 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
99 }
100 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
101 LanguageModel& WithLastModifiedTime(LastModifiedTimeT&& value) {
102 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
103 return *this;
104 }
106
108
118 inline CLMLanguageCode GetLanguageCode() const { return m_languageCode; }
119 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
120 inline void SetLanguageCode(CLMLanguageCode value) {
121 m_languageCodeHasBeenSet = true;
122 m_languageCode = value;
123 }
125 SetLanguageCode(value);
126 return *this;
127 }
129
131
135 inline BaseModelName GetBaseModelName() const { return m_baseModelName; }
136 inline bool BaseModelNameHasBeenSet() const { return m_baseModelNameHasBeenSet; }
137 inline void SetBaseModelName(BaseModelName value) {
138 m_baseModelNameHasBeenSet = true;
139 m_baseModelName = value;
140 }
142 SetBaseModelName(value);
143 return *this;
144 }
146
148
152 inline ModelStatus GetModelStatus() const { return m_modelStatus; }
153 inline bool ModelStatusHasBeenSet() const { return m_modelStatusHasBeenSet; }
154 inline void SetModelStatus(ModelStatus value) {
155 m_modelStatusHasBeenSet = true;
156 m_modelStatus = value;
157 }
159 SetModelStatus(value);
160 return *this;
161 }
163
165
174 inline bool GetUpgradeAvailability() const { return m_upgradeAvailability; }
175 inline bool UpgradeAvailabilityHasBeenSet() const { return m_upgradeAvailabilityHasBeenSet; }
176 inline void SetUpgradeAvailability(bool value) {
177 m_upgradeAvailabilityHasBeenSet = true;
178 m_upgradeAvailability = value;
179 }
182 return *this;
183 }
185
187
194 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
195 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
196 template <typename FailureReasonT = Aws::String>
197 void SetFailureReason(FailureReasonT&& value) {
198 m_failureReasonHasBeenSet = true;
199 m_failureReason = std::forward<FailureReasonT>(value);
200 }
201 template <typename FailureReasonT = Aws::String>
202 LanguageModel& WithFailureReason(FailureReasonT&& value) {
203 SetFailureReason(std::forward<FailureReasonT>(value));
204 return *this;
205 }
207
209
214 inline const InputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
215 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
216 template <typename InputDataConfigT = InputDataConfig>
217 void SetInputDataConfig(InputDataConfigT&& value) {
218 m_inputDataConfigHasBeenSet = true;
219 m_inputDataConfig = std::forward<InputDataConfigT>(value);
220 }
221 template <typename InputDataConfigT = InputDataConfig>
222 LanguageModel& WithInputDataConfig(InputDataConfigT&& value) {
223 SetInputDataConfig(std::forward<InputDataConfigT>(value));
224 return *this;
225 }
227 private:
228 Aws::String m_modelName;
229
230 Aws::Utils::DateTime m_createTime{};
231
232 Aws::Utils::DateTime m_lastModifiedTime{};
233
235
236 BaseModelName m_baseModelName{BaseModelName::NOT_SET};
237
238 ModelStatus m_modelStatus{ModelStatus::NOT_SET};
239
240 bool m_upgradeAvailability{false};
241
242 Aws::String m_failureReason;
243
244 InputDataConfig m_inputDataConfig;
245 bool m_modelNameHasBeenSet = false;
246 bool m_createTimeHasBeenSet = false;
247 bool m_lastModifiedTimeHasBeenSet = false;
248 bool m_languageCodeHasBeenSet = false;
249 bool m_baseModelNameHasBeenSet = false;
250 bool m_modelStatusHasBeenSet = false;
251 bool m_upgradeAvailabilityHasBeenSet = false;
252 bool m_failureReasonHasBeenSet = false;
253 bool m_inputDataConfigHasBeenSet = false;
254};
255
256} // namespace Model
257} // namespace TranscribeService
258} // 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