feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,76 @@
add_project(aws-cpp-sdk-comprehendmedical "C++ SDK for the AWS comprehendmedical service" aws-cpp-sdk-core)
file(GLOB AWS_COMPREHENDMEDICAL_HEADERS
"include/aws/comprehendmedical/*.h"
)
file(GLOB AWS_COMPREHENDMEDICAL_MODEL_HEADERS
"include/aws/comprehendmedical/model/*.h"
)
file(GLOB AWS_COMPREHENDMEDICAL_SOURCE
"source/*.cpp"
)
file(GLOB AWS_COMPREHENDMEDICAL_MODEL_SOURCE
"source/model/*.cpp"
)
file(GLOB COMPREHENDMEDICAL_UNIFIED_HEADERS
${AWS_COMPREHENDMEDICAL_HEADERS}
${AWS_COMPREHENDMEDICAL_MODEL_HEADERS}
)
file(GLOB COMPREHENDMEDICAL_UNITY_SRC
${AWS_COMPREHENDMEDICAL_SOURCE}
${AWS_COMPREHENDMEDICAL_MODEL_SOURCE}
)
if(ENABLE_UNITY_BUILD)
enable_unity_build("COMPREHENDMEDICAL" COMPREHENDMEDICAL_UNITY_SRC)
endif()
file(GLOB COMPREHENDMEDICAL_SRC
${COMPREHENDMEDICAL_UNIFIED_HEADERS}
${COMPREHENDMEDICAL_UNITY_SRC}
)
if(WIN32)
#if we are compiling for visual studio, create a sane directory tree.
if(MSVC)
source_group("Header Files\\aws\\comprehendmedical" FILES ${AWS_COMPREHENDMEDICAL_HEADERS})
source_group("Header Files\\aws\\comprehendmedical\\model" FILES ${AWS_COMPREHENDMEDICAL_MODEL_HEADERS})
source_group("Source Files" FILES ${AWS_COMPREHENDMEDICAL_SOURCE})
source_group("Source Files\\model" FILES ${AWS_COMPREHENDMEDICAL_MODEL_SOURCE})
endif(MSVC)
endif()
set(COMPREHENDMEDICAL_INCLUDES
"${CMAKE_CURRENT_SOURCE_DIR}/include/"
)
add_library(${PROJECT_NAME} ${COMPREHENDMEDICAL_SRC})
add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
set_compiler_flags(${PROJECT_NAME})
set_compiler_warnings(${PROJECT_NAME})
if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS)
target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_COMPREHENDMEDICAL_EXPORTS")
endif()
target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS})
setup_install()
install (FILES ${AWS_COMPREHENDMEDICAL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/comprehendmedical)
install (FILES ${AWS_COMPREHENDMEDICAL_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/comprehendmedical/model)
do_packaging()

View File

@@ -0,0 +1,845 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalErrors.h>
#include <aws/core/client/AWSError.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/comprehendmedical/model/DescribeEntitiesDetectionV2JobResult.h>
#include <aws/comprehendmedical/model/DescribeICD10CMInferenceJobResult.h>
#include <aws/comprehendmedical/model/DescribePHIDetectionJobResult.h>
#include <aws/comprehendmedical/model/DescribeRxNormInferenceJobResult.h>
#include <aws/comprehendmedical/model/DetectEntitiesV2Result.h>
#include <aws/comprehendmedical/model/DetectPHIResult.h>
#include <aws/comprehendmedical/model/InferICD10CMResult.h>
#include <aws/comprehendmedical/model/InferRxNormResult.h>
#include <aws/comprehendmedical/model/ListEntitiesDetectionV2JobsResult.h>
#include <aws/comprehendmedical/model/ListICD10CMInferenceJobsResult.h>
#include <aws/comprehendmedical/model/ListPHIDetectionJobsResult.h>
#include <aws/comprehendmedical/model/ListRxNormInferenceJobsResult.h>
#include <aws/comprehendmedical/model/StartEntitiesDetectionV2JobResult.h>
#include <aws/comprehendmedical/model/StartICD10CMInferenceJobResult.h>
#include <aws/comprehendmedical/model/StartPHIDetectionJobResult.h>
#include <aws/comprehendmedical/model/StartRxNormInferenceJobResult.h>
#include <aws/comprehendmedical/model/StopEntitiesDetectionV2JobResult.h>
#include <aws/comprehendmedical/model/StopICD10CMInferenceJobResult.h>
#include <aws/comprehendmedical/model/StopPHIDetectionJobResult.h>
#include <aws/comprehendmedical/model/StopRxNormInferenceJobResult.h>
#include <aws/core/client/AsyncCallerContext.h>
#include <aws/core/http/HttpTypes.h>
#include <future>
#include <functional>
namespace Aws
{
namespace Http
{
class HttpClient;
class HttpClientFactory;
} // namespace Http
namespace Utils
{
template< typename R, typename E> class Outcome;
namespace Threading
{
class Executor;
} // namespace Threading
} // namespace Utils
namespace Auth
{
class AWSCredentials;
class AWSCredentialsProvider;
} // namespace Auth
namespace Client
{
class RetryStrategy;
} // namespace Client
namespace ComprehendMedical
{
namespace Model
{
class DescribeEntitiesDetectionV2JobRequest;
class DescribeICD10CMInferenceJobRequest;
class DescribePHIDetectionJobRequest;
class DescribeRxNormInferenceJobRequest;
class DetectEntitiesV2Request;
class DetectPHIRequest;
class InferICD10CMRequest;
class InferRxNormRequest;
class ListEntitiesDetectionV2JobsRequest;
class ListICD10CMInferenceJobsRequest;
class ListPHIDetectionJobsRequest;
class ListRxNormInferenceJobsRequest;
class StartEntitiesDetectionV2JobRequest;
class StartICD10CMInferenceJobRequest;
class StartPHIDetectionJobRequest;
class StartRxNormInferenceJobRequest;
class StopEntitiesDetectionV2JobRequest;
class StopICD10CMInferenceJobRequest;
class StopPHIDetectionJobRequest;
class StopRxNormInferenceJobRequest;
typedef Aws::Utils::Outcome<DescribeEntitiesDetectionV2JobResult, ComprehendMedicalError> DescribeEntitiesDetectionV2JobOutcome;
typedef Aws::Utils::Outcome<DescribeICD10CMInferenceJobResult, ComprehendMedicalError> DescribeICD10CMInferenceJobOutcome;
typedef Aws::Utils::Outcome<DescribePHIDetectionJobResult, ComprehendMedicalError> DescribePHIDetectionJobOutcome;
typedef Aws::Utils::Outcome<DescribeRxNormInferenceJobResult, ComprehendMedicalError> DescribeRxNormInferenceJobOutcome;
typedef Aws::Utils::Outcome<DetectEntitiesV2Result, ComprehendMedicalError> DetectEntitiesV2Outcome;
typedef Aws::Utils::Outcome<DetectPHIResult, ComprehendMedicalError> DetectPHIOutcome;
typedef Aws::Utils::Outcome<InferICD10CMResult, ComprehendMedicalError> InferICD10CMOutcome;
typedef Aws::Utils::Outcome<InferRxNormResult, ComprehendMedicalError> InferRxNormOutcome;
typedef Aws::Utils::Outcome<ListEntitiesDetectionV2JobsResult, ComprehendMedicalError> ListEntitiesDetectionV2JobsOutcome;
typedef Aws::Utils::Outcome<ListICD10CMInferenceJobsResult, ComprehendMedicalError> ListICD10CMInferenceJobsOutcome;
typedef Aws::Utils::Outcome<ListPHIDetectionJobsResult, ComprehendMedicalError> ListPHIDetectionJobsOutcome;
typedef Aws::Utils::Outcome<ListRxNormInferenceJobsResult, ComprehendMedicalError> ListRxNormInferenceJobsOutcome;
typedef Aws::Utils::Outcome<StartEntitiesDetectionV2JobResult, ComprehendMedicalError> StartEntitiesDetectionV2JobOutcome;
typedef Aws::Utils::Outcome<StartICD10CMInferenceJobResult, ComprehendMedicalError> StartICD10CMInferenceJobOutcome;
typedef Aws::Utils::Outcome<StartPHIDetectionJobResult, ComprehendMedicalError> StartPHIDetectionJobOutcome;
typedef Aws::Utils::Outcome<StartRxNormInferenceJobResult, ComprehendMedicalError> StartRxNormInferenceJobOutcome;
typedef Aws::Utils::Outcome<StopEntitiesDetectionV2JobResult, ComprehendMedicalError> StopEntitiesDetectionV2JobOutcome;
typedef Aws::Utils::Outcome<StopICD10CMInferenceJobResult, ComprehendMedicalError> StopICD10CMInferenceJobOutcome;
typedef Aws::Utils::Outcome<StopPHIDetectionJobResult, ComprehendMedicalError> StopPHIDetectionJobOutcome;
typedef Aws::Utils::Outcome<StopRxNormInferenceJobResult, ComprehendMedicalError> StopRxNormInferenceJobOutcome;
typedef std::future<DescribeEntitiesDetectionV2JobOutcome> DescribeEntitiesDetectionV2JobOutcomeCallable;
typedef std::future<DescribeICD10CMInferenceJobOutcome> DescribeICD10CMInferenceJobOutcomeCallable;
typedef std::future<DescribePHIDetectionJobOutcome> DescribePHIDetectionJobOutcomeCallable;
typedef std::future<DescribeRxNormInferenceJobOutcome> DescribeRxNormInferenceJobOutcomeCallable;
typedef std::future<DetectEntitiesV2Outcome> DetectEntitiesV2OutcomeCallable;
typedef std::future<DetectPHIOutcome> DetectPHIOutcomeCallable;
typedef std::future<InferICD10CMOutcome> InferICD10CMOutcomeCallable;
typedef std::future<InferRxNormOutcome> InferRxNormOutcomeCallable;
typedef std::future<ListEntitiesDetectionV2JobsOutcome> ListEntitiesDetectionV2JobsOutcomeCallable;
typedef std::future<ListICD10CMInferenceJobsOutcome> ListICD10CMInferenceJobsOutcomeCallable;
typedef std::future<ListPHIDetectionJobsOutcome> ListPHIDetectionJobsOutcomeCallable;
typedef std::future<ListRxNormInferenceJobsOutcome> ListRxNormInferenceJobsOutcomeCallable;
typedef std::future<StartEntitiesDetectionV2JobOutcome> StartEntitiesDetectionV2JobOutcomeCallable;
typedef std::future<StartICD10CMInferenceJobOutcome> StartICD10CMInferenceJobOutcomeCallable;
typedef std::future<StartPHIDetectionJobOutcome> StartPHIDetectionJobOutcomeCallable;
typedef std::future<StartRxNormInferenceJobOutcome> StartRxNormInferenceJobOutcomeCallable;
typedef std::future<StopEntitiesDetectionV2JobOutcome> StopEntitiesDetectionV2JobOutcomeCallable;
typedef std::future<StopICD10CMInferenceJobOutcome> StopICD10CMInferenceJobOutcomeCallable;
typedef std::future<StopPHIDetectionJobOutcome> StopPHIDetectionJobOutcomeCallable;
typedef std::future<StopRxNormInferenceJobOutcome> StopRxNormInferenceJobOutcomeCallable;
} // namespace Model
class ComprehendMedicalClient;
typedef std::function<void(const ComprehendMedicalClient*, const Model::DescribeEntitiesDetectionV2JobRequest&, const Model::DescribeEntitiesDetectionV2JobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeEntitiesDetectionV2JobResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::DescribeICD10CMInferenceJobRequest&, const Model::DescribeICD10CMInferenceJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeICD10CMInferenceJobResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::DescribePHIDetectionJobRequest&, const Model::DescribePHIDetectionJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribePHIDetectionJobResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::DescribeRxNormInferenceJobRequest&, const Model::DescribeRxNormInferenceJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeRxNormInferenceJobResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::DetectEntitiesV2Request&, const Model::DetectEntitiesV2Outcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DetectEntitiesV2ResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::DetectPHIRequest&, const Model::DetectPHIOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DetectPHIResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::InferICD10CMRequest&, const Model::InferICD10CMOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > InferICD10CMResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::InferRxNormRequest&, const Model::InferRxNormOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > InferRxNormResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::ListEntitiesDetectionV2JobsRequest&, const Model::ListEntitiesDetectionV2JobsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListEntitiesDetectionV2JobsResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::ListICD10CMInferenceJobsRequest&, const Model::ListICD10CMInferenceJobsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListICD10CMInferenceJobsResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::ListPHIDetectionJobsRequest&, const Model::ListPHIDetectionJobsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListPHIDetectionJobsResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::ListRxNormInferenceJobsRequest&, const Model::ListRxNormInferenceJobsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListRxNormInferenceJobsResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::StartEntitiesDetectionV2JobRequest&, const Model::StartEntitiesDetectionV2JobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StartEntitiesDetectionV2JobResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::StartICD10CMInferenceJobRequest&, const Model::StartICD10CMInferenceJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StartICD10CMInferenceJobResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::StartPHIDetectionJobRequest&, const Model::StartPHIDetectionJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StartPHIDetectionJobResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::StartRxNormInferenceJobRequest&, const Model::StartRxNormInferenceJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StartRxNormInferenceJobResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::StopEntitiesDetectionV2JobRequest&, const Model::StopEntitiesDetectionV2JobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StopEntitiesDetectionV2JobResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::StopICD10CMInferenceJobRequest&, const Model::StopICD10CMInferenceJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StopICD10CMInferenceJobResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::StopPHIDetectionJobRequest&, const Model::StopPHIDetectionJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StopPHIDetectionJobResponseReceivedHandler;
typedef std::function<void(const ComprehendMedicalClient*, const Model::StopRxNormInferenceJobRequest&, const Model::StopRxNormInferenceJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StopRxNormInferenceJobResponseReceivedHandler;
/**
* <p> Amazon Comprehend Medical extracts structured information from unstructured
* clinical text. Use these actions to gain insight in your documents. </p>
*/
class AWS_COMPREHENDMEDICAL_API ComprehendMedicalClient : public Aws::Client::AWSJsonClient
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
/**
* Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
ComprehendMedicalClient(const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
ComprehendMedicalClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied,
* the default http client factory will be used
*/
ComprehendMedicalClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
virtual ~ComprehendMedicalClient();
/**
* <p>Gets the properties associated with a medical entities detection job. Use
* this operation to get the status of a detection job.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeEntitiesDetectionV2Job">AWS
* API Reference</a></p>
*/
virtual Model::DescribeEntitiesDetectionV2JobOutcome DescribeEntitiesDetectionV2Job(const Model::DescribeEntitiesDetectionV2JobRequest& request) const;
/**
* <p>Gets the properties associated with a medical entities detection job. Use
* this operation to get the status of a detection job.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeEntitiesDetectionV2Job">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeEntitiesDetectionV2JobOutcomeCallable DescribeEntitiesDetectionV2JobCallable(const Model::DescribeEntitiesDetectionV2JobRequest& request) const;
/**
* <p>Gets the properties associated with a medical entities detection job. Use
* this operation to get the status of a detection job.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeEntitiesDetectionV2Job">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeEntitiesDetectionV2JobAsync(const Model::DescribeEntitiesDetectionV2JobRequest& request, const DescribeEntitiesDetectionV2JobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Gets the properties associated with an InferICD10CM job. Use this operation
* to get the status of an inference job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeICD10CMInferenceJob">AWS
* API Reference</a></p>
*/
virtual Model::DescribeICD10CMInferenceJobOutcome DescribeICD10CMInferenceJob(const Model::DescribeICD10CMInferenceJobRequest& request) const;
/**
* <p>Gets the properties associated with an InferICD10CM job. Use this operation
* to get the status of an inference job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeICD10CMInferenceJob">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeICD10CMInferenceJobOutcomeCallable DescribeICD10CMInferenceJobCallable(const Model::DescribeICD10CMInferenceJobRequest& request) const;
/**
* <p>Gets the properties associated with an InferICD10CM job. Use this operation
* to get the status of an inference job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeICD10CMInferenceJob">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeICD10CMInferenceJobAsync(const Model::DescribeICD10CMInferenceJobRequest& request, const DescribeICD10CMInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Gets the properties associated with a protected health information (PHI)
* detection job. Use this operation to get the status of a detection
* job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribePHIDetectionJob">AWS
* API Reference</a></p>
*/
virtual Model::DescribePHIDetectionJobOutcome DescribePHIDetectionJob(const Model::DescribePHIDetectionJobRequest& request) const;
/**
* <p>Gets the properties associated with a protected health information (PHI)
* detection job. Use this operation to get the status of a detection
* job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribePHIDetectionJob">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribePHIDetectionJobOutcomeCallable DescribePHIDetectionJobCallable(const Model::DescribePHIDetectionJobRequest& request) const;
/**
* <p>Gets the properties associated with a protected health information (PHI)
* detection job. Use this operation to get the status of a detection
* job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribePHIDetectionJob">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribePHIDetectionJobAsync(const Model::DescribePHIDetectionJobRequest& request, const DescribePHIDetectionJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Gets the properties associated with an InferRxNorm job. Use this operation to
* get the status of an inference job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeRxNormInferenceJob">AWS
* API Reference</a></p>
*/
virtual Model::DescribeRxNormInferenceJobOutcome DescribeRxNormInferenceJob(const Model::DescribeRxNormInferenceJobRequest& request) const;
/**
* <p>Gets the properties associated with an InferRxNorm job. Use this operation to
* get the status of an inference job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeRxNormInferenceJob">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeRxNormInferenceJobOutcomeCallable DescribeRxNormInferenceJobCallable(const Model::DescribeRxNormInferenceJobRequest& request) const;
/**
* <p>Gets the properties associated with an InferRxNorm job. Use this operation to
* get the status of an inference job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeRxNormInferenceJob">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeRxNormInferenceJobAsync(const Model::DescribeRxNormInferenceJobRequest& request, const DescribeRxNormInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Inspects the clinical text for a variety of medical entities and returns
* specific information about them such as entity category, location, and
* confidence score on that information. Amazon Comprehend Medical only detects
* medical entities in English language texts.</p> <p>The
* <code>DetectEntitiesV2</code> operation replaces the <a>DetectEntities</a>
* operation. This new action uses a different model for determining the entities
* in your medical text and changes the way that some entities are returned in the
* output. You should use the <code>DetectEntitiesV2</code> operation in all new
* applications.</p> <p>The <code>DetectEntitiesV2</code> operation returns the
* <code>Acuity</code> and <code>Direction</code> entities as attributes instead of
* types. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectEntitiesV2">AWS
* API Reference</a></p>
*/
virtual Model::DetectEntitiesV2Outcome DetectEntitiesV2(const Model::DetectEntitiesV2Request& request) const;
/**
* <p>Inspects the clinical text for a variety of medical entities and returns
* specific information about them such as entity category, location, and
* confidence score on that information. Amazon Comprehend Medical only detects
* medical entities in English language texts.</p> <p>The
* <code>DetectEntitiesV2</code> operation replaces the <a>DetectEntities</a>
* operation. This new action uses a different model for determining the entities
* in your medical text and changes the way that some entities are returned in the
* output. You should use the <code>DetectEntitiesV2</code> operation in all new
* applications.</p> <p>The <code>DetectEntitiesV2</code> operation returns the
* <code>Acuity</code> and <code>Direction</code> entities as attributes instead of
* types. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectEntitiesV2">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DetectEntitiesV2OutcomeCallable DetectEntitiesV2Callable(const Model::DetectEntitiesV2Request& request) const;
/**
* <p>Inspects the clinical text for a variety of medical entities and returns
* specific information about them such as entity category, location, and
* confidence score on that information. Amazon Comprehend Medical only detects
* medical entities in English language texts.</p> <p>The
* <code>DetectEntitiesV2</code> operation replaces the <a>DetectEntities</a>
* operation. This new action uses a different model for determining the entities
* in your medical text and changes the way that some entities are returned in the
* output. You should use the <code>DetectEntitiesV2</code> operation in all new
* applications.</p> <p>The <code>DetectEntitiesV2</code> operation returns the
* <code>Acuity</code> and <code>Direction</code> entities as attributes instead of
* types. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectEntitiesV2">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DetectEntitiesV2Async(const Model::DetectEntitiesV2Request& request, const DetectEntitiesV2ResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p> Inspects the clinical text for protected health information (PHI) entities
* and returns the entity category, location, and confidence score for each entity.
* Amazon Comprehend Medical only detects entities in English language
* texts.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectPHI">AWS
* API Reference</a></p>
*/
virtual Model::DetectPHIOutcome DetectPHI(const Model::DetectPHIRequest& request) const;
/**
* <p> Inspects the clinical text for protected health information (PHI) entities
* and returns the entity category, location, and confidence score for each entity.
* Amazon Comprehend Medical only detects entities in English language
* texts.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectPHI">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DetectPHIOutcomeCallable DetectPHICallable(const Model::DetectPHIRequest& request) const;
/**
* <p> Inspects the clinical text for protected health information (PHI) entities
* and returns the entity category, location, and confidence score for each entity.
* Amazon Comprehend Medical only detects entities in English language
* texts.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectPHI">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DetectPHIAsync(const Model::DetectPHIRequest& request, const DetectPHIResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>InferICD10CM detects medical conditions as entities listed in a patient
* record and links those entities to normalized concept identifiers in the
* ICD-10-CM knowledge base from the Centers for Disease Control. Amazon Comprehend
* Medical only detects medical entities in English language texts.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/InferICD10CM">AWS
* API Reference</a></p>
*/
virtual Model::InferICD10CMOutcome InferICD10CM(const Model::InferICD10CMRequest& request) const;
/**
* <p>InferICD10CM detects medical conditions as entities listed in a patient
* record and links those entities to normalized concept identifiers in the
* ICD-10-CM knowledge base from the Centers for Disease Control. Amazon Comprehend
* Medical only detects medical entities in English language texts.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/InferICD10CM">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::InferICD10CMOutcomeCallable InferICD10CMCallable(const Model::InferICD10CMRequest& request) const;
/**
* <p>InferICD10CM detects medical conditions as entities listed in a patient
* record and links those entities to normalized concept identifiers in the
* ICD-10-CM knowledge base from the Centers for Disease Control. Amazon Comprehend
* Medical only detects medical entities in English language texts.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/InferICD10CM">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void InferICD10CMAsync(const Model::InferICD10CMRequest& request, const InferICD10CMResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>InferRxNorm detects medications as entities listed in a patient record and
* links to the normalized concept identifiers in the RxNorm database from the
* National Library of Medicine. Amazon Comprehend Medical only detects medical
* entities in English language texts.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/InferRxNorm">AWS
* API Reference</a></p>
*/
virtual Model::InferRxNormOutcome InferRxNorm(const Model::InferRxNormRequest& request) const;
/**
* <p>InferRxNorm detects medications as entities listed in a patient record and
* links to the normalized concept identifiers in the RxNorm database from the
* National Library of Medicine. Amazon Comprehend Medical only detects medical
* entities in English language texts.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/InferRxNorm">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::InferRxNormOutcomeCallable InferRxNormCallable(const Model::InferRxNormRequest& request) const;
/**
* <p>InferRxNorm detects medications as entities listed in a patient record and
* links to the normalized concept identifiers in the RxNorm database from the
* National Library of Medicine. Amazon Comprehend Medical only detects medical
* entities in English language texts.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/InferRxNorm">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void InferRxNormAsync(const Model::InferRxNormRequest& request, const InferRxNormResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Gets a list of medical entity detection jobs that you have
* submitted.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListEntitiesDetectionV2Jobs">AWS
* API Reference</a></p>
*/
virtual Model::ListEntitiesDetectionV2JobsOutcome ListEntitiesDetectionV2Jobs(const Model::ListEntitiesDetectionV2JobsRequest& request) const;
/**
* <p>Gets a list of medical entity detection jobs that you have
* submitted.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListEntitiesDetectionV2Jobs">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListEntitiesDetectionV2JobsOutcomeCallable ListEntitiesDetectionV2JobsCallable(const Model::ListEntitiesDetectionV2JobsRequest& request) const;
/**
* <p>Gets a list of medical entity detection jobs that you have
* submitted.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListEntitiesDetectionV2Jobs">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListEntitiesDetectionV2JobsAsync(const Model::ListEntitiesDetectionV2JobsRequest& request, const ListEntitiesDetectionV2JobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Gets a list of InferICD10CM jobs that you have submitted.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListICD10CMInferenceJobs">AWS
* API Reference</a></p>
*/
virtual Model::ListICD10CMInferenceJobsOutcome ListICD10CMInferenceJobs(const Model::ListICD10CMInferenceJobsRequest& request) const;
/**
* <p>Gets a list of InferICD10CM jobs that you have submitted.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListICD10CMInferenceJobs">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListICD10CMInferenceJobsOutcomeCallable ListICD10CMInferenceJobsCallable(const Model::ListICD10CMInferenceJobsRequest& request) const;
/**
* <p>Gets a list of InferICD10CM jobs that you have submitted.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListICD10CMInferenceJobs">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListICD10CMInferenceJobsAsync(const Model::ListICD10CMInferenceJobsRequest& request, const ListICD10CMInferenceJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Gets a list of protected health information (PHI) detection jobs that you
* have submitted.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListPHIDetectionJobs">AWS
* API Reference</a></p>
*/
virtual Model::ListPHIDetectionJobsOutcome ListPHIDetectionJobs(const Model::ListPHIDetectionJobsRequest& request) const;
/**
* <p>Gets a list of protected health information (PHI) detection jobs that you
* have submitted.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListPHIDetectionJobs">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListPHIDetectionJobsOutcomeCallable ListPHIDetectionJobsCallable(const Model::ListPHIDetectionJobsRequest& request) const;
/**
* <p>Gets a list of protected health information (PHI) detection jobs that you
* have submitted.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListPHIDetectionJobs">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListPHIDetectionJobsAsync(const Model::ListPHIDetectionJobsRequest& request, const ListPHIDetectionJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Gets a list of InferRxNorm jobs that you have submitted.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListRxNormInferenceJobs">AWS
* API Reference</a></p>
*/
virtual Model::ListRxNormInferenceJobsOutcome ListRxNormInferenceJobs(const Model::ListRxNormInferenceJobsRequest& request) const;
/**
* <p>Gets a list of InferRxNorm jobs that you have submitted.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListRxNormInferenceJobs">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListRxNormInferenceJobsOutcomeCallable ListRxNormInferenceJobsCallable(const Model::ListRxNormInferenceJobsRequest& request) const;
/**
* <p>Gets a list of InferRxNorm jobs that you have submitted.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListRxNormInferenceJobs">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListRxNormInferenceJobsAsync(const Model::ListRxNormInferenceJobsRequest& request, const ListRxNormInferenceJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Starts an asynchronous medical entity detection job for a collection of
* documents. Use the <code>DescribeEntitiesDetectionV2Job</code> operation to
* track the status of a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartEntitiesDetectionV2Job">AWS
* API Reference</a></p>
*/
virtual Model::StartEntitiesDetectionV2JobOutcome StartEntitiesDetectionV2Job(const Model::StartEntitiesDetectionV2JobRequest& request) const;
/**
* <p>Starts an asynchronous medical entity detection job for a collection of
* documents. Use the <code>DescribeEntitiesDetectionV2Job</code> operation to
* track the status of a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartEntitiesDetectionV2Job">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::StartEntitiesDetectionV2JobOutcomeCallable StartEntitiesDetectionV2JobCallable(const Model::StartEntitiesDetectionV2JobRequest& request) const;
/**
* <p>Starts an asynchronous medical entity detection job for a collection of
* documents. Use the <code>DescribeEntitiesDetectionV2Job</code> operation to
* track the status of a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartEntitiesDetectionV2Job">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void StartEntitiesDetectionV2JobAsync(const Model::StartEntitiesDetectionV2JobRequest& request, const StartEntitiesDetectionV2JobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Starts an asynchronous job to detect medical conditions and link them to the
* ICD-10-CM ontology. Use the <code>DescribeICD10CMInferenceJob</code> operation
* to track the status of a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartICD10CMInferenceJob">AWS
* API Reference</a></p>
*/
virtual Model::StartICD10CMInferenceJobOutcome StartICD10CMInferenceJob(const Model::StartICD10CMInferenceJobRequest& request) const;
/**
* <p>Starts an asynchronous job to detect medical conditions and link them to the
* ICD-10-CM ontology. Use the <code>DescribeICD10CMInferenceJob</code> operation
* to track the status of a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartICD10CMInferenceJob">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::StartICD10CMInferenceJobOutcomeCallable StartICD10CMInferenceJobCallable(const Model::StartICD10CMInferenceJobRequest& request) const;
/**
* <p>Starts an asynchronous job to detect medical conditions and link them to the
* ICD-10-CM ontology. Use the <code>DescribeICD10CMInferenceJob</code> operation
* to track the status of a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartICD10CMInferenceJob">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void StartICD10CMInferenceJobAsync(const Model::StartICD10CMInferenceJobRequest& request, const StartICD10CMInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Starts an asynchronous job to detect protected health information (PHI). Use
* the <code>DescribePHIDetectionJob</code> operation to track the status of a
* job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartPHIDetectionJob">AWS
* API Reference</a></p>
*/
virtual Model::StartPHIDetectionJobOutcome StartPHIDetectionJob(const Model::StartPHIDetectionJobRequest& request) const;
/**
* <p>Starts an asynchronous job to detect protected health information (PHI). Use
* the <code>DescribePHIDetectionJob</code> operation to track the status of a
* job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartPHIDetectionJob">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::StartPHIDetectionJobOutcomeCallable StartPHIDetectionJobCallable(const Model::StartPHIDetectionJobRequest& request) const;
/**
* <p>Starts an asynchronous job to detect protected health information (PHI). Use
* the <code>DescribePHIDetectionJob</code> operation to track the status of a
* job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartPHIDetectionJob">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void StartPHIDetectionJobAsync(const Model::StartPHIDetectionJobRequest& request, const StartPHIDetectionJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Starts an asynchronous job to detect medication entities and link them to the
* RxNorm ontology. Use the <code>DescribeRxNormInferenceJob</code> operation to
* track the status of a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartRxNormInferenceJob">AWS
* API Reference</a></p>
*/
virtual Model::StartRxNormInferenceJobOutcome StartRxNormInferenceJob(const Model::StartRxNormInferenceJobRequest& request) const;
/**
* <p>Starts an asynchronous job to detect medication entities and link them to the
* RxNorm ontology. Use the <code>DescribeRxNormInferenceJob</code> operation to
* track the status of a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartRxNormInferenceJob">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::StartRxNormInferenceJobOutcomeCallable StartRxNormInferenceJobCallable(const Model::StartRxNormInferenceJobRequest& request) const;
/**
* <p>Starts an asynchronous job to detect medication entities and link them to the
* RxNorm ontology. Use the <code>DescribeRxNormInferenceJob</code> operation to
* track the status of a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartRxNormInferenceJob">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void StartRxNormInferenceJobAsync(const Model::StartRxNormInferenceJobRequest& request, const StartRxNormInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Stops a medical entities detection job in progress.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopEntitiesDetectionV2Job">AWS
* API Reference</a></p>
*/
virtual Model::StopEntitiesDetectionV2JobOutcome StopEntitiesDetectionV2Job(const Model::StopEntitiesDetectionV2JobRequest& request) const;
/**
* <p>Stops a medical entities detection job in progress.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopEntitiesDetectionV2Job">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::StopEntitiesDetectionV2JobOutcomeCallable StopEntitiesDetectionV2JobCallable(const Model::StopEntitiesDetectionV2JobRequest& request) const;
/**
* <p>Stops a medical entities detection job in progress.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopEntitiesDetectionV2Job">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void StopEntitiesDetectionV2JobAsync(const Model::StopEntitiesDetectionV2JobRequest& request, const StopEntitiesDetectionV2JobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Stops an InferICD10CM inference job in progress.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopICD10CMInferenceJob">AWS
* API Reference</a></p>
*/
virtual Model::StopICD10CMInferenceJobOutcome StopICD10CMInferenceJob(const Model::StopICD10CMInferenceJobRequest& request) const;
/**
* <p>Stops an InferICD10CM inference job in progress.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopICD10CMInferenceJob">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::StopICD10CMInferenceJobOutcomeCallable StopICD10CMInferenceJobCallable(const Model::StopICD10CMInferenceJobRequest& request) const;
/**
* <p>Stops an InferICD10CM inference job in progress.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopICD10CMInferenceJob">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void StopICD10CMInferenceJobAsync(const Model::StopICD10CMInferenceJobRequest& request, const StopICD10CMInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Stops a protected health information (PHI) detection job in
* progress.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopPHIDetectionJob">AWS
* API Reference</a></p>
*/
virtual Model::StopPHIDetectionJobOutcome StopPHIDetectionJob(const Model::StopPHIDetectionJobRequest& request) const;
/**
* <p>Stops a protected health information (PHI) detection job in
* progress.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopPHIDetectionJob">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::StopPHIDetectionJobOutcomeCallable StopPHIDetectionJobCallable(const Model::StopPHIDetectionJobRequest& request) const;
/**
* <p>Stops a protected health information (PHI) detection job in
* progress.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopPHIDetectionJob">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void StopPHIDetectionJobAsync(const Model::StopPHIDetectionJobRequest& request, const StopPHIDetectionJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Stops an InferRxNorm inference job in progress.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopRxNormInferenceJob">AWS
* API Reference</a></p>
*/
virtual Model::StopRxNormInferenceJobOutcome StopRxNormInferenceJob(const Model::StopRxNormInferenceJobRequest& request) const;
/**
* <p>Stops an InferRxNorm inference job in progress.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopRxNormInferenceJob">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::StopRxNormInferenceJobOutcomeCallable StopRxNormInferenceJobCallable(const Model::StopRxNormInferenceJobRequest& request) const;
/**
* <p>Stops an InferRxNorm inference job in progress.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopRxNormInferenceJob">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void StopRxNormInferenceJobAsync(const Model::StopRxNormInferenceJobRequest& request, const StopRxNormInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
void OverrideEndpoint(const Aws::String& endpoint);
private:
void init(const Aws::Client::ClientConfiguration& clientConfiguration);
void DescribeEntitiesDetectionV2JobAsyncHelper(const Model::DescribeEntitiesDetectionV2JobRequest& request, const DescribeEntitiesDetectionV2JobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeICD10CMInferenceJobAsyncHelper(const Model::DescribeICD10CMInferenceJobRequest& request, const DescribeICD10CMInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribePHIDetectionJobAsyncHelper(const Model::DescribePHIDetectionJobRequest& request, const DescribePHIDetectionJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeRxNormInferenceJobAsyncHelper(const Model::DescribeRxNormInferenceJobRequest& request, const DescribeRxNormInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DetectEntitiesV2AsyncHelper(const Model::DetectEntitiesV2Request& request, const DetectEntitiesV2ResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DetectPHIAsyncHelper(const Model::DetectPHIRequest& request, const DetectPHIResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void InferICD10CMAsyncHelper(const Model::InferICD10CMRequest& request, const InferICD10CMResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void InferRxNormAsyncHelper(const Model::InferRxNormRequest& request, const InferRxNormResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListEntitiesDetectionV2JobsAsyncHelper(const Model::ListEntitiesDetectionV2JobsRequest& request, const ListEntitiesDetectionV2JobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListICD10CMInferenceJobsAsyncHelper(const Model::ListICD10CMInferenceJobsRequest& request, const ListICD10CMInferenceJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListPHIDetectionJobsAsyncHelper(const Model::ListPHIDetectionJobsRequest& request, const ListPHIDetectionJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListRxNormInferenceJobsAsyncHelper(const Model::ListRxNormInferenceJobsRequest& request, const ListRxNormInferenceJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void StartEntitiesDetectionV2JobAsyncHelper(const Model::StartEntitiesDetectionV2JobRequest& request, const StartEntitiesDetectionV2JobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void StartICD10CMInferenceJobAsyncHelper(const Model::StartICD10CMInferenceJobRequest& request, const StartICD10CMInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void StartPHIDetectionJobAsyncHelper(const Model::StartPHIDetectionJobRequest& request, const StartPHIDetectionJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void StartRxNormInferenceJobAsyncHelper(const Model::StartRxNormInferenceJobRequest& request, const StartRxNormInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void StopEntitiesDetectionV2JobAsyncHelper(const Model::StopEntitiesDetectionV2JobRequest& request, const StopEntitiesDetectionV2JobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void StopICD10CMInferenceJobAsyncHelper(const Model::StopICD10CMInferenceJobRequest& request, const StopICD10CMInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void StopPHIDetectionJobAsyncHelper(const Model::StopPHIDetectionJobRequest& request, const StopPHIDetectionJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void StopRxNormInferenceJobAsyncHelper(const Model::StopRxNormInferenceJobRequest& request, const StopRxNormInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
Aws::String m_uri;
Aws::String m_configScheme;
std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
};
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,21 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace ComprehendMedicalEndpoint
{
AWS_COMPREHENDMEDICAL_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace ComprehendMedicalEndpoint
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_COMPREHENDMEDICAL_API ComprehendMedicalErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,76 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
namespace Aws
{
namespace ComprehendMedical
{
enum class ComprehendMedicalErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
INTERNAL_SERVER= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INVALID_ENCODING,
INVALID_REQUEST,
TEXT_SIZE_LIMIT_EXCEEDED,
TOO_MANY_REQUESTS
};
class AWS_COMPREHENDMEDICAL_API ComprehendMedicalError : public Aws::Client::AWSError<ComprehendMedicalErrors>
{
public:
ComprehendMedicalError() {}
ComprehendMedicalError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<ComprehendMedicalErrors>(rhs) {}
ComprehendMedicalError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<ComprehendMedicalErrors>(rhs) {}
ComprehendMedicalError(const Aws::Client::AWSError<ComprehendMedicalErrors>& rhs) : Aws::Client::AWSError<ComprehendMedicalErrors>(rhs) {}
ComprehendMedicalError(Aws::Client::AWSError<ComprehendMedicalErrors>&& rhs) : Aws::Client::AWSError<ComprehendMedicalErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace ComprehendMedicalErrorMapper
{
AWS_COMPREHENDMEDICAL_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace ComprehendMedical
{
class AWS_COMPREHENDMEDICAL_API ComprehendMedicalRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~ComprehendMedicalRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2018-10-30"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_COMPREHENDMEDICAL_EXPORTS
#define AWS_COMPREHENDMEDICAL_API __declspec(dllexport)
#else
#define AWS_COMPREHENDMEDICAL_API __declspec(dllimport)
#endif /* AWS_COMPREHENDMEDICAL_EXPORTS */
#else
#define AWS_COMPREHENDMEDICAL_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_COMPREHENDMEDICAL_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,399 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/model/EntitySubType.h>
#include <aws/comprehendmedical/model/RelationshipType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/EntityType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehendmedical/model/Trait.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p> An extracted segment of the text that is an attribute of an entity, or
* otherwise related to an entity, such as the dosage of a medication taken. It
* contains information about the attribute such as id, begin and end offset within
* the input text, and the segment of the input text. </p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/Attribute">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API Attribute
{
public:
Attribute();
Attribute(Aws::Utils::Json::JsonView jsonValue);
Attribute& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The type of attribute. </p>
*/
inline const EntitySubType& GetType() const{ return m_type; }
/**
* <p> The type of attribute. </p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p> The type of attribute. </p>
*/
inline void SetType(const EntitySubType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p> The type of attribute. </p>
*/
inline void SetType(EntitySubType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p> The type of attribute. </p>
*/
inline Attribute& WithType(const EntitySubType& value) { SetType(value); return *this;}
/**
* <p> The type of attribute. </p>
*/
inline Attribute& WithType(EntitySubType&& value) { SetType(std::move(value)); return *this;}
/**
* <p> The level of confidence that Amazon Comprehend Medical has that the segment
* of text is correctly recognized as an attribute. </p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p> The level of confidence that Amazon Comprehend Medical has that the segment
* of text is correctly recognized as an attribute. </p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p> The level of confidence that Amazon Comprehend Medical has that the segment
* of text is correctly recognized as an attribute. </p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p> The level of confidence that Amazon Comprehend Medical has that the segment
* of text is correctly recognized as an attribute. </p>
*/
inline Attribute& WithScore(double value) { SetScore(value); return *this;}
/**
* <p> The level of confidence that Amazon Comprehend Medical has that this
* attribute is correctly related to this entity. </p>
*/
inline double GetRelationshipScore() const{ return m_relationshipScore; }
/**
* <p> The level of confidence that Amazon Comprehend Medical has that this
* attribute is correctly related to this entity. </p>
*/
inline bool RelationshipScoreHasBeenSet() const { return m_relationshipScoreHasBeenSet; }
/**
* <p> The level of confidence that Amazon Comprehend Medical has that this
* attribute is correctly related to this entity. </p>
*/
inline void SetRelationshipScore(double value) { m_relationshipScoreHasBeenSet = true; m_relationshipScore = value; }
/**
* <p> The level of confidence that Amazon Comprehend Medical has that this
* attribute is correctly related to this entity. </p>
*/
inline Attribute& WithRelationshipScore(double value) { SetRelationshipScore(value); return *this;}
/**
* <p>The type of relationship between the entity and attribute. Type for the
* relationship is <code>OVERLAP</code>, indicating that the entity occurred at the
* same time as the <code>Date_Expression</code>. </p>
*/
inline const RelationshipType& GetRelationshipType() const{ return m_relationshipType; }
/**
* <p>The type of relationship between the entity and attribute. Type for the
* relationship is <code>OVERLAP</code>, indicating that the entity occurred at the
* same time as the <code>Date_Expression</code>. </p>
*/
inline bool RelationshipTypeHasBeenSet() const { return m_relationshipTypeHasBeenSet; }
/**
* <p>The type of relationship between the entity and attribute. Type for the
* relationship is <code>OVERLAP</code>, indicating that the entity occurred at the
* same time as the <code>Date_Expression</code>. </p>
*/
inline void SetRelationshipType(const RelationshipType& value) { m_relationshipTypeHasBeenSet = true; m_relationshipType = value; }
/**
* <p>The type of relationship between the entity and attribute. Type for the
* relationship is <code>OVERLAP</code>, indicating that the entity occurred at the
* same time as the <code>Date_Expression</code>. </p>
*/
inline void SetRelationshipType(RelationshipType&& value) { m_relationshipTypeHasBeenSet = true; m_relationshipType = std::move(value); }
/**
* <p>The type of relationship between the entity and attribute. Type for the
* relationship is <code>OVERLAP</code>, indicating that the entity occurred at the
* same time as the <code>Date_Expression</code>. </p>
*/
inline Attribute& WithRelationshipType(const RelationshipType& value) { SetRelationshipType(value); return *this;}
/**
* <p>The type of relationship between the entity and attribute. Type for the
* relationship is <code>OVERLAP</code>, indicating that the entity occurred at the
* same time as the <code>Date_Expression</code>. </p>
*/
inline Attribute& WithRelationshipType(RelationshipType&& value) { SetRelationshipType(std::move(value)); return *this;}
/**
* <p> The numeric identifier for this attribute. This is a monotonically
* increasing id unique within this response rather than a global unique
* identifier. </p>
*/
inline int GetId() const{ return m_id; }
/**
* <p> The numeric identifier for this attribute. This is a monotonically
* increasing id unique within this response rather than a global unique
* identifier. </p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p> The numeric identifier for this attribute. This is a monotonically
* increasing id unique within this response rather than a global unique
* identifier. </p>
*/
inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p> The numeric identifier for this attribute. This is a monotonically
* increasing id unique within this response rather than a global unique
* identifier. </p>
*/
inline Attribute& WithId(int value) { SetId(value); return *this;}
/**
* <p> The 0-based character offset in the input text that shows where the
* attribute begins. The offset returns the UTF-8 code point in the string. </p>
*/
inline int GetBeginOffset() const{ return m_beginOffset; }
/**
* <p> The 0-based character offset in the input text that shows where the
* attribute begins. The offset returns the UTF-8 code point in the string. </p>
*/
inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
/**
* <p> The 0-based character offset in the input text that shows where the
* attribute begins. The offset returns the UTF-8 code point in the string. </p>
*/
inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
/**
* <p> The 0-based character offset in the input text that shows where the
* attribute begins. The offset returns the UTF-8 code point in the string. </p>
*/
inline Attribute& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
/**
* <p> The 0-based character offset in the input text that shows where the
* attribute ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline int GetEndOffset() const{ return m_endOffset; }
/**
* <p> The 0-based character offset in the input text that shows where the
* attribute ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
/**
* <p> The 0-based character offset in the input text that shows where the
* attribute ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
/**
* <p> The 0-based character offset in the input text that shows where the
* attribute ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline Attribute& WithEndOffset(int value) { SetEndOffset(value); return *this;}
/**
* <p> The segment of input text extracted as this attribute.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p> The segment of input text extracted as this attribute.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p> The segment of input text extracted as this attribute.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p> The segment of input text extracted as this attribute.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p> The segment of input text extracted as this attribute.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p> The segment of input text extracted as this attribute.</p>
*/
inline Attribute& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p> The segment of input text extracted as this attribute.</p>
*/
inline Attribute& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p> The segment of input text extracted as this attribute.</p>
*/
inline Attribute& WithText(const char* value) { SetText(value); return *this;}
/**
* <p> The category of attribute. </p>
*/
inline const EntityType& GetCategory() const{ return m_category; }
/**
* <p> The category of attribute. </p>
*/
inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
/**
* <p> The category of attribute. </p>
*/
inline void SetCategory(const EntityType& value) { m_categoryHasBeenSet = true; m_category = value; }
/**
* <p> The category of attribute. </p>
*/
inline void SetCategory(EntityType&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
/**
* <p> The category of attribute. </p>
*/
inline Attribute& WithCategory(const EntityType& value) { SetCategory(value); return *this;}
/**
* <p> The category of attribute. </p>
*/
inline Attribute& WithCategory(EntityType&& value) { SetCategory(std::move(value)); return *this;}
/**
* <p> Contextual information for this attribute. </p>
*/
inline const Aws::Vector<Trait>& GetTraits() const{ return m_traits; }
/**
* <p> Contextual information for this attribute. </p>
*/
inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
/**
* <p> Contextual information for this attribute. </p>
*/
inline void SetTraits(const Aws::Vector<Trait>& value) { m_traitsHasBeenSet = true; m_traits = value; }
/**
* <p> Contextual information for this attribute. </p>
*/
inline void SetTraits(Aws::Vector<Trait>&& value) { m_traitsHasBeenSet = true; m_traits = std::move(value); }
/**
* <p> Contextual information for this attribute. </p>
*/
inline Attribute& WithTraits(const Aws::Vector<Trait>& value) { SetTraits(value); return *this;}
/**
* <p> Contextual information for this attribute. </p>
*/
inline Attribute& WithTraits(Aws::Vector<Trait>&& value) { SetTraits(std::move(value)); return *this;}
/**
* <p> Contextual information for this attribute. </p>
*/
inline Attribute& AddTraits(const Trait& value) { m_traitsHasBeenSet = true; m_traits.push_back(value); return *this; }
/**
* <p> Contextual information for this attribute. </p>
*/
inline Attribute& AddTraits(Trait&& value) { m_traitsHasBeenSet = true; m_traits.push_back(std::move(value)); return *this; }
private:
EntitySubType m_type;
bool m_typeHasBeenSet;
double m_score;
bool m_scoreHasBeenSet;
double m_relationshipScore;
bool m_relationshipScoreHasBeenSet;
RelationshipType m_relationshipType;
bool m_relationshipTypeHasBeenSet;
int m_id;
bool m_idHasBeenSet;
int m_beginOffset;
bool m_beginOffsetHasBeenSet;
int m_endOffset;
bool m_endOffsetHasBeenSet;
Aws::String m_text;
bool m_textHasBeenSet;
EntityType m_category;
bool m_categoryHasBeenSet;
Aws::Vector<Trait> m_traits;
bool m_traitsHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
enum class AttributeName
{
NOT_SET,
SIGN,
SYMPTOM,
DIAGNOSIS,
NEGATION
};
namespace AttributeNameMapper
{
AWS_COMPREHENDMEDICAL_API AttributeName GetAttributeNameForName(const Aws::String& name);
AWS_COMPREHENDMEDICAL_API Aws::String GetNameForAttributeName(AttributeName value);
} // namespace AttributeNameMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,223 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/JobStatus.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p>Provides information for filtering a list of detection jobs.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ComprehendMedicalAsyncJobFilter">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API ComprehendMedicalAsyncJobFilter
{
public:
ComprehendMedicalAsyncJobFilter();
ComprehendMedicalAsyncJobFilter(Aws::Utils::Json::JsonView jsonValue);
ComprehendMedicalAsyncJobFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Filters on the name of the job.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>Filters on the name of the job.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>Filters on the name of the job.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>Filters on the name of the job.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>Filters on the name of the job.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>Filters on the name of the job.</p>
*/
inline ComprehendMedicalAsyncJobFilter& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>Filters on the name of the job.</p>
*/
inline ComprehendMedicalAsyncJobFilter& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>Filters on the name of the job.</p>
*/
inline ComprehendMedicalAsyncJobFilter& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); }
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline ComprehendMedicalAsyncJobFilter& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
/**
* <p>Filters the list of jobs based on job status. Returns only jobs with the
* specified status.</p>
*/
inline ComprehendMedicalAsyncJobFilter& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTimeBefore() const{ return m_submitTimeBefore; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline bool SubmitTimeBeforeHasBeenSet() const { return m_submitTimeBeforeHasBeenSet; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline void SetSubmitTimeBefore(const Aws::Utils::DateTime& value) { m_submitTimeBeforeHasBeenSet = true; m_submitTimeBefore = value; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline void SetSubmitTimeBefore(Aws::Utils::DateTime&& value) { m_submitTimeBeforeHasBeenSet = true; m_submitTimeBefore = std::move(value); }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline ComprehendMedicalAsyncJobFilter& WithSubmitTimeBefore(const Aws::Utils::DateTime& value) { SetSubmitTimeBefore(value); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted before the specified time. Jobs are
* returned in ascending order, oldest to newest.</p>
*/
inline ComprehendMedicalAsyncJobFilter& WithSubmitTimeBefore(Aws::Utils::DateTime&& value) { SetSubmitTimeBefore(std::move(value)); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTimeAfter() const{ return m_submitTimeAfter; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline bool SubmitTimeAfterHasBeenSet() const { return m_submitTimeAfterHasBeenSet; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline void SetSubmitTimeAfter(const Aws::Utils::DateTime& value) { m_submitTimeAfterHasBeenSet = true; m_submitTimeAfter = value; }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline void SetSubmitTimeAfter(Aws::Utils::DateTime&& value) { m_submitTimeAfterHasBeenSet = true; m_submitTimeAfter = std::move(value); }
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline ComprehendMedicalAsyncJobFilter& WithSubmitTimeAfter(const Aws::Utils::DateTime& value) { SetSubmitTimeAfter(value); return *this;}
/**
* <p>Filters the list of jobs based on the time that the job was submitted for
* processing. Returns only jobs submitted after the specified time. Jobs are
* returned in descending order, newest to oldest.</p>
*/
inline ComprehendMedicalAsyncJobFilter& WithSubmitTimeAfter(Aws::Utils::DateTime&& value) { SetSubmitTimeAfter(std::move(value)); return *this;}
private:
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
JobStatus m_jobStatus;
bool m_jobStatusHasBeenSet;
Aws::Utils::DateTime m_submitTimeBefore;
bool m_submitTimeBeforeHasBeenSet;
Aws::Utils::DateTime m_submitTimeAfter;
bool m_submitTimeAfterHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,675 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/JobStatus.h>
#include <aws/core/utils/DateTime.h>
#include <aws/comprehendmedical/model/InputDataConfig.h>
#include <aws/comprehendmedical/model/OutputDataConfig.h>
#include <aws/comprehendmedical/model/LanguageCode.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p>Provides information about a detection job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ComprehendMedicalAsyncJobProperties">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API ComprehendMedicalAsyncJobProperties
{
public:
ComprehendMedicalAsyncJobProperties();
ComprehendMedicalAsyncJobProperties(Aws::Utils::Json::JsonView jsonValue);
ComprehendMedicalAsyncJobProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The identifier assigned to the detection job.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier assigned to the detection job.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier assigned to the detection job.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier assigned to the detection job.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier assigned to the detection job.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier assigned to the detection job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier assigned to the detection job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier assigned to the detection job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithJobId(const char* value) { SetJobId(value); return *this;}
/**
* <p>The name that you assigned to the detection job.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The name that you assigned to the detection job.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The name that you assigned to the detection job.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The name that you assigned to the detection job.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The name that you assigned to the detection job.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The name that you assigned to the detection job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The name that you assigned to the detection job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The name that you assigned to the detection job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>The current status of the detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
/**
* <p>The current status of the detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
/**
* <p>The current status of the detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline void SetJobStatus(const JobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
/**
* <p>The current status of the detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline void SetJobStatus(JobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); }
/**
* <p>The current status of the detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
/**
* <p>The current status of the detection job. If the status is
* <code>FAILED</code>, the <code>Message</code> field shows the reason for the
* failure.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
/**
* <p>A description of the status of a job.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>A description of the status of a job.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>A description of the status of a job.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>A description of the status of a job.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>A description of the status of a job.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>A description of the status of a job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>A description of the status of a job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>A description of the status of a job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The time that the detection job was submitted for processing.</p>
*/
inline const Aws::Utils::DateTime& GetSubmitTime() const{ return m_submitTime; }
/**
* <p>The time that the detection job was submitted for processing.</p>
*/
inline bool SubmitTimeHasBeenSet() const { return m_submitTimeHasBeenSet; }
/**
* <p>The time that the detection job was submitted for processing.</p>
*/
inline void SetSubmitTime(const Aws::Utils::DateTime& value) { m_submitTimeHasBeenSet = true; m_submitTime = value; }
/**
* <p>The time that the detection job was submitted for processing.</p>
*/
inline void SetSubmitTime(Aws::Utils::DateTime&& value) { m_submitTimeHasBeenSet = true; m_submitTime = std::move(value); }
/**
* <p>The time that the detection job was submitted for processing.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithSubmitTime(const Aws::Utils::DateTime& value) { SetSubmitTime(value); return *this;}
/**
* <p>The time that the detection job was submitted for processing.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithSubmitTime(Aws::Utils::DateTime&& value) { SetSubmitTime(std::move(value)); return *this;}
/**
* <p>The time that the detection job completed.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>The time that the detection job completed.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>The time that the detection job completed.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>The time that the detection job completed.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>The time that the detection job completed.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>The time that the detection job completed.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>The date and time that job metadata is deleted from the server. Output files
* in your S3 bucket will not be deleted. After the metadata is deleted, the job
* will no longer appear in the results of the
* <code>ListEntitiesDetectionV2Job</code> or the <code>ListPHIDetectionJobs</code>
* operation.</p>
*/
inline const Aws::Utils::DateTime& GetExpirationTime() const{ return m_expirationTime; }
/**
* <p>The date and time that job metadata is deleted from the server. Output files
* in your S3 bucket will not be deleted. After the metadata is deleted, the job
* will no longer appear in the results of the
* <code>ListEntitiesDetectionV2Job</code> or the <code>ListPHIDetectionJobs</code>
* operation.</p>
*/
inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
/**
* <p>The date and time that job metadata is deleted from the server. Output files
* in your S3 bucket will not be deleted. After the metadata is deleted, the job
* will no longer appear in the results of the
* <code>ListEntitiesDetectionV2Job</code> or the <code>ListPHIDetectionJobs</code>
* operation.</p>
*/
inline void SetExpirationTime(const Aws::Utils::DateTime& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; }
/**
* <p>The date and time that job metadata is deleted from the server. Output files
* in your S3 bucket will not be deleted. After the metadata is deleted, the job
* will no longer appear in the results of the
* <code>ListEntitiesDetectionV2Job</code> or the <code>ListPHIDetectionJobs</code>
* operation.</p>
*/
inline void SetExpirationTime(Aws::Utils::DateTime&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); }
/**
* <p>The date and time that job metadata is deleted from the server. Output files
* in your S3 bucket will not be deleted. After the metadata is deleted, the job
* will no longer appear in the results of the
* <code>ListEntitiesDetectionV2Job</code> or the <code>ListPHIDetectionJobs</code>
* operation.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithExpirationTime(const Aws::Utils::DateTime& value) { SetExpirationTime(value); return *this;}
/**
* <p>The date and time that job metadata is deleted from the server. Output files
* in your S3 bucket will not be deleted. After the metadata is deleted, the job
* will no longer appear in the results of the
* <code>ListEntitiesDetectionV2Job</code> or the <code>ListPHIDetectionJobs</code>
* operation.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;}
/**
* <p>The input data configuration that you supplied when you created the detection
* job.</p>
*/
inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
/**
* <p>The input data configuration that you supplied when you created the detection
* job.</p>
*/
inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
/**
* <p>The input data configuration that you supplied when you created the detection
* job.</p>
*/
inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
/**
* <p>The input data configuration that you supplied when you created the detection
* job.</p>
*/
inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
/**
* <p>The input data configuration that you supplied when you created the detection
* job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithInputDataConfig(const InputDataConfig& value) { SetInputDataConfig(value); return *this;}
/**
* <p>The input data configuration that you supplied when you created the detection
* job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
/**
* <p>The output data configuration that you supplied when you created the
* detection job.</p>
*/
inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
/**
* <p>The output data configuration that you supplied when you created the
* detection job.</p>
*/
inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
/**
* <p>The output data configuration that you supplied when you created the
* detection job.</p>
*/
inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
/**
* <p>The output data configuration that you supplied when you created the
* detection job.</p>
*/
inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
/**
* <p>The output data configuration that you supplied when you created the
* detection job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithOutputDataConfig(const OutputDataConfig& value) { SetOutputDataConfig(value); return *this;}
/**
* <p>The output data configuration that you supplied when you created the
* detection job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithOutputDataConfig(OutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;}
/**
* <p>The language code of the input documents.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language code of the input documents.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language code of the input documents.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language code of the input documents.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language code of the input documents.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language code of the input documents.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend Medical read
* access to your input data.</p>
*/
inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend Medical read
* access to your input data.</p>
*/
inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend Medical read
* access to your input data.</p>
*/
inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend Medical read
* access to your input data.</p>
*/
inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend Medical read
* access to your input data.</p>
*/
inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend Medical read
* access to your input data.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend Medical read
* access to your input data.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) that gives Amazon Comprehend Medical read
* access to your input data.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The path to the file that describes the results of a batch job.</p>
*/
inline const Aws::String& GetManifestFilePath() const{ return m_manifestFilePath; }
/**
* <p>The path to the file that describes the results of a batch job.</p>
*/
inline bool ManifestFilePathHasBeenSet() const { return m_manifestFilePathHasBeenSet; }
/**
* <p>The path to the file that describes the results of a batch job.</p>
*/
inline void SetManifestFilePath(const Aws::String& value) { m_manifestFilePathHasBeenSet = true; m_manifestFilePath = value; }
/**
* <p>The path to the file that describes the results of a batch job.</p>
*/
inline void SetManifestFilePath(Aws::String&& value) { m_manifestFilePathHasBeenSet = true; m_manifestFilePath = std::move(value); }
/**
* <p>The path to the file that describes the results of a batch job.</p>
*/
inline void SetManifestFilePath(const char* value) { m_manifestFilePathHasBeenSet = true; m_manifestFilePath.assign(value); }
/**
* <p>The path to the file that describes the results of a batch job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithManifestFilePath(const Aws::String& value) { SetManifestFilePath(value); return *this;}
/**
* <p>The path to the file that describes the results of a batch job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithManifestFilePath(Aws::String&& value) { SetManifestFilePath(std::move(value)); return *this;}
/**
* <p>The path to the file that describes the results of a batch job.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithManifestFilePath(const char* value) { SetManifestFilePath(value); return *this;}
/**
* <p>The AWS Key Management Service key, if any, used to encrypt the output files.
* </p>
*/
inline const Aws::String& GetKMSKey() const{ return m_kMSKey; }
/**
* <p>The AWS Key Management Service key, if any, used to encrypt the output files.
* </p>
*/
inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
/**
* <p>The AWS Key Management Service key, if any, used to encrypt the output files.
* </p>
*/
inline void SetKMSKey(const Aws::String& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = value; }
/**
* <p>The AWS Key Management Service key, if any, used to encrypt the output files.
* </p>
*/
inline void SetKMSKey(Aws::String&& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = std::move(value); }
/**
* <p>The AWS Key Management Service key, if any, used to encrypt the output files.
* </p>
*/
inline void SetKMSKey(const char* value) { m_kMSKeyHasBeenSet = true; m_kMSKey.assign(value); }
/**
* <p>The AWS Key Management Service key, if any, used to encrypt the output files.
* </p>
*/
inline ComprehendMedicalAsyncJobProperties& WithKMSKey(const Aws::String& value) { SetKMSKey(value); return *this;}
/**
* <p>The AWS Key Management Service key, if any, used to encrypt the output files.
* </p>
*/
inline ComprehendMedicalAsyncJobProperties& WithKMSKey(Aws::String&& value) { SetKMSKey(std::move(value)); return *this;}
/**
* <p>The AWS Key Management Service key, if any, used to encrypt the output files.
* </p>
*/
inline ComprehendMedicalAsyncJobProperties& WithKMSKey(const char* value) { SetKMSKey(value); return *this;}
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline const Aws::String& GetModelVersion() const{ return m_modelVersion; }
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; }
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline void SetModelVersion(const Aws::String& value) { m_modelVersionHasBeenSet = true; m_modelVersion = value; }
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline void SetModelVersion(Aws::String&& value) { m_modelVersionHasBeenSet = true; m_modelVersion = std::move(value); }
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline void SetModelVersion(const char* value) { m_modelVersionHasBeenSet = true; m_modelVersion.assign(value); }
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;}
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;}
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline ComprehendMedicalAsyncJobProperties& WithModelVersion(const char* value) { SetModelVersion(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
JobStatus m_jobStatus;
bool m_jobStatusHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::Utils::DateTime m_submitTime;
bool m_submitTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
Aws::Utils::DateTime m_expirationTime;
bool m_expirationTimeHasBeenSet;
InputDataConfig m_inputDataConfig;
bool m_inputDataConfigHasBeenSet;
OutputDataConfig m_outputDataConfig;
bool m_outputDataConfigHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
Aws::String m_dataAccessRoleArn;
bool m_dataAccessRoleArnHasBeenSet;
Aws::String m_manifestFilePath;
bool m_manifestFilePathHasBeenSet;
Aws::String m_kMSKey;
bool m_kMSKeyHasBeenSet;
Aws::String m_modelVersion;
bool m_modelVersionHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API DescribeEntitiesDetectionV2JobRequest : public ComprehendMedicalRequest
{
public:
DescribeEntitiesDetectionV2JobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeEntitiesDetectionV2Job"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartEntitiesDetectionV2Job</code> operation returns this identifier in
* its response.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartEntitiesDetectionV2Job</code> operation returns this identifier in
* its response.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartEntitiesDetectionV2Job</code> operation returns this identifier in
* its response.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartEntitiesDetectionV2Job</code> operation returns this identifier in
* its response.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartEntitiesDetectionV2Job</code> operation returns this identifier in
* its response.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartEntitiesDetectionV2Job</code> operation returns this identifier in
* its response.</p>
*/
inline DescribeEntitiesDetectionV2JobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartEntitiesDetectionV2Job</code> operation returns this identifier in
* its response.</p>
*/
inline DescribeEntitiesDetectionV2JobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartEntitiesDetectionV2Job</code> operation returns this identifier in
* its response.</p>
*/
inline DescribeEntitiesDetectionV2JobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/model/ComprehendMedicalAsyncJobProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API DescribeEntitiesDetectionV2JobResult
{
public:
DescribeEntitiesDetectionV2JobResult();
DescribeEntitiesDetectionV2JobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeEntitiesDetectionV2JobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline const ComprehendMedicalAsyncJobProperties& GetComprehendMedicalAsyncJobProperties() const{ return m_comprehendMedicalAsyncJobProperties; }
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline void SetComprehendMedicalAsyncJobProperties(const ComprehendMedicalAsyncJobProperties& value) { m_comprehendMedicalAsyncJobProperties = value; }
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline void SetComprehendMedicalAsyncJobProperties(ComprehendMedicalAsyncJobProperties&& value) { m_comprehendMedicalAsyncJobProperties = std::move(value); }
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline DescribeEntitiesDetectionV2JobResult& WithComprehendMedicalAsyncJobProperties(const ComprehendMedicalAsyncJobProperties& value) { SetComprehendMedicalAsyncJobProperties(value); return *this;}
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline DescribeEntitiesDetectionV2JobResult& WithComprehendMedicalAsyncJobProperties(ComprehendMedicalAsyncJobProperties&& value) { SetComprehendMedicalAsyncJobProperties(std::move(value)); return *this;}
private:
ComprehendMedicalAsyncJobProperties m_comprehendMedicalAsyncJobProperties;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API DescribeICD10CMInferenceJobRequest : public ComprehendMedicalRequest
{
public:
DescribeICD10CMInferenceJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeICD10CMInferenceJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job.
* <code>The StartICD10CMInferenceJob</code> operation returns this identifier in
* its response.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job.
* <code>The StartICD10CMInferenceJob</code> operation returns this identifier in
* its response.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job.
* <code>The StartICD10CMInferenceJob</code> operation returns this identifier in
* its response.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job.
* <code>The StartICD10CMInferenceJob</code> operation returns this identifier in
* its response.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job.
* <code>The StartICD10CMInferenceJob</code> operation returns this identifier in
* its response.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job.
* <code>The StartICD10CMInferenceJob</code> operation returns this identifier in
* its response.</p>
*/
inline DescribeICD10CMInferenceJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job.
* <code>The StartICD10CMInferenceJob</code> operation returns this identifier in
* its response.</p>
*/
inline DescribeICD10CMInferenceJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job.
* <code>The StartICD10CMInferenceJob</code> operation returns this identifier in
* its response.</p>
*/
inline DescribeICD10CMInferenceJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/model/ComprehendMedicalAsyncJobProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API DescribeICD10CMInferenceJobResult
{
public:
DescribeICD10CMInferenceJobResult();
DescribeICD10CMInferenceJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeICD10CMInferenceJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline const ComprehendMedicalAsyncJobProperties& GetComprehendMedicalAsyncJobProperties() const{ return m_comprehendMedicalAsyncJobProperties; }
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline void SetComprehendMedicalAsyncJobProperties(const ComprehendMedicalAsyncJobProperties& value) { m_comprehendMedicalAsyncJobProperties = value; }
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline void SetComprehendMedicalAsyncJobProperties(ComprehendMedicalAsyncJobProperties&& value) { m_comprehendMedicalAsyncJobProperties = std::move(value); }
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline DescribeICD10CMInferenceJobResult& WithComprehendMedicalAsyncJobProperties(const ComprehendMedicalAsyncJobProperties& value) { SetComprehendMedicalAsyncJobProperties(value); return *this;}
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline DescribeICD10CMInferenceJobResult& WithComprehendMedicalAsyncJobProperties(ComprehendMedicalAsyncJobProperties&& value) { SetComprehendMedicalAsyncJobProperties(std::move(value)); return *this;}
private:
ComprehendMedicalAsyncJobProperties m_comprehendMedicalAsyncJobProperties;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API DescribePHIDetectionJobRequest : public ComprehendMedicalRequest
{
public:
DescribePHIDetectionJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribePHIDetectionJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartPHIDetectionJob</code> operation returns this identifier in its
* response.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartPHIDetectionJob</code> operation returns this identifier in its
* response.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartPHIDetectionJob</code> operation returns this identifier in its
* response.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartPHIDetectionJob</code> operation returns this identifier in its
* response.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartPHIDetectionJob</code> operation returns this identifier in its
* response.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartPHIDetectionJob</code> operation returns this identifier in its
* response.</p>
*/
inline DescribePHIDetectionJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartPHIDetectionJob</code> operation returns this identifier in its
* response.</p>
*/
inline DescribePHIDetectionJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* <code>StartPHIDetectionJob</code> operation returns this identifier in its
* response.</p>
*/
inline DescribePHIDetectionJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/model/ComprehendMedicalAsyncJobProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API DescribePHIDetectionJobResult
{
public:
DescribePHIDetectionJobResult();
DescribePHIDetectionJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribePHIDetectionJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline const ComprehendMedicalAsyncJobProperties& GetComprehendMedicalAsyncJobProperties() const{ return m_comprehendMedicalAsyncJobProperties; }
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline void SetComprehendMedicalAsyncJobProperties(const ComprehendMedicalAsyncJobProperties& value) { m_comprehendMedicalAsyncJobProperties = value; }
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline void SetComprehendMedicalAsyncJobProperties(ComprehendMedicalAsyncJobProperties&& value) { m_comprehendMedicalAsyncJobProperties = std::move(value); }
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline DescribePHIDetectionJobResult& WithComprehendMedicalAsyncJobProperties(const ComprehendMedicalAsyncJobProperties& value) { SetComprehendMedicalAsyncJobProperties(value); return *this;}
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline DescribePHIDetectionJobResult& WithComprehendMedicalAsyncJobProperties(ComprehendMedicalAsyncJobProperties&& value) { SetComprehendMedicalAsyncJobProperties(std::move(value)); return *this;}
private:
ComprehendMedicalAsyncJobProperties m_comprehendMedicalAsyncJobProperties;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API DescribeRxNormInferenceJobRequest : public ComprehendMedicalRequest
{
public:
DescribeRxNormInferenceJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeRxNormInferenceJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* StartRxNormInferenceJob operation returns this identifier in its response.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* StartRxNormInferenceJob operation returns this identifier in its response.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* StartRxNormInferenceJob operation returns this identifier in its response.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* StartRxNormInferenceJob operation returns this identifier in its response.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* StartRxNormInferenceJob operation returns this identifier in its response.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* StartRxNormInferenceJob operation returns this identifier in its response.</p>
*/
inline DescribeRxNormInferenceJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* StartRxNormInferenceJob operation returns this identifier in its response.</p>
*/
inline DescribeRxNormInferenceJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier that Amazon Comprehend Medical generated for the job. The
* StartRxNormInferenceJob operation returns this identifier in its response.</p>
*/
inline DescribeRxNormInferenceJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/model/ComprehendMedicalAsyncJobProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API DescribeRxNormInferenceJobResult
{
public:
DescribeRxNormInferenceJobResult();
DescribeRxNormInferenceJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeRxNormInferenceJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline const ComprehendMedicalAsyncJobProperties& GetComprehendMedicalAsyncJobProperties() const{ return m_comprehendMedicalAsyncJobProperties; }
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline void SetComprehendMedicalAsyncJobProperties(const ComprehendMedicalAsyncJobProperties& value) { m_comprehendMedicalAsyncJobProperties = value; }
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline void SetComprehendMedicalAsyncJobProperties(ComprehendMedicalAsyncJobProperties&& value) { m_comprehendMedicalAsyncJobProperties = std::move(value); }
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline DescribeRxNormInferenceJobResult& WithComprehendMedicalAsyncJobProperties(const ComprehendMedicalAsyncJobProperties& value) { SetComprehendMedicalAsyncJobProperties(value); return *this;}
/**
* <p>An object that contains the properties associated with a detection job.</p>
*/
inline DescribeRxNormInferenceJobResult& WithComprehendMedicalAsyncJobProperties(ComprehendMedicalAsyncJobProperties&& value) { SetComprehendMedicalAsyncJobProperties(std::move(value)); return *this;}
private:
ComprehendMedicalAsyncJobProperties m_comprehendMedicalAsyncJobProperties;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API DetectEntitiesV2Request : public ComprehendMedicalRequest
{
public:
DetectEntitiesV2Request();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DetectEntitiesV2"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A UTF-8 string containing the clinical content being examined for entities.
* Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>A UTF-8 string containing the clinical content being examined for entities.
* Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>A UTF-8 string containing the clinical content being examined for entities.
* Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>A UTF-8 string containing the clinical content being examined for entities.
* Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>A UTF-8 string containing the clinical content being examined for entities.
* Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>A UTF-8 string containing the clinical content being examined for entities.
* Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline DetectEntitiesV2Request& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>A UTF-8 string containing the clinical content being examined for entities.
* Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline DetectEntitiesV2Request& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>A UTF-8 string containing the clinical content being examined for entities.
* Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline DetectEntitiesV2Request& WithText(const char* value) { SetText(value); return *this;}
private:
Aws::String m_text;
bool m_textHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,250 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/Entity.h>
#include <aws/comprehendmedical/model/UnmappedAttribute.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API DetectEntitiesV2Result
{
public:
DetectEntitiesV2Result();
DetectEntitiesV2Result(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DetectEntitiesV2Result& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The collection of medical entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence in the detection and analysis. Attributes and traits of the entity
* are also returned.</p>
*/
inline const Aws::Vector<Entity>& GetEntities() const{ return m_entities; }
/**
* <p>The collection of medical entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence in the detection and analysis. Attributes and traits of the entity
* are also returned.</p>
*/
inline void SetEntities(const Aws::Vector<Entity>& value) { m_entities = value; }
/**
* <p>The collection of medical entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence in the detection and analysis. Attributes and traits of the entity
* are also returned.</p>
*/
inline void SetEntities(Aws::Vector<Entity>&& value) { m_entities = std::move(value); }
/**
* <p>The collection of medical entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence in the detection and analysis. Attributes and traits of the entity
* are also returned.</p>
*/
inline DetectEntitiesV2Result& WithEntities(const Aws::Vector<Entity>& value) { SetEntities(value); return *this;}
/**
* <p>The collection of medical entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence in the detection and analysis. Attributes and traits of the entity
* are also returned.</p>
*/
inline DetectEntitiesV2Result& WithEntities(Aws::Vector<Entity>&& value) { SetEntities(std::move(value)); return *this;}
/**
* <p>The collection of medical entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence in the detection and analysis. Attributes and traits of the entity
* are also returned.</p>
*/
inline DetectEntitiesV2Result& AddEntities(const Entity& value) { m_entities.push_back(value); return *this; }
/**
* <p>The collection of medical entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence in the detection and analysis. Attributes and traits of the entity
* are also returned.</p>
*/
inline DetectEntitiesV2Result& AddEntities(Entity&& value) { m_entities.push_back(std::move(value)); return *this; }
/**
* <p>Attributes extracted from the input text that couldn't be related to an
* entity.</p>
*/
inline const Aws::Vector<UnmappedAttribute>& GetUnmappedAttributes() const{ return m_unmappedAttributes; }
/**
* <p>Attributes extracted from the input text that couldn't be related to an
* entity.</p>
*/
inline void SetUnmappedAttributes(const Aws::Vector<UnmappedAttribute>& value) { m_unmappedAttributes = value; }
/**
* <p>Attributes extracted from the input text that couldn't be related to an
* entity.</p>
*/
inline void SetUnmappedAttributes(Aws::Vector<UnmappedAttribute>&& value) { m_unmappedAttributes = std::move(value); }
/**
* <p>Attributes extracted from the input text that couldn't be related to an
* entity.</p>
*/
inline DetectEntitiesV2Result& WithUnmappedAttributes(const Aws::Vector<UnmappedAttribute>& value) { SetUnmappedAttributes(value); return *this;}
/**
* <p>Attributes extracted from the input text that couldn't be related to an
* entity.</p>
*/
inline DetectEntitiesV2Result& WithUnmappedAttributes(Aws::Vector<UnmappedAttribute>&& value) { SetUnmappedAttributes(std::move(value)); return *this;}
/**
* <p>Attributes extracted from the input text that couldn't be related to an
* entity.</p>
*/
inline DetectEntitiesV2Result& AddUnmappedAttributes(const UnmappedAttribute& value) { m_unmappedAttributes.push_back(value); return *this; }
/**
* <p>Attributes extracted from the input text that couldn't be related to an
* entity.</p>
*/
inline DetectEntitiesV2Result& AddUnmappedAttributes(UnmappedAttribute&& value) { m_unmappedAttributes.push_back(std::move(value)); return *this; }
/**
* <p>If the result to the <code>DetectEntitiesV2</code> operation was truncated,
* include the <code>PaginationToken</code> to fetch the next page of entities.</p>
*/
inline const Aws::String& GetPaginationToken() const{ return m_paginationToken; }
/**
* <p>If the result to the <code>DetectEntitiesV2</code> operation was truncated,
* include the <code>PaginationToken</code> to fetch the next page of entities.</p>
*/
inline void SetPaginationToken(const Aws::String& value) { m_paginationToken = value; }
/**
* <p>If the result to the <code>DetectEntitiesV2</code> operation was truncated,
* include the <code>PaginationToken</code> to fetch the next page of entities.</p>
*/
inline void SetPaginationToken(Aws::String&& value) { m_paginationToken = std::move(value); }
/**
* <p>If the result to the <code>DetectEntitiesV2</code> operation was truncated,
* include the <code>PaginationToken</code> to fetch the next page of entities.</p>
*/
inline void SetPaginationToken(const char* value) { m_paginationToken.assign(value); }
/**
* <p>If the result to the <code>DetectEntitiesV2</code> operation was truncated,
* include the <code>PaginationToken</code> to fetch the next page of entities.</p>
*/
inline DetectEntitiesV2Result& WithPaginationToken(const Aws::String& value) { SetPaginationToken(value); return *this;}
/**
* <p>If the result to the <code>DetectEntitiesV2</code> operation was truncated,
* include the <code>PaginationToken</code> to fetch the next page of entities.</p>
*/
inline DetectEntitiesV2Result& WithPaginationToken(Aws::String&& value) { SetPaginationToken(std::move(value)); return *this;}
/**
* <p>If the result to the <code>DetectEntitiesV2</code> operation was truncated,
* include the <code>PaginationToken</code> to fetch the next page of entities.</p>
*/
inline DetectEntitiesV2Result& WithPaginationToken(const char* value) { SetPaginationToken(value); return *this;}
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline const Aws::String& GetModelVersion() const{ return m_modelVersion; }
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline void SetModelVersion(const Aws::String& value) { m_modelVersion = value; }
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline void SetModelVersion(Aws::String&& value) { m_modelVersion = std::move(value); }
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline void SetModelVersion(const char* value) { m_modelVersion.assign(value); }
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline DetectEntitiesV2Result& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;}
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline DetectEntitiesV2Result& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;}
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline DetectEntitiesV2Result& WithModelVersion(const char* value) { SetModelVersion(value); return *this;}
private:
Aws::Vector<Entity> m_entities;
Aws::Vector<UnmappedAttribute> m_unmappedAttributes;
Aws::String m_paginationToken;
Aws::String m_modelVersion;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API DetectPHIRequest : public ComprehendMedicalRequest
{
public:
DetectPHIRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DetectPHI"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> A UTF-8 text string containing the clinical content being examined for PHI
* entities. Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p> A UTF-8 text string containing the clinical content being examined for PHI
* entities. Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p> A UTF-8 text string containing the clinical content being examined for PHI
* entities. Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p> A UTF-8 text string containing the clinical content being examined for PHI
* entities. Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p> A UTF-8 text string containing the clinical content being examined for PHI
* entities. Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p> A UTF-8 text string containing the clinical content being examined for PHI
* entities. Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline DetectPHIRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p> A UTF-8 text string containing the clinical content being examined for PHI
* entities. Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline DetectPHIRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p> A UTF-8 text string containing the clinical content being examined for PHI
* entities. Each string must contain fewer than 20,000 bytes of characters.</p>
*/
inline DetectPHIRequest& WithText(const char* value) { SetText(value); return *this;}
private:
Aws::String m_text;
bool m_textHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,204 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/Entity.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API DetectPHIResult
{
public:
DetectPHIResult();
DetectPHIResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DetectPHIResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> The collection of PHI entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence that Amazon Comprehend Medical has in its detection. </p>
*/
inline const Aws::Vector<Entity>& GetEntities() const{ return m_entities; }
/**
* <p> The collection of PHI entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence that Amazon Comprehend Medical has in its detection. </p>
*/
inline void SetEntities(const Aws::Vector<Entity>& value) { m_entities = value; }
/**
* <p> The collection of PHI entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence that Amazon Comprehend Medical has in its detection. </p>
*/
inline void SetEntities(Aws::Vector<Entity>&& value) { m_entities = std::move(value); }
/**
* <p> The collection of PHI entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence that Amazon Comprehend Medical has in its detection. </p>
*/
inline DetectPHIResult& WithEntities(const Aws::Vector<Entity>& value) { SetEntities(value); return *this;}
/**
* <p> The collection of PHI entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence that Amazon Comprehend Medical has in its detection. </p>
*/
inline DetectPHIResult& WithEntities(Aws::Vector<Entity>&& value) { SetEntities(std::move(value)); return *this;}
/**
* <p> The collection of PHI entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence that Amazon Comprehend Medical has in its detection. </p>
*/
inline DetectPHIResult& AddEntities(const Entity& value) { m_entities.push_back(value); return *this; }
/**
* <p> The collection of PHI entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence that Amazon Comprehend Medical has in its detection. </p>
*/
inline DetectPHIResult& AddEntities(Entity&& value) { m_entities.push_back(std::move(value)); return *this; }
/**
* <p> If the result of the previous request to <code>DetectPHI</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* PHI entities. </p>
*/
inline const Aws::String& GetPaginationToken() const{ return m_paginationToken; }
/**
* <p> If the result of the previous request to <code>DetectPHI</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* PHI entities. </p>
*/
inline void SetPaginationToken(const Aws::String& value) { m_paginationToken = value; }
/**
* <p> If the result of the previous request to <code>DetectPHI</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* PHI entities. </p>
*/
inline void SetPaginationToken(Aws::String&& value) { m_paginationToken = std::move(value); }
/**
* <p> If the result of the previous request to <code>DetectPHI</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* PHI entities. </p>
*/
inline void SetPaginationToken(const char* value) { m_paginationToken.assign(value); }
/**
* <p> If the result of the previous request to <code>DetectPHI</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* PHI entities. </p>
*/
inline DetectPHIResult& WithPaginationToken(const Aws::String& value) { SetPaginationToken(value); return *this;}
/**
* <p> If the result of the previous request to <code>DetectPHI</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* PHI entities. </p>
*/
inline DetectPHIResult& WithPaginationToken(Aws::String&& value) { SetPaginationToken(std::move(value)); return *this;}
/**
* <p> If the result of the previous request to <code>DetectPHI</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* PHI entities. </p>
*/
inline DetectPHIResult& WithPaginationToken(const char* value) { SetPaginationToken(value); return *this;}
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline const Aws::String& GetModelVersion() const{ return m_modelVersion; }
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline void SetModelVersion(const Aws::String& value) { m_modelVersion = value; }
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline void SetModelVersion(Aws::String&& value) { m_modelVersion = std::move(value); }
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline void SetModelVersion(const char* value) { m_modelVersion.assign(value); }
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline DetectPHIResult& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;}
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline DetectPHIResult& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;}
/**
* <p>The version of the model used to analyze the documents. The version number
* looks like X.X.X. You can use this information to track the model used for a
* particular batch of documents.</p>
*/
inline DetectPHIResult& WithModelVersion(const char* value) { SetModelVersion(value); return *this;}
private:
Aws::Vector<Entity> m_entities;
Aws::String m_paginationToken;
Aws::String m_modelVersion;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,362 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/EntityType.h>
#include <aws/comprehendmedical/model/EntitySubType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehendmedical/model/Trait.h>
#include <aws/comprehendmedical/model/Attribute.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p> Provides information about an extracted medical entity.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/Entity">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API Entity
{
public:
Entity();
Entity(Aws::Utils::Json::JsonView jsonValue);
Entity& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The numeric identifier for the entity. This is a monotonically increasing id
* unique within this response rather than a global unique identifier. </p>
*/
inline int GetId() const{ return m_id; }
/**
* <p> The numeric identifier for the entity. This is a monotonically increasing id
* unique within this response rather than a global unique identifier. </p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p> The numeric identifier for the entity. This is a monotonically increasing id
* unique within this response rather than a global unique identifier. </p>
*/
inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p> The numeric identifier for the entity. This is a monotonically increasing id
* unique within this response rather than a global unique identifier. </p>
*/
inline Entity& WithId(int value) { SetId(value); return *this;}
/**
* <p> The 0-based character offset in the input text that shows where the entity
* begins. The offset returns the UTF-8 code point in the string. </p>
*/
inline int GetBeginOffset() const{ return m_beginOffset; }
/**
* <p> The 0-based character offset in the input text that shows where the entity
* begins. The offset returns the UTF-8 code point in the string. </p>
*/
inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
/**
* <p> The 0-based character offset in the input text that shows where the entity
* begins. The offset returns the UTF-8 code point in the string. </p>
*/
inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
/**
* <p> The 0-based character offset in the input text that shows where the entity
* begins. The offset returns the UTF-8 code point in the string. </p>
*/
inline Entity& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
/**
* <p> The 0-based character offset in the input text that shows where the entity
* ends. The offset returns the UTF-8 code point in the string. </p>
*/
inline int GetEndOffset() const{ return m_endOffset; }
/**
* <p> The 0-based character offset in the input text that shows where the entity
* ends. The offset returns the UTF-8 code point in the string. </p>
*/
inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
/**
* <p> The 0-based character offset in the input text that shows where the entity
* ends. The offset returns the UTF-8 code point in the string. </p>
*/
inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
/**
* <p> The 0-based character offset in the input text that shows where the entity
* ends. The offset returns the UTF-8 code point in the string. </p>
*/
inline Entity& WithEndOffset(int value) { SetEndOffset(value); return *this;}
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detection.</p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detection.</p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detection.</p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detection.</p>
*/
inline Entity& WithScore(double value) { SetScore(value); return *this;}
/**
* <p> The segment of input text extracted as this entity.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p> The segment of input text extracted as this entity.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p> The segment of input text extracted as this entity.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p> The segment of input text extracted as this entity.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p> The segment of input text extracted as this entity.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p> The segment of input text extracted as this entity.</p>
*/
inline Entity& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p> The segment of input text extracted as this entity.</p>
*/
inline Entity& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p> The segment of input text extracted as this entity.</p>
*/
inline Entity& WithText(const char* value) { SetText(value); return *this;}
/**
* <p> The category of the entity.</p>
*/
inline const EntityType& GetCategory() const{ return m_category; }
/**
* <p> The category of the entity.</p>
*/
inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
/**
* <p> The category of the entity.</p>
*/
inline void SetCategory(const EntityType& value) { m_categoryHasBeenSet = true; m_category = value; }
/**
* <p> The category of the entity.</p>
*/
inline void SetCategory(EntityType&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
/**
* <p> The category of the entity.</p>
*/
inline Entity& WithCategory(const EntityType& value) { SetCategory(value); return *this;}
/**
* <p> The category of the entity.</p>
*/
inline Entity& WithCategory(EntityType&& value) { SetCategory(std::move(value)); return *this;}
/**
* <p> Describes the specific type of entity with category of entities.</p>
*/
inline const EntitySubType& GetType() const{ return m_type; }
/**
* <p> Describes the specific type of entity with category of entities.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p> Describes the specific type of entity with category of entities.</p>
*/
inline void SetType(const EntitySubType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p> Describes the specific type of entity with category of entities.</p>
*/
inline void SetType(EntitySubType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p> Describes the specific type of entity with category of entities.</p>
*/
inline Entity& WithType(const EntitySubType& value) { SetType(value); return *this;}
/**
* <p> Describes the specific type of entity with category of entities.</p>
*/
inline Entity& WithType(EntitySubType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Contextual information for the entity.</p>
*/
inline const Aws::Vector<Trait>& GetTraits() const{ return m_traits; }
/**
* <p>Contextual information for the entity.</p>
*/
inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
/**
* <p>Contextual information for the entity.</p>
*/
inline void SetTraits(const Aws::Vector<Trait>& value) { m_traitsHasBeenSet = true; m_traits = value; }
/**
* <p>Contextual information for the entity.</p>
*/
inline void SetTraits(Aws::Vector<Trait>&& value) { m_traitsHasBeenSet = true; m_traits = std::move(value); }
/**
* <p>Contextual information for the entity.</p>
*/
inline Entity& WithTraits(const Aws::Vector<Trait>& value) { SetTraits(value); return *this;}
/**
* <p>Contextual information for the entity.</p>
*/
inline Entity& WithTraits(Aws::Vector<Trait>&& value) { SetTraits(std::move(value)); return *this;}
/**
* <p>Contextual information for the entity.</p>
*/
inline Entity& AddTraits(const Trait& value) { m_traitsHasBeenSet = true; m_traits.push_back(value); return *this; }
/**
* <p>Contextual information for the entity.</p>
*/
inline Entity& AddTraits(Trait&& value) { m_traitsHasBeenSet = true; m_traits.push_back(std::move(value)); return *this; }
/**
* <p> The extracted attributes that relate to this entity.</p>
*/
inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
/**
* <p> The extracted attributes that relate to this entity.</p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p> The extracted attributes that relate to this entity.</p>
*/
inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p> The extracted attributes that relate to this entity.</p>
*/
inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p> The extracted attributes that relate to this entity.</p>
*/
inline Entity& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
/**
* <p> The extracted attributes that relate to this entity.</p>
*/
inline Entity& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p> The extracted attributes that relate to this entity.</p>
*/
inline Entity& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
/**
* <p> The extracted attributes that relate to this entity.</p>
*/
inline Entity& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
private:
int m_id;
bool m_idHasBeenSet;
int m_beginOffset;
bool m_beginOffsetHasBeenSet;
int m_endOffset;
bool m_endOffsetHasBeenSet;
double m_score;
bool m_scoreHasBeenSet;
Aws::String m_text;
bool m_textHasBeenSet;
EntityType m_category;
bool m_categoryHasBeenSet;
EntitySubType m_type;
bool m_typeHasBeenSet;
Aws::Vector<Trait> m_traits;
bool m_traitsHasBeenSet;
Aws::Vector<Attribute> m_attributes;
bool m_attributesHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,63 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
enum class EntitySubType
{
NOT_SET,
NAME,
DOSAGE,
ROUTE_OR_MODE,
FORM,
FREQUENCY,
DURATION,
GENERIC_NAME,
BRAND_NAME,
STRENGTH,
RATE,
ACUITY,
TEST_NAME,
TEST_VALUE,
TEST_UNITS,
PROCEDURE_NAME,
TREATMENT_NAME,
DATE,
AGE,
CONTACT_POINT,
EMAIL,
IDENTIFIER,
URL,
ADDRESS,
PROFESSION,
SYSTEM_ORGAN_SITE,
DIRECTION,
QUALITY,
QUANTITY,
TIME_EXPRESSION,
TIME_TO_MEDICATION_NAME,
TIME_TO_DX_NAME,
TIME_TO_TEST_NAME,
TIME_TO_PROCEDURE_NAME,
TIME_TO_TREATMENT_NAME
};
namespace EntitySubTypeMapper
{
AWS_COMPREHENDMEDICAL_API EntitySubType GetEntitySubTypeForName(const Aws::String& name);
AWS_COMPREHENDMEDICAL_API Aws::String GetNameForEntitySubType(EntitySubType value);
} // namespace EntitySubTypeMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
enum class EntityType
{
NOT_SET,
MEDICATION,
MEDICAL_CONDITION,
PROTECTED_HEALTH_INFORMATION,
TEST_TREATMENT_PROCEDURE,
ANATOMY,
TIME_EXPRESSION
};
namespace EntityTypeMapper
{
AWS_COMPREHENDMEDICAL_API EntityType GetEntityTypeForName(const Aws::String& name);
AWS_COMPREHENDMEDICAL_API Aws::String GetNameForEntityType(EntityType value);
} // namespace EntityTypeMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,335 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/model/ICD10CMAttributeType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehendmedical/model/ICD10CMTrait.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p>The detected attributes that relate to an entity. This includes an extracted
* segment of the text that is an attribute of an entity, or otherwise related to
* an entity. InferICD10CM detects the following attributes:
* <code>Direction</code>, <code>System, Organ or Site</code>, and
* <code>Acuity</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ICD10CMAttribute">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API ICD10CMAttribute
{
public:
ICD10CMAttribute();
ICD10CMAttribute(Aws::Utils::Json::JsonView jsonValue);
ICD10CMAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The type of attribute. InferICD10CM detects entities of the type
* <code>DX_NAME</code>. </p>
*/
inline const ICD10CMAttributeType& GetType() const{ return m_type; }
/**
* <p>The type of attribute. InferICD10CM detects entities of the type
* <code>DX_NAME</code>. </p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of attribute. InferICD10CM detects entities of the type
* <code>DX_NAME</code>. </p>
*/
inline void SetType(const ICD10CMAttributeType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of attribute. InferICD10CM detects entities of the type
* <code>DX_NAME</code>. </p>
*/
inline void SetType(ICD10CMAttributeType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of attribute. InferICD10CM detects entities of the type
* <code>DX_NAME</code>. </p>
*/
inline ICD10CMAttribute& WithType(const ICD10CMAttributeType& value) { SetType(value); return *this;}
/**
* <p>The type of attribute. InferICD10CM detects entities of the type
* <code>DX_NAME</code>. </p>
*/
inline ICD10CMAttribute& WithType(ICD10CMAttributeType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the segment
* of text is correctly recognized as an attribute.</p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the segment
* of text is correctly recognized as an attribute.</p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the segment
* of text is correctly recognized as an attribute.</p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the segment
* of text is correctly recognized as an attribute.</p>
*/
inline ICD10CMAttribute& WithScore(double value) { SetScore(value); return *this;}
/**
* <p>The level of confidence that Amazon Comprehend Medical has that this
* attribute is correctly related to this entity.</p>
*/
inline double GetRelationshipScore() const{ return m_relationshipScore; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that this
* attribute is correctly related to this entity.</p>
*/
inline bool RelationshipScoreHasBeenSet() const { return m_relationshipScoreHasBeenSet; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that this
* attribute is correctly related to this entity.</p>
*/
inline void SetRelationshipScore(double value) { m_relationshipScoreHasBeenSet = true; m_relationshipScore = value; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that this
* attribute is correctly related to this entity.</p>
*/
inline ICD10CMAttribute& WithRelationshipScore(double value) { SetRelationshipScore(value); return *this;}
/**
* <p>The numeric identifier for this attribute. This is a monotonically increasing
* id unique within this response rather than a global unique identifier.</p>
*/
inline int GetId() const{ return m_id; }
/**
* <p>The numeric identifier for this attribute. This is a monotonically increasing
* id unique within this response rather than a global unique identifier.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The numeric identifier for this attribute. This is a monotonically increasing
* id unique within this response rather than a global unique identifier.</p>
*/
inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The numeric identifier for this attribute. This is a monotonically increasing
* id unique within this response rather than a global unique identifier.</p>
*/
inline ICD10CMAttribute& WithId(int value) { SetId(value); return *this;}
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline int GetBeginOffset() const{ return m_beginOffset; }
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline ICD10CMAttribute& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline int GetEndOffset() const{ return m_endOffset; }
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline ICD10CMAttribute& WithEndOffset(int value) { SetEndOffset(value); return *this;}
/**
* <p>The segment of input text which contains the detected attribute.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>The segment of input text which contains the detected attribute.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>The segment of input text which contains the detected attribute.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>The segment of input text which contains the detected attribute.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>The segment of input text which contains the detected attribute.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>The segment of input text which contains the detected attribute.</p>
*/
inline ICD10CMAttribute& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>The segment of input text which contains the detected attribute.</p>
*/
inline ICD10CMAttribute& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>The segment of input text which contains the detected attribute.</p>
*/
inline ICD10CMAttribute& WithText(const char* value) { SetText(value); return *this;}
/**
* <p>The contextual information for the attribute. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION</code>.</p>
*/
inline const Aws::Vector<ICD10CMTrait>& GetTraits() const{ return m_traits; }
/**
* <p>The contextual information for the attribute. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION</code>.</p>
*/
inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
/**
* <p>The contextual information for the attribute. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION</code>.</p>
*/
inline void SetTraits(const Aws::Vector<ICD10CMTrait>& value) { m_traitsHasBeenSet = true; m_traits = value; }
/**
* <p>The contextual information for the attribute. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION</code>.</p>
*/
inline void SetTraits(Aws::Vector<ICD10CMTrait>&& value) { m_traitsHasBeenSet = true; m_traits = std::move(value); }
/**
* <p>The contextual information for the attribute. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION</code>.</p>
*/
inline ICD10CMAttribute& WithTraits(const Aws::Vector<ICD10CMTrait>& value) { SetTraits(value); return *this;}
/**
* <p>The contextual information for the attribute. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION</code>.</p>
*/
inline ICD10CMAttribute& WithTraits(Aws::Vector<ICD10CMTrait>&& value) { SetTraits(std::move(value)); return *this;}
/**
* <p>The contextual information for the attribute. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION</code>.</p>
*/
inline ICD10CMAttribute& AddTraits(const ICD10CMTrait& value) { m_traitsHasBeenSet = true; m_traits.push_back(value); return *this; }
/**
* <p>The contextual information for the attribute. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION</code>.</p>
*/
inline ICD10CMAttribute& AddTraits(ICD10CMTrait&& value) { m_traitsHasBeenSet = true; m_traits.push_back(std::move(value)); return *this; }
private:
ICD10CMAttributeType m_type;
bool m_typeHasBeenSet;
double m_score;
bool m_scoreHasBeenSet;
double m_relationshipScore;
bool m_relationshipScoreHasBeenSet;
int m_id;
bool m_idHasBeenSet;
int m_beginOffset;
bool m_beginOffsetHasBeenSet;
int m_endOffset;
bool m_endOffsetHasBeenSet;
Aws::String m_text;
bool m_textHasBeenSet;
Aws::Vector<ICD10CMTrait> m_traits;
bool m_traitsHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
enum class ICD10CMAttributeType
{
NOT_SET,
ACUITY,
DIRECTION,
SYSTEM_ORGAN_SITE,
QUALITY,
QUANTITY
};
namespace ICD10CMAttributeTypeMapper
{
AWS_COMPREHENDMEDICAL_API ICD10CMAttributeType GetICD10CMAttributeTypeForName(const Aws::String& name);
AWS_COMPREHENDMEDICAL_API Aws::String GetNameForICD10CMAttributeType(ICD10CMAttributeType value);
} // namespace ICD10CMAttributeTypeMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,169 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p> The ICD-10-CM concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ICD10CMConcept">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API ICD10CMConcept
{
public:
ICD10CMConcept();
ICD10CMConcept(Aws::Utils::Json::JsonView jsonValue);
ICD10CMConcept& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The long description of the ICD-10-CM code in the ontology.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The long description of the ICD-10-CM code in the ontology.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The long description of the ICD-10-CM code in the ontology.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The long description of the ICD-10-CM code in the ontology.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The long description of the ICD-10-CM code in the ontology.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The long description of the ICD-10-CM code in the ontology.</p>
*/
inline ICD10CMConcept& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The long description of the ICD-10-CM code in the ontology.</p>
*/
inline ICD10CMConcept& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The long description of the ICD-10-CM code in the ontology.</p>
*/
inline ICD10CMConcept& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The ICD-10-CM code that identifies the concept found in the knowledge base
* from the Centers for Disease Control.</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>The ICD-10-CM code that identifies the concept found in the knowledge base
* from the Centers for Disease Control.</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>The ICD-10-CM code that identifies the concept found in the knowledge base
* from the Centers for Disease Control.</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>The ICD-10-CM code that identifies the concept found in the knowledge base
* from the Centers for Disease Control.</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>The ICD-10-CM code that identifies the concept found in the knowledge base
* from the Centers for Disease Control.</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>The ICD-10-CM code that identifies the concept found in the knowledge base
* from the Centers for Disease Control.</p>
*/
inline ICD10CMConcept& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>The ICD-10-CM code that identifies the concept found in the knowledge base
* from the Centers for Disease Control.</p>
*/
inline ICD10CMConcept& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>The ICD-10-CM code that identifies the concept found in the knowledge base
* from the Centers for Disease Control.</p>
*/
inline ICD10CMConcept& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the entity is
* accurately linked to an ICD-10-CM concept.</p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the entity is
* accurately linked to an ICD-10-CM concept.</p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the entity is
* accurately linked to an ICD-10-CM concept.</p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the entity is
* accurately linked to an ICD-10-CM concept.</p>
*/
inline ICD10CMConcept& WithScore(double value) { SetScore(value); return *this;}
private:
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_code;
bool m_codeHasBeenSet;
double m_score;
bool m_scoreHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,463 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/ICD10CMEntityCategory.h>
#include <aws/comprehendmedical/model/ICD10CMEntityType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehendmedical/model/ICD10CMAttribute.h>
#include <aws/comprehendmedical/model/ICD10CMTrait.h>
#include <aws/comprehendmedical/model/ICD10CMConcept.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p>The collection of medical entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence that Amazon Comprehend Medical has in the detection and analysis.
* Attributes and traits of the entity are also returned. </p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ICD10CMEntity">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API ICD10CMEntity
{
public:
ICD10CMEntity();
ICD10CMEntity(Aws::Utils::Json::JsonView jsonValue);
ICD10CMEntity& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The numeric identifier for the entity. This is a monotonically increasing id
* unique within this response rather than a global unique identifier.</p>
*/
inline int GetId() const{ return m_id; }
/**
* <p>The numeric identifier for the entity. This is a monotonically increasing id
* unique within this response rather than a global unique identifier.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The numeric identifier for the entity. This is a monotonically increasing id
* unique within this response rather than a global unique identifier.</p>
*/
inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The numeric identifier for the entity. This is a monotonically increasing id
* unique within this response rather than a global unique identifier.</p>
*/
inline ICD10CMEntity& WithId(int value) { SetId(value); return *this;}
/**
* <p>The segment of input text that is matched to the detected entity.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>The segment of input text that is matched to the detected entity.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>The segment of input text that is matched to the detected entity.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>The segment of input text that is matched to the detected entity.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>The segment of input text that is matched to the detected entity.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>The segment of input text that is matched to the detected entity.</p>
*/
inline ICD10CMEntity& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>The segment of input text that is matched to the detected entity.</p>
*/
inline ICD10CMEntity& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>The segment of input text that is matched to the detected entity.</p>
*/
inline ICD10CMEntity& WithText(const char* value) { SetText(value); return *this;}
/**
* <p> The category of the entity. InferICD10CM detects entities in the
* <code>MEDICAL_CONDITION</code> category. </p>
*/
inline const ICD10CMEntityCategory& GetCategory() const{ return m_category; }
/**
* <p> The category of the entity. InferICD10CM detects entities in the
* <code>MEDICAL_CONDITION</code> category. </p>
*/
inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
/**
* <p> The category of the entity. InferICD10CM detects entities in the
* <code>MEDICAL_CONDITION</code> category. </p>
*/
inline void SetCategory(const ICD10CMEntityCategory& value) { m_categoryHasBeenSet = true; m_category = value; }
/**
* <p> The category of the entity. InferICD10CM detects entities in the
* <code>MEDICAL_CONDITION</code> category. </p>
*/
inline void SetCategory(ICD10CMEntityCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
/**
* <p> The category of the entity. InferICD10CM detects entities in the
* <code>MEDICAL_CONDITION</code> category. </p>
*/
inline ICD10CMEntity& WithCategory(const ICD10CMEntityCategory& value) { SetCategory(value); return *this;}
/**
* <p> The category of the entity. InferICD10CM detects entities in the
* <code>MEDICAL_CONDITION</code> category. </p>
*/
inline ICD10CMEntity& WithCategory(ICD10CMEntityCategory&& value) { SetCategory(std::move(value)); return *this;}
/**
* <p>Describes the specific type of entity with category of entities. InferICD10CM
* detects entities of the type <code>DX_NAME</code>.</p>
*/
inline const ICD10CMEntityType& GetType() const{ return m_type; }
/**
* <p>Describes the specific type of entity with category of entities. InferICD10CM
* detects entities of the type <code>DX_NAME</code>.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Describes the specific type of entity with category of entities. InferICD10CM
* detects entities of the type <code>DX_NAME</code>.</p>
*/
inline void SetType(const ICD10CMEntityType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Describes the specific type of entity with category of entities. InferICD10CM
* detects entities of the type <code>DX_NAME</code>.</p>
*/
inline void SetType(ICD10CMEntityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Describes the specific type of entity with category of entities. InferICD10CM
* detects entities of the type <code>DX_NAME</code>.</p>
*/
inline ICD10CMEntity& WithType(const ICD10CMEntityType& value) { SetType(value); return *this;}
/**
* <p>Describes the specific type of entity with category of entities. InferICD10CM
* detects entities of the type <code>DX_NAME</code>.</p>
*/
inline ICD10CMEntity& WithType(ICD10CMEntityType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detection.</p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detection.</p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detection.</p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detection.</p>
*/
inline ICD10CMEntity& WithScore(double value) { SetScore(value); return *this;}
/**
* <p>The 0-based character offset in the input text that shows where the entity
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline int GetBeginOffset() const{ return m_beginOffset; }
/**
* <p>The 0-based character offset in the input text that shows where the entity
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
/**
* <p>The 0-based character offset in the input text that shows where the entity
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
/**
* <p>The 0-based character offset in the input text that shows where the entity
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline ICD10CMEntity& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
/**
* <p>The 0-based character offset in the input text that shows where the entity
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline int GetEndOffset() const{ return m_endOffset; }
/**
* <p>The 0-based character offset in the input text that shows where the entity
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
/**
* <p>The 0-based character offset in the input text that shows where the entity
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
/**
* <p>The 0-based character offset in the input text that shows where the entity
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline ICD10CMEntity& WithEndOffset(int value) { SetEndOffset(value); return *this;}
/**
* <p>The detected attributes that relate to the entity. An extracted segment of
* the text that is an attribute of an entity, or otherwise related to an entity,
* such as the nature of a medical condition.</p>
*/
inline const Aws::Vector<ICD10CMAttribute>& GetAttributes() const{ return m_attributes; }
/**
* <p>The detected attributes that relate to the entity. An extracted segment of
* the text that is an attribute of an entity, or otherwise related to an entity,
* such as the nature of a medical condition.</p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p>The detected attributes that relate to the entity. An extracted segment of
* the text that is an attribute of an entity, or otherwise related to an entity,
* such as the nature of a medical condition.</p>
*/
inline void SetAttributes(const Aws::Vector<ICD10CMAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p>The detected attributes that relate to the entity. An extracted segment of
* the text that is an attribute of an entity, or otherwise related to an entity,
* such as the nature of a medical condition.</p>
*/
inline void SetAttributes(Aws::Vector<ICD10CMAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p>The detected attributes that relate to the entity. An extracted segment of
* the text that is an attribute of an entity, or otherwise related to an entity,
* such as the nature of a medical condition.</p>
*/
inline ICD10CMEntity& WithAttributes(const Aws::Vector<ICD10CMAttribute>& value) { SetAttributes(value); return *this;}
/**
* <p>The detected attributes that relate to the entity. An extracted segment of
* the text that is an attribute of an entity, or otherwise related to an entity,
* such as the nature of a medical condition.</p>
*/
inline ICD10CMEntity& WithAttributes(Aws::Vector<ICD10CMAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p>The detected attributes that relate to the entity. An extracted segment of
* the text that is an attribute of an entity, or otherwise related to an entity,
* such as the nature of a medical condition.</p>
*/
inline ICD10CMEntity& AddAttributes(const ICD10CMAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
/**
* <p>The detected attributes that relate to the entity. An extracted segment of
* the text that is an attribute of an entity, or otherwise related to an entity,
* such as the nature of a medical condition.</p>
*/
inline ICD10CMEntity& AddAttributes(ICD10CMAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
/**
* <p>Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION.</code> </p>
*/
inline const Aws::Vector<ICD10CMTrait>& GetTraits() const{ return m_traits; }
/**
* <p>Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION.</code> </p>
*/
inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
/**
* <p>Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION.</code> </p>
*/
inline void SetTraits(const Aws::Vector<ICD10CMTrait>& value) { m_traitsHasBeenSet = true; m_traits = value; }
/**
* <p>Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION.</code> </p>
*/
inline void SetTraits(Aws::Vector<ICD10CMTrait>&& value) { m_traitsHasBeenSet = true; m_traits = std::move(value); }
/**
* <p>Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION.</code> </p>
*/
inline ICD10CMEntity& WithTraits(const Aws::Vector<ICD10CMTrait>& value) { SetTraits(value); return *this;}
/**
* <p>Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION.</code> </p>
*/
inline ICD10CMEntity& WithTraits(Aws::Vector<ICD10CMTrait>&& value) { SetTraits(std::move(value)); return *this;}
/**
* <p>Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION.</code> </p>
*/
inline ICD10CMEntity& AddTraits(const ICD10CMTrait& value) { m_traitsHasBeenSet = true; m_traits.push_back(value); return *this; }
/**
* <p>Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are <code>DIAGNOSIS</code>, <code>SIGN</code>,
* <code>SYMPTOM</code>, and <code>NEGATION.</code> </p>
*/
inline ICD10CMEntity& AddTraits(ICD10CMTrait&& value) { m_traitsHasBeenSet = true; m_traits.push_back(std::move(value)); return *this; }
/**
* <p>The ICD-10-CM concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline const Aws::Vector<ICD10CMConcept>& GetICD10CMConcepts() const{ return m_iCD10CMConcepts; }
/**
* <p>The ICD-10-CM concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline bool ICD10CMConceptsHasBeenSet() const { return m_iCD10CMConceptsHasBeenSet; }
/**
* <p>The ICD-10-CM concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline void SetICD10CMConcepts(const Aws::Vector<ICD10CMConcept>& value) { m_iCD10CMConceptsHasBeenSet = true; m_iCD10CMConcepts = value; }
/**
* <p>The ICD-10-CM concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline void SetICD10CMConcepts(Aws::Vector<ICD10CMConcept>&& value) { m_iCD10CMConceptsHasBeenSet = true; m_iCD10CMConcepts = std::move(value); }
/**
* <p>The ICD-10-CM concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline ICD10CMEntity& WithICD10CMConcepts(const Aws::Vector<ICD10CMConcept>& value) { SetICD10CMConcepts(value); return *this;}
/**
* <p>The ICD-10-CM concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline ICD10CMEntity& WithICD10CMConcepts(Aws::Vector<ICD10CMConcept>&& value) { SetICD10CMConcepts(std::move(value)); return *this;}
/**
* <p>The ICD-10-CM concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline ICD10CMEntity& AddICD10CMConcepts(const ICD10CMConcept& value) { m_iCD10CMConceptsHasBeenSet = true; m_iCD10CMConcepts.push_back(value); return *this; }
/**
* <p>The ICD-10-CM concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline ICD10CMEntity& AddICD10CMConcepts(ICD10CMConcept&& value) { m_iCD10CMConceptsHasBeenSet = true; m_iCD10CMConcepts.push_back(std::move(value)); return *this; }
private:
int m_id;
bool m_idHasBeenSet;
Aws::String m_text;
bool m_textHasBeenSet;
ICD10CMEntityCategory m_category;
bool m_categoryHasBeenSet;
ICD10CMEntityType m_type;
bool m_typeHasBeenSet;
double m_score;
bool m_scoreHasBeenSet;
int m_beginOffset;
bool m_beginOffsetHasBeenSet;
int m_endOffset;
bool m_endOffsetHasBeenSet;
Aws::Vector<ICD10CMAttribute> m_attributes;
bool m_attributesHasBeenSet;
Aws::Vector<ICD10CMTrait> m_traits;
bool m_traitsHasBeenSet;
Aws::Vector<ICD10CMConcept> m_iCD10CMConcepts;
bool m_iCD10CMConceptsHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
enum class ICD10CMEntityCategory
{
NOT_SET,
MEDICAL_CONDITION
};
namespace ICD10CMEntityCategoryMapper
{
AWS_COMPREHENDMEDICAL_API ICD10CMEntityCategory GetICD10CMEntityCategoryForName(const Aws::String& name);
AWS_COMPREHENDMEDICAL_API Aws::String GetNameForICD10CMEntityCategory(ICD10CMEntityCategory value);
} // namespace ICD10CMEntityCategoryMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
enum class ICD10CMEntityType
{
NOT_SET,
DX_NAME
};
namespace ICD10CMEntityTypeMapper
{
AWS_COMPREHENDMEDICAL_API ICD10CMEntityType GetICD10CMEntityTypeForName(const Aws::String& name);
AWS_COMPREHENDMEDICAL_API Aws::String GetNameForICD10CMEntityType(ICD10CMEntityType value);
} // namespace ICD10CMEntityTypeMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,108 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/model/ICD10CMTraitName.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p>Contextual information for the entity. The traits recognized by InferICD10CM
* are <code>DIAGNOSIS</code>, <code>SIGN</code>, <code>SYMPTOM</code>, and
* <code>NEGATION</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ICD10CMTrait">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API ICD10CMTrait
{
public:
ICD10CMTrait();
ICD10CMTrait(Aws::Utils::Json::JsonView jsonValue);
ICD10CMTrait& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Provides a name or contextual description about the trait.</p>
*/
inline const ICD10CMTraitName& GetName() const{ return m_name; }
/**
* <p>Provides a name or contextual description about the trait.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>Provides a name or contextual description about the trait.</p>
*/
inline void SetName(const ICD10CMTraitName& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>Provides a name or contextual description about the trait.</p>
*/
inline void SetName(ICD10CMTraitName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>Provides a name or contextual description about the trait.</p>
*/
inline ICD10CMTrait& WithName(const ICD10CMTraitName& value) { SetName(value); return *this;}
/**
* <p>Provides a name or contextual description about the trait.</p>
*/
inline ICD10CMTrait& WithName(ICD10CMTraitName&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the segment
* of text is correctly recognized as a trait.</p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the segment
* of text is correctly recognized as a trait.</p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the segment
* of text is correctly recognized as a trait.</p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the segment
* of text is correctly recognized as a trait.</p>
*/
inline ICD10CMTrait& WithScore(double value) { SetScore(value); return *this;}
private:
ICD10CMTraitName m_name;
bool m_nameHasBeenSet;
double m_score;
bool m_scoreHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
enum class ICD10CMTraitName
{
NOT_SET,
NEGATION,
DIAGNOSIS,
SIGN,
SYMPTOM
};
namespace ICD10CMTraitNameMapper
{
AWS_COMPREHENDMEDICAL_API ICD10CMTraitName GetICD10CMTraitNameForName(const Aws::String& name);
AWS_COMPREHENDMEDICAL_API Aws::String GetNameForICD10CMTraitName(ICD10CMTraitName value);
} // namespace ICD10CMTraitNameMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API InferICD10CMRequest : public ComprehendMedicalRequest
{
public:
InferICD10CMRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "InferICD10CM"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The input text used for analysis. The input for InferICD10CM is a string from
* 1 to 10000 characters.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>The input text used for analysis. The input for InferICD10CM is a string from
* 1 to 10000 characters.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>The input text used for analysis. The input for InferICD10CM is a string from
* 1 to 10000 characters.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>The input text used for analysis. The input for InferICD10CM is a string from
* 1 to 10000 characters.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>The input text used for analysis. The input for InferICD10CM is a string from
* 1 to 10000 characters.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>The input text used for analysis. The input for InferICD10CM is a string from
* 1 to 10000 characters.</p>
*/
inline InferICD10CMRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>The input text used for analysis. The input for InferICD10CM is a string from
* 1 to 10000 characters.</p>
*/
inline InferICD10CMRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>The input text used for analysis. The input for InferICD10CM is a string from
* 1 to 10000 characters.</p>
*/
inline InferICD10CMRequest& WithText(const char* value) { SetText(value); return *this;}
private:
Aws::String m_text;
bool m_textHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,197 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/ICD10CMEntity.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API InferICD10CMResult
{
public:
InferICD10CMResult();
InferICD10CMResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
InferICD10CMResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The medical conditions detected in the text linked to ICD-10-CM concepts. If
* the action is successful, the service sends back an HTTP 200 response, as well
* as the entities detected.</p>
*/
inline const Aws::Vector<ICD10CMEntity>& GetEntities() const{ return m_entities; }
/**
* <p>The medical conditions detected in the text linked to ICD-10-CM concepts. If
* the action is successful, the service sends back an HTTP 200 response, as well
* as the entities detected.</p>
*/
inline void SetEntities(const Aws::Vector<ICD10CMEntity>& value) { m_entities = value; }
/**
* <p>The medical conditions detected in the text linked to ICD-10-CM concepts. If
* the action is successful, the service sends back an HTTP 200 response, as well
* as the entities detected.</p>
*/
inline void SetEntities(Aws::Vector<ICD10CMEntity>&& value) { m_entities = std::move(value); }
/**
* <p>The medical conditions detected in the text linked to ICD-10-CM concepts. If
* the action is successful, the service sends back an HTTP 200 response, as well
* as the entities detected.</p>
*/
inline InferICD10CMResult& WithEntities(const Aws::Vector<ICD10CMEntity>& value) { SetEntities(value); return *this;}
/**
* <p>The medical conditions detected in the text linked to ICD-10-CM concepts. If
* the action is successful, the service sends back an HTTP 200 response, as well
* as the entities detected.</p>
*/
inline InferICD10CMResult& WithEntities(Aws::Vector<ICD10CMEntity>&& value) { SetEntities(std::move(value)); return *this;}
/**
* <p>The medical conditions detected in the text linked to ICD-10-CM concepts. If
* the action is successful, the service sends back an HTTP 200 response, as well
* as the entities detected.</p>
*/
inline InferICD10CMResult& AddEntities(const ICD10CMEntity& value) { m_entities.push_back(value); return *this; }
/**
* <p>The medical conditions detected in the text linked to ICD-10-CM concepts. If
* the action is successful, the service sends back an HTTP 200 response, as well
* as the entities detected.</p>
*/
inline InferICD10CMResult& AddEntities(ICD10CMEntity&& value) { m_entities.push_back(std::move(value)); return *this; }
/**
* <p>If the result of the previous request to <code>InferICD10CM</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* medical condition entities. </p>
*/
inline const Aws::String& GetPaginationToken() const{ return m_paginationToken; }
/**
* <p>If the result of the previous request to <code>InferICD10CM</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* medical condition entities. </p>
*/
inline void SetPaginationToken(const Aws::String& value) { m_paginationToken = value; }
/**
* <p>If the result of the previous request to <code>InferICD10CM</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* medical condition entities. </p>
*/
inline void SetPaginationToken(Aws::String&& value) { m_paginationToken = std::move(value); }
/**
* <p>If the result of the previous request to <code>InferICD10CM</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* medical condition entities. </p>
*/
inline void SetPaginationToken(const char* value) { m_paginationToken.assign(value); }
/**
* <p>If the result of the previous request to <code>InferICD10CM</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* medical condition entities. </p>
*/
inline InferICD10CMResult& WithPaginationToken(const Aws::String& value) { SetPaginationToken(value); return *this;}
/**
* <p>If the result of the previous request to <code>InferICD10CM</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* medical condition entities. </p>
*/
inline InferICD10CMResult& WithPaginationToken(Aws::String&& value) { SetPaginationToken(std::move(value)); return *this;}
/**
* <p>If the result of the previous request to <code>InferICD10CM</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* medical condition entities. </p>
*/
inline InferICD10CMResult& WithPaginationToken(const char* value) { SetPaginationToken(value); return *this;}
/**
* <p>The version of the model used to analyze the documents, in the format
* <i>n</i>.<i>n</i>.<i>n</i> You can use this information to track the model used
* for a particular batch of documents.</p>
*/
inline const Aws::String& GetModelVersion() const{ return m_modelVersion; }
/**
* <p>The version of the model used to analyze the documents, in the format
* <i>n</i>.<i>n</i>.<i>n</i> You can use this information to track the model used
* for a particular batch of documents.</p>
*/
inline void SetModelVersion(const Aws::String& value) { m_modelVersion = value; }
/**
* <p>The version of the model used to analyze the documents, in the format
* <i>n</i>.<i>n</i>.<i>n</i> You can use this information to track the model used
* for a particular batch of documents.</p>
*/
inline void SetModelVersion(Aws::String&& value) { m_modelVersion = std::move(value); }
/**
* <p>The version of the model used to analyze the documents, in the format
* <i>n</i>.<i>n</i>.<i>n</i> You can use this information to track the model used
* for a particular batch of documents.</p>
*/
inline void SetModelVersion(const char* value) { m_modelVersion.assign(value); }
/**
* <p>The version of the model used to analyze the documents, in the format
* <i>n</i>.<i>n</i>.<i>n</i> You can use this information to track the model used
* for a particular batch of documents.</p>
*/
inline InferICD10CMResult& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;}
/**
* <p>The version of the model used to analyze the documents, in the format
* <i>n</i>.<i>n</i>.<i>n</i> You can use this information to track the model used
* for a particular batch of documents.</p>
*/
inline InferICD10CMResult& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;}
/**
* <p>The version of the model used to analyze the documents, in the format
* <i>n</i>.<i>n</i>.<i>n</i> You can use this information to track the model used
* for a particular batch of documents.</p>
*/
inline InferICD10CMResult& WithModelVersion(const char* value) { SetModelVersion(value); return *this;}
private:
Aws::Vector<ICD10CMEntity> m_entities;
Aws::String m_paginationToken;
Aws::String m_modelVersion;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API InferRxNormRequest : public ComprehendMedicalRequest
{
public:
InferRxNormRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "InferRxNorm"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The input text used for analysis. The input for InferRxNorm is a string from
* 1 to 10000 characters.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>The input text used for analysis. The input for InferRxNorm is a string from
* 1 to 10000 characters.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>The input text used for analysis. The input for InferRxNorm is a string from
* 1 to 10000 characters.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>The input text used for analysis. The input for InferRxNorm is a string from
* 1 to 10000 characters.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>The input text used for analysis. The input for InferRxNorm is a string from
* 1 to 10000 characters.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>The input text used for analysis. The input for InferRxNorm is a string from
* 1 to 10000 characters.</p>
*/
inline InferRxNormRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>The input text used for analysis. The input for InferRxNorm is a string from
* 1 to 10000 characters.</p>
*/
inline InferRxNormRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>The input text used for analysis. The input for InferRxNorm is a string from
* 1 to 10000 characters.</p>
*/
inline InferRxNormRequest& WithText(const char* value) { SetText(value); return *this;}
private:
Aws::String m_text;
bool m_textHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,197 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/RxNormEntity.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API InferRxNormResult
{
public:
InferRxNormResult();
InferRxNormResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
InferRxNormResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The medication entities detected in the text linked to RxNorm concepts. If
* the action is successful, the service sends back an HTTP 200 response, as well
* as the entities detected.</p>
*/
inline const Aws::Vector<RxNormEntity>& GetEntities() const{ return m_entities; }
/**
* <p>The medication entities detected in the text linked to RxNorm concepts. If
* the action is successful, the service sends back an HTTP 200 response, as well
* as the entities detected.</p>
*/
inline void SetEntities(const Aws::Vector<RxNormEntity>& value) { m_entities = value; }
/**
* <p>The medication entities detected in the text linked to RxNorm concepts. If
* the action is successful, the service sends back an HTTP 200 response, as well
* as the entities detected.</p>
*/
inline void SetEntities(Aws::Vector<RxNormEntity>&& value) { m_entities = std::move(value); }
/**
* <p>The medication entities detected in the text linked to RxNorm concepts. If
* the action is successful, the service sends back an HTTP 200 response, as well
* as the entities detected.</p>
*/
inline InferRxNormResult& WithEntities(const Aws::Vector<RxNormEntity>& value) { SetEntities(value); return *this;}
/**
* <p>The medication entities detected in the text linked to RxNorm concepts. If
* the action is successful, the service sends back an HTTP 200 response, as well
* as the entities detected.</p>
*/
inline InferRxNormResult& WithEntities(Aws::Vector<RxNormEntity>&& value) { SetEntities(std::move(value)); return *this;}
/**
* <p>The medication entities detected in the text linked to RxNorm concepts. If
* the action is successful, the service sends back an HTTP 200 response, as well
* as the entities detected.</p>
*/
inline InferRxNormResult& AddEntities(const RxNormEntity& value) { m_entities.push_back(value); return *this; }
/**
* <p>The medication entities detected in the text linked to RxNorm concepts. If
* the action is successful, the service sends back an HTTP 200 response, as well
* as the entities detected.</p>
*/
inline InferRxNormResult& AddEntities(RxNormEntity&& value) { m_entities.push_back(std::move(value)); return *this; }
/**
* <p>If the result of the previous request to <code>InferRxNorm</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* medication entities.</p>
*/
inline const Aws::String& GetPaginationToken() const{ return m_paginationToken; }
/**
* <p>If the result of the previous request to <code>InferRxNorm</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* medication entities.</p>
*/
inline void SetPaginationToken(const Aws::String& value) { m_paginationToken = value; }
/**
* <p>If the result of the previous request to <code>InferRxNorm</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* medication entities.</p>
*/
inline void SetPaginationToken(Aws::String&& value) { m_paginationToken = std::move(value); }
/**
* <p>If the result of the previous request to <code>InferRxNorm</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* medication entities.</p>
*/
inline void SetPaginationToken(const char* value) { m_paginationToken.assign(value); }
/**
* <p>If the result of the previous request to <code>InferRxNorm</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* medication entities.</p>
*/
inline InferRxNormResult& WithPaginationToken(const Aws::String& value) { SetPaginationToken(value); return *this;}
/**
* <p>If the result of the previous request to <code>InferRxNorm</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* medication entities.</p>
*/
inline InferRxNormResult& WithPaginationToken(Aws::String&& value) { SetPaginationToken(std::move(value)); return *this;}
/**
* <p>If the result of the previous request to <code>InferRxNorm</code> was
* truncated, include the <code>PaginationToken</code> to fetch the next page of
* medication entities.</p>
*/
inline InferRxNormResult& WithPaginationToken(const char* value) { SetPaginationToken(value); return *this;}
/**
* <p>The version of the model used to analyze the documents, in the format
* <i>n</i>.<i>n</i>.<i>n</i> You can use this information to track the model used
* for a particular batch of documents.</p>
*/
inline const Aws::String& GetModelVersion() const{ return m_modelVersion; }
/**
* <p>The version of the model used to analyze the documents, in the format
* <i>n</i>.<i>n</i>.<i>n</i> You can use this information to track the model used
* for a particular batch of documents.</p>
*/
inline void SetModelVersion(const Aws::String& value) { m_modelVersion = value; }
/**
* <p>The version of the model used to analyze the documents, in the format
* <i>n</i>.<i>n</i>.<i>n</i> You can use this information to track the model used
* for a particular batch of documents.</p>
*/
inline void SetModelVersion(Aws::String&& value) { m_modelVersion = std::move(value); }
/**
* <p>The version of the model used to analyze the documents, in the format
* <i>n</i>.<i>n</i>.<i>n</i> You can use this information to track the model used
* for a particular batch of documents.</p>
*/
inline void SetModelVersion(const char* value) { m_modelVersion.assign(value); }
/**
* <p>The version of the model used to analyze the documents, in the format
* <i>n</i>.<i>n</i>.<i>n</i> You can use this information to track the model used
* for a particular batch of documents.</p>
*/
inline InferRxNormResult& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;}
/**
* <p>The version of the model used to analyze the documents, in the format
* <i>n</i>.<i>n</i>.<i>n</i> You can use this information to track the model used
* for a particular batch of documents.</p>
*/
inline InferRxNormResult& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;}
/**
* <p>The version of the model used to analyze the documents, in the format
* <i>n</i>.<i>n</i>.<i>n</i> You can use this information to track the model used
* for a particular batch of documents.</p>
*/
inline InferRxNormResult& WithModelVersion(const char* value) { SetModelVersion(value); return *this;}
private:
Aws::Vector<RxNormEntity> m_entities;
Aws::String m_paginationToken;
Aws::String m_modelVersion;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,158 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p>The input properties for an entities detection job. This includes the name of
* the S3 bucket and the path to the files to be analyzed. See
* <a>batch-manifest</a> for more information. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/InputDataConfig">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API InputDataConfig
{
public:
InputDataConfig();
InputDataConfig(Aws::Utils::Json::JsonView jsonValue);
InputDataConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The URI of the S3 bucket that contains the input data. The bucket must be in
* the same region as the API endpoint that you are calling.</p> <p>Each file in
* the document collection must be less than 40 KB. You can store a maximum of 30
* GB in the bucket.</p>
*/
inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
/**
* <p>The URI of the S3 bucket that contains the input data. The bucket must be in
* the same region as the API endpoint that you are calling.</p> <p>Each file in
* the document collection must be less than 40 KB. You can store a maximum of 30
* GB in the bucket.</p>
*/
inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
/**
* <p>The URI of the S3 bucket that contains the input data. The bucket must be in
* the same region as the API endpoint that you are calling.</p> <p>Each file in
* the document collection must be less than 40 KB. You can store a maximum of 30
* GB in the bucket.</p>
*/
inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
/**
* <p>The URI of the S3 bucket that contains the input data. The bucket must be in
* the same region as the API endpoint that you are calling.</p> <p>Each file in
* the document collection must be less than 40 KB. You can store a maximum of 30
* GB in the bucket.</p>
*/
inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
/**
* <p>The URI of the S3 bucket that contains the input data. The bucket must be in
* the same region as the API endpoint that you are calling.</p> <p>Each file in
* the document collection must be less than 40 KB. You can store a maximum of 30
* GB in the bucket.</p>
*/
inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
/**
* <p>The URI of the S3 bucket that contains the input data. The bucket must be in
* the same region as the API endpoint that you are calling.</p> <p>Each file in
* the document collection must be less than 40 KB. You can store a maximum of 30
* GB in the bucket.</p>
*/
inline InputDataConfig& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
/**
* <p>The URI of the S3 bucket that contains the input data. The bucket must be in
* the same region as the API endpoint that you are calling.</p> <p>Each file in
* the document collection must be less than 40 KB. You can store a maximum of 30
* GB in the bucket.</p>
*/
inline InputDataConfig& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
/**
* <p>The URI of the S3 bucket that contains the input data. The bucket must be in
* the same region as the API endpoint that you are calling.</p> <p>Each file in
* the document collection must be less than 40 KB. You can store a maximum of 30
* GB in the bucket.</p>
*/
inline InputDataConfig& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
/**
* <p>The path to the input data files in the S3 bucket.</p>
*/
inline const Aws::String& GetS3Key() const{ return m_s3Key; }
/**
* <p>The path to the input data files in the S3 bucket.</p>
*/
inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
/**
* <p>The path to the input data files in the S3 bucket.</p>
*/
inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
/**
* <p>The path to the input data files in the S3 bucket.</p>
*/
inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::move(value); }
/**
* <p>The path to the input data files in the S3 bucket.</p>
*/
inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
/**
* <p>The path to the input data files in the S3 bucket.</p>
*/
inline InputDataConfig& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
/**
* <p>The path to the input data files in the S3 bucket.</p>
*/
inline InputDataConfig& WithS3Key(Aws::String&& value) { SetS3Key(std::move(value)); return *this;}
/**
* <p>The path to the input data files in the S3 bucket.</p>
*/
inline InputDataConfig& WithS3Key(const char* value) { SetS3Key(value); return *this;}
private:
Aws::String m_s3Bucket;
bool m_s3BucketHasBeenSet;
Aws::String m_s3Key;
bool m_s3KeyHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
enum class JobStatus
{
NOT_SET,
SUBMITTED,
IN_PROGRESS,
COMPLETED,
PARTIAL_SUCCESS,
FAILED,
STOP_REQUESTED,
STOPPED
};
namespace JobStatusMapper
{
AWS_COMPREHENDMEDICAL_API JobStatus GetJobStatusForName(const Aws::String& name);
AWS_COMPREHENDMEDICAL_API Aws::String GetNameForJobStatus(JobStatus value);
} // namespace JobStatusMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
enum class LanguageCode
{
NOT_SET,
en
};
namespace LanguageCodeMapper
{
AWS_COMPREHENDMEDICAL_API LanguageCode GetLanguageCodeForName(const Aws::String& name);
AWS_COMPREHENDMEDICAL_API Aws::String GetNameForLanguageCode(LanguageCode value);
} // namespace LanguageCodeMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,156 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/comprehendmedical/model/ComprehendMedicalAsyncJobFilter.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API ListEntitiesDetectionV2JobsRequest : public ComprehendMedicalRequest
{
public:
ListEntitiesDetectionV2JobsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListEntitiesDetectionV2Jobs"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline const ComprehendMedicalAsyncJobFilter& GetFilter() const{ return m_filter; }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline void SetFilter(const ComprehendMedicalAsyncJobFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline void SetFilter(ComprehendMedicalAsyncJobFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline ListEntitiesDetectionV2JobsRequest& WithFilter(const ComprehendMedicalAsyncJobFilter& value) { SetFilter(value); return *this;}
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline ListEntitiesDetectionV2JobsRequest& WithFilter(ComprehendMedicalAsyncJobFilter&& value) { SetFilter(std::move(value)); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListEntitiesDetectionV2JobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListEntitiesDetectionV2JobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListEntitiesDetectionV2JobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline ListEntitiesDetectionV2JobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
ComprehendMedicalAsyncJobFilter m_filter;
bool m_filterHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/ComprehendMedicalAsyncJobProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API ListEntitiesDetectionV2JobsResult
{
public:
ListEntitiesDetectionV2JobsResult();
ListEntitiesDetectionV2JobsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListEntitiesDetectionV2JobsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list containing the properties of each job returned.</p>
*/
inline const Aws::Vector<ComprehendMedicalAsyncJobProperties>& GetComprehendMedicalAsyncJobPropertiesList() const{ return m_comprehendMedicalAsyncJobPropertiesList; }
/**
* <p>A list containing the properties of each job returned.</p>
*/
inline void SetComprehendMedicalAsyncJobPropertiesList(const Aws::Vector<ComprehendMedicalAsyncJobProperties>& value) { m_comprehendMedicalAsyncJobPropertiesList = value; }
/**
* <p>A list containing the properties of each job returned.</p>
*/
inline void SetComprehendMedicalAsyncJobPropertiesList(Aws::Vector<ComprehendMedicalAsyncJobProperties>&& value) { m_comprehendMedicalAsyncJobPropertiesList = std::move(value); }
/**
* <p>A list containing the properties of each job returned.</p>
*/
inline ListEntitiesDetectionV2JobsResult& WithComprehendMedicalAsyncJobPropertiesList(const Aws::Vector<ComprehendMedicalAsyncJobProperties>& value) { SetComprehendMedicalAsyncJobPropertiesList(value); return *this;}
/**
* <p>A list containing the properties of each job returned.</p>
*/
inline ListEntitiesDetectionV2JobsResult& WithComprehendMedicalAsyncJobPropertiesList(Aws::Vector<ComprehendMedicalAsyncJobProperties>&& value) { SetComprehendMedicalAsyncJobPropertiesList(std::move(value)); return *this;}
/**
* <p>A list containing the properties of each job returned.</p>
*/
inline ListEntitiesDetectionV2JobsResult& AddComprehendMedicalAsyncJobPropertiesList(const ComprehendMedicalAsyncJobProperties& value) { m_comprehendMedicalAsyncJobPropertiesList.push_back(value); return *this; }
/**
* <p>A list containing the properties of each job returned.</p>
*/
inline ListEntitiesDetectionV2JobsResult& AddComprehendMedicalAsyncJobPropertiesList(ComprehendMedicalAsyncJobProperties&& value) { m_comprehendMedicalAsyncJobPropertiesList.push_back(std::move(value)); return *this; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListEntitiesDetectionV2JobsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListEntitiesDetectionV2JobsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListEntitiesDetectionV2JobsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<ComprehendMedicalAsyncJobProperties> m_comprehendMedicalAsyncJobPropertiesList;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,156 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/comprehendmedical/model/ComprehendMedicalAsyncJobFilter.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API ListICD10CMInferenceJobsRequest : public ComprehendMedicalRequest
{
public:
ListICD10CMInferenceJobsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListICD10CMInferenceJobs"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline const ComprehendMedicalAsyncJobFilter& GetFilter() const{ return m_filter; }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline void SetFilter(const ComprehendMedicalAsyncJobFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline void SetFilter(ComprehendMedicalAsyncJobFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline ListICD10CMInferenceJobsRequest& WithFilter(const ComprehendMedicalAsyncJobFilter& value) { SetFilter(value); return *this;}
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline ListICD10CMInferenceJobsRequest& WithFilter(ComprehendMedicalAsyncJobFilter&& value) { SetFilter(std::move(value)); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListICD10CMInferenceJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListICD10CMInferenceJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListICD10CMInferenceJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline ListICD10CMInferenceJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
ComprehendMedicalAsyncJobFilter m_filter;
bool m_filterHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/ComprehendMedicalAsyncJobProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API ListICD10CMInferenceJobsResult
{
public:
ListICD10CMInferenceJobsResult();
ListICD10CMInferenceJobsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListICD10CMInferenceJobsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list containing the properties of each job that is returned.</p>
*/
inline const Aws::Vector<ComprehendMedicalAsyncJobProperties>& GetComprehendMedicalAsyncJobPropertiesList() const{ return m_comprehendMedicalAsyncJobPropertiesList; }
/**
* <p>A list containing the properties of each job that is returned.</p>
*/
inline void SetComprehendMedicalAsyncJobPropertiesList(const Aws::Vector<ComprehendMedicalAsyncJobProperties>& value) { m_comprehendMedicalAsyncJobPropertiesList = value; }
/**
* <p>A list containing the properties of each job that is returned.</p>
*/
inline void SetComprehendMedicalAsyncJobPropertiesList(Aws::Vector<ComprehendMedicalAsyncJobProperties>&& value) { m_comprehendMedicalAsyncJobPropertiesList = std::move(value); }
/**
* <p>A list containing the properties of each job that is returned.</p>
*/
inline ListICD10CMInferenceJobsResult& WithComprehendMedicalAsyncJobPropertiesList(const Aws::Vector<ComprehendMedicalAsyncJobProperties>& value) { SetComprehendMedicalAsyncJobPropertiesList(value); return *this;}
/**
* <p>A list containing the properties of each job that is returned.</p>
*/
inline ListICD10CMInferenceJobsResult& WithComprehendMedicalAsyncJobPropertiesList(Aws::Vector<ComprehendMedicalAsyncJobProperties>&& value) { SetComprehendMedicalAsyncJobPropertiesList(std::move(value)); return *this;}
/**
* <p>A list containing the properties of each job that is returned.</p>
*/
inline ListICD10CMInferenceJobsResult& AddComprehendMedicalAsyncJobPropertiesList(const ComprehendMedicalAsyncJobProperties& value) { m_comprehendMedicalAsyncJobPropertiesList.push_back(value); return *this; }
/**
* <p>A list containing the properties of each job that is returned.</p>
*/
inline ListICD10CMInferenceJobsResult& AddComprehendMedicalAsyncJobPropertiesList(ComprehendMedicalAsyncJobProperties&& value) { m_comprehendMedicalAsyncJobPropertiesList.push_back(std::move(value)); return *this; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListICD10CMInferenceJobsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListICD10CMInferenceJobsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListICD10CMInferenceJobsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<ComprehendMedicalAsyncJobProperties> m_comprehendMedicalAsyncJobPropertiesList;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,156 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/comprehendmedical/model/ComprehendMedicalAsyncJobFilter.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API ListPHIDetectionJobsRequest : public ComprehendMedicalRequest
{
public:
ListPHIDetectionJobsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListPHIDetectionJobs"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline const ComprehendMedicalAsyncJobFilter& GetFilter() const{ return m_filter; }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline void SetFilter(const ComprehendMedicalAsyncJobFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline void SetFilter(ComprehendMedicalAsyncJobFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline ListPHIDetectionJobsRequest& WithFilter(const ComprehendMedicalAsyncJobFilter& value) { SetFilter(value); return *this;}
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline ListPHIDetectionJobsRequest& WithFilter(ComprehendMedicalAsyncJobFilter&& value) { SetFilter(std::move(value)); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListPHIDetectionJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListPHIDetectionJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListPHIDetectionJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline ListPHIDetectionJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
ComprehendMedicalAsyncJobFilter m_filter;
bool m_filterHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/ComprehendMedicalAsyncJobProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API ListPHIDetectionJobsResult
{
public:
ListPHIDetectionJobsResult();
ListPHIDetectionJobsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListPHIDetectionJobsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list containing the properties of each job returned.</p>
*/
inline const Aws::Vector<ComprehendMedicalAsyncJobProperties>& GetComprehendMedicalAsyncJobPropertiesList() const{ return m_comprehendMedicalAsyncJobPropertiesList; }
/**
* <p>A list containing the properties of each job returned.</p>
*/
inline void SetComprehendMedicalAsyncJobPropertiesList(const Aws::Vector<ComprehendMedicalAsyncJobProperties>& value) { m_comprehendMedicalAsyncJobPropertiesList = value; }
/**
* <p>A list containing the properties of each job returned.</p>
*/
inline void SetComprehendMedicalAsyncJobPropertiesList(Aws::Vector<ComprehendMedicalAsyncJobProperties>&& value) { m_comprehendMedicalAsyncJobPropertiesList = std::move(value); }
/**
* <p>A list containing the properties of each job returned.</p>
*/
inline ListPHIDetectionJobsResult& WithComprehendMedicalAsyncJobPropertiesList(const Aws::Vector<ComprehendMedicalAsyncJobProperties>& value) { SetComprehendMedicalAsyncJobPropertiesList(value); return *this;}
/**
* <p>A list containing the properties of each job returned.</p>
*/
inline ListPHIDetectionJobsResult& WithComprehendMedicalAsyncJobPropertiesList(Aws::Vector<ComprehendMedicalAsyncJobProperties>&& value) { SetComprehendMedicalAsyncJobPropertiesList(std::move(value)); return *this;}
/**
* <p>A list containing the properties of each job returned.</p>
*/
inline ListPHIDetectionJobsResult& AddComprehendMedicalAsyncJobPropertiesList(const ComprehendMedicalAsyncJobProperties& value) { m_comprehendMedicalAsyncJobPropertiesList.push_back(value); return *this; }
/**
* <p>A list containing the properties of each job returned.</p>
*/
inline ListPHIDetectionJobsResult& AddComprehendMedicalAsyncJobPropertiesList(ComprehendMedicalAsyncJobProperties&& value) { m_comprehendMedicalAsyncJobPropertiesList.push_back(std::move(value)); return *this; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListPHIDetectionJobsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListPHIDetectionJobsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListPHIDetectionJobsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<ComprehendMedicalAsyncJobProperties> m_comprehendMedicalAsyncJobPropertiesList;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,156 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/comprehendmedical/model/ComprehendMedicalAsyncJobFilter.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API ListRxNormInferenceJobsRequest : public ComprehendMedicalRequest
{
public:
ListRxNormInferenceJobsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListRxNormInferenceJobs"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline const ComprehendMedicalAsyncJobFilter& GetFilter() const{ return m_filter; }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline void SetFilter(const ComprehendMedicalAsyncJobFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline void SetFilter(ComprehendMedicalAsyncJobFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline ListRxNormInferenceJobsRequest& WithFilter(const ComprehendMedicalAsyncJobFilter& value) { SetFilter(value); return *this;}
/**
* <p>Filters the jobs that are returned. You can filter jobs based on their names,
* status, or the date and time that they were submitted. You can only set one
* filter at a time.</p>
*/
inline ListRxNormInferenceJobsRequest& WithFilter(ComprehendMedicalAsyncJobFilter&& value) { SetFilter(std::move(value)); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListRxNormInferenceJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListRxNormInferenceJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListRxNormInferenceJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListRxNormInferenceJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
ComprehendMedicalAsyncJobFilter m_filter;
bool m_filterHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/ComprehendMedicalAsyncJobProperties.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API ListRxNormInferenceJobsResult
{
public:
ListRxNormInferenceJobsResult();
ListRxNormInferenceJobsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListRxNormInferenceJobsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline const Aws::Vector<ComprehendMedicalAsyncJobProperties>& GetComprehendMedicalAsyncJobPropertiesList() const{ return m_comprehendMedicalAsyncJobPropertiesList; }
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline void SetComprehendMedicalAsyncJobPropertiesList(const Aws::Vector<ComprehendMedicalAsyncJobProperties>& value) { m_comprehendMedicalAsyncJobPropertiesList = value; }
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline void SetComprehendMedicalAsyncJobPropertiesList(Aws::Vector<ComprehendMedicalAsyncJobProperties>&& value) { m_comprehendMedicalAsyncJobPropertiesList = std::move(value); }
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline ListRxNormInferenceJobsResult& WithComprehendMedicalAsyncJobPropertiesList(const Aws::Vector<ComprehendMedicalAsyncJobProperties>& value) { SetComprehendMedicalAsyncJobPropertiesList(value); return *this;}
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline ListRxNormInferenceJobsResult& WithComprehendMedicalAsyncJobPropertiesList(Aws::Vector<ComprehendMedicalAsyncJobProperties>&& value) { SetComprehendMedicalAsyncJobPropertiesList(std::move(value)); return *this;}
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline ListRxNormInferenceJobsResult& AddComprehendMedicalAsyncJobPropertiesList(const ComprehendMedicalAsyncJobProperties& value) { m_comprehendMedicalAsyncJobPropertiesList.push_back(value); return *this; }
/**
* <p>The maximum number of results to return in each page. The default is 100.</p>
*/
inline ListRxNormInferenceJobsResult& AddComprehendMedicalAsyncJobPropertiesList(ComprehendMedicalAsyncJobProperties&& value) { m_comprehendMedicalAsyncJobPropertiesList.push_back(std::move(value)); return *this; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListRxNormInferenceJobsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListRxNormInferenceJobsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Identifies the next page of results to return.</p>
*/
inline ListRxNormInferenceJobsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<ComprehendMedicalAsyncJobProperties> m_comprehendMedicalAsyncJobPropertiesList;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,180 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p>The output properties for a detection job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/OutputDataConfig">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API OutputDataConfig
{
public:
OutputDataConfig();
OutputDataConfig(Aws::Utils::Json::JsonView jsonValue);
OutputDataConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>When you use the <code>OutputDataConfig</code> object with asynchronous
* operations, you specify the Amazon S3 location where you want to write the
* output data. The URI must be in the same region as the API endpoint that you are
* calling. The location is used as the prefix for the actual location of the
* output.</p>
*/
inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
/**
* <p>When you use the <code>OutputDataConfig</code> object with asynchronous
* operations, you specify the Amazon S3 location where you want to write the
* output data. The URI must be in the same region as the API endpoint that you are
* calling. The location is used as the prefix for the actual location of the
* output.</p>
*/
inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
/**
* <p>When you use the <code>OutputDataConfig</code> object with asynchronous
* operations, you specify the Amazon S3 location where you want to write the
* output data. The URI must be in the same region as the API endpoint that you are
* calling. The location is used as the prefix for the actual location of the
* output.</p>
*/
inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
/**
* <p>When you use the <code>OutputDataConfig</code> object with asynchronous
* operations, you specify the Amazon S3 location where you want to write the
* output data. The URI must be in the same region as the API endpoint that you are
* calling. The location is used as the prefix for the actual location of the
* output.</p>
*/
inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
/**
* <p>When you use the <code>OutputDataConfig</code> object with asynchronous
* operations, you specify the Amazon S3 location where you want to write the
* output data. The URI must be in the same region as the API endpoint that you are
* calling. The location is used as the prefix for the actual location of the
* output.</p>
*/
inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
/**
* <p>When you use the <code>OutputDataConfig</code> object with asynchronous
* operations, you specify the Amazon S3 location where you want to write the
* output data. The URI must be in the same region as the API endpoint that you are
* calling. The location is used as the prefix for the actual location of the
* output.</p>
*/
inline OutputDataConfig& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
/**
* <p>When you use the <code>OutputDataConfig</code> object with asynchronous
* operations, you specify the Amazon S3 location where you want to write the
* output data. The URI must be in the same region as the API endpoint that you are
* calling. The location is used as the prefix for the actual location of the
* output.</p>
*/
inline OutputDataConfig& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
/**
* <p>When you use the <code>OutputDataConfig</code> object with asynchronous
* operations, you specify the Amazon S3 location where you want to write the
* output data. The URI must be in the same region as the API endpoint that you are
* calling. The location is used as the prefix for the actual location of the
* output.</p>
*/
inline OutputDataConfig& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
/**
* <p>The path to the output data files in the S3 bucket. Amazon Comprehend Medical
* creates an output directory using the job ID so that the output from one job
* does not overwrite the output of another.</p>
*/
inline const Aws::String& GetS3Key() const{ return m_s3Key; }
/**
* <p>The path to the output data files in the S3 bucket. Amazon Comprehend Medical
* creates an output directory using the job ID so that the output from one job
* does not overwrite the output of another.</p>
*/
inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; }
/**
* <p>The path to the output data files in the S3 bucket. Amazon Comprehend Medical
* creates an output directory using the job ID so that the output from one job
* does not overwrite the output of another.</p>
*/
inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; }
/**
* <p>The path to the output data files in the S3 bucket. Amazon Comprehend Medical
* creates an output directory using the job ID so that the output from one job
* does not overwrite the output of another.</p>
*/
inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::move(value); }
/**
* <p>The path to the output data files in the S3 bucket. Amazon Comprehend Medical
* creates an output directory using the job ID so that the output from one job
* does not overwrite the output of another.</p>
*/
inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); }
/**
* <p>The path to the output data files in the S3 bucket. Amazon Comprehend Medical
* creates an output directory using the job ID so that the output from one job
* does not overwrite the output of another.</p>
*/
inline OutputDataConfig& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;}
/**
* <p>The path to the output data files in the S3 bucket. Amazon Comprehend Medical
* creates an output directory using the job ID so that the output from one job
* does not overwrite the output of another.</p>
*/
inline OutputDataConfig& WithS3Key(Aws::String&& value) { SetS3Key(std::move(value)); return *this;}
/**
* <p>The path to the output data files in the S3 bucket. Amazon Comprehend Medical
* creates an output directory using the job ID so that the output from one job
* does not overwrite the output of another.</p>
*/
inline OutputDataConfig& WithS3Key(const char* value) { SetS3Key(value); return *this;}
private:
Aws::String m_s3Bucket;
bool m_s3BucketHasBeenSet;
Aws::String m_s3Key;
bool m_s3KeyHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,47 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
enum class RelationshipType
{
NOT_SET,
EVERY,
WITH_DOSAGE,
ADMINISTERED_VIA,
FOR,
NEGATIVE,
OVERLAP,
DOSAGE,
ROUTE_OR_MODE,
FORM,
FREQUENCY,
DURATION,
STRENGTH,
RATE,
ACUITY,
TEST_VALUE,
TEST_UNITS,
DIRECTION,
SYSTEM_ORGAN_SITE
};
namespace RelationshipTypeMapper
{
AWS_COMPREHENDMEDICAL_API RelationshipType GetRelationshipTypeForName(const Aws::String& name);
AWS_COMPREHENDMEDICAL_API Aws::String GetNameForRelationshipType(RelationshipType value);
} // namespace RelationshipTypeMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,334 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/model/RxNormAttributeType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehendmedical/model/RxNormTrait.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p>The extracted attributes that relate to this entity. The attributes
* recognized by InferRxNorm are <code>DOSAGE</code>, <code>DURATION</code>,
* <code>FORM</code>, <code>FREQUENCY</code>, <code>RATE</code>,
* <code>ROUTE_OR_MODE</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/RxNormAttribute">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API RxNormAttribute
{
public:
RxNormAttribute();
RxNormAttribute(Aws::Utils::Json::JsonView jsonValue);
RxNormAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The type of attribute. The types of attributes recognized by InferRxNorm are
* <code>BRAND_NAME</code> and <code>GENERIC_NAME</code>.</p>
*/
inline const RxNormAttributeType& GetType() const{ return m_type; }
/**
* <p>The type of attribute. The types of attributes recognized by InferRxNorm are
* <code>BRAND_NAME</code> and <code>GENERIC_NAME</code>.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of attribute. The types of attributes recognized by InferRxNorm are
* <code>BRAND_NAME</code> and <code>GENERIC_NAME</code>.</p>
*/
inline void SetType(const RxNormAttributeType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of attribute. The types of attributes recognized by InferRxNorm are
* <code>BRAND_NAME</code> and <code>GENERIC_NAME</code>.</p>
*/
inline void SetType(RxNormAttributeType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of attribute. The types of attributes recognized by InferRxNorm are
* <code>BRAND_NAME</code> and <code>GENERIC_NAME</code>.</p>
*/
inline RxNormAttribute& WithType(const RxNormAttributeType& value) { SetType(value); return *this;}
/**
* <p>The type of attribute. The types of attributes recognized by InferRxNorm are
* <code>BRAND_NAME</code> and <code>GENERIC_NAME</code>.</p>
*/
inline RxNormAttribute& WithType(RxNormAttributeType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The level of confidence that Comprehend Medical has that the segment of text
* is correctly recognized as an attribute.</p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p>The level of confidence that Comprehend Medical has that the segment of text
* is correctly recognized as an attribute.</p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p>The level of confidence that Comprehend Medical has that the segment of text
* is correctly recognized as an attribute.</p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p>The level of confidence that Comprehend Medical has that the segment of text
* is correctly recognized as an attribute.</p>
*/
inline RxNormAttribute& WithScore(double value) { SetScore(value); return *this;}
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the attribute
* is accurately linked to an entity.</p>
*/
inline double GetRelationshipScore() const{ return m_relationshipScore; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the attribute
* is accurately linked to an entity.</p>
*/
inline bool RelationshipScoreHasBeenSet() const { return m_relationshipScoreHasBeenSet; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the attribute
* is accurately linked to an entity.</p>
*/
inline void SetRelationshipScore(double value) { m_relationshipScoreHasBeenSet = true; m_relationshipScore = value; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the attribute
* is accurately linked to an entity.</p>
*/
inline RxNormAttribute& WithRelationshipScore(double value) { SetRelationshipScore(value); return *this;}
/**
* <p>The numeric identifier for this attribute. This is a monotonically increasing
* id unique within this response rather than a global unique identifier.</p>
*/
inline int GetId() const{ return m_id; }
/**
* <p>The numeric identifier for this attribute. This is a monotonically increasing
* id unique within this response rather than a global unique identifier.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The numeric identifier for this attribute. This is a monotonically increasing
* id unique within this response rather than a global unique identifier.</p>
*/
inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The numeric identifier for this attribute. This is a monotonically increasing
* id unique within this response rather than a global unique identifier.</p>
*/
inline RxNormAttribute& WithId(int value) { SetId(value); return *this;}
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline int GetBeginOffset() const{ return m_beginOffset; }
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline RxNormAttribute& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline int GetEndOffset() const{ return m_endOffset; }
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
/**
* <p>The 0-based character offset in the input text that shows where the attribute
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline RxNormAttribute& WithEndOffset(int value) { SetEndOffset(value); return *this;}
/**
* <p>The segment of input text which corresponds to the detected attribute.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>The segment of input text which corresponds to the detected attribute.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>The segment of input text which corresponds to the detected attribute.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>The segment of input text which corresponds to the detected attribute.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>The segment of input text which corresponds to the detected attribute.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>The segment of input text which corresponds to the detected attribute.</p>
*/
inline RxNormAttribute& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>The segment of input text which corresponds to the detected attribute.</p>
*/
inline RxNormAttribute& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>The segment of input text which corresponds to the detected attribute.</p>
*/
inline RxNormAttribute& WithText(const char* value) { SetText(value); return *this;}
/**
* <p>Contextual information for the attribute. InferRxNorm recognizes the trait
* <code>NEGATION</code> for attributes, i.e. that the patient is not taking a
* specific dose or form of a medication.</p>
*/
inline const Aws::Vector<RxNormTrait>& GetTraits() const{ return m_traits; }
/**
* <p>Contextual information for the attribute. InferRxNorm recognizes the trait
* <code>NEGATION</code> for attributes, i.e. that the patient is not taking a
* specific dose or form of a medication.</p>
*/
inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
/**
* <p>Contextual information for the attribute. InferRxNorm recognizes the trait
* <code>NEGATION</code> for attributes, i.e. that the patient is not taking a
* specific dose or form of a medication.</p>
*/
inline void SetTraits(const Aws::Vector<RxNormTrait>& value) { m_traitsHasBeenSet = true; m_traits = value; }
/**
* <p>Contextual information for the attribute. InferRxNorm recognizes the trait
* <code>NEGATION</code> for attributes, i.e. that the patient is not taking a
* specific dose or form of a medication.</p>
*/
inline void SetTraits(Aws::Vector<RxNormTrait>&& value) { m_traitsHasBeenSet = true; m_traits = std::move(value); }
/**
* <p>Contextual information for the attribute. InferRxNorm recognizes the trait
* <code>NEGATION</code> for attributes, i.e. that the patient is not taking a
* specific dose or form of a medication.</p>
*/
inline RxNormAttribute& WithTraits(const Aws::Vector<RxNormTrait>& value) { SetTraits(value); return *this;}
/**
* <p>Contextual information for the attribute. InferRxNorm recognizes the trait
* <code>NEGATION</code> for attributes, i.e. that the patient is not taking a
* specific dose or form of a medication.</p>
*/
inline RxNormAttribute& WithTraits(Aws::Vector<RxNormTrait>&& value) { SetTraits(std::move(value)); return *this;}
/**
* <p>Contextual information for the attribute. InferRxNorm recognizes the trait
* <code>NEGATION</code> for attributes, i.e. that the patient is not taking a
* specific dose or form of a medication.</p>
*/
inline RxNormAttribute& AddTraits(const RxNormTrait& value) { m_traitsHasBeenSet = true; m_traits.push_back(value); return *this; }
/**
* <p>Contextual information for the attribute. InferRxNorm recognizes the trait
* <code>NEGATION</code> for attributes, i.e. that the patient is not taking a
* specific dose or form of a medication.</p>
*/
inline RxNormAttribute& AddTraits(RxNormTrait&& value) { m_traitsHasBeenSet = true; m_traits.push_back(std::move(value)); return *this; }
private:
RxNormAttributeType m_type;
bool m_typeHasBeenSet;
double m_score;
bool m_scoreHasBeenSet;
double m_relationshipScore;
bool m_relationshipScoreHasBeenSet;
int m_id;
bool m_idHasBeenSet;
int m_beginOffset;
bool m_beginOffsetHasBeenSet;
int m_endOffset;
bool m_endOffsetHasBeenSet;
Aws::String m_text;
bool m_textHasBeenSet;
Aws::Vector<RxNormTrait> m_traits;
bool m_traitsHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
enum class RxNormAttributeType
{
NOT_SET,
DOSAGE,
DURATION,
FORM,
FREQUENCY,
RATE,
ROUTE_OR_MODE,
STRENGTH
};
namespace RxNormAttributeTypeMapper
{
AWS_COMPREHENDMEDICAL_API RxNormAttributeType GetRxNormAttributeTypeForName(const Aws::String& name);
AWS_COMPREHENDMEDICAL_API Aws::String GetNameForRxNormAttributeType(RxNormAttributeType value);
} // namespace RxNormAttributeTypeMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,161 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p>The RxNorm concept that the entity could refer to, along with a score
* indicating the likelihood of the match.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/RxNormConcept">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API RxNormConcept
{
public:
RxNormConcept();
RxNormConcept(Aws::Utils::Json::JsonView jsonValue);
RxNormConcept& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The description of the RxNorm concept.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the RxNorm concept.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the RxNorm concept.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the RxNorm concept.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the RxNorm concept.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the RxNorm concept.</p>
*/
inline RxNormConcept& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the RxNorm concept.</p>
*/
inline RxNormConcept& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the RxNorm concept.</p>
*/
inline RxNormConcept& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>RxNorm concept ID, also known as the RxCUI.</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>RxNorm concept ID, also known as the RxCUI.</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>RxNorm concept ID, also known as the RxCUI.</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>RxNorm concept ID, also known as the RxCUI.</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>RxNorm concept ID, also known as the RxCUI.</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>RxNorm concept ID, also known as the RxCUI.</p>
*/
inline RxNormConcept& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>RxNorm concept ID, also known as the RxCUI.</p>
*/
inline RxNormConcept& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>RxNorm concept ID, also known as the RxCUI.</p>
*/
inline RxNormConcept& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the entity is
* accurately linked to the reported RxNorm concept.</p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the entity is
* accurately linked to the reported RxNorm concept.</p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the entity is
* accurately linked to the reported RxNorm concept.</p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has that the entity is
* accurately linked to the reported RxNorm concept.</p>
*/
inline RxNormConcept& WithScore(double value) { SetScore(value); return *this;}
private:
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_code;
bool m_codeHasBeenSet;
double m_score;
bool m_scoreHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,455 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/RxNormEntityCategory.h>
#include <aws/comprehendmedical/model/RxNormEntityType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/comprehendmedical/model/RxNormAttribute.h>
#include <aws/comprehendmedical/model/RxNormTrait.h>
#include <aws/comprehendmedical/model/RxNormConcept.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p>The collection of medical entities extracted from the input text and their
* associated information. For each entity, the response provides the entity text,
* the entity category, where the entity text begins and ends, and the level of
* confidence that Amazon Comprehend Medical has in the detection and analysis.
* Attributes and traits of the entity are also returned. </p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/RxNormEntity">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API RxNormEntity
{
public:
RxNormEntity();
RxNormEntity(Aws::Utils::Json::JsonView jsonValue);
RxNormEntity& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The numeric identifier for the entity. This is a monotonically increasing id
* unique within this response rather than a global unique identifier.</p>
*/
inline int GetId() const{ return m_id; }
/**
* <p>The numeric identifier for the entity. This is a monotonically increasing id
* unique within this response rather than a global unique identifier.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The numeric identifier for the entity. This is a monotonically increasing id
* unique within this response rather than a global unique identifier.</p>
*/
inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The numeric identifier for the entity. This is a monotonically increasing id
* unique within this response rather than a global unique identifier.</p>
*/
inline RxNormEntity& WithId(int value) { SetId(value); return *this;}
/**
* <p>The segment of input text extracted from which the entity was detected.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>The segment of input text extracted from which the entity was detected.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>The segment of input text extracted from which the entity was detected.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>The segment of input text extracted from which the entity was detected.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>The segment of input text extracted from which the entity was detected.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>The segment of input text extracted from which the entity was detected.</p>
*/
inline RxNormEntity& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>The segment of input text extracted from which the entity was detected.</p>
*/
inline RxNormEntity& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>The segment of input text extracted from which the entity was detected.</p>
*/
inline RxNormEntity& WithText(const char* value) { SetText(value); return *this;}
/**
* <p>The category of the entity. The recognized categories are
* <code>GENERIC</code> or <code>BRAND_NAME</code>.</p>
*/
inline const RxNormEntityCategory& GetCategory() const{ return m_category; }
/**
* <p>The category of the entity. The recognized categories are
* <code>GENERIC</code> or <code>BRAND_NAME</code>.</p>
*/
inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
/**
* <p>The category of the entity. The recognized categories are
* <code>GENERIC</code> or <code>BRAND_NAME</code>.</p>
*/
inline void SetCategory(const RxNormEntityCategory& value) { m_categoryHasBeenSet = true; m_category = value; }
/**
* <p>The category of the entity. The recognized categories are
* <code>GENERIC</code> or <code>BRAND_NAME</code>.</p>
*/
inline void SetCategory(RxNormEntityCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
/**
* <p>The category of the entity. The recognized categories are
* <code>GENERIC</code> or <code>BRAND_NAME</code>.</p>
*/
inline RxNormEntity& WithCategory(const RxNormEntityCategory& value) { SetCategory(value); return *this;}
/**
* <p>The category of the entity. The recognized categories are
* <code>GENERIC</code> or <code>BRAND_NAME</code>.</p>
*/
inline RxNormEntity& WithCategory(RxNormEntityCategory&& value) { SetCategory(std::move(value)); return *this;}
/**
* <p> Describes the specific type of entity. For InferRxNorm, the recognized
* entity type is <code>MEDICATION</code>.</p>
*/
inline const RxNormEntityType& GetType() const{ return m_type; }
/**
* <p> Describes the specific type of entity. For InferRxNorm, the recognized
* entity type is <code>MEDICATION</code>.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p> Describes the specific type of entity. For InferRxNorm, the recognized
* entity type is <code>MEDICATION</code>.</p>
*/
inline void SetType(const RxNormEntityType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p> Describes the specific type of entity. For InferRxNorm, the recognized
* entity type is <code>MEDICATION</code>.</p>
*/
inline void SetType(RxNormEntityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p> Describes the specific type of entity. For InferRxNorm, the recognized
* entity type is <code>MEDICATION</code>.</p>
*/
inline RxNormEntity& WithType(const RxNormEntityType& value) { SetType(value); return *this;}
/**
* <p> Describes the specific type of entity. For InferRxNorm, the recognized
* entity type is <code>MEDICATION</code>.</p>
*/
inline RxNormEntity& WithType(RxNormEntityType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detected entity.</p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detected entity.</p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detected entity.</p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detected entity.</p>
*/
inline RxNormEntity& WithScore(double value) { SetScore(value); return *this;}
/**
* <p>The 0-based character offset in the input text that shows where the entity
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline int GetBeginOffset() const{ return m_beginOffset; }
/**
* <p>The 0-based character offset in the input text that shows where the entity
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
/**
* <p>The 0-based character offset in the input text that shows where the entity
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
/**
* <p>The 0-based character offset in the input text that shows where the entity
* begins. The offset returns the UTF-8 code point in the string.</p>
*/
inline RxNormEntity& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
/**
* <p>The 0-based character offset in the input text that shows where the entity
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline int GetEndOffset() const{ return m_endOffset; }
/**
* <p>The 0-based character offset in the input text that shows where the entity
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
/**
* <p>The 0-based character offset in the input text that shows where the entity
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
/**
* <p>The 0-based character offset in the input text that shows where the entity
* ends. The offset returns the UTF-8 code point in the string.</p>
*/
inline RxNormEntity& WithEndOffset(int value) { SetEndOffset(value); return *this;}
/**
* <p>The extracted attributes that relate to the entity. The attributes recognized
* by InferRxNorm are <code>DOSAGE</code>, <code>DURATION</code>,
* <code>FORM</code>, <code>FREQUENCY</code>, <code>RATE</code>,
* <code>ROUTE_OR_MODE</code>, and <code>STRENGTH</code>.</p>
*/
inline const Aws::Vector<RxNormAttribute>& GetAttributes() const{ return m_attributes; }
/**
* <p>The extracted attributes that relate to the entity. The attributes recognized
* by InferRxNorm are <code>DOSAGE</code>, <code>DURATION</code>,
* <code>FORM</code>, <code>FREQUENCY</code>, <code>RATE</code>,
* <code>ROUTE_OR_MODE</code>, and <code>STRENGTH</code>.</p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p>The extracted attributes that relate to the entity. The attributes recognized
* by InferRxNorm are <code>DOSAGE</code>, <code>DURATION</code>,
* <code>FORM</code>, <code>FREQUENCY</code>, <code>RATE</code>,
* <code>ROUTE_OR_MODE</code>, and <code>STRENGTH</code>.</p>
*/
inline void SetAttributes(const Aws::Vector<RxNormAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p>The extracted attributes that relate to the entity. The attributes recognized
* by InferRxNorm are <code>DOSAGE</code>, <code>DURATION</code>,
* <code>FORM</code>, <code>FREQUENCY</code>, <code>RATE</code>,
* <code>ROUTE_OR_MODE</code>, and <code>STRENGTH</code>.</p>
*/
inline void SetAttributes(Aws::Vector<RxNormAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p>The extracted attributes that relate to the entity. The attributes recognized
* by InferRxNorm are <code>DOSAGE</code>, <code>DURATION</code>,
* <code>FORM</code>, <code>FREQUENCY</code>, <code>RATE</code>,
* <code>ROUTE_OR_MODE</code>, and <code>STRENGTH</code>.</p>
*/
inline RxNormEntity& WithAttributes(const Aws::Vector<RxNormAttribute>& value) { SetAttributes(value); return *this;}
/**
* <p>The extracted attributes that relate to the entity. The attributes recognized
* by InferRxNorm are <code>DOSAGE</code>, <code>DURATION</code>,
* <code>FORM</code>, <code>FREQUENCY</code>, <code>RATE</code>,
* <code>ROUTE_OR_MODE</code>, and <code>STRENGTH</code>.</p>
*/
inline RxNormEntity& WithAttributes(Aws::Vector<RxNormAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p>The extracted attributes that relate to the entity. The attributes recognized
* by InferRxNorm are <code>DOSAGE</code>, <code>DURATION</code>,
* <code>FORM</code>, <code>FREQUENCY</code>, <code>RATE</code>,
* <code>ROUTE_OR_MODE</code>, and <code>STRENGTH</code>.</p>
*/
inline RxNormEntity& AddAttributes(const RxNormAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
/**
* <p>The extracted attributes that relate to the entity. The attributes recognized
* by InferRxNorm are <code>DOSAGE</code>, <code>DURATION</code>,
* <code>FORM</code>, <code>FREQUENCY</code>, <code>RATE</code>,
* <code>ROUTE_OR_MODE</code>, and <code>STRENGTH</code>.</p>
*/
inline RxNormEntity& AddAttributes(RxNormAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
/**
* <p> Contextual information for the entity.</p>
*/
inline const Aws::Vector<RxNormTrait>& GetTraits() const{ return m_traits; }
/**
* <p> Contextual information for the entity.</p>
*/
inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; }
/**
* <p> Contextual information for the entity.</p>
*/
inline void SetTraits(const Aws::Vector<RxNormTrait>& value) { m_traitsHasBeenSet = true; m_traits = value; }
/**
* <p> Contextual information for the entity.</p>
*/
inline void SetTraits(Aws::Vector<RxNormTrait>&& value) { m_traitsHasBeenSet = true; m_traits = std::move(value); }
/**
* <p> Contextual information for the entity.</p>
*/
inline RxNormEntity& WithTraits(const Aws::Vector<RxNormTrait>& value) { SetTraits(value); return *this;}
/**
* <p> Contextual information for the entity.</p>
*/
inline RxNormEntity& WithTraits(Aws::Vector<RxNormTrait>&& value) { SetTraits(std::move(value)); return *this;}
/**
* <p> Contextual information for the entity.</p>
*/
inline RxNormEntity& AddTraits(const RxNormTrait& value) { m_traitsHasBeenSet = true; m_traits.push_back(value); return *this; }
/**
* <p> Contextual information for the entity.</p>
*/
inline RxNormEntity& AddTraits(RxNormTrait&& value) { m_traitsHasBeenSet = true; m_traits.push_back(std::move(value)); return *this; }
/**
* <p> The RxNorm concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline const Aws::Vector<RxNormConcept>& GetRxNormConcepts() const{ return m_rxNormConcepts; }
/**
* <p> The RxNorm concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline bool RxNormConceptsHasBeenSet() const { return m_rxNormConceptsHasBeenSet; }
/**
* <p> The RxNorm concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline void SetRxNormConcepts(const Aws::Vector<RxNormConcept>& value) { m_rxNormConceptsHasBeenSet = true; m_rxNormConcepts = value; }
/**
* <p> The RxNorm concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline void SetRxNormConcepts(Aws::Vector<RxNormConcept>&& value) { m_rxNormConceptsHasBeenSet = true; m_rxNormConcepts = std::move(value); }
/**
* <p> The RxNorm concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline RxNormEntity& WithRxNormConcepts(const Aws::Vector<RxNormConcept>& value) { SetRxNormConcepts(value); return *this;}
/**
* <p> The RxNorm concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline RxNormEntity& WithRxNormConcepts(Aws::Vector<RxNormConcept>&& value) { SetRxNormConcepts(std::move(value)); return *this;}
/**
* <p> The RxNorm concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline RxNormEntity& AddRxNormConcepts(const RxNormConcept& value) { m_rxNormConceptsHasBeenSet = true; m_rxNormConcepts.push_back(value); return *this; }
/**
* <p> The RxNorm concepts that the entity could refer to, along with a score
* indicating the likelihood of the match.</p>
*/
inline RxNormEntity& AddRxNormConcepts(RxNormConcept&& value) { m_rxNormConceptsHasBeenSet = true; m_rxNormConcepts.push_back(std::move(value)); return *this; }
private:
int m_id;
bool m_idHasBeenSet;
Aws::String m_text;
bool m_textHasBeenSet;
RxNormEntityCategory m_category;
bool m_categoryHasBeenSet;
RxNormEntityType m_type;
bool m_typeHasBeenSet;
double m_score;
bool m_scoreHasBeenSet;
int m_beginOffset;
bool m_beginOffsetHasBeenSet;
int m_endOffset;
bool m_endOffsetHasBeenSet;
Aws::Vector<RxNormAttribute> m_attributes;
bool m_attributesHasBeenSet;
Aws::Vector<RxNormTrait> m_traits;
bool m_traitsHasBeenSet;
Aws::Vector<RxNormConcept> m_rxNormConcepts;
bool m_rxNormConceptsHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
enum class RxNormEntityCategory
{
NOT_SET,
MEDICATION
};
namespace RxNormEntityCategoryMapper
{
AWS_COMPREHENDMEDICAL_API RxNormEntityCategory GetRxNormEntityCategoryForName(const Aws::String& name);
AWS_COMPREHENDMEDICAL_API Aws::String GetNameForRxNormEntityCategory(RxNormEntityCategory value);
} // namespace RxNormEntityCategoryMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
enum class RxNormEntityType
{
NOT_SET,
BRAND_NAME,
GENERIC_NAME
};
namespace RxNormEntityTypeMapper
{
AWS_COMPREHENDMEDICAL_API RxNormEntityType GetRxNormEntityTypeForName(const Aws::String& name);
AWS_COMPREHENDMEDICAL_API Aws::String GetNameForRxNormEntityType(RxNormEntityType value);
} // namespace RxNormEntityTypeMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,108 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/model/RxNormTraitName.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p>The contextual information for the entity. InferRxNorm recognizes the trait
* <code>NEGATION</code>, which is any indication that the patient is not taking a
* medication. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/RxNormTrait">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API RxNormTrait
{
public:
RxNormTrait();
RxNormTrait(Aws::Utils::Json::JsonView jsonValue);
RxNormTrait& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Provides a name or contextual description about the trait.</p>
*/
inline const RxNormTraitName& GetName() const{ return m_name; }
/**
* <p>Provides a name or contextual description about the trait.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>Provides a name or contextual description about the trait.</p>
*/
inline void SetName(const RxNormTraitName& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>Provides a name or contextual description about the trait.</p>
*/
inline void SetName(RxNormTraitName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>Provides a name or contextual description about the trait.</p>
*/
inline RxNormTrait& WithName(const RxNormTraitName& value) { SetName(value); return *this;}
/**
* <p>Provides a name or contextual description about the trait.</p>
*/
inline RxNormTrait& WithName(RxNormTraitName&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detected trait.</p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detected trait.</p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detected trait.</p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p>The level of confidence that Amazon Comprehend Medical has in the accuracy of
* the detected trait.</p>
*/
inline RxNormTrait& WithScore(double value) { SetScore(value); return *this;}
private:
RxNormTraitName m_name;
bool m_nameHasBeenSet;
double m_score;
bool m_scoreHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
enum class RxNormTraitName
{
NOT_SET,
NEGATION
};
namespace RxNormTraitNameMapper
{
AWS_COMPREHENDMEDICAL_API RxNormTraitName GetRxNormTraitNameForName(const Aws::String& name);
AWS_COMPREHENDMEDICAL_API Aws::String GetNameForRxNormTraitName(RxNormTraitName value);
} // namespace RxNormTraitNameMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,377 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/comprehendmedical/model/InputDataConfig.h>
#include <aws/comprehendmedical/model/OutputDataConfig.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/LanguageCode.h>
#include <utility>
#include <aws/core/utils/UUID.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API StartEntitiesDetectionV2JobRequest : public ComprehendMedicalRequest
{
public:
StartEntitiesDetectionV2JobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "StartEntitiesDetectionV2Job"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithInputDataConfig(const InputDataConfig& value) { SetInputDataConfig(value); return *this;}
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
/**
* <p>Specifies where to send the output files.</p>
*/
inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
/**
* <p>Specifies where to send the output files.</p>
*/
inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
/**
* <p>Specifies where to send the output files.</p>
*/
inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
/**
* <p>Specifies where to send the output files.</p>
*/
inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
/**
* <p>Specifies where to send the output files.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithOutputDataConfig(const OutputDataConfig& value) { SetOutputDataConfig(value); return *this;}
/**
* <p>Specifies where to send the output files.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithOutputDataConfig(OutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The identifier of the job.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The identifier of the job.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline const Aws::String& GetKMSKey() const{ return m_kMSKey; }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline void SetKMSKey(const Aws::String& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = value; }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline void SetKMSKey(Aws::String&& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = std::move(value); }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline void SetKMSKey(const char* value) { m_kMSKeyHasBeenSet = true; m_kMSKey.assign(value); }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithKMSKey(const Aws::String& value) { SetKMSKey(value); return *this;}
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithKMSKey(Aws::String&& value) { SetKMSKey(std::move(value)); return *this;}
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithKMSKey(const char* value) { SetKMSKey(value); return *this;}
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline StartEntitiesDetectionV2JobRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
private:
InputDataConfig m_inputDataConfig;
bool m_inputDataConfigHasBeenSet;
OutputDataConfig m_outputDataConfig;
bool m_outputDataConfigHasBeenSet;
Aws::String m_dataAccessRoleArn;
bool m_dataAccessRoleArnHasBeenSet;
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
Aws::String m_clientRequestToken;
bool m_clientRequestTokenHasBeenSet;
Aws::String m_kMSKey;
bool m_kMSKeyHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API StartEntitiesDetectionV2JobResult
{
public:
StartEntitiesDetectionV2JobResult();
StartEntitiesDetectionV2JobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
StartEntitiesDetectionV2JobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>DescribeEntitiesDetectionV2Job</code> operation.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>DescribeEntitiesDetectionV2Job</code> operation.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobId = value; }
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>DescribeEntitiesDetectionV2Job</code> operation.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); }
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>DescribeEntitiesDetectionV2Job</code> operation.</p>
*/
inline void SetJobId(const char* value) { m_jobId.assign(value); }
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>DescribeEntitiesDetectionV2Job</code> operation.</p>
*/
inline StartEntitiesDetectionV2JobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>DescribeEntitiesDetectionV2Job</code> operation.</p>
*/
inline StartEntitiesDetectionV2JobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>DescribeEntitiesDetectionV2Job</code> operation.</p>
*/
inline StartEntitiesDetectionV2JobResult& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,377 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/comprehendmedical/model/InputDataConfig.h>
#include <aws/comprehendmedical/model/OutputDataConfig.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/LanguageCode.h>
#include <utility>
#include <aws/core/utils/UUID.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API StartICD10CMInferenceJobRequest : public ComprehendMedicalRequest
{
public:
StartICD10CMInferenceJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "StartICD10CMInferenceJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline StartICD10CMInferenceJobRequest& WithInputDataConfig(const InputDataConfig& value) { SetInputDataConfig(value); return *this;}
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline StartICD10CMInferenceJobRequest& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
/**
* <p>Specifies where to send the output files.</p>
*/
inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
/**
* <p>Specifies where to send the output files.</p>
*/
inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
/**
* <p>Specifies where to send the output files.</p>
*/
inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
/**
* <p>Specifies where to send the output files.</p>
*/
inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
/**
* <p>Specifies where to send the output files.</p>
*/
inline StartICD10CMInferenceJobRequest& WithOutputDataConfig(const OutputDataConfig& value) { SetOutputDataConfig(value); return *this;}
/**
* <p>Specifies where to send the output files.</p>
*/
inline StartICD10CMInferenceJobRequest& WithOutputDataConfig(OutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline StartICD10CMInferenceJobRequest& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline StartICD10CMInferenceJobRequest& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline StartICD10CMInferenceJobRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The identifier of the job.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The identifier of the job.</p>
*/
inline StartICD10CMInferenceJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline StartICD10CMInferenceJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline StartICD10CMInferenceJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline StartICD10CMInferenceJobRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline StartICD10CMInferenceJobRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline StartICD10CMInferenceJobRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline const Aws::String& GetKMSKey() const{ return m_kMSKey; }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline void SetKMSKey(const Aws::String& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = value; }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline void SetKMSKey(Aws::String&& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = std::move(value); }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline void SetKMSKey(const char* value) { m_kMSKeyHasBeenSet = true; m_kMSKey.assign(value); }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline StartICD10CMInferenceJobRequest& WithKMSKey(const Aws::String& value) { SetKMSKey(value); return *this;}
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline StartICD10CMInferenceJobRequest& WithKMSKey(Aws::String&& value) { SetKMSKey(std::move(value)); return *this;}
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline StartICD10CMInferenceJobRequest& WithKMSKey(const char* value) { SetKMSKey(value); return *this;}
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline StartICD10CMInferenceJobRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline StartICD10CMInferenceJobRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
private:
InputDataConfig m_inputDataConfig;
bool m_inputDataConfigHasBeenSet;
OutputDataConfig m_outputDataConfig;
bool m_outputDataConfigHasBeenSet;
Aws::String m_dataAccessRoleArn;
bool m_dataAccessRoleArnHasBeenSet;
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
Aws::String m_clientRequestToken;
bool m_clientRequestTokenHasBeenSet;
Aws::String m_kMSKey;
bool m_kMSKeyHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API StartICD10CMInferenceJobResult
{
public:
StartICD10CMInferenceJobResult();
StartICD10CMInferenceJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
StartICD10CMInferenceJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>StartICD10CMInferenceJob</code> operation.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>StartICD10CMInferenceJob</code> operation.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobId = value; }
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>StartICD10CMInferenceJob</code> operation.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); }
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>StartICD10CMInferenceJob</code> operation.</p>
*/
inline void SetJobId(const char* value) { m_jobId.assign(value); }
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>StartICD10CMInferenceJob</code> operation.</p>
*/
inline StartICD10CMInferenceJobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>StartICD10CMInferenceJob</code> operation.</p>
*/
inline StartICD10CMInferenceJobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>StartICD10CMInferenceJob</code> operation.</p>
*/
inline StartICD10CMInferenceJobResult& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,377 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/comprehendmedical/model/InputDataConfig.h>
#include <aws/comprehendmedical/model/OutputDataConfig.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/LanguageCode.h>
#include <utility>
#include <aws/core/utils/UUID.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API StartPHIDetectionJobRequest : public ComprehendMedicalRequest
{
public:
StartPHIDetectionJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "StartPHIDetectionJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline StartPHIDetectionJobRequest& WithInputDataConfig(const InputDataConfig& value) { SetInputDataConfig(value); return *this;}
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline StartPHIDetectionJobRequest& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
/**
* <p>Specifies where to send the output files.</p>
*/
inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
/**
* <p>Specifies where to send the output files.</p>
*/
inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
/**
* <p>Specifies where to send the output files.</p>
*/
inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
/**
* <p>Specifies where to send the output files.</p>
*/
inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
/**
* <p>Specifies where to send the output files.</p>
*/
inline StartPHIDetectionJobRequest& WithOutputDataConfig(const OutputDataConfig& value) { SetOutputDataConfig(value); return *this;}
/**
* <p>Specifies where to send the output files.</p>
*/
inline StartPHIDetectionJobRequest& WithOutputDataConfig(OutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline StartPHIDetectionJobRequest& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline StartPHIDetectionJobRequest& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline StartPHIDetectionJobRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The identifier of the job.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The identifier of the job.</p>
*/
inline StartPHIDetectionJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline StartPHIDetectionJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline StartPHIDetectionJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline StartPHIDetectionJobRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline StartPHIDetectionJobRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline StartPHIDetectionJobRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline const Aws::String& GetKMSKey() const{ return m_kMSKey; }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline void SetKMSKey(const Aws::String& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = value; }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline void SetKMSKey(Aws::String&& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = std::move(value); }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline void SetKMSKey(const char* value) { m_kMSKeyHasBeenSet = true; m_kMSKey.assign(value); }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline StartPHIDetectionJobRequest& WithKMSKey(const Aws::String& value) { SetKMSKey(value); return *this;}
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline StartPHIDetectionJobRequest& WithKMSKey(Aws::String&& value) { SetKMSKey(std::move(value)); return *this;}
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline StartPHIDetectionJobRequest& WithKMSKey(const char* value) { SetKMSKey(value); return *this;}
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline StartPHIDetectionJobRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline StartPHIDetectionJobRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
private:
InputDataConfig m_inputDataConfig;
bool m_inputDataConfigHasBeenSet;
OutputDataConfig m_outputDataConfig;
bool m_outputDataConfigHasBeenSet;
Aws::String m_dataAccessRoleArn;
bool m_dataAccessRoleArnHasBeenSet;
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
Aws::String m_clientRequestToken;
bool m_clientRequestTokenHasBeenSet;
Aws::String m_kMSKey;
bool m_kMSKeyHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API StartPHIDetectionJobResult
{
public:
StartPHIDetectionJobResult();
StartPHIDetectionJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
StartPHIDetectionJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>DescribePHIDetectionJob</code> operation.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>DescribePHIDetectionJob</code> operation.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobId = value; }
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>DescribePHIDetectionJob</code> operation.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); }
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>DescribePHIDetectionJob</code> operation.</p>
*/
inline void SetJobId(const char* value) { m_jobId.assign(value); }
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>DescribePHIDetectionJob</code> operation.</p>
*/
inline StartPHIDetectionJobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>DescribePHIDetectionJob</code> operation.</p>
*/
inline StartPHIDetectionJobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier generated for the job. To get the status of a job, use this
* identifier with the <code>DescribePHIDetectionJob</code> operation.</p>
*/
inline StartPHIDetectionJobResult& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,377 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/comprehendmedical/model/InputDataConfig.h>
#include <aws/comprehendmedical/model/OutputDataConfig.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/comprehendmedical/model/LanguageCode.h>
#include <utility>
#include <aws/core/utils/UUID.h>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API StartRxNormInferenceJobRequest : public ComprehendMedicalRequest
{
public:
StartRxNormInferenceJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "StartRxNormInferenceJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline const InputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline void SetInputDataConfig(const InputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline void SetInputDataConfig(InputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline StartRxNormInferenceJobRequest& WithInputDataConfig(const InputDataConfig& value) { SetInputDataConfig(value); return *this;}
/**
* <p>Specifies the format and location of the input data for the job.</p>
*/
inline StartRxNormInferenceJobRequest& WithInputDataConfig(InputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
/**
* <p>Specifies where to send the output files.</p>
*/
inline const OutputDataConfig& GetOutputDataConfig() const{ return m_outputDataConfig; }
/**
* <p>Specifies where to send the output files.</p>
*/
inline bool OutputDataConfigHasBeenSet() const { return m_outputDataConfigHasBeenSet; }
/**
* <p>Specifies where to send the output files.</p>
*/
inline void SetOutputDataConfig(const OutputDataConfig& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = value; }
/**
* <p>Specifies where to send the output files.</p>
*/
inline void SetOutputDataConfig(OutputDataConfig&& value) { m_outputDataConfigHasBeenSet = true; m_outputDataConfig = std::move(value); }
/**
* <p>Specifies where to send the output files.</p>
*/
inline StartRxNormInferenceJobRequest& WithOutputDataConfig(const OutputDataConfig& value) { SetOutputDataConfig(value); return *this;}
/**
* <p>Specifies where to send the output files.</p>
*/
inline StartRxNormInferenceJobRequest& WithOutputDataConfig(OutputDataConfig&& value) { SetOutputDataConfig(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline StartRxNormInferenceJobRequest& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline StartRxNormInferenceJobRequest& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that grants Amazon Comprehend Medical read access to your input data.
* For more information, see <a
* href="https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions-med.html#auth-role-permissions-med">
* Role-Based Permissions Required for Asynchronous Operations</a>.</p>
*/
inline StartRxNormInferenceJobRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The identifier of the job.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The identifier of the job.</p>
*/
inline StartRxNormInferenceJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline StartRxNormInferenceJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline StartRxNormInferenceJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline StartRxNormInferenceJobRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline StartRxNormInferenceJobRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
/**
* <p>A unique identifier for the request. If you don't set the client request
* token, Amazon Comprehend Medical generates one.</p>
*/
inline StartRxNormInferenceJobRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline const Aws::String& GetKMSKey() const{ return m_kMSKey; }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline void SetKMSKey(const Aws::String& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = value; }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline void SetKMSKey(Aws::String&& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = std::move(value); }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline void SetKMSKey(const char* value) { m_kMSKeyHasBeenSet = true; m_kMSKey.assign(value); }
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline StartRxNormInferenceJobRequest& WithKMSKey(const Aws::String& value) { SetKMSKey(value); return *this;}
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline StartRxNormInferenceJobRequest& WithKMSKey(Aws::String&& value) { SetKMSKey(std::move(value)); return *this;}
/**
* <p>An AWS Key Management Service key to encrypt your output files. If you do not
* specify a key, the files are written in plain text.</p>
*/
inline StartRxNormInferenceJobRequest& WithKMSKey(const char* value) { SetKMSKey(value); return *this;}
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline StartRxNormInferenceJobRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
/**
* <p>The language of the input documents. All documents must be in the same
* language.</p>
*/
inline StartRxNormInferenceJobRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
private:
InputDataConfig m_inputDataConfig;
bool m_inputDataConfigHasBeenSet;
OutputDataConfig m_outputDataConfig;
bool m_outputDataConfigHasBeenSet;
Aws::String m_dataAccessRoleArn;
bool m_dataAccessRoleArnHasBeenSet;
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
Aws::String m_clientRequestToken;
bool m_clientRequestTokenHasBeenSet;
Aws::String m_kMSKey;
bool m_kMSKeyHasBeenSet;
LanguageCode m_languageCode;
bool m_languageCodeHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API StartRxNormInferenceJobResult
{
public:
StartRxNormInferenceJobResult();
StartRxNormInferenceJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
StartRxNormInferenceJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The identifier of the job.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobId = value; }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobId(const char* value) { m_jobId.assign(value); }
/**
* <p>The identifier of the job.</p>
*/
inline StartRxNormInferenceJobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline StartRxNormInferenceJobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline StartRxNormInferenceJobResult& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API StopEntitiesDetectionV2JobRequest : public ComprehendMedicalRequest
{
public:
StopEntitiesDetectionV2JobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "StopEntitiesDetectionV2Job"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the medical entities job to stop.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier of the medical entities job to stop.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier of the medical entities job to stop.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier of the medical entities job to stop.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier of the medical entities job to stop.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier of the medical entities job to stop.</p>
*/
inline StopEntitiesDetectionV2JobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier of the medical entities job to stop.</p>
*/
inline StopEntitiesDetectionV2JobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier of the medical entities job to stop.</p>
*/
inline StopEntitiesDetectionV2JobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API StopEntitiesDetectionV2JobResult
{
public:
StopEntitiesDetectionV2JobResult();
StopEntitiesDetectionV2JobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
StopEntitiesDetectionV2JobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The identifier of the medical entities detection job that was stopped.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier of the medical entities detection job that was stopped.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobId = value; }
/**
* <p>The identifier of the medical entities detection job that was stopped.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); }
/**
* <p>The identifier of the medical entities detection job that was stopped.</p>
*/
inline void SetJobId(const char* value) { m_jobId.assign(value); }
/**
* <p>The identifier of the medical entities detection job that was stopped.</p>
*/
inline StopEntitiesDetectionV2JobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier of the medical entities detection job that was stopped.</p>
*/
inline StopEntitiesDetectionV2JobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier of the medical entities detection job that was stopped.</p>
*/
inline StopEntitiesDetectionV2JobResult& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API StopICD10CMInferenceJobRequest : public ComprehendMedicalRequest
{
public:
StopICD10CMInferenceJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "StopICD10CMInferenceJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the job.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier of the job.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier of the job.</p>
*/
inline StopICD10CMInferenceJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline StopICD10CMInferenceJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline StopICD10CMInferenceJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API StopICD10CMInferenceJobResult
{
public:
StopICD10CMInferenceJobResult();
StopICD10CMInferenceJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
StopICD10CMInferenceJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The identifier generated for the job. To get the status of job, use this
* identifier with the <code>DescribeICD10CMInferenceJob</code> operation.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier generated for the job. To get the status of job, use this
* identifier with the <code>DescribeICD10CMInferenceJob</code> operation.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobId = value; }
/**
* <p>The identifier generated for the job. To get the status of job, use this
* identifier with the <code>DescribeICD10CMInferenceJob</code> operation.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); }
/**
* <p>The identifier generated for the job. To get the status of job, use this
* identifier with the <code>DescribeICD10CMInferenceJob</code> operation.</p>
*/
inline void SetJobId(const char* value) { m_jobId.assign(value); }
/**
* <p>The identifier generated for the job. To get the status of job, use this
* identifier with the <code>DescribeICD10CMInferenceJob</code> operation.</p>
*/
inline StopICD10CMInferenceJobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier generated for the job. To get the status of job, use this
* identifier with the <code>DescribeICD10CMInferenceJob</code> operation.</p>
*/
inline StopICD10CMInferenceJobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier generated for the job. To get the status of job, use this
* identifier with the <code>DescribeICD10CMInferenceJob</code> operation.</p>
*/
inline StopICD10CMInferenceJobResult& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API StopPHIDetectionJobRequest : public ComprehendMedicalRequest
{
public:
StopPHIDetectionJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "StopPHIDetectionJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the PHI detection job to stop.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier of the PHI detection job to stop.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier of the PHI detection job to stop.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier of the PHI detection job to stop.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier of the PHI detection job to stop.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier of the PHI detection job to stop.</p>
*/
inline StopPHIDetectionJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier of the PHI detection job to stop.</p>
*/
inline StopPHIDetectionJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier of the PHI detection job to stop.</p>
*/
inline StopPHIDetectionJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API StopPHIDetectionJobResult
{
public:
StopPHIDetectionJobResult();
StopPHIDetectionJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
StopPHIDetectionJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The identifier of the PHI detection job that was stopped.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier of the PHI detection job that was stopped.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobId = value; }
/**
* <p>The identifier of the PHI detection job that was stopped.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); }
/**
* <p>The identifier of the PHI detection job that was stopped.</p>
*/
inline void SetJobId(const char* value) { m_jobId.assign(value); }
/**
* <p>The identifier of the PHI detection job that was stopped.</p>
*/
inline StopPHIDetectionJobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier of the PHI detection job that was stopped.</p>
*/
inline StopPHIDetectionJobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier of the PHI detection job that was stopped.</p>
*/
inline StopPHIDetectionJobResult& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/ComprehendMedicalRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
/**
*/
class AWS_COMPREHENDMEDICAL_API StopRxNormInferenceJobRequest : public ComprehendMedicalRequest
{
public:
StopRxNormInferenceJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "StopRxNormInferenceJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the job.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier of the job.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The identifier of the job.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The identifier of the job.</p>
*/
inline StopRxNormInferenceJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline StopRxNormInferenceJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier of the job.</p>
*/
inline StopRxNormInferenceJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
class AWS_COMPREHENDMEDICAL_API StopRxNormInferenceJobResult
{
public:
StopRxNormInferenceJobResult();
StopRxNormInferenceJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
StopRxNormInferenceJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The identifier generated for the job. To get the status of job, use this
* identifier with the <code>DescribeRxNormInferenceJob</code> operation.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The identifier generated for the job. To get the status of job, use this
* identifier with the <code>DescribeRxNormInferenceJob</code> operation.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobId = value; }
/**
* <p>The identifier generated for the job. To get the status of job, use this
* identifier with the <code>DescribeRxNormInferenceJob</code> operation.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); }
/**
* <p>The identifier generated for the job. To get the status of job, use this
* identifier with the <code>DescribeRxNormInferenceJob</code> operation.</p>
*/
inline void SetJobId(const char* value) { m_jobId.assign(value); }
/**
* <p>The identifier generated for the job. To get the status of job, use this
* identifier with the <code>DescribeRxNormInferenceJob</code> operation.</p>
*/
inline StopRxNormInferenceJobResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The identifier generated for the job. To get the status of job, use this
* identifier with the <code>DescribeRxNormInferenceJob</code> operation.</p>
*/
inline StopRxNormInferenceJobResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The identifier generated for the job. To get the status of job, use this
* identifier with the <code>DescribeRxNormInferenceJob</code> operation.</p>
*/
inline StopRxNormInferenceJobResult& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,107 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/model/AttributeName.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p> Provides contextual information about the extracted entity. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/Trait">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API Trait
{
public:
Trait();
Trait(Aws::Utils::Json::JsonView jsonValue);
Trait& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> Provides a name or contextual description about the trait. </p>
*/
inline const AttributeName& GetName() const{ return m_name; }
/**
* <p> Provides a name or contextual description about the trait. </p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p> Provides a name or contextual description about the trait. </p>
*/
inline void SetName(const AttributeName& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p> Provides a name or contextual description about the trait. </p>
*/
inline void SetName(AttributeName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p> Provides a name or contextual description about the trait. </p>
*/
inline Trait& WithName(const AttributeName& value) { SetName(value); return *this;}
/**
* <p> Provides a name or contextual description about the trait. </p>
*/
inline Trait& WithName(AttributeName&& value) { SetName(std::move(value)); return *this;}
/**
* <p> The level of confidence that Amazon Comprehend Medical has in the accuracy
* of this trait.</p>
*/
inline double GetScore() const{ return m_score; }
/**
* <p> The level of confidence that Amazon Comprehend Medical has in the accuracy
* of this trait.</p>
*/
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
/**
* <p> The level of confidence that Amazon Comprehend Medical has in the accuracy
* of this trait.</p>
*/
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
/**
* <p> The level of confidence that Amazon Comprehend Medical has in the accuracy
* of this trait.</p>
*/
inline Trait& WithScore(double value) { SetScore(value); return *this;}
private:
AttributeName m_name;
bool m_nameHasBeenSet;
double m_score;
bool m_scoreHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/comprehendmedical/ComprehendMedical_EXPORTS.h>
#include <aws/comprehendmedical/model/EntityType.h>
#include <aws/comprehendmedical/model/Attribute.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ComprehendMedical
{
namespace Model
{
/**
* <p> An attribute that we extracted, but were unable to relate to an entity.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/UnmappedAttribute">AWS
* API Reference</a></p>
*/
class AWS_COMPREHENDMEDICAL_API UnmappedAttribute
{
public:
UnmappedAttribute();
UnmappedAttribute(Aws::Utils::Json::JsonView jsonValue);
UnmappedAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The type of the attribute, could be one of the following values:
* "MEDICATION", "MEDICAL_CONDITION", "ANATOMY", "TEST_AND_TREATMENT_PROCEDURE" or
* "PROTECTED_HEALTH_INFORMATION". </p>
*/
inline const EntityType& GetType() const{ return m_type; }
/**
* <p> The type of the attribute, could be one of the following values:
* "MEDICATION", "MEDICAL_CONDITION", "ANATOMY", "TEST_AND_TREATMENT_PROCEDURE" or
* "PROTECTED_HEALTH_INFORMATION". </p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p> The type of the attribute, could be one of the following values:
* "MEDICATION", "MEDICAL_CONDITION", "ANATOMY", "TEST_AND_TREATMENT_PROCEDURE" or
* "PROTECTED_HEALTH_INFORMATION". </p>
*/
inline void SetType(const EntityType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p> The type of the attribute, could be one of the following values:
* "MEDICATION", "MEDICAL_CONDITION", "ANATOMY", "TEST_AND_TREATMENT_PROCEDURE" or
* "PROTECTED_HEALTH_INFORMATION". </p>
*/
inline void SetType(EntityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p> The type of the attribute, could be one of the following values:
* "MEDICATION", "MEDICAL_CONDITION", "ANATOMY", "TEST_AND_TREATMENT_PROCEDURE" or
* "PROTECTED_HEALTH_INFORMATION". </p>
*/
inline UnmappedAttribute& WithType(const EntityType& value) { SetType(value); return *this;}
/**
* <p> The type of the attribute, could be one of the following values:
* "MEDICATION", "MEDICAL_CONDITION", "ANATOMY", "TEST_AND_TREATMENT_PROCEDURE" or
* "PROTECTED_HEALTH_INFORMATION". </p>
*/
inline UnmappedAttribute& WithType(EntityType&& value) { SetType(std::move(value)); return *this;}
/**
* <p> The specific attribute that has been extracted but not mapped to an entity.
* </p>
*/
inline const Attribute& GetAttribute() const{ return m_attribute; }
/**
* <p> The specific attribute that has been extracted but not mapped to an entity.
* </p>
*/
inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
/**
* <p> The specific attribute that has been extracted but not mapped to an entity.
* </p>
*/
inline void SetAttribute(const Attribute& value) { m_attributeHasBeenSet = true; m_attribute = value; }
/**
* <p> The specific attribute that has been extracted but not mapped to an entity.
* </p>
*/
inline void SetAttribute(Attribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
/**
* <p> The specific attribute that has been extracted but not mapped to an entity.
* </p>
*/
inline UnmappedAttribute& WithAttribute(const Attribute& value) { SetAttribute(value); return *this;}
/**
* <p> The specific attribute that has been extracted but not mapped to an entity.
* </p>
*/
inline UnmappedAttribute& WithAttribute(Attribute&& value) { SetAttribute(std::move(value)); return *this;}
private:
EntityType m_type;
bool m_typeHasBeenSet;
Attribute m_attribute;
bool m_attributeHasBeenSet;
};
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,656 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/utils/Outcome.h>
#include <aws/core/auth/AWSAuthSigner.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/core/client/RetryStrategy.h>
#include <aws/core/http/HttpClient.h>
#include <aws/core/http/HttpResponse.h>
#include <aws/core/http/HttpClientFactory.h>
#include <aws/core/auth/AWSCredentialsProviderChain.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <aws/core/utils/threading/Executor.h>
#include <aws/core/utils/DNS.h>
#include <aws/core/utils/logging/LogMacros.h>
#include <aws/comprehendmedical/ComprehendMedicalClient.h>
#include <aws/comprehendmedical/ComprehendMedicalEndpoint.h>
#include <aws/comprehendmedical/ComprehendMedicalErrorMarshaller.h>
#include <aws/comprehendmedical/model/DescribeEntitiesDetectionV2JobRequest.h>
#include <aws/comprehendmedical/model/DescribeICD10CMInferenceJobRequest.h>
#include <aws/comprehendmedical/model/DescribePHIDetectionJobRequest.h>
#include <aws/comprehendmedical/model/DescribeRxNormInferenceJobRequest.h>
#include <aws/comprehendmedical/model/DetectEntitiesV2Request.h>
#include <aws/comprehendmedical/model/DetectPHIRequest.h>
#include <aws/comprehendmedical/model/InferICD10CMRequest.h>
#include <aws/comprehendmedical/model/InferRxNormRequest.h>
#include <aws/comprehendmedical/model/ListEntitiesDetectionV2JobsRequest.h>
#include <aws/comprehendmedical/model/ListICD10CMInferenceJobsRequest.h>
#include <aws/comprehendmedical/model/ListPHIDetectionJobsRequest.h>
#include <aws/comprehendmedical/model/ListRxNormInferenceJobsRequest.h>
#include <aws/comprehendmedical/model/StartEntitiesDetectionV2JobRequest.h>
#include <aws/comprehendmedical/model/StartICD10CMInferenceJobRequest.h>
#include <aws/comprehendmedical/model/StartPHIDetectionJobRequest.h>
#include <aws/comprehendmedical/model/StartRxNormInferenceJobRequest.h>
#include <aws/comprehendmedical/model/StopEntitiesDetectionV2JobRequest.h>
#include <aws/comprehendmedical/model/StopICD10CMInferenceJobRequest.h>
#include <aws/comprehendmedical/model/StopPHIDetectionJobRequest.h>
#include <aws/comprehendmedical/model/StopRxNormInferenceJobRequest.h>
using namespace Aws;
using namespace Aws::Auth;
using namespace Aws::Client;
using namespace Aws::ComprehendMedical;
using namespace Aws::ComprehendMedical::Model;
using namespace Aws::Http;
using namespace Aws::Utils::Json;
static const char* SERVICE_NAME = "comprehendmedical";
static const char* ALLOCATION_TAG = "ComprehendMedicalClient";
ComprehendMedicalClient::ComprehendMedicalClient(const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<ComprehendMedicalErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
ComprehendMedicalClient::ComprehendMedicalClient(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<SimpleAWSCredentialsProvider>(ALLOCATION_TAG, credentials),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<ComprehendMedicalErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
ComprehendMedicalClient::ComprehendMedicalClient(const std::shared_ptr<AWSCredentialsProvider>& credentialsProvider,
const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, credentialsProvider,
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<ComprehendMedicalErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
ComprehendMedicalClient::~ComprehendMedicalClient()
{
}
void ComprehendMedicalClient::init(const ClientConfiguration& config)
{
SetServiceClientName("ComprehendMedical");
m_configScheme = SchemeMapper::ToString(config.scheme);
if (config.endpointOverride.empty())
{
m_uri = m_configScheme + "://" + ComprehendMedicalEndpoint::ForRegion(config.region, config.useDualStack);
}
else
{
OverrideEndpoint(config.endpointOverride);
}
}
void ComprehendMedicalClient::OverrideEndpoint(const Aws::String& endpoint)
{
if (endpoint.compare(0, 7, "http://") == 0 || endpoint.compare(0, 8, "https://") == 0)
{
m_uri = endpoint;
}
else
{
m_uri = m_configScheme + "://" + endpoint;
}
}
DescribeEntitiesDetectionV2JobOutcome ComprehendMedicalClient::DescribeEntitiesDetectionV2Job(const DescribeEntitiesDetectionV2JobRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return DescribeEntitiesDetectionV2JobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
DescribeEntitiesDetectionV2JobOutcomeCallable ComprehendMedicalClient::DescribeEntitiesDetectionV2JobCallable(const DescribeEntitiesDetectionV2JobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DescribeEntitiesDetectionV2JobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeEntitiesDetectionV2Job(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::DescribeEntitiesDetectionV2JobAsync(const DescribeEntitiesDetectionV2JobRequest& request, const DescribeEntitiesDetectionV2JobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DescribeEntitiesDetectionV2JobAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::DescribeEntitiesDetectionV2JobAsyncHelper(const DescribeEntitiesDetectionV2JobRequest& request, const DescribeEntitiesDetectionV2JobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DescribeEntitiesDetectionV2Job(request), context);
}
DescribeICD10CMInferenceJobOutcome ComprehendMedicalClient::DescribeICD10CMInferenceJob(const DescribeICD10CMInferenceJobRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return DescribeICD10CMInferenceJobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
DescribeICD10CMInferenceJobOutcomeCallable ComprehendMedicalClient::DescribeICD10CMInferenceJobCallable(const DescribeICD10CMInferenceJobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DescribeICD10CMInferenceJobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeICD10CMInferenceJob(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::DescribeICD10CMInferenceJobAsync(const DescribeICD10CMInferenceJobRequest& request, const DescribeICD10CMInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DescribeICD10CMInferenceJobAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::DescribeICD10CMInferenceJobAsyncHelper(const DescribeICD10CMInferenceJobRequest& request, const DescribeICD10CMInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DescribeICD10CMInferenceJob(request), context);
}
DescribePHIDetectionJobOutcome ComprehendMedicalClient::DescribePHIDetectionJob(const DescribePHIDetectionJobRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return DescribePHIDetectionJobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
DescribePHIDetectionJobOutcomeCallable ComprehendMedicalClient::DescribePHIDetectionJobCallable(const DescribePHIDetectionJobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DescribePHIDetectionJobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribePHIDetectionJob(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::DescribePHIDetectionJobAsync(const DescribePHIDetectionJobRequest& request, const DescribePHIDetectionJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DescribePHIDetectionJobAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::DescribePHIDetectionJobAsyncHelper(const DescribePHIDetectionJobRequest& request, const DescribePHIDetectionJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DescribePHIDetectionJob(request), context);
}
DescribeRxNormInferenceJobOutcome ComprehendMedicalClient::DescribeRxNormInferenceJob(const DescribeRxNormInferenceJobRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return DescribeRxNormInferenceJobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
DescribeRxNormInferenceJobOutcomeCallable ComprehendMedicalClient::DescribeRxNormInferenceJobCallable(const DescribeRxNormInferenceJobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DescribeRxNormInferenceJobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeRxNormInferenceJob(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::DescribeRxNormInferenceJobAsync(const DescribeRxNormInferenceJobRequest& request, const DescribeRxNormInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DescribeRxNormInferenceJobAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::DescribeRxNormInferenceJobAsyncHelper(const DescribeRxNormInferenceJobRequest& request, const DescribeRxNormInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DescribeRxNormInferenceJob(request), context);
}
DetectEntitiesV2Outcome ComprehendMedicalClient::DetectEntitiesV2(const DetectEntitiesV2Request& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return DetectEntitiesV2Outcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
DetectEntitiesV2OutcomeCallable ComprehendMedicalClient::DetectEntitiesV2Callable(const DetectEntitiesV2Request& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DetectEntitiesV2Outcome() > >(ALLOCATION_TAG, [this, request](){ return this->DetectEntitiesV2(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::DetectEntitiesV2Async(const DetectEntitiesV2Request& request, const DetectEntitiesV2ResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DetectEntitiesV2AsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::DetectEntitiesV2AsyncHelper(const DetectEntitiesV2Request& request, const DetectEntitiesV2ResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DetectEntitiesV2(request), context);
}
DetectPHIOutcome ComprehendMedicalClient::DetectPHI(const DetectPHIRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return DetectPHIOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
DetectPHIOutcomeCallable ComprehendMedicalClient::DetectPHICallable(const DetectPHIRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DetectPHIOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DetectPHI(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::DetectPHIAsync(const DetectPHIRequest& request, const DetectPHIResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DetectPHIAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::DetectPHIAsyncHelper(const DetectPHIRequest& request, const DetectPHIResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DetectPHI(request), context);
}
InferICD10CMOutcome ComprehendMedicalClient::InferICD10CM(const InferICD10CMRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return InferICD10CMOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
InferICD10CMOutcomeCallable ComprehendMedicalClient::InferICD10CMCallable(const InferICD10CMRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< InferICD10CMOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->InferICD10CM(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::InferICD10CMAsync(const InferICD10CMRequest& request, const InferICD10CMResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->InferICD10CMAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::InferICD10CMAsyncHelper(const InferICD10CMRequest& request, const InferICD10CMResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, InferICD10CM(request), context);
}
InferRxNormOutcome ComprehendMedicalClient::InferRxNorm(const InferRxNormRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return InferRxNormOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
InferRxNormOutcomeCallable ComprehendMedicalClient::InferRxNormCallable(const InferRxNormRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< InferRxNormOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->InferRxNorm(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::InferRxNormAsync(const InferRxNormRequest& request, const InferRxNormResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->InferRxNormAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::InferRxNormAsyncHelper(const InferRxNormRequest& request, const InferRxNormResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, InferRxNorm(request), context);
}
ListEntitiesDetectionV2JobsOutcome ComprehendMedicalClient::ListEntitiesDetectionV2Jobs(const ListEntitiesDetectionV2JobsRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return ListEntitiesDetectionV2JobsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
ListEntitiesDetectionV2JobsOutcomeCallable ComprehendMedicalClient::ListEntitiesDetectionV2JobsCallable(const ListEntitiesDetectionV2JobsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListEntitiesDetectionV2JobsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListEntitiesDetectionV2Jobs(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::ListEntitiesDetectionV2JobsAsync(const ListEntitiesDetectionV2JobsRequest& request, const ListEntitiesDetectionV2JobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListEntitiesDetectionV2JobsAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::ListEntitiesDetectionV2JobsAsyncHelper(const ListEntitiesDetectionV2JobsRequest& request, const ListEntitiesDetectionV2JobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListEntitiesDetectionV2Jobs(request), context);
}
ListICD10CMInferenceJobsOutcome ComprehendMedicalClient::ListICD10CMInferenceJobs(const ListICD10CMInferenceJobsRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return ListICD10CMInferenceJobsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
ListICD10CMInferenceJobsOutcomeCallable ComprehendMedicalClient::ListICD10CMInferenceJobsCallable(const ListICD10CMInferenceJobsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListICD10CMInferenceJobsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListICD10CMInferenceJobs(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::ListICD10CMInferenceJobsAsync(const ListICD10CMInferenceJobsRequest& request, const ListICD10CMInferenceJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListICD10CMInferenceJobsAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::ListICD10CMInferenceJobsAsyncHelper(const ListICD10CMInferenceJobsRequest& request, const ListICD10CMInferenceJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListICD10CMInferenceJobs(request), context);
}
ListPHIDetectionJobsOutcome ComprehendMedicalClient::ListPHIDetectionJobs(const ListPHIDetectionJobsRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return ListPHIDetectionJobsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
ListPHIDetectionJobsOutcomeCallable ComprehendMedicalClient::ListPHIDetectionJobsCallable(const ListPHIDetectionJobsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListPHIDetectionJobsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListPHIDetectionJobs(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::ListPHIDetectionJobsAsync(const ListPHIDetectionJobsRequest& request, const ListPHIDetectionJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListPHIDetectionJobsAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::ListPHIDetectionJobsAsyncHelper(const ListPHIDetectionJobsRequest& request, const ListPHIDetectionJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListPHIDetectionJobs(request), context);
}
ListRxNormInferenceJobsOutcome ComprehendMedicalClient::ListRxNormInferenceJobs(const ListRxNormInferenceJobsRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return ListRxNormInferenceJobsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
ListRxNormInferenceJobsOutcomeCallable ComprehendMedicalClient::ListRxNormInferenceJobsCallable(const ListRxNormInferenceJobsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListRxNormInferenceJobsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListRxNormInferenceJobs(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::ListRxNormInferenceJobsAsync(const ListRxNormInferenceJobsRequest& request, const ListRxNormInferenceJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListRxNormInferenceJobsAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::ListRxNormInferenceJobsAsyncHelper(const ListRxNormInferenceJobsRequest& request, const ListRxNormInferenceJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListRxNormInferenceJobs(request), context);
}
StartEntitiesDetectionV2JobOutcome ComprehendMedicalClient::StartEntitiesDetectionV2Job(const StartEntitiesDetectionV2JobRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return StartEntitiesDetectionV2JobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
StartEntitiesDetectionV2JobOutcomeCallable ComprehendMedicalClient::StartEntitiesDetectionV2JobCallable(const StartEntitiesDetectionV2JobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< StartEntitiesDetectionV2JobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->StartEntitiesDetectionV2Job(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::StartEntitiesDetectionV2JobAsync(const StartEntitiesDetectionV2JobRequest& request, const StartEntitiesDetectionV2JobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->StartEntitiesDetectionV2JobAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::StartEntitiesDetectionV2JobAsyncHelper(const StartEntitiesDetectionV2JobRequest& request, const StartEntitiesDetectionV2JobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, StartEntitiesDetectionV2Job(request), context);
}
StartICD10CMInferenceJobOutcome ComprehendMedicalClient::StartICD10CMInferenceJob(const StartICD10CMInferenceJobRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return StartICD10CMInferenceJobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
StartICD10CMInferenceJobOutcomeCallable ComprehendMedicalClient::StartICD10CMInferenceJobCallable(const StartICD10CMInferenceJobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< StartICD10CMInferenceJobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->StartICD10CMInferenceJob(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::StartICD10CMInferenceJobAsync(const StartICD10CMInferenceJobRequest& request, const StartICD10CMInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->StartICD10CMInferenceJobAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::StartICD10CMInferenceJobAsyncHelper(const StartICD10CMInferenceJobRequest& request, const StartICD10CMInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, StartICD10CMInferenceJob(request), context);
}
StartPHIDetectionJobOutcome ComprehendMedicalClient::StartPHIDetectionJob(const StartPHIDetectionJobRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return StartPHIDetectionJobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
StartPHIDetectionJobOutcomeCallable ComprehendMedicalClient::StartPHIDetectionJobCallable(const StartPHIDetectionJobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< StartPHIDetectionJobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->StartPHIDetectionJob(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::StartPHIDetectionJobAsync(const StartPHIDetectionJobRequest& request, const StartPHIDetectionJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->StartPHIDetectionJobAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::StartPHIDetectionJobAsyncHelper(const StartPHIDetectionJobRequest& request, const StartPHIDetectionJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, StartPHIDetectionJob(request), context);
}
StartRxNormInferenceJobOutcome ComprehendMedicalClient::StartRxNormInferenceJob(const StartRxNormInferenceJobRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return StartRxNormInferenceJobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
StartRxNormInferenceJobOutcomeCallable ComprehendMedicalClient::StartRxNormInferenceJobCallable(const StartRxNormInferenceJobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< StartRxNormInferenceJobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->StartRxNormInferenceJob(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::StartRxNormInferenceJobAsync(const StartRxNormInferenceJobRequest& request, const StartRxNormInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->StartRxNormInferenceJobAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::StartRxNormInferenceJobAsyncHelper(const StartRxNormInferenceJobRequest& request, const StartRxNormInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, StartRxNormInferenceJob(request), context);
}
StopEntitiesDetectionV2JobOutcome ComprehendMedicalClient::StopEntitiesDetectionV2Job(const StopEntitiesDetectionV2JobRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return StopEntitiesDetectionV2JobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
StopEntitiesDetectionV2JobOutcomeCallable ComprehendMedicalClient::StopEntitiesDetectionV2JobCallable(const StopEntitiesDetectionV2JobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< StopEntitiesDetectionV2JobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->StopEntitiesDetectionV2Job(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::StopEntitiesDetectionV2JobAsync(const StopEntitiesDetectionV2JobRequest& request, const StopEntitiesDetectionV2JobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->StopEntitiesDetectionV2JobAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::StopEntitiesDetectionV2JobAsyncHelper(const StopEntitiesDetectionV2JobRequest& request, const StopEntitiesDetectionV2JobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, StopEntitiesDetectionV2Job(request), context);
}
StopICD10CMInferenceJobOutcome ComprehendMedicalClient::StopICD10CMInferenceJob(const StopICD10CMInferenceJobRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return StopICD10CMInferenceJobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
StopICD10CMInferenceJobOutcomeCallable ComprehendMedicalClient::StopICD10CMInferenceJobCallable(const StopICD10CMInferenceJobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< StopICD10CMInferenceJobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->StopICD10CMInferenceJob(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::StopICD10CMInferenceJobAsync(const StopICD10CMInferenceJobRequest& request, const StopICD10CMInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->StopICD10CMInferenceJobAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::StopICD10CMInferenceJobAsyncHelper(const StopICD10CMInferenceJobRequest& request, const StopICD10CMInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, StopICD10CMInferenceJob(request), context);
}
StopPHIDetectionJobOutcome ComprehendMedicalClient::StopPHIDetectionJob(const StopPHIDetectionJobRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return StopPHIDetectionJobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
StopPHIDetectionJobOutcomeCallable ComprehendMedicalClient::StopPHIDetectionJobCallable(const StopPHIDetectionJobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< StopPHIDetectionJobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->StopPHIDetectionJob(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::StopPHIDetectionJobAsync(const StopPHIDetectionJobRequest& request, const StopPHIDetectionJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->StopPHIDetectionJobAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::StopPHIDetectionJobAsyncHelper(const StopPHIDetectionJobRequest& request, const StopPHIDetectionJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, StopPHIDetectionJob(request), context);
}
StopRxNormInferenceJobOutcome ComprehendMedicalClient::StopRxNormInferenceJob(const StopRxNormInferenceJobRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/";
uri.SetPath(uri.GetPath() + ss.str());
return StopRxNormInferenceJobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
StopRxNormInferenceJobOutcomeCallable ComprehendMedicalClient::StopRxNormInferenceJobCallable(const StopRxNormInferenceJobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< StopRxNormInferenceJobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->StopRxNormInferenceJob(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void ComprehendMedicalClient::StopRxNormInferenceJobAsync(const StopRxNormInferenceJobRequest& request, const StopRxNormInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->StopRxNormInferenceJobAsyncHelper( request, handler, context ); } );
}
void ComprehendMedicalClient::StopRxNormInferenceJobAsyncHelper(const StopRxNormInferenceJobRequest& request, const StopRxNormInferenceJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, StopRxNormInferenceJob(request), context);
}

View File

@@ -0,0 +1,64 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/ComprehendMedicalEndpoint.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <aws/core/utils/HashingUtils.h>
using namespace Aws;
using namespace Aws::ComprehendMedical;
namespace Aws
{
namespace ComprehendMedical
{
namespace ComprehendMedicalEndpoint
{
static const int CN_NORTH_1_HASH = Aws::Utils::HashingUtils::HashString("cn-north-1");
static const int CN_NORTHWEST_1_HASH = Aws::Utils::HashingUtils::HashString("cn-northwest-1");
static const int US_ISO_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-iso-east-1");
static const int US_ISOB_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-isob-east-1");
Aws::String ForRegion(const Aws::String& regionName, bool useDualStack)
{
// Fallback to us-east-1 if global endpoint does not exists.
Aws::String region = regionName == Aws::Region::AWS_GLOBAL ? Aws::Region::US_EAST_1 : regionName;
auto hash = Aws::Utils::HashingUtils::HashString(region.c_str());
Aws::StringStream ss;
ss << "comprehendmedical" << ".";
if(useDualStack)
{
ss << "dualstack.";
}
ss << region;
if (hash == CN_NORTH_1_HASH || hash == CN_NORTHWEST_1_HASH)
{
ss << ".amazonaws.com.cn";
}
else if (hash == US_ISO_EAST_1_HASH)
{
ss << ".c2s.ic.gov";
}
else if (hash == US_ISOB_EAST_1_HASH)
{
ss << ".sc2s.sgov.gov";
}
else
{
ss << ".amazonaws.com";
}
return ss.str();
}
} // namespace ComprehendMedicalEndpoint
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,22 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/client/AWSError.h>
#include <aws/comprehendmedical/ComprehendMedicalErrorMarshaller.h>
#include <aws/comprehendmedical/ComprehendMedicalErrors.h>
using namespace Aws::Client;
using namespace Aws::ComprehendMedical;
AWSError<CoreErrors> ComprehendMedicalErrorMarshaller::FindErrorByName(const char* errorName) const
{
AWSError<CoreErrors> error = ComprehendMedicalErrorMapper::GetErrorForName(errorName);
if(error.GetErrorType() != CoreErrors::UNKNOWN)
{
return error;
}
return AWSErrorMarshaller::FindErrorByName(errorName);
}

View File

@@ -0,0 +1,57 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/client/AWSError.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/comprehendmedical/ComprehendMedicalErrors.h>
using namespace Aws::Client;
using namespace Aws::Utils;
using namespace Aws::ComprehendMedical;
namespace Aws
{
namespace ComprehendMedical
{
namespace ComprehendMedicalErrorMapper
{
static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException");
static const int INVALID_ENCODING_HASH = HashingUtils::HashString("InvalidEncodingException");
static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException");
static const int TEXT_SIZE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("TextSizeLimitExceededException");
static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException");
AWSError<CoreErrors> GetErrorForName(const char* errorName)
{
int hashCode = HashingUtils::HashString(errorName);
if (hashCode == INTERNAL_SERVER_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ComprehendMedicalErrors::INTERNAL_SERVER), false);
}
else if (hashCode == INVALID_ENCODING_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ComprehendMedicalErrors::INVALID_ENCODING), false);
}
else if (hashCode == TOO_MANY_REQUESTS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ComprehendMedicalErrors::TOO_MANY_REQUESTS), true);
}
else if (hashCode == TEXT_SIZE_LIMIT_EXCEEDED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ComprehendMedicalErrors::TEXT_SIZE_LIMIT_EXCEEDED), false);
}
else if (hashCode == INVALID_REQUEST_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(ComprehendMedicalErrors::INVALID_REQUEST), false);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
} // namespace ComprehendMedicalErrorMapper
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,215 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/Attribute.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
Attribute::Attribute() :
m_type(EntitySubType::NOT_SET),
m_typeHasBeenSet(false),
m_score(0.0),
m_scoreHasBeenSet(false),
m_relationshipScore(0.0),
m_relationshipScoreHasBeenSet(false),
m_relationshipType(RelationshipType::NOT_SET),
m_relationshipTypeHasBeenSet(false),
m_id(0),
m_idHasBeenSet(false),
m_beginOffset(0),
m_beginOffsetHasBeenSet(false),
m_endOffset(0),
m_endOffsetHasBeenSet(false),
m_textHasBeenSet(false),
m_category(EntityType::NOT_SET),
m_categoryHasBeenSet(false),
m_traitsHasBeenSet(false)
{
}
Attribute::Attribute(JsonView jsonValue) :
m_type(EntitySubType::NOT_SET),
m_typeHasBeenSet(false),
m_score(0.0),
m_scoreHasBeenSet(false),
m_relationshipScore(0.0),
m_relationshipScoreHasBeenSet(false),
m_relationshipType(RelationshipType::NOT_SET),
m_relationshipTypeHasBeenSet(false),
m_id(0),
m_idHasBeenSet(false),
m_beginOffset(0),
m_beginOffsetHasBeenSet(false),
m_endOffset(0),
m_endOffsetHasBeenSet(false),
m_textHasBeenSet(false),
m_category(EntityType::NOT_SET),
m_categoryHasBeenSet(false),
m_traitsHasBeenSet(false)
{
*this = jsonValue;
}
Attribute& Attribute::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Type"))
{
m_type = EntitySubTypeMapper::GetEntitySubTypeForName(jsonValue.GetString("Type"));
m_typeHasBeenSet = true;
}
if(jsonValue.ValueExists("Score"))
{
m_score = jsonValue.GetDouble("Score");
m_scoreHasBeenSet = true;
}
if(jsonValue.ValueExists("RelationshipScore"))
{
m_relationshipScore = jsonValue.GetDouble("RelationshipScore");
m_relationshipScoreHasBeenSet = true;
}
if(jsonValue.ValueExists("RelationshipType"))
{
m_relationshipType = RelationshipTypeMapper::GetRelationshipTypeForName(jsonValue.GetString("RelationshipType"));
m_relationshipTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("Id"))
{
m_id = jsonValue.GetInteger("Id");
m_idHasBeenSet = true;
}
if(jsonValue.ValueExists("BeginOffset"))
{
m_beginOffset = jsonValue.GetInteger("BeginOffset");
m_beginOffsetHasBeenSet = true;
}
if(jsonValue.ValueExists("EndOffset"))
{
m_endOffset = jsonValue.GetInteger("EndOffset");
m_endOffsetHasBeenSet = true;
}
if(jsonValue.ValueExists("Text"))
{
m_text = jsonValue.GetString("Text");
m_textHasBeenSet = true;
}
if(jsonValue.ValueExists("Category"))
{
m_category = EntityTypeMapper::GetEntityTypeForName(jsonValue.GetString("Category"));
m_categoryHasBeenSet = true;
}
if(jsonValue.ValueExists("Traits"))
{
Array<JsonView> traitsJsonList = jsonValue.GetArray("Traits");
for(unsigned traitsIndex = 0; traitsIndex < traitsJsonList.GetLength(); ++traitsIndex)
{
m_traits.push_back(traitsJsonList[traitsIndex].AsObject());
}
m_traitsHasBeenSet = true;
}
return *this;
}
JsonValue Attribute::Jsonize() const
{
JsonValue payload;
if(m_typeHasBeenSet)
{
payload.WithString("Type", EntitySubTypeMapper::GetNameForEntitySubType(m_type));
}
if(m_scoreHasBeenSet)
{
payload.WithDouble("Score", m_score);
}
if(m_relationshipScoreHasBeenSet)
{
payload.WithDouble("RelationshipScore", m_relationshipScore);
}
if(m_relationshipTypeHasBeenSet)
{
payload.WithString("RelationshipType", RelationshipTypeMapper::GetNameForRelationshipType(m_relationshipType));
}
if(m_idHasBeenSet)
{
payload.WithInteger("Id", m_id);
}
if(m_beginOffsetHasBeenSet)
{
payload.WithInteger("BeginOffset", m_beginOffset);
}
if(m_endOffsetHasBeenSet)
{
payload.WithInteger("EndOffset", m_endOffset);
}
if(m_textHasBeenSet)
{
payload.WithString("Text", m_text);
}
if(m_categoryHasBeenSet)
{
payload.WithString("Category", EntityTypeMapper::GetNameForEntityType(m_category));
}
if(m_traitsHasBeenSet)
{
Array<JsonValue> traitsJsonList(m_traits.size());
for(unsigned traitsIndex = 0; traitsIndex < traitsJsonList.GetLength(); ++traitsIndex)
{
traitsJsonList[traitsIndex].AsObject(m_traits[traitsIndex].Jsonize());
}
payload.WithArray("Traits", std::move(traitsJsonList));
}
return payload;
}
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/AttributeName.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
namespace AttributeNameMapper
{
static const int SIGN_HASH = HashingUtils::HashString("SIGN");
static const int SYMPTOM_HASH = HashingUtils::HashString("SYMPTOM");
static const int DIAGNOSIS_HASH = HashingUtils::HashString("DIAGNOSIS");
static const int NEGATION_HASH = HashingUtils::HashString("NEGATION");
AttributeName GetAttributeNameForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == SIGN_HASH)
{
return AttributeName::SIGN;
}
else if (hashCode == SYMPTOM_HASH)
{
return AttributeName::SYMPTOM;
}
else if (hashCode == DIAGNOSIS_HASH)
{
return AttributeName::DIAGNOSIS;
}
else if (hashCode == NEGATION_HASH)
{
return AttributeName::NEGATION;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<AttributeName>(hashCode);
}
return AttributeName::NOT_SET;
}
Aws::String GetNameForAttributeName(AttributeName enumValue)
{
switch(enumValue)
{
case AttributeName::SIGN:
return "SIGN";
case AttributeName::SYMPTOM:
return "SYMPTOM";
case AttributeName::DIAGNOSIS:
return "DIAGNOSIS";
case AttributeName::NEGATION:
return "NEGATION";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace AttributeNameMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,103 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/ComprehendMedicalAsyncJobFilter.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
ComprehendMedicalAsyncJobFilter::ComprehendMedicalAsyncJobFilter() :
m_jobNameHasBeenSet(false),
m_jobStatus(JobStatus::NOT_SET),
m_jobStatusHasBeenSet(false),
m_submitTimeBeforeHasBeenSet(false),
m_submitTimeAfterHasBeenSet(false)
{
}
ComprehendMedicalAsyncJobFilter::ComprehendMedicalAsyncJobFilter(JsonView jsonValue) :
m_jobNameHasBeenSet(false),
m_jobStatus(JobStatus::NOT_SET),
m_jobStatusHasBeenSet(false),
m_submitTimeBeforeHasBeenSet(false),
m_submitTimeAfterHasBeenSet(false)
{
*this = jsonValue;
}
ComprehendMedicalAsyncJobFilter& ComprehendMedicalAsyncJobFilter::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("JobName"))
{
m_jobName = jsonValue.GetString("JobName");
m_jobNameHasBeenSet = true;
}
if(jsonValue.ValueExists("JobStatus"))
{
m_jobStatus = JobStatusMapper::GetJobStatusForName(jsonValue.GetString("JobStatus"));
m_jobStatusHasBeenSet = true;
}
if(jsonValue.ValueExists("SubmitTimeBefore"))
{
m_submitTimeBefore = jsonValue.GetDouble("SubmitTimeBefore");
m_submitTimeBeforeHasBeenSet = true;
}
if(jsonValue.ValueExists("SubmitTimeAfter"))
{
m_submitTimeAfter = jsonValue.GetDouble("SubmitTimeAfter");
m_submitTimeAfterHasBeenSet = true;
}
return *this;
}
JsonValue ComprehendMedicalAsyncJobFilter::Jsonize() const
{
JsonValue payload;
if(m_jobNameHasBeenSet)
{
payload.WithString("JobName", m_jobName);
}
if(m_jobStatusHasBeenSet)
{
payload.WithString("JobStatus", JobStatusMapper::GetNameForJobStatus(m_jobStatus));
}
if(m_submitTimeBeforeHasBeenSet)
{
payload.WithDouble("SubmitTimeBefore", m_submitTimeBefore.SecondsWithMSPrecision());
}
if(m_submitTimeAfterHasBeenSet)
{
payload.WithDouble("SubmitTimeAfter", m_submitTimeAfter.SecondsWithMSPrecision());
}
return payload;
}
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,253 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/ComprehendMedicalAsyncJobProperties.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
ComprehendMedicalAsyncJobProperties::ComprehendMedicalAsyncJobProperties() :
m_jobIdHasBeenSet(false),
m_jobNameHasBeenSet(false),
m_jobStatus(JobStatus::NOT_SET),
m_jobStatusHasBeenSet(false),
m_messageHasBeenSet(false),
m_submitTimeHasBeenSet(false),
m_endTimeHasBeenSet(false),
m_expirationTimeHasBeenSet(false),
m_inputDataConfigHasBeenSet(false),
m_outputDataConfigHasBeenSet(false),
m_languageCode(LanguageCode::NOT_SET),
m_languageCodeHasBeenSet(false),
m_dataAccessRoleArnHasBeenSet(false),
m_manifestFilePathHasBeenSet(false),
m_kMSKeyHasBeenSet(false),
m_modelVersionHasBeenSet(false)
{
}
ComprehendMedicalAsyncJobProperties::ComprehendMedicalAsyncJobProperties(JsonView jsonValue) :
m_jobIdHasBeenSet(false),
m_jobNameHasBeenSet(false),
m_jobStatus(JobStatus::NOT_SET),
m_jobStatusHasBeenSet(false),
m_messageHasBeenSet(false),
m_submitTimeHasBeenSet(false),
m_endTimeHasBeenSet(false),
m_expirationTimeHasBeenSet(false),
m_inputDataConfigHasBeenSet(false),
m_outputDataConfigHasBeenSet(false),
m_languageCode(LanguageCode::NOT_SET),
m_languageCodeHasBeenSet(false),
m_dataAccessRoleArnHasBeenSet(false),
m_manifestFilePathHasBeenSet(false),
m_kMSKeyHasBeenSet(false),
m_modelVersionHasBeenSet(false)
{
*this = jsonValue;
}
ComprehendMedicalAsyncJobProperties& ComprehendMedicalAsyncJobProperties::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("JobId"))
{
m_jobId = jsonValue.GetString("JobId");
m_jobIdHasBeenSet = true;
}
if(jsonValue.ValueExists("JobName"))
{
m_jobName = jsonValue.GetString("JobName");
m_jobNameHasBeenSet = true;
}
if(jsonValue.ValueExists("JobStatus"))
{
m_jobStatus = JobStatusMapper::GetJobStatusForName(jsonValue.GetString("JobStatus"));
m_jobStatusHasBeenSet = true;
}
if(jsonValue.ValueExists("Message"))
{
m_message = jsonValue.GetString("Message");
m_messageHasBeenSet = true;
}
if(jsonValue.ValueExists("SubmitTime"))
{
m_submitTime = jsonValue.GetDouble("SubmitTime");
m_submitTimeHasBeenSet = true;
}
if(jsonValue.ValueExists("EndTime"))
{
m_endTime = jsonValue.GetDouble("EndTime");
m_endTimeHasBeenSet = true;
}
if(jsonValue.ValueExists("ExpirationTime"))
{
m_expirationTime = jsonValue.GetDouble("ExpirationTime");
m_expirationTimeHasBeenSet = true;
}
if(jsonValue.ValueExists("InputDataConfig"))
{
m_inputDataConfig = jsonValue.GetObject("InputDataConfig");
m_inputDataConfigHasBeenSet = true;
}
if(jsonValue.ValueExists("OutputDataConfig"))
{
m_outputDataConfig = jsonValue.GetObject("OutputDataConfig");
m_outputDataConfigHasBeenSet = true;
}
if(jsonValue.ValueExists("LanguageCode"))
{
m_languageCode = LanguageCodeMapper::GetLanguageCodeForName(jsonValue.GetString("LanguageCode"));
m_languageCodeHasBeenSet = true;
}
if(jsonValue.ValueExists("DataAccessRoleArn"))
{
m_dataAccessRoleArn = jsonValue.GetString("DataAccessRoleArn");
m_dataAccessRoleArnHasBeenSet = true;
}
if(jsonValue.ValueExists("ManifestFilePath"))
{
m_manifestFilePath = jsonValue.GetString("ManifestFilePath");
m_manifestFilePathHasBeenSet = true;
}
if(jsonValue.ValueExists("KMSKey"))
{
m_kMSKey = jsonValue.GetString("KMSKey");
m_kMSKeyHasBeenSet = true;
}
if(jsonValue.ValueExists("ModelVersion"))
{
m_modelVersion = jsonValue.GetString("ModelVersion");
m_modelVersionHasBeenSet = true;
}
return *this;
}
JsonValue ComprehendMedicalAsyncJobProperties::Jsonize() const
{
JsonValue payload;
if(m_jobIdHasBeenSet)
{
payload.WithString("JobId", m_jobId);
}
if(m_jobNameHasBeenSet)
{
payload.WithString("JobName", m_jobName);
}
if(m_jobStatusHasBeenSet)
{
payload.WithString("JobStatus", JobStatusMapper::GetNameForJobStatus(m_jobStatus));
}
if(m_messageHasBeenSet)
{
payload.WithString("Message", m_message);
}
if(m_submitTimeHasBeenSet)
{
payload.WithDouble("SubmitTime", m_submitTime.SecondsWithMSPrecision());
}
if(m_endTimeHasBeenSet)
{
payload.WithDouble("EndTime", m_endTime.SecondsWithMSPrecision());
}
if(m_expirationTimeHasBeenSet)
{
payload.WithDouble("ExpirationTime", m_expirationTime.SecondsWithMSPrecision());
}
if(m_inputDataConfigHasBeenSet)
{
payload.WithObject("InputDataConfig", m_inputDataConfig.Jsonize());
}
if(m_outputDataConfigHasBeenSet)
{
payload.WithObject("OutputDataConfig", m_outputDataConfig.Jsonize());
}
if(m_languageCodeHasBeenSet)
{
payload.WithString("LanguageCode", LanguageCodeMapper::GetNameForLanguageCode(m_languageCode));
}
if(m_dataAccessRoleArnHasBeenSet)
{
payload.WithString("DataAccessRoleArn", m_dataAccessRoleArn);
}
if(m_manifestFilePathHasBeenSet)
{
payload.WithString("ManifestFilePath", m_manifestFilePath);
}
if(m_kMSKeyHasBeenSet)
{
payload.WithString("KMSKey", m_kMSKey);
}
if(m_modelVersionHasBeenSet)
{
payload.WithString("ModelVersion", m_modelVersion);
}
return payload;
}
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/DescribeEntitiesDetectionV2JobRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ComprehendMedical::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeEntitiesDetectionV2JobRequest::DescribeEntitiesDetectionV2JobRequest() :
m_jobIdHasBeenSet(false)
{
}
Aws::String DescribeEntitiesDetectionV2JobRequest::SerializePayload() const
{
JsonValue payload;
if(m_jobIdHasBeenSet)
{
payload.WithString("JobId", m_jobId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DescribeEntitiesDetectionV2JobRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ComprehendMedical_20181030.DescribeEntitiesDetectionV2Job"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/DescribeEntitiesDetectionV2JobResult.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::ComprehendMedical::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeEntitiesDetectionV2JobResult::DescribeEntitiesDetectionV2JobResult()
{
}
DescribeEntitiesDetectionV2JobResult::DescribeEntitiesDetectionV2JobResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeEntitiesDetectionV2JobResult& DescribeEntitiesDetectionV2JobResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ComprehendMedicalAsyncJobProperties"))
{
m_comprehendMedicalAsyncJobProperties = jsonValue.GetObject("ComprehendMedicalAsyncJobProperties");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/DescribeICD10CMInferenceJobRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ComprehendMedical::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeICD10CMInferenceJobRequest::DescribeICD10CMInferenceJobRequest() :
m_jobIdHasBeenSet(false)
{
}
Aws::String DescribeICD10CMInferenceJobRequest::SerializePayload() const
{
JsonValue payload;
if(m_jobIdHasBeenSet)
{
payload.WithString("JobId", m_jobId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DescribeICD10CMInferenceJobRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ComprehendMedical_20181030.DescribeICD10CMInferenceJob"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/DescribeICD10CMInferenceJobResult.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::ComprehendMedical::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeICD10CMInferenceJobResult::DescribeICD10CMInferenceJobResult()
{
}
DescribeICD10CMInferenceJobResult::DescribeICD10CMInferenceJobResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeICD10CMInferenceJobResult& DescribeICD10CMInferenceJobResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ComprehendMedicalAsyncJobProperties"))
{
m_comprehendMedicalAsyncJobProperties = jsonValue.GetObject("ComprehendMedicalAsyncJobProperties");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/DescribePHIDetectionJobRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ComprehendMedical::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribePHIDetectionJobRequest::DescribePHIDetectionJobRequest() :
m_jobIdHasBeenSet(false)
{
}
Aws::String DescribePHIDetectionJobRequest::SerializePayload() const
{
JsonValue payload;
if(m_jobIdHasBeenSet)
{
payload.WithString("JobId", m_jobId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DescribePHIDetectionJobRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ComprehendMedical_20181030.DescribePHIDetectionJob"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/DescribePHIDetectionJobResult.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::ComprehendMedical::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribePHIDetectionJobResult::DescribePHIDetectionJobResult()
{
}
DescribePHIDetectionJobResult::DescribePHIDetectionJobResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribePHIDetectionJobResult& DescribePHIDetectionJobResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ComprehendMedicalAsyncJobProperties"))
{
m_comprehendMedicalAsyncJobProperties = jsonValue.GetObject("ComprehendMedicalAsyncJobProperties");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/DescribeRxNormInferenceJobRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ComprehendMedical::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeRxNormInferenceJobRequest::DescribeRxNormInferenceJobRequest() :
m_jobIdHasBeenSet(false)
{
}
Aws::String DescribeRxNormInferenceJobRequest::SerializePayload() const
{
JsonValue payload;
if(m_jobIdHasBeenSet)
{
payload.WithString("JobId", m_jobId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DescribeRxNormInferenceJobRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ComprehendMedical_20181030.DescribeRxNormInferenceJob"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/DescribeRxNormInferenceJobResult.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::ComprehendMedical::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeRxNormInferenceJobResult::DescribeRxNormInferenceJobResult()
{
}
DescribeRxNormInferenceJobResult::DescribeRxNormInferenceJobResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeRxNormInferenceJobResult& DescribeRxNormInferenceJobResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ComprehendMedicalAsyncJobProperties"))
{
m_comprehendMedicalAsyncJobProperties = jsonValue.GetObject("ComprehendMedicalAsyncJobProperties");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/DetectEntitiesV2Request.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ComprehendMedical::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DetectEntitiesV2Request::DetectEntitiesV2Request() :
m_textHasBeenSet(false)
{
}
Aws::String DetectEntitiesV2Request::SerializePayload() const
{
JsonValue payload;
if(m_textHasBeenSet)
{
payload.WithString("Text", m_text);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DetectEntitiesV2Request::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ComprehendMedical_20181030.DetectEntitiesV2"));
return headers;
}

View File

@@ -0,0 +1,64 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/DetectEntitiesV2Result.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::ComprehendMedical::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DetectEntitiesV2Result::DetectEntitiesV2Result()
{
}
DetectEntitiesV2Result::DetectEntitiesV2Result(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DetectEntitiesV2Result& DetectEntitiesV2Result::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Entities"))
{
Array<JsonView> entitiesJsonList = jsonValue.GetArray("Entities");
for(unsigned entitiesIndex = 0; entitiesIndex < entitiesJsonList.GetLength(); ++entitiesIndex)
{
m_entities.push_back(entitiesJsonList[entitiesIndex].AsObject());
}
}
if(jsonValue.ValueExists("UnmappedAttributes"))
{
Array<JsonView> unmappedAttributesJsonList = jsonValue.GetArray("UnmappedAttributes");
for(unsigned unmappedAttributesIndex = 0; unmappedAttributesIndex < unmappedAttributesJsonList.GetLength(); ++unmappedAttributesIndex)
{
m_unmappedAttributes.push_back(unmappedAttributesJsonList[unmappedAttributesIndex].AsObject());
}
}
if(jsonValue.ValueExists("PaginationToken"))
{
m_paginationToken = jsonValue.GetString("PaginationToken");
}
if(jsonValue.ValueExists("ModelVersion"))
{
m_modelVersion = jsonValue.GetString("ModelVersion");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/DetectPHIRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::ComprehendMedical::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DetectPHIRequest::DetectPHIRequest() :
m_textHasBeenSet(false)
{
}
Aws::String DetectPHIRequest::SerializePayload() const
{
JsonValue payload;
if(m_textHasBeenSet)
{
payload.WithString("Text", m_text);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DetectPHIRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "ComprehendMedical_20181030.DetectPHI"));
return headers;
}

View File

@@ -0,0 +1,55 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/DetectPHIResult.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::ComprehendMedical::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DetectPHIResult::DetectPHIResult()
{
}
DetectPHIResult::DetectPHIResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DetectPHIResult& DetectPHIResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Entities"))
{
Array<JsonView> entitiesJsonList = jsonValue.GetArray("Entities");
for(unsigned entitiesIndex = 0; entitiesIndex < entitiesJsonList.GetLength(); ++entitiesIndex)
{
m_entities.push_back(entitiesJsonList[entitiesIndex].AsObject());
}
}
if(jsonValue.ValueExists("PaginationToken"))
{
m_paginationToken = jsonValue.GetString("PaginationToken");
}
if(jsonValue.ValueExists("ModelVersion"))
{
m_modelVersion = jsonValue.GetString("ModelVersion");
}
return *this;
}

View File

@@ -0,0 +1,205 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/Entity.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
Entity::Entity() :
m_id(0),
m_idHasBeenSet(false),
m_beginOffset(0),
m_beginOffsetHasBeenSet(false),
m_endOffset(0),
m_endOffsetHasBeenSet(false),
m_score(0.0),
m_scoreHasBeenSet(false),
m_textHasBeenSet(false),
m_category(EntityType::NOT_SET),
m_categoryHasBeenSet(false),
m_type(EntitySubType::NOT_SET),
m_typeHasBeenSet(false),
m_traitsHasBeenSet(false),
m_attributesHasBeenSet(false)
{
}
Entity::Entity(JsonView jsonValue) :
m_id(0),
m_idHasBeenSet(false),
m_beginOffset(0),
m_beginOffsetHasBeenSet(false),
m_endOffset(0),
m_endOffsetHasBeenSet(false),
m_score(0.0),
m_scoreHasBeenSet(false),
m_textHasBeenSet(false),
m_category(EntityType::NOT_SET),
m_categoryHasBeenSet(false),
m_type(EntitySubType::NOT_SET),
m_typeHasBeenSet(false),
m_traitsHasBeenSet(false),
m_attributesHasBeenSet(false)
{
*this = jsonValue;
}
Entity& Entity::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Id"))
{
m_id = jsonValue.GetInteger("Id");
m_idHasBeenSet = true;
}
if(jsonValue.ValueExists("BeginOffset"))
{
m_beginOffset = jsonValue.GetInteger("BeginOffset");
m_beginOffsetHasBeenSet = true;
}
if(jsonValue.ValueExists("EndOffset"))
{
m_endOffset = jsonValue.GetInteger("EndOffset");
m_endOffsetHasBeenSet = true;
}
if(jsonValue.ValueExists("Score"))
{
m_score = jsonValue.GetDouble("Score");
m_scoreHasBeenSet = true;
}
if(jsonValue.ValueExists("Text"))
{
m_text = jsonValue.GetString("Text");
m_textHasBeenSet = true;
}
if(jsonValue.ValueExists("Category"))
{
m_category = EntityTypeMapper::GetEntityTypeForName(jsonValue.GetString("Category"));
m_categoryHasBeenSet = true;
}
if(jsonValue.ValueExists("Type"))
{
m_type = EntitySubTypeMapper::GetEntitySubTypeForName(jsonValue.GetString("Type"));
m_typeHasBeenSet = true;
}
if(jsonValue.ValueExists("Traits"))
{
Array<JsonView> traitsJsonList = jsonValue.GetArray("Traits");
for(unsigned traitsIndex = 0; traitsIndex < traitsJsonList.GetLength(); ++traitsIndex)
{
m_traits.push_back(traitsJsonList[traitsIndex].AsObject());
}
m_traitsHasBeenSet = true;
}
if(jsonValue.ValueExists("Attributes"))
{
Array<JsonView> attributesJsonList = jsonValue.GetArray("Attributes");
for(unsigned attributesIndex = 0; attributesIndex < attributesJsonList.GetLength(); ++attributesIndex)
{
m_attributes.push_back(attributesJsonList[attributesIndex].AsObject());
}
m_attributesHasBeenSet = true;
}
return *this;
}
JsonValue Entity::Jsonize() const
{
JsonValue payload;
if(m_idHasBeenSet)
{
payload.WithInteger("Id", m_id);
}
if(m_beginOffsetHasBeenSet)
{
payload.WithInteger("BeginOffset", m_beginOffset);
}
if(m_endOffsetHasBeenSet)
{
payload.WithInteger("EndOffset", m_endOffset);
}
if(m_scoreHasBeenSet)
{
payload.WithDouble("Score", m_score);
}
if(m_textHasBeenSet)
{
payload.WithString("Text", m_text);
}
if(m_categoryHasBeenSet)
{
payload.WithString("Category", EntityTypeMapper::GetNameForEntityType(m_category));
}
if(m_typeHasBeenSet)
{
payload.WithString("Type", EntitySubTypeMapper::GetNameForEntitySubType(m_type));
}
if(m_traitsHasBeenSet)
{
Array<JsonValue> traitsJsonList(m_traits.size());
for(unsigned traitsIndex = 0; traitsIndex < traitsJsonList.GetLength(); ++traitsIndex)
{
traitsJsonList[traitsIndex].AsObject(m_traits[traitsIndex].Jsonize());
}
payload.WithArray("Traits", std::move(traitsJsonList));
}
if(m_attributesHasBeenSet)
{
Array<JsonValue> attributesJsonList(m_attributes.size());
for(unsigned attributesIndex = 0; attributesIndex < attributesJsonList.GetLength(); ++attributesIndex)
{
attributesJsonList[attributesIndex].AsObject(m_attributes[attributesIndex].Jsonize());
}
payload.WithArray("Attributes", std::move(attributesJsonList));
}
return payload;
}
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,294 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/EntitySubType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
namespace EntitySubTypeMapper
{
static const int NAME_HASH = HashingUtils::HashString("NAME");
static const int DOSAGE_HASH = HashingUtils::HashString("DOSAGE");
static const int ROUTE_OR_MODE_HASH = HashingUtils::HashString("ROUTE_OR_MODE");
static const int FORM_HASH = HashingUtils::HashString("FORM");
static const int FREQUENCY_HASH = HashingUtils::HashString("FREQUENCY");
static const int DURATION_HASH = HashingUtils::HashString("DURATION");
static const int GENERIC_NAME_HASH = HashingUtils::HashString("GENERIC_NAME");
static const int BRAND_NAME_HASH = HashingUtils::HashString("BRAND_NAME");
static const int STRENGTH_HASH = HashingUtils::HashString("STRENGTH");
static const int RATE_HASH = HashingUtils::HashString("RATE");
static const int ACUITY_HASH = HashingUtils::HashString("ACUITY");
static const int TEST_NAME_HASH = HashingUtils::HashString("TEST_NAME");
static const int TEST_VALUE_HASH = HashingUtils::HashString("TEST_VALUE");
static const int TEST_UNITS_HASH = HashingUtils::HashString("TEST_UNITS");
static const int PROCEDURE_NAME_HASH = HashingUtils::HashString("PROCEDURE_NAME");
static const int TREATMENT_NAME_HASH = HashingUtils::HashString("TREATMENT_NAME");
static const int DATE_HASH = HashingUtils::HashString("DATE");
static const int AGE_HASH = HashingUtils::HashString("AGE");
static const int CONTACT_POINT_HASH = HashingUtils::HashString("CONTACT_POINT");
static const int EMAIL_HASH = HashingUtils::HashString("EMAIL");
static const int IDENTIFIER_HASH = HashingUtils::HashString("IDENTIFIER");
static const int URL_HASH = HashingUtils::HashString("URL");
static const int ADDRESS_HASH = HashingUtils::HashString("ADDRESS");
static const int PROFESSION_HASH = HashingUtils::HashString("PROFESSION");
static const int SYSTEM_ORGAN_SITE_HASH = HashingUtils::HashString("SYSTEM_ORGAN_SITE");
static const int DIRECTION_HASH = HashingUtils::HashString("DIRECTION");
static const int QUALITY_HASH = HashingUtils::HashString("QUALITY");
static const int QUANTITY_HASH = HashingUtils::HashString("QUANTITY");
static const int TIME_EXPRESSION_HASH = HashingUtils::HashString("TIME_EXPRESSION");
static const int TIME_TO_MEDICATION_NAME_HASH = HashingUtils::HashString("TIME_TO_MEDICATION_NAME");
static const int TIME_TO_DX_NAME_HASH = HashingUtils::HashString("TIME_TO_DX_NAME");
static const int TIME_TO_TEST_NAME_HASH = HashingUtils::HashString("TIME_TO_TEST_NAME");
static const int TIME_TO_PROCEDURE_NAME_HASH = HashingUtils::HashString("TIME_TO_PROCEDURE_NAME");
static const int TIME_TO_TREATMENT_NAME_HASH = HashingUtils::HashString("TIME_TO_TREATMENT_NAME");
EntitySubType GetEntitySubTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == NAME_HASH)
{
return EntitySubType::NAME;
}
else if (hashCode == DOSAGE_HASH)
{
return EntitySubType::DOSAGE;
}
else if (hashCode == ROUTE_OR_MODE_HASH)
{
return EntitySubType::ROUTE_OR_MODE;
}
else if (hashCode == FORM_HASH)
{
return EntitySubType::FORM;
}
else if (hashCode == FREQUENCY_HASH)
{
return EntitySubType::FREQUENCY;
}
else if (hashCode == DURATION_HASH)
{
return EntitySubType::DURATION;
}
else if (hashCode == GENERIC_NAME_HASH)
{
return EntitySubType::GENERIC_NAME;
}
else if (hashCode == BRAND_NAME_HASH)
{
return EntitySubType::BRAND_NAME;
}
else if (hashCode == STRENGTH_HASH)
{
return EntitySubType::STRENGTH;
}
else if (hashCode == RATE_HASH)
{
return EntitySubType::RATE;
}
else if (hashCode == ACUITY_HASH)
{
return EntitySubType::ACUITY;
}
else if (hashCode == TEST_NAME_HASH)
{
return EntitySubType::TEST_NAME;
}
else if (hashCode == TEST_VALUE_HASH)
{
return EntitySubType::TEST_VALUE;
}
else if (hashCode == TEST_UNITS_HASH)
{
return EntitySubType::TEST_UNITS;
}
else if (hashCode == PROCEDURE_NAME_HASH)
{
return EntitySubType::PROCEDURE_NAME;
}
else if (hashCode == TREATMENT_NAME_HASH)
{
return EntitySubType::TREATMENT_NAME;
}
else if (hashCode == DATE_HASH)
{
return EntitySubType::DATE;
}
else if (hashCode == AGE_HASH)
{
return EntitySubType::AGE;
}
else if (hashCode == CONTACT_POINT_HASH)
{
return EntitySubType::CONTACT_POINT;
}
else if (hashCode == EMAIL_HASH)
{
return EntitySubType::EMAIL;
}
else if (hashCode == IDENTIFIER_HASH)
{
return EntitySubType::IDENTIFIER;
}
else if (hashCode == URL_HASH)
{
return EntitySubType::URL;
}
else if (hashCode == ADDRESS_HASH)
{
return EntitySubType::ADDRESS;
}
else if (hashCode == PROFESSION_HASH)
{
return EntitySubType::PROFESSION;
}
else if (hashCode == SYSTEM_ORGAN_SITE_HASH)
{
return EntitySubType::SYSTEM_ORGAN_SITE;
}
else if (hashCode == DIRECTION_HASH)
{
return EntitySubType::DIRECTION;
}
else if (hashCode == QUALITY_HASH)
{
return EntitySubType::QUALITY;
}
else if (hashCode == QUANTITY_HASH)
{
return EntitySubType::QUANTITY;
}
else if (hashCode == TIME_EXPRESSION_HASH)
{
return EntitySubType::TIME_EXPRESSION;
}
else if (hashCode == TIME_TO_MEDICATION_NAME_HASH)
{
return EntitySubType::TIME_TO_MEDICATION_NAME;
}
else if (hashCode == TIME_TO_DX_NAME_HASH)
{
return EntitySubType::TIME_TO_DX_NAME;
}
else if (hashCode == TIME_TO_TEST_NAME_HASH)
{
return EntitySubType::TIME_TO_TEST_NAME;
}
else if (hashCode == TIME_TO_PROCEDURE_NAME_HASH)
{
return EntitySubType::TIME_TO_PROCEDURE_NAME;
}
else if (hashCode == TIME_TO_TREATMENT_NAME_HASH)
{
return EntitySubType::TIME_TO_TREATMENT_NAME;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<EntitySubType>(hashCode);
}
return EntitySubType::NOT_SET;
}
Aws::String GetNameForEntitySubType(EntitySubType enumValue)
{
switch(enumValue)
{
case EntitySubType::NAME:
return "NAME";
case EntitySubType::DOSAGE:
return "DOSAGE";
case EntitySubType::ROUTE_OR_MODE:
return "ROUTE_OR_MODE";
case EntitySubType::FORM:
return "FORM";
case EntitySubType::FREQUENCY:
return "FREQUENCY";
case EntitySubType::DURATION:
return "DURATION";
case EntitySubType::GENERIC_NAME:
return "GENERIC_NAME";
case EntitySubType::BRAND_NAME:
return "BRAND_NAME";
case EntitySubType::STRENGTH:
return "STRENGTH";
case EntitySubType::RATE:
return "RATE";
case EntitySubType::ACUITY:
return "ACUITY";
case EntitySubType::TEST_NAME:
return "TEST_NAME";
case EntitySubType::TEST_VALUE:
return "TEST_VALUE";
case EntitySubType::TEST_UNITS:
return "TEST_UNITS";
case EntitySubType::PROCEDURE_NAME:
return "PROCEDURE_NAME";
case EntitySubType::TREATMENT_NAME:
return "TREATMENT_NAME";
case EntitySubType::DATE:
return "DATE";
case EntitySubType::AGE:
return "AGE";
case EntitySubType::CONTACT_POINT:
return "CONTACT_POINT";
case EntitySubType::EMAIL:
return "EMAIL";
case EntitySubType::IDENTIFIER:
return "IDENTIFIER";
case EntitySubType::URL:
return "URL";
case EntitySubType::ADDRESS:
return "ADDRESS";
case EntitySubType::PROFESSION:
return "PROFESSION";
case EntitySubType::SYSTEM_ORGAN_SITE:
return "SYSTEM_ORGAN_SITE";
case EntitySubType::DIRECTION:
return "DIRECTION";
case EntitySubType::QUALITY:
return "QUALITY";
case EntitySubType::QUANTITY:
return "QUANTITY";
case EntitySubType::TIME_EXPRESSION:
return "TIME_EXPRESSION";
case EntitySubType::TIME_TO_MEDICATION_NAME:
return "TIME_TO_MEDICATION_NAME";
case EntitySubType::TIME_TO_DX_NAME:
return "TIME_TO_DX_NAME";
case EntitySubType::TIME_TO_TEST_NAME:
return "TIME_TO_TEST_NAME";
case EntitySubType::TIME_TO_PROCEDURE_NAME:
return "TIME_TO_PROCEDURE_NAME";
case EntitySubType::TIME_TO_TREATMENT_NAME:
return "TIME_TO_TREATMENT_NAME";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace EntitySubTypeMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/comprehendmedical/model/EntityType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace ComprehendMedical
{
namespace Model
{
namespace EntityTypeMapper
{
static const int MEDICATION_HASH = HashingUtils::HashString("MEDICATION");
static const int MEDICAL_CONDITION_HASH = HashingUtils::HashString("MEDICAL_CONDITION");
static const int PROTECTED_HEALTH_INFORMATION_HASH = HashingUtils::HashString("PROTECTED_HEALTH_INFORMATION");
static const int TEST_TREATMENT_PROCEDURE_HASH = HashingUtils::HashString("TEST_TREATMENT_PROCEDURE");
static const int ANATOMY_HASH = HashingUtils::HashString("ANATOMY");
static const int TIME_EXPRESSION_HASH = HashingUtils::HashString("TIME_EXPRESSION");
EntityType GetEntityTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == MEDICATION_HASH)
{
return EntityType::MEDICATION;
}
else if (hashCode == MEDICAL_CONDITION_HASH)
{
return EntityType::MEDICAL_CONDITION;
}
else if (hashCode == PROTECTED_HEALTH_INFORMATION_HASH)
{
return EntityType::PROTECTED_HEALTH_INFORMATION;
}
else if (hashCode == TEST_TREATMENT_PROCEDURE_HASH)
{
return EntityType::TEST_TREATMENT_PROCEDURE;
}
else if (hashCode == ANATOMY_HASH)
{
return EntityType::ANATOMY;
}
else if (hashCode == TIME_EXPRESSION_HASH)
{
return EntityType::TIME_EXPRESSION;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<EntityType>(hashCode);
}
return EntityType::NOT_SET;
}
Aws::String GetNameForEntityType(EntityType enumValue)
{
switch(enumValue)
{
case EntityType::MEDICATION:
return "MEDICATION";
case EntityType::MEDICAL_CONDITION:
return "MEDICAL_CONDITION";
case EntityType::PROTECTED_HEALTH_INFORMATION:
return "PROTECTED_HEALTH_INFORMATION";
case EntityType::TEST_TREATMENT_PROCEDURE:
return "TEST_TREATMENT_PROCEDURE";
case EntityType::ANATOMY:
return "ANATOMY";
case EntityType::TIME_EXPRESSION:
return "TIME_EXPRESSION";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace EntityTypeMapper
} // namespace Model
} // namespace ComprehendMedical
} // namespace Aws

Some files were not shown because too many files have changed in this diff Show More