7#include <aws/core/utils/Waiter.h>
8#include <aws/core/utils/memory/AWSMemory.h>
9#include <aws/transcribe/TranscribeServiceClient.h>
10#include <aws/transcribe/model/CallAnalyticsJobStatus.h>
11#include <aws/transcribe/model/DescribeLanguageModelRequest.h>
12#include <aws/transcribe/model/DescribeLanguageModelResult.h>
13#include <aws/transcribe/model/GetCallAnalyticsJobRequest.h>
14#include <aws/transcribe/model/GetCallAnalyticsJobResult.h>
15#include <aws/transcribe/model/GetMedicalScribeJobRequest.h>
16#include <aws/transcribe/model/GetMedicalScribeJobResult.h>
17#include <aws/transcribe/model/GetMedicalTranscriptionJobRequest.h>
18#include <aws/transcribe/model/GetMedicalTranscriptionJobResult.h>
19#include <aws/transcribe/model/GetMedicalVocabularyRequest.h>
20#include <aws/transcribe/model/GetMedicalVocabularyResult.h>
21#include <aws/transcribe/model/GetTranscriptionJobRequest.h>
22#include <aws/transcribe/model/GetTranscriptionJobResult.h>
23#include <aws/transcribe/model/GetVocabularyRequest.h>
24#include <aws/transcribe/model/GetVocabularyResult.h>
25#include <aws/transcribe/model/MedicalScribeJobStatus.h>
26#include <aws/transcribe/model/ModelStatus.h>
27#include <aws/transcribe/model/TranscriptionJobStatus.h>
28#include <aws/transcribe/model/VocabularyState.h>
33namespace TranscribeService {
35template <
typename DerivedClient = TranscribeServiceClient>
44 "LanguageModelCompletedWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"COMPLETED"),
51 "LanguageModelCompletedWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"FAILED"),
58 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->DescribeLanguageModel(req); };
60 return waiter.
Wait(request);
69 "CallAnalyticsJobCompletedWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"COMPLETED"),
74 result.GetCallAnalyticsJob().GetCallAnalyticsJobStatus()) == expected.get<
Aws::String>();
77 "CallAnalyticsJobCompletedWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"FAILED"),
82 result.GetCallAnalyticsJob().GetCallAnalyticsJobStatus()) == expected.get<
Aws::String>();
85 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetCallAnalyticsJob(req); };
87 return waiter.
Wait(request);
96 "MedicalScribeJobCompletedWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"COMPLETED"),
101 result.GetMedicalScribeJob().GetMedicalScribeJobStatus()) == expected.get<
Aws::String>();
104 "MedicalScribeJobCompletedWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"FAILED"),
107 const auto& result = outcome.
GetResult();
109 result.GetMedicalScribeJob().GetMedicalScribeJobStatus()) == expected.get<
Aws::String>();
112 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetMedicalScribeJob(req); };
114 return waiter.
Wait(request);
123 "MedicalTranscriptionJobCompletedWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"COMPLETED"),
126 const auto& result = outcome.
GetResult();
128 result.GetMedicalTranscriptionJob().GetTranscriptionJobStatus()) == expected.get<
Aws::String>();
131 "MedicalTranscriptionJobCompletedWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"FAILED"),
134 const auto& result = outcome.
GetResult();
136 result.GetMedicalTranscriptionJob().GetTranscriptionJobStatus()) == expected.get<
Aws::String>();
139 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetMedicalTranscriptionJob(req); };
141 return waiter.
Wait(request);
150 "MedicalVocabularyReadyWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"READY"),
153 const auto& result = outcome.
GetResult();
157 "MedicalVocabularyReadyWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"FAILED"),
160 const auto& result = outcome.
GetResult();
164 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetMedicalVocabulary(req); };
166 return waiter.
Wait(request);
175 "TranscriptionJobCompletedWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"COMPLETED"),
178 const auto& result = outcome.
GetResult();
180 result.GetTranscriptionJob().GetTranscriptionJobStatus()) == expected.get<
Aws::String>();
183 "TranscriptionJobCompletedWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"FAILED"),
186 const auto& result = outcome.
GetResult();
188 result.GetTranscriptionJob().GetTranscriptionJobStatus()) == expected.get<
Aws::String>();
191 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetTranscriptionJob(req); };
193 return waiter.
Wait(request);
201 "VocabularyReadyWaiter", Aws::Utils::WaiterState::SUCCESS,
Aws::String(
"READY"),
204 const auto& result = outcome.
GetResult();
208 "VocabularyReadyWaiter", Aws::Utils::WaiterState::FAILURE,
Aws::String(
"FAILED"),
211 const auto& result = outcome.
GetResult();
215 auto operation = [
this](
const RequestT& req) {
return static_cast<DerivedClient*
>(
this)->GetVocabulary(req); };
217 return waiter.
Wait(request);
Aws::Utils::WaiterOutcome< Model::GetMedicalVocabularyOutcome > WaitUntilMedicalVocabularyReady(const Model::GetMedicalVocabularyRequest &request)
Aws::Utils::WaiterOutcome< Model::DescribeLanguageModelOutcome > WaitUntilLanguageModelCompleted(const Model::DescribeLanguageModelRequest &request)
Aws::Utils::WaiterOutcome< Model::GetTranscriptionJobOutcome > WaitUntilTranscriptionJobCompleted(const Model::GetTranscriptionJobRequest &request)
Aws::Utils::WaiterOutcome< Model::GetMedicalTranscriptionJobOutcome > WaitUntilMedicalTranscriptionJobCompleted(const Model::GetMedicalTranscriptionJobRequest &request)
Aws::Utils::WaiterOutcome< Model::GetCallAnalyticsJobOutcome > WaitUntilCallAnalyticsJobCompleted(const Model::GetCallAnalyticsJobRequest &request)
Aws::Utils::WaiterOutcome< Model::GetMedicalScribeJobOutcome > WaitUntilMedicalScribeJobCompleted(const Model::GetMedicalScribeJobRequest &request)
Aws::Utils::WaiterOutcome< Model::GetVocabularyOutcome > WaitUntilVocabularyReady(const Model::GetVocabularyRequest &request)
const R & GetResult() const
WaiterOutcome< OutcomeT > Wait(const RequestT &request)
AWS_TRANSCRIBESERVICE_API Aws::String GetNameForCallAnalyticsJobStatus(CallAnalyticsJobStatus value)
AWS_TRANSCRIBESERVICE_API Aws::String GetNameForMedicalScribeJobStatus(MedicalScribeJobStatus value)
AWS_TRANSCRIBESERVICE_API Aws::String GetNameForModelStatus(ModelStatus value)
AWS_TRANSCRIBESERVICE_API Aws::String GetNameForTranscriptionJobStatus(TranscriptionJobStatus value)
AWS_TRANSCRIBESERVICE_API Aws::String GetNameForVocabularyState(VocabularyState value)
Aws::Utils::Outcome< GetCallAnalyticsJobResult, TranscribeServiceError > GetCallAnalyticsJobOutcome
Aws::Utils::Outcome< GetVocabularyResult, TranscribeServiceError > GetVocabularyOutcome
Aws::Utils::Outcome< GetMedicalTranscriptionJobResult, TranscribeServiceError > GetMedicalTranscriptionJobOutcome
Aws::Utils::Outcome< DescribeLanguageModelResult, TranscribeServiceError > DescribeLanguageModelOutcome
Aws::Utils::Outcome< GetMedicalVocabularyResult, TranscribeServiceError > GetMedicalVocabularyOutcome
Aws::Utils::Outcome< GetTranscriptionJobResult, TranscribeServiceError > GetTranscriptionJobOutcome
Aws::Utils::Outcome< GetMedicalScribeJobResult, TranscribeServiceError > GetMedicalScribeJobOutcome
Crt::Variant< int, bool, Aws::String > ExpectedValue
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
UniquePtr< T > MakeUnique(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector