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

Optional. A unique token that you can provide to prevent the same import * request from occurring more than once. If you don't provide a token, a token is * automatically generated.

Sending more than one * StartImportTask request with the same client request token will * return information about the original import task with that client request * token.

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

Optional. A unique token that you can provide to prevent the same import * request from occurring more than once. If you don't provide a token, a token is * automatically generated.

Sending more than one * StartImportTask request with the same client request token will * return information about the original import task with that client request * token.

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

Optional. A unique token that you can provide to prevent the same import * request from occurring more than once. If you don't provide a token, a token is * automatically generated.

Sending more than one * StartImportTask request with the same client request token will * return information about the original import task with that client request * token.

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

Optional. A unique token that you can provide to prevent the same import * request from occurring more than once. If you don't provide a token, a token is * automatically generated.

Sending more than one * StartImportTask request with the same client request token will * return information about the original import task with that client request * token.

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

Optional. A unique token that you can provide to prevent the same import * request from occurring more than once. If you don't provide a token, a token is * automatically generated.

Sending more than one * StartImportTask request with the same client request token will * return information about the original import task with that client request * token.

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

Optional. A unique token that you can provide to prevent the same import * request from occurring more than once. If you don't provide a token, a token is * automatically generated.

Sending more than one * StartImportTask request with the same client request token will * return information about the original import task with that client request * token.

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

Optional. A unique token that you can provide to prevent the same import * request from occurring more than once. If you don't provide a token, a token is * automatically generated.

Sending more than one * StartImportTask request with the same client request token will * return information about the original import task with that client request * token.

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

Optional. A unique token that you can provide to prevent the same import * request from occurring more than once. If you don't provide a token, a token is * automatically generated.

Sending more than one * StartImportTask request with the same client request token will * return information about the original import task with that client request * token.

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

A descriptive name for this request. You can use this name to filter future * requests related to this import task, such as identifying applications and * servers that were included in this import task. We recommend that you use a * meaningful name for each import task.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A descriptive name for this request. You can use this name to filter future * requests related to this import task, such as identifying applications and * servers that were included in this import task. We recommend that you use a * meaningful name for each import task.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A descriptive name for this request. You can use this name to filter future * requests related to this import task, such as identifying applications and * servers that were included in this import task. We recommend that you use a * meaningful name for each import task.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A descriptive name for this request. You can use this name to filter future * requests related to this import task, such as identifying applications and * servers that were included in this import task. We recommend that you use a * meaningful name for each import task.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A descriptive name for this request. You can use this name to filter future * requests related to this import task, such as identifying applications and * servers that were included in this import task. We recommend that you use a * meaningful name for each import task.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A descriptive name for this request. You can use this name to filter future * requests related to this import task, such as identifying applications and * servers that were included in this import task. We recommend that you use a * meaningful name for each import task.

*/ inline StartImportTaskRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A descriptive name for this request. You can use this name to filter future * requests related to this import task, such as identifying applications and * servers that were included in this import task. We recommend that you use a * meaningful name for each import task.

*/ inline StartImportTaskRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A descriptive name for this request. You can use this name to filter future * requests related to this import task, such as identifying applications and * servers that were included in this import task. We recommend that you use a * meaningful name for each import task.

*/ inline StartImportTaskRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The URL for your import file that you've uploaded to Amazon S3.

*

If you're using the Amazon Web Services CLI, this URL is structured as * follows: s3://BucketName/ImportFileName.CSV

*/ inline const Aws::String& GetImportUrl() const{ return m_importUrl; } /** *

The URL for your import file that you've uploaded to Amazon S3.

*

If you're using the Amazon Web Services CLI, this URL is structured as * follows: s3://BucketName/ImportFileName.CSV

*/ inline bool ImportUrlHasBeenSet() const { return m_importUrlHasBeenSet; } /** *

The URL for your import file that you've uploaded to Amazon S3.

*

If you're using the Amazon Web Services CLI, this URL is structured as * follows: s3://BucketName/ImportFileName.CSV

*/ inline void SetImportUrl(const Aws::String& value) { m_importUrlHasBeenSet = true; m_importUrl = value; } /** *

The URL for your import file that you've uploaded to Amazon S3.

*

If you're using the Amazon Web Services CLI, this URL is structured as * follows: s3://BucketName/ImportFileName.CSV

*/ inline void SetImportUrl(Aws::String&& value) { m_importUrlHasBeenSet = true; m_importUrl = std::move(value); } /** *

The URL for your import file that you've uploaded to Amazon S3.

*

If you're using the Amazon Web Services CLI, this URL is structured as * follows: s3://BucketName/ImportFileName.CSV

*/ inline void SetImportUrl(const char* value) { m_importUrlHasBeenSet = true; m_importUrl.assign(value); } /** *

The URL for your import file that you've uploaded to Amazon S3.

*

If you're using the Amazon Web Services CLI, this URL is structured as * follows: s3://BucketName/ImportFileName.CSV

*/ inline StartImportTaskRequest& WithImportUrl(const Aws::String& value) { SetImportUrl(value); return *this;} /** *

The URL for your import file that you've uploaded to Amazon S3.

*

If you're using the Amazon Web Services CLI, this URL is structured as * follows: s3://BucketName/ImportFileName.CSV

*/ inline StartImportTaskRequest& WithImportUrl(Aws::String&& value) { SetImportUrl(std::move(value)); return *this;} /** *

The URL for your import file that you've uploaded to Amazon S3.

*

If you're using the Amazon Web Services CLI, this URL is structured as * follows: s3://BucketName/ImportFileName.CSV

*/ inline StartImportTaskRequest& WithImportUrl(const char* value) { SetImportUrl(value); return *this;} private: Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_importUrl; bool m_importUrlHasBeenSet = false; }; } // namespace Model } // namespace ApplicationDiscoveryService } // namespace Aws