/** * 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 namespace Aws { namespace MigrationHubStrategyRecommendations { namespace Model { /** */ class StartImportFileTaskRequest : public MigrationHubStrategyRecommendationsRequest { public: AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API StartImportFileTaskRequest(); // 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 "StartImportFileTask"; } AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::String SerializePayload() const override; /** *

The S3 bucket where the import file is located. The bucket name is required * to begin with migrationhub-strategy-.

*/ inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; } /** *

The S3 bucket where the import file is located. The bucket name is required * to begin with migrationhub-strategy-.

*/ inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; } /** *

The S3 bucket where the import file is located. The bucket name is required * to begin with migrationhub-strategy-.

*/ inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; } /** *

The S3 bucket where the import file is located. The bucket name is required * to begin with migrationhub-strategy-.

*/ inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); } /** *

The S3 bucket where the import file is located. The bucket name is required * to begin with migrationhub-strategy-.

*/ inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); } /** *

The S3 bucket where the import file is located. The bucket name is required * to begin with migrationhub-strategy-.

*/ inline StartImportFileTaskRequest& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;} /** *

The S3 bucket where the import file is located. The bucket name is required * to begin with migrationhub-strategy-.

*/ inline StartImportFileTaskRequest& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;} /** *

The S3 bucket where the import file is located. The bucket name is required * to begin with migrationhub-strategy-.

*/ inline StartImportFileTaskRequest& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;} /** *

Specifies the source that the servers are coming from. By default, Strategy * Recommendations assumes that the servers specified in the import file are * available in AWS Application Discovery Service.

*/ inline const DataSourceType& GetDataSourceType() const{ return m_dataSourceType; } /** *

Specifies the source that the servers are coming from. By default, Strategy * Recommendations assumes that the servers specified in the import file are * available in AWS Application Discovery Service.

*/ inline bool DataSourceTypeHasBeenSet() const { return m_dataSourceTypeHasBeenSet; } /** *

Specifies the source that the servers are coming from. By default, Strategy * Recommendations assumes that the servers specified in the import file are * available in AWS Application Discovery Service.

*/ inline void SetDataSourceType(const DataSourceType& value) { m_dataSourceTypeHasBeenSet = true; m_dataSourceType = value; } /** *

Specifies the source that the servers are coming from. By default, Strategy * Recommendations assumes that the servers specified in the import file are * available in AWS Application Discovery Service.

*/ inline void SetDataSourceType(DataSourceType&& value) { m_dataSourceTypeHasBeenSet = true; m_dataSourceType = std::move(value); } /** *

Specifies the source that the servers are coming from. By default, Strategy * Recommendations assumes that the servers specified in the import file are * available in AWS Application Discovery Service.

*/ inline StartImportFileTaskRequest& WithDataSourceType(const DataSourceType& value) { SetDataSourceType(value); return *this;} /** *

Specifies the source that the servers are coming from. By default, Strategy * Recommendations assumes that the servers specified in the import file are * available in AWS Application Discovery Service.

*/ inline StartImportFileTaskRequest& WithDataSourceType(DataSourceType&& value) { SetDataSourceType(std::move(value)); return *this;} /** *

Groups the resources in the import file together with a unique name. This ID * can be as filter in ListApplicationComponents and * ListServers.

*/ inline const Aws::Vector& GetGroupId() const{ return m_groupId; } /** *

Groups the resources in the import file together with a unique name. This ID * can be as filter in ListApplicationComponents and * ListServers.

*/ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** *

Groups the resources in the import file together with a unique name. This ID * can be as filter in ListApplicationComponents and * ListServers.

*/ inline void SetGroupId(const Aws::Vector& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** *

Groups the resources in the import file together with a unique name. This ID * can be as filter in ListApplicationComponents and * ListServers.

*/ inline void SetGroupId(Aws::Vector&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** *

Groups the resources in the import file together with a unique name. This ID * can be as filter in ListApplicationComponents and * ListServers.

*/ inline StartImportFileTaskRequest& WithGroupId(const Aws::Vector& value) { SetGroupId(value); return *this;} /** *

Groups the resources in the import file together with a unique name. This ID * can be as filter in ListApplicationComponents and * ListServers.

*/ inline StartImportFileTaskRequest& WithGroupId(Aws::Vector&& value) { SetGroupId(std::move(value)); return *this;} /** *

Groups the resources in the import file together with a unique name. This ID * can be as filter in ListApplicationComponents and * ListServers.

*/ inline StartImportFileTaskRequest& AddGroupId(const Group& value) { m_groupIdHasBeenSet = true; m_groupId.push_back(value); return *this; } /** *

Groups the resources in the import file together with a unique name. This ID * can be as filter in ListApplicationComponents and * ListServers.

*/ inline StartImportFileTaskRequest& AddGroupId(Group&& value) { m_groupIdHasBeenSet = true; m_groupId.push_back(std::move(value)); return *this; } /** *

A descriptive name for the request.

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

A descriptive name for the request.

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

A descriptive name for the request.

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

A descriptive name for the request.

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

A descriptive name for the request.

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

A descriptive name for the request.

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

A descriptive name for the request.

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

A descriptive name for the request.

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

The S3 bucket where Strategy Recommendations uploads import results. The * bucket name is required to begin with migrationhub-strategy-.

*/ inline const Aws::String& GetS3bucketForReportData() const{ return m_s3bucketForReportData; } /** *

The S3 bucket where Strategy Recommendations uploads import results. The * bucket name is required to begin with migrationhub-strategy-.

*/ inline bool S3bucketForReportDataHasBeenSet() const { return m_s3bucketForReportDataHasBeenSet; } /** *

The S3 bucket where Strategy Recommendations uploads import results. The * bucket name is required to begin with migrationhub-strategy-.

*/ inline void SetS3bucketForReportData(const Aws::String& value) { m_s3bucketForReportDataHasBeenSet = true; m_s3bucketForReportData = value; } /** *

The S3 bucket where Strategy Recommendations uploads import results. The * bucket name is required to begin with migrationhub-strategy-.

*/ inline void SetS3bucketForReportData(Aws::String&& value) { m_s3bucketForReportDataHasBeenSet = true; m_s3bucketForReportData = std::move(value); } /** *

The S3 bucket where Strategy Recommendations uploads import results. The * bucket name is required to begin with migrationhub-strategy-.

*/ inline void SetS3bucketForReportData(const char* value) { m_s3bucketForReportDataHasBeenSet = true; m_s3bucketForReportData.assign(value); } /** *

The S3 bucket where Strategy Recommendations uploads import results. The * bucket name is required to begin with migrationhub-strategy-.

*/ inline StartImportFileTaskRequest& WithS3bucketForReportData(const Aws::String& value) { SetS3bucketForReportData(value); return *this;} /** *

The S3 bucket where Strategy Recommendations uploads import results. The * bucket name is required to begin with migrationhub-strategy-.

*/ inline StartImportFileTaskRequest& WithS3bucketForReportData(Aws::String&& value) { SetS3bucketForReportData(std::move(value)); return *this;} /** *

The S3 bucket where Strategy Recommendations uploads import results. The * bucket name is required to begin with migrationhub-strategy-.

*/ inline StartImportFileTaskRequest& WithS3bucketForReportData(const char* value) { SetS3bucketForReportData(value); return *this;} /** *

The Amazon S3 key name of the import file.

*/ inline const Aws::String& GetS3key() const{ return m_s3key; } /** *

The Amazon S3 key name of the import file.

*/ inline bool S3keyHasBeenSet() const { return m_s3keyHasBeenSet; } /** *

The Amazon S3 key name of the import file.

*/ inline void SetS3key(const Aws::String& value) { m_s3keyHasBeenSet = true; m_s3key = value; } /** *

The Amazon S3 key name of the import file.

*/ inline void SetS3key(Aws::String&& value) { m_s3keyHasBeenSet = true; m_s3key = std::move(value); } /** *

The Amazon S3 key name of the import file.

*/ inline void SetS3key(const char* value) { m_s3keyHasBeenSet = true; m_s3key.assign(value); } /** *

The Amazon S3 key name of the import file.

*/ inline StartImportFileTaskRequest& WithS3key(const Aws::String& value) { SetS3key(value); return *this;} /** *

The Amazon S3 key name of the import file.

*/ inline StartImportFileTaskRequest& WithS3key(Aws::String&& value) { SetS3key(std::move(value)); return *this;} /** *

The Amazon S3 key name of the import file.

*/ inline StartImportFileTaskRequest& WithS3key(const char* value) { SetS3key(value); return *this;} private: Aws::String m_s3Bucket; bool m_s3BucketHasBeenSet = false; DataSourceType m_dataSourceType; bool m_dataSourceTypeHasBeenSet = false; Aws::Vector m_groupId; bool m_groupIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_s3bucketForReportData; bool m_s3bucketForReportDataHasBeenSet = false; Aws::String m_s3key; bool m_s3keyHasBeenSet = false; }; } // namespace Model } // namespace MigrationHubStrategyRecommendations } // namespace Aws