/** * 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 MainframeModernization { namespace Model { /** */ class CreateDataSetImportTaskRequest : public MainframeModernizationRequest { public: AWS_MAINFRAMEMODERNIZATION_API CreateDataSetImportTaskRequest(); // 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 "CreateDataSetImportTask"; } AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override; /** *

The unique identifier of the application for which you want to import data * sets.

*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *

The unique identifier of the application for which you want to import data * sets.

*/ inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } /** *

The unique identifier of the application for which you want to import data * sets.

*/ inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } /** *

The unique identifier of the application for which you want to import data * sets.

*/ inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } /** *

The unique identifier of the application for which you want to import data * sets.

*/ inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } /** *

The unique identifier of the application for which you want to import data * sets.

*/ inline CreateDataSetImportTaskRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

The unique identifier of the application for which you want to import data * sets.

*/ inline CreateDataSetImportTaskRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} /** *

The unique identifier of the application for which you want to import data * sets.

*/ inline CreateDataSetImportTaskRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create a data set import. The service generates the clientToken * when the API call is triggered. The token expires after one hour, so if you * retry the API within this timeframe with the same clientToken, you will get the * same response. The service also handles deleting the clientToken after it * expires.

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

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create a data set import. The service generates the clientToken * when the API call is triggered. The token expires after one hour, so if you * retry the API within this timeframe with the same clientToken, you will get the * same response. The service also handles deleting the clientToken after it * expires.

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

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create a data set import. The service generates the clientToken * when the API call is triggered. The token expires after one hour, so if you * retry the API within this timeframe with the same clientToken, you will get the * same response. The service also handles deleting the clientToken after it * expires.

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

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create a data set import. The service generates the clientToken * when the API call is triggered. The token expires after one hour, so if you * retry the API within this timeframe with the same clientToken, you will get the * same response. The service also handles deleting the clientToken after it * expires.

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

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create a data set import. The service generates the clientToken * when the API call is triggered. The token expires after one hour, so if you * retry the API within this timeframe with the same clientToken, you will get the * same response. The service also handles deleting the clientToken after it * expires.

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

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create a data set import. The service generates the clientToken * when the API call is triggered. The token expires after one hour, so if you * retry the API within this timeframe with the same clientToken, you will get the * same response. The service also handles deleting the clientToken after it * expires.

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

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create a data set import. The service generates the clientToken * when the API call is triggered. The token expires after one hour, so if you * retry the API within this timeframe with the same clientToken, you will get the * same response. The service also handles deleting the clientToken after it * expires.

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

Unique, case-sensitive identifier you provide to ensure the idempotency of * the request to create a data set import. The service generates the clientToken * when the API call is triggered. The token expires after one hour, so if you * retry the API within this timeframe with the same clientToken, you will get the * same response. The service also handles deleting the clientToken after it * expires.

*/ inline CreateDataSetImportTaskRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The data set import task configuration.

*/ inline const DataSetImportConfig& GetImportConfig() const{ return m_importConfig; } /** *

The data set import task configuration.

*/ inline bool ImportConfigHasBeenSet() const { return m_importConfigHasBeenSet; } /** *

The data set import task configuration.

*/ inline void SetImportConfig(const DataSetImportConfig& value) { m_importConfigHasBeenSet = true; m_importConfig = value; } /** *

The data set import task configuration.

*/ inline void SetImportConfig(DataSetImportConfig&& value) { m_importConfigHasBeenSet = true; m_importConfig = std::move(value); } /** *

The data set import task configuration.

*/ inline CreateDataSetImportTaskRequest& WithImportConfig(const DataSetImportConfig& value) { SetImportConfig(value); return *this;} /** *

The data set import task configuration.

*/ inline CreateDataSetImportTaskRequest& WithImportConfig(DataSetImportConfig&& value) { SetImportConfig(std::move(value)); return *this;} private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; DataSetImportConfig m_importConfig; bool m_importConfigHasBeenSet = false; }; } // namespace Model } // namespace MainframeModernization } // namespace Aws