/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace Comprehend { namespace Model { /** */ class CreateDatasetRequest : public ComprehendRequest { public: AWS_COMPREHEND_API CreateDatasetRequest(); // 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 "CreateDataset"; } AWS_COMPREHEND_API Aws::String SerializePayload() const override; AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive * the data.

*/ inline const Aws::String& GetFlywheelArn() const{ return m_flywheelArn; } /** *

The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive * the data.

*/ inline bool FlywheelArnHasBeenSet() const { return m_flywheelArnHasBeenSet; } /** *

The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive * the data.

*/ inline void SetFlywheelArn(const Aws::String& value) { m_flywheelArnHasBeenSet = true; m_flywheelArn = value; } /** *

The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive * the data.

*/ inline void SetFlywheelArn(Aws::String&& value) { m_flywheelArnHasBeenSet = true; m_flywheelArn = std::move(value); } /** *

The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive * the data.

*/ inline void SetFlywheelArn(const char* value) { m_flywheelArnHasBeenSet = true; m_flywheelArn.assign(value); } /** *

The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive * the data.

*/ inline CreateDatasetRequest& WithFlywheelArn(const Aws::String& value) { SetFlywheelArn(value); return *this;} /** *

The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive * the data.

*/ inline CreateDatasetRequest& WithFlywheelArn(Aws::String&& value) { SetFlywheelArn(std::move(value)); return *this;} /** *

The Amazon Resource Number (ARN) of the flywheel of the flywheel to receive * the data.

*/ inline CreateDatasetRequest& WithFlywheelArn(const char* value) { SetFlywheelArn(value); return *this;} /** *

Name of the dataset.

*/ inline const Aws::String& GetDatasetName() const{ return m_datasetName; } /** *

Name of the dataset.

*/ inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; } /** *

Name of the dataset.

*/ inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; } /** *

Name of the dataset.

*/ inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); } /** *

Name of the dataset.

*/ inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); } /** *

Name of the dataset.

*/ inline CreateDatasetRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;} /** *

Name of the dataset.

*/ inline CreateDatasetRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;} /** *

Name of the dataset.

*/ inline CreateDatasetRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;} /** *

The dataset type. You can specify that the data in a dataset is for training * the model or for testing the model.

*/ inline const DatasetType& GetDatasetType() const{ return m_datasetType; } /** *

The dataset type. You can specify that the data in a dataset is for training * the model or for testing the model.

*/ inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; } /** *

The dataset type. You can specify that the data in a dataset is for training * the model or for testing the model.

*/ inline void SetDatasetType(const DatasetType& value) { m_datasetTypeHasBeenSet = true; m_datasetType = value; } /** *

The dataset type. You can specify that the data in a dataset is for training * the model or for testing the model.

*/ inline void SetDatasetType(DatasetType&& value) { m_datasetTypeHasBeenSet = true; m_datasetType = std::move(value); } /** *

The dataset type. You can specify that the data in a dataset is for training * the model or for testing the model.

*/ inline CreateDatasetRequest& WithDatasetType(const DatasetType& value) { SetDatasetType(value); return *this;} /** *

The dataset type. You can specify that the data in a dataset is for training * the model or for testing the model.

*/ inline CreateDatasetRequest& WithDatasetType(DatasetType&& value) { SetDatasetType(std::move(value)); return *this;} /** *

Description of the dataset.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

Description of the dataset.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

Description of the dataset.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

Description of the dataset.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

Description of the dataset.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

Description of the dataset.

*/ inline CreateDatasetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

Description of the dataset.

*/ inline CreateDatasetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

Description of the dataset.

*/ inline CreateDatasetRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Information about the input data configuration. The type of input data varies * based on the format of the input and whether the data is for a classifier model * or an entity recognition model.

*/ inline const DatasetInputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; } /** *

Information about the input data configuration. The type of input data varies * based on the format of the input and whether the data is for a classifier model * or an entity recognition model.

*/ inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; } /** *

Information about the input data configuration. The type of input data varies * based on the format of the input and whether the data is for a classifier model * or an entity recognition model.

*/ inline void SetInputDataConfig(const DatasetInputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; } /** *

Information about the input data configuration. The type of input data varies * based on the format of the input and whether the data is for a classifier model * or an entity recognition model.

*/ inline void SetInputDataConfig(DatasetInputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); } /** *

Information about the input data configuration. The type of input data varies * based on the format of the input and whether the data is for a classifier model * or an entity recognition model.

*/ inline CreateDatasetRequest& WithInputDataConfig(const DatasetInputDataConfig& value) { SetInputDataConfig(value); return *this;} /** *

Information about the input data configuration. The type of input data varies * based on the format of the input and whether the data is for a classifier model * or an entity recognition model.

*/ inline CreateDatasetRequest& WithInputDataConfig(DatasetInputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;} /** *

A unique identifier for the request. If you don't set the client request * token, Amazon Comprehend generates one.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

A unique identifier for the request. If you don't set the client request * token, Amazon Comprehend generates one.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

A unique identifier for the request. If you don't set the client request * token, Amazon Comprehend generates one.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

A unique identifier for the request. If you don't set the client request * token, Amazon Comprehend generates one.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

A unique identifier for the request. If you don't set the client request * token, Amazon Comprehend generates one.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

A unique identifier for the request. If you don't set the client request * token, Amazon Comprehend generates one.

*/ inline CreateDatasetRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

A unique identifier for the request. If you don't set the client request * token, Amazon Comprehend generates one.

*/ inline CreateDatasetRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

A unique identifier for the request. If you don't set the client request * token, Amazon Comprehend generates one.

*/ inline CreateDatasetRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

Tags for the dataset.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Tags for the dataset.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Tags for the dataset.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Tags for the dataset.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Tags for the dataset.

*/ inline CreateDatasetRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Tags for the dataset.

*/ inline CreateDatasetRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Tags for the dataset.

*/ inline CreateDatasetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Tags for the dataset.

*/ inline CreateDatasetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_flywheelArn; bool m_flywheelArnHasBeenSet = false; Aws::String m_datasetName; bool m_datasetNameHasBeenSet = false; DatasetType m_datasetType; bool m_datasetTypeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; DatasetInputDataConfig m_inputDataConfig; bool m_inputDataConfigHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws