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

The source files for the dataset. You can specify the ARN of an existing * dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format * manifest file. If you don't specify datasetSource, an empty dataset * is created. To add labeled images to the dataset, You can use the console or * call UpdateDatasetEntries.

*/ inline const DatasetSource& GetDatasetSource() const{ return m_datasetSource; } /** *

The source files for the dataset. You can specify the ARN of an existing * dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format * manifest file. If you don't specify datasetSource, an empty dataset * is created. To add labeled images to the dataset, You can use the console or * call UpdateDatasetEntries.

*/ inline bool DatasetSourceHasBeenSet() const { return m_datasetSourceHasBeenSet; } /** *

The source files for the dataset. You can specify the ARN of an existing * dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format * manifest file. If you don't specify datasetSource, an empty dataset * is created. To add labeled images to the dataset, You can use the console or * call UpdateDatasetEntries.

*/ inline void SetDatasetSource(const DatasetSource& value) { m_datasetSourceHasBeenSet = true; m_datasetSource = value; } /** *

The source files for the dataset. You can specify the ARN of an existing * dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format * manifest file. If you don't specify datasetSource, an empty dataset * is created. To add labeled images to the dataset, You can use the console or * call UpdateDatasetEntries.

*/ inline void SetDatasetSource(DatasetSource&& value) { m_datasetSourceHasBeenSet = true; m_datasetSource = std::move(value); } /** *

The source files for the dataset. You can specify the ARN of an existing * dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format * manifest file. If you don't specify datasetSource, an empty dataset * is created. To add labeled images to the dataset, You can use the console or * call UpdateDatasetEntries.

*/ inline CreateDatasetRequest& WithDatasetSource(const DatasetSource& value) { SetDatasetSource(value); return *this;} /** *

The source files for the dataset. You can specify the ARN of an existing * dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format * manifest file. If you don't specify datasetSource, an empty dataset * is created. To add labeled images to the dataset, You can use the console or * call UpdateDatasetEntries.

*/ inline CreateDatasetRequest& WithDatasetSource(DatasetSource&& value) { SetDatasetSource(std::move(value)); return *this;} /** *

The type of the dataset. Specify train to create a training * dataset. Specify test to create a test dataset.

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

The type of the dataset. Specify train to create a training * dataset. Specify test to create a test dataset.

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

The type of the dataset. Specify train to create a training * dataset. Specify test to create a test dataset.

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

The type of the dataset. Specify train to create a training * dataset. Specify test to create a test dataset.

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

The type of the dataset. Specify train to create a training * dataset. Specify test to create a test dataset.

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

The type of the dataset. Specify train to create a training * dataset. Specify test to create a test dataset.

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

The ARN of the Amazon Rekognition Custom Labels project to which you want to * asssign the dataset.

*/ inline const Aws::String& GetProjectArn() const{ return m_projectArn; } /** *

The ARN of the Amazon Rekognition Custom Labels project to which you want to * asssign the dataset.

*/ inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; } /** *

The ARN of the Amazon Rekognition Custom Labels project to which you want to * asssign the dataset.

*/ inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; } /** *

The ARN of the Amazon Rekognition Custom Labels project to which you want to * asssign the dataset.

*/ inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::move(value); } /** *

The ARN of the Amazon Rekognition Custom Labels project to which you want to * asssign the dataset.

*/ inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); } /** *

The ARN of the Amazon Rekognition Custom Labels project to which you want to * asssign the dataset.

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

The ARN of the Amazon Rekognition Custom Labels project to which you want to * asssign the dataset.

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

The ARN of the Amazon Rekognition Custom Labels project to which you want to * asssign the dataset.

*/ inline CreateDatasetRequest& WithProjectArn(const char* value) { SetProjectArn(value); return *this;} private: DatasetSource m_datasetSource; bool m_datasetSourceHasBeenSet = false; DatasetType m_datasetType; bool m_datasetTypeHasBeenSet = false; Aws::String m_projectArn; bool m_projectArnHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws