378 lines
16 KiB
C
378 lines
16 KiB
C
|
|
/**
|
|||
|
|
* 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
|