/** * 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 LookoutforVision { namespace Model { /** */ class CreateDatasetRequest : public LookoutforVisionRequest { public: AWS_LOOKOUTFORVISION_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_LOOKOUTFORVISION_API Aws::String SerializePayload() const override; AWS_LOOKOUTFORVISION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the project in which you want to create a dataset.

*/ inline const Aws::String& GetProjectName() const{ return m_projectName; } /** *

The name of the project in which you want to create a dataset.

*/ inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; } /** *

The name of the project in which you want to create a dataset.

*/ inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; } /** *

The name of the project in which you want to create a dataset.

*/ inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); } /** *

The name of the project in which you want to create a dataset.

*/ inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); } /** *

The name of the project in which you want to create a dataset.

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

The name of the project in which you want to create a dataset.

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

The name of the project in which you want to create a dataset.

*/ inline CreateDatasetRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;} /** *

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

*/ inline const Aws::String& GetDatasetType() const{ return m_datasetType; } /** *

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

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

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

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

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

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

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

*/ inline void SetDatasetType(const char* value) { m_datasetTypeHasBeenSet = true; m_datasetType.assign(value); } /** *

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

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

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

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

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

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

The location of the manifest file that Amazon Lookout for Vision uses to * create the dataset.

If you don't specify DatasetSource, an * empty dataset is created and the operation synchronously returns. Later, you can * add JSON Lines by calling UpdateDatasetEntries.

If you specify a * value for DataSource, the manifest at the S3 location is validated * and used to create the dataset. The call to CreateDataset is * asynchronous and might take a while to complete. To find out the current status, * Check the value of Status returned in a call to * DescribeDataset.

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

The location of the manifest file that Amazon Lookout for Vision uses to * create the dataset.

If you don't specify DatasetSource, an * empty dataset is created and the operation synchronously returns. Later, you can * add JSON Lines by calling UpdateDatasetEntries.

If you specify a * value for DataSource, the manifest at the S3 location is validated * and used to create the dataset. The call to CreateDataset is * asynchronous and might take a while to complete. To find out the current status, * Check the value of Status returned in a call to * DescribeDataset.

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

The location of the manifest file that Amazon Lookout for Vision uses to * create the dataset.

If you don't specify DatasetSource, an * empty dataset is created and the operation synchronously returns. Later, you can * add JSON Lines by calling UpdateDatasetEntries.

If you specify a * value for DataSource, the manifest at the S3 location is validated * and used to create the dataset. The call to CreateDataset is * asynchronous and might take a while to complete. To find out the current status, * Check the value of Status returned in a call to * DescribeDataset.

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

The location of the manifest file that Amazon Lookout for Vision uses to * create the dataset.

If you don't specify DatasetSource, an * empty dataset is created and the operation synchronously returns. Later, you can * add JSON Lines by calling UpdateDatasetEntries.

If you specify a * value for DataSource, the manifest at the S3 location is validated * and used to create the dataset. The call to CreateDataset is * asynchronous and might take a while to complete. To find out the current status, * Check the value of Status returned in a call to * DescribeDataset.

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

The location of the manifest file that Amazon Lookout for Vision uses to * create the dataset.

If you don't specify DatasetSource, an * empty dataset is created and the operation synchronously returns. Later, you can * add JSON Lines by calling UpdateDatasetEntries.

If you specify a * value for DataSource, the manifest at the S3 location is validated * and used to create the dataset. The call to CreateDataset is * asynchronous and might take a while to complete. To find out the current status, * Check the value of Status returned in a call to * DescribeDataset.

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

The location of the manifest file that Amazon Lookout for Vision uses to * create the dataset.

If you don't specify DatasetSource, an * empty dataset is created and the operation synchronously returns. Later, you can * add JSON Lines by calling UpdateDatasetEntries.

If you specify a * value for DataSource, the manifest at the S3 location is validated * and used to create the dataset. The call to CreateDataset is * asynchronous and might take a while to complete. To find out the current status, * Check the value of Status returned in a call to * DescribeDataset.

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

ClientToken is an idempotency token that ensures a call to * CreateDataset completes only once. You choose the value to pass. * For example, An issue might prevent you from getting a response from * CreateDataset. In this case, safely retry your call to * CreateDataset by using the same ClientToken parameter * value.

If you don't supply a value for ClientToken, the AWS * SDK you are using inserts a value for you. This prevents retries after a network * error from making multiple dataset creation requests. You'll need to provide * your own value for other use cases.

An error occurs if the other input * parameters are not the same as in the first request. Using a different value for * ClientToken is considered a new call to CreateDataset. * An idempotency token is active for 8 hours.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

ClientToken is an idempotency token that ensures a call to * CreateDataset completes only once. You choose the value to pass. * For example, An issue might prevent you from getting a response from * CreateDataset. In this case, safely retry your call to * CreateDataset by using the same ClientToken parameter * value.

If you don't supply a value for ClientToken, the AWS * SDK you are using inserts a value for you. This prevents retries after a network * error from making multiple dataset creation requests. You'll need to provide * your own value for other use cases.

An error occurs if the other input * parameters are not the same as in the first request. Using a different value for * ClientToken is considered a new call to CreateDataset. * An idempotency token is active for 8 hours.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

ClientToken is an idempotency token that ensures a call to * CreateDataset completes only once. You choose the value to pass. * For example, An issue might prevent you from getting a response from * CreateDataset. In this case, safely retry your call to * CreateDataset by using the same ClientToken parameter * value.

If you don't supply a value for ClientToken, the AWS * SDK you are using inserts a value for you. This prevents retries after a network * error from making multiple dataset creation requests. You'll need to provide * your own value for other use cases.

An error occurs if the other input * parameters are not the same as in the first request. Using a different value for * ClientToken is considered a new call to CreateDataset. * An idempotency token is active for 8 hours.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

ClientToken is an idempotency token that ensures a call to * CreateDataset completes only once. You choose the value to pass. * For example, An issue might prevent you from getting a response from * CreateDataset. In this case, safely retry your call to * CreateDataset by using the same ClientToken parameter * value.

If you don't supply a value for ClientToken, the AWS * SDK you are using inserts a value for you. This prevents retries after a network * error from making multiple dataset creation requests. You'll need to provide * your own value for other use cases.

An error occurs if the other input * parameters are not the same as in the first request. Using a different value for * ClientToken is considered a new call to CreateDataset. * An idempotency token is active for 8 hours.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

ClientToken is an idempotency token that ensures a call to * CreateDataset completes only once. You choose the value to pass. * For example, An issue might prevent you from getting a response from * CreateDataset. In this case, safely retry your call to * CreateDataset by using the same ClientToken parameter * value.

If you don't supply a value for ClientToken, the AWS * SDK you are using inserts a value for you. This prevents retries after a network * error from making multiple dataset creation requests. You'll need to provide * your own value for other use cases.

An error occurs if the other input * parameters are not the same as in the first request. Using a different value for * ClientToken is considered a new call to CreateDataset. * An idempotency token is active for 8 hours.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

ClientToken is an idempotency token that ensures a call to * CreateDataset completes only once. You choose the value to pass. * For example, An issue might prevent you from getting a response from * CreateDataset. In this case, safely retry your call to * CreateDataset by using the same ClientToken parameter * value.

If you don't supply a value for ClientToken, the AWS * SDK you are using inserts a value for you. This prevents retries after a network * error from making multiple dataset creation requests. You'll need to provide * your own value for other use cases.

An error occurs if the other input * parameters are not the same as in the first request. Using a different value for * ClientToken is considered a new call to CreateDataset. * An idempotency token is active for 8 hours.

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

ClientToken is an idempotency token that ensures a call to * CreateDataset completes only once. You choose the value to pass. * For example, An issue might prevent you from getting a response from * CreateDataset. In this case, safely retry your call to * CreateDataset by using the same ClientToken parameter * value.

If you don't supply a value for ClientToken, the AWS * SDK you are using inserts a value for you. This prevents retries after a network * error from making multiple dataset creation requests. You'll need to provide * your own value for other use cases.

An error occurs if the other input * parameters are not the same as in the first request. Using a different value for * ClientToken is considered a new call to CreateDataset. * An idempotency token is active for 8 hours.

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

ClientToken is an idempotency token that ensures a call to * CreateDataset completes only once. You choose the value to pass. * For example, An issue might prevent you from getting a response from * CreateDataset. In this case, safely retry your call to * CreateDataset by using the same ClientToken parameter * value.

If you don't supply a value for ClientToken, the AWS * SDK you are using inserts a value for you. This prevents retries after a network * error from making multiple dataset creation requests. You'll need to provide * your own value for other use cases.

An error occurs if the other input * parameters are not the same as in the first request. Using a different value for * ClientToken is considered a new call to CreateDataset. * An idempotency token is active for 8 hours.

*/ inline CreateDatasetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_projectName; bool m_projectNameHasBeenSet = false; Aws::String m_datasetType; bool m_datasetTypeHasBeenSet = false; DatasetSource m_datasetSource; bool m_datasetSourceHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace LookoutforVision } // namespace Aws