This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-transcribe/source/model/GetMedicalVocabularyResult.cpp

75 lines
1.8 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/transcribe/model/GetMedicalVocabularyResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::TranscribeService::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetMedicalVocabularyResult::GetMedicalVocabularyResult() :
m_languageCode(LanguageCode::NOT_SET),
m_vocabularyState(VocabularyState::NOT_SET)
{
}
GetMedicalVocabularyResult::GetMedicalVocabularyResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
m_languageCode(LanguageCode::NOT_SET),
m_vocabularyState(VocabularyState::NOT_SET)
{
*this = result;
}
GetMedicalVocabularyResult& GetMedicalVocabularyResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("VocabularyName"))
{
m_vocabularyName = jsonValue.GetString("VocabularyName");
}
if(jsonValue.ValueExists("LanguageCode"))
{
m_languageCode = LanguageCodeMapper::GetLanguageCodeForName(jsonValue.GetString("LanguageCode"));
}
if(jsonValue.ValueExists("VocabularyState"))
{
m_vocabularyState = VocabularyStateMapper::GetVocabularyStateForName(jsonValue.GetString("VocabularyState"));
}
if(jsonValue.ValueExists("LastModifiedTime"))
{
m_lastModifiedTime = jsonValue.GetDouble("LastModifiedTime");
}
if(jsonValue.ValueExists("FailureReason"))
{
m_failureReason = jsonValue.GetString("FailureReason");
}
if(jsonValue.ValueExists("DownloadUri"))
{
m_downloadUri = jsonValue.GetString("DownloadUri");
}
return *this;
}