/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An array of information related to the import task request that includes
* status information, times, IDs, the Amazon S3 Object URL for the import file,
* and more.See Also:
AWS
* API Reference
The unique ID for a specific import task. These IDs aren't globally unique, * but they are unique within an Amazon Web Services account.
*/ inline const Aws::String& GetImportTaskId() const{ return m_importTaskId; } /** *The unique ID for a specific import task. These IDs aren't globally unique, * but they are unique within an Amazon Web Services account.
*/ inline bool ImportTaskIdHasBeenSet() const { return m_importTaskIdHasBeenSet; } /** *The unique ID for a specific import task. These IDs aren't globally unique, * but they are unique within an Amazon Web Services account.
*/ inline void SetImportTaskId(const Aws::String& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = value; } /** *The unique ID for a specific import task. These IDs aren't globally unique, * but they are unique within an Amazon Web Services account.
*/ inline void SetImportTaskId(Aws::String&& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = std::move(value); } /** *The unique ID for a specific import task. These IDs aren't globally unique, * but they are unique within an Amazon Web Services account.
*/ inline void SetImportTaskId(const char* value) { m_importTaskIdHasBeenSet = true; m_importTaskId.assign(value); } /** *The unique ID for a specific import task. These IDs aren't globally unique, * but they are unique within an Amazon Web Services account.
*/ inline ImportTask& WithImportTaskId(const Aws::String& value) { SetImportTaskId(value); return *this;} /** *The unique ID for a specific import task. These IDs aren't globally unique, * but they are unique within an Amazon Web Services account.
*/ inline ImportTask& WithImportTaskId(Aws::String&& value) { SetImportTaskId(std::move(value)); return *this;} /** *The unique ID for a specific import task. These IDs aren't globally unique, * but they are unique within an Amazon Web Services account.
*/ inline ImportTask& WithImportTaskId(const char* value) { SetImportTaskId(value); return *this;} /** *A unique token used to prevent the same import request from occurring more * than once. If you didn't provide a token, a token was automatically generated * when the import task request was sent.
*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *A unique token used to prevent the same import request from occurring more * than once. If you didn't provide a token, a token was automatically generated * when the import task request was sent.
*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *A unique token used to prevent the same import request from occurring more * than once. If you didn't provide a token, a token was automatically generated * when the import task request was sent.
*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *A unique token used to prevent the same import request from occurring more * than once. If you didn't provide a token, a token was automatically generated * when the import task request was sent.
*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *A unique token used to prevent the same import request from occurring more * than once. If you didn't provide a token, a token was automatically generated * when the import task request was sent.
*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *A unique token used to prevent the same import request from occurring more * than once. If you didn't provide a token, a token was automatically generated * when the import task request was sent.
*/ inline ImportTask& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *A unique token used to prevent the same import request from occurring more * than once. If you didn't provide a token, a token was automatically generated * when the import task request was sent.
*/ inline ImportTask& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *A unique token used to prevent the same import request from occurring more * than once. If you didn't provide a token, a token was automatically generated * when the import task request was sent.
*/ inline ImportTask& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *A descriptive name for an import task. 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 an import task. 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 an import task. 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 an import task. 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 an import task. 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 an import task. 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 ImportTask& WithName(const Aws::String& value) { SetName(value); return *this;} /** *A descriptive name for an import task. 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 ImportTask& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *A descriptive name for an import task. 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 ImportTask& WithName(const char* value) { SetName(value); return *this;} /** *The URL for your import file that you've uploaded to Amazon S3.
*/ inline const Aws::String& GetImportUrl() const{ return m_importUrl; } /** *The URL for your import file that you've uploaded to Amazon S3.
*/ inline bool ImportUrlHasBeenSet() const { return m_importUrlHasBeenSet; } /** *The URL for your import file that you've uploaded to Amazon S3.
*/ 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.
*/ 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.
*/ 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.
*/ inline ImportTask& WithImportUrl(const Aws::String& value) { SetImportUrl(value); return *this;} /** *The URL for your import file that you've uploaded to Amazon S3.
*/ inline ImportTask& WithImportUrl(Aws::String&& value) { SetImportUrl(std::move(value)); return *this;} /** *The URL for your import file that you've uploaded to Amazon S3.
*/ inline ImportTask& WithImportUrl(const char* value) { SetImportUrl(value); return *this;} /** *The status of the import task. An import can have the status of
* IMPORT_COMPLETE
and still have some records fail to import from the
* overall request. More information can be found in the downloadable archive
* defined in the errorsAndFailedEntriesZip
field, or in the Migration
* Hub management console.
The status of the import task. An import can have the status of
* IMPORT_COMPLETE
and still have some records fail to import from the
* overall request. More information can be found in the downloadable archive
* defined in the errorsAndFailedEntriesZip
field, or in the Migration
* Hub management console.
The status of the import task. An import can have the status of
* IMPORT_COMPLETE
and still have some records fail to import from the
* overall request. More information can be found in the downloadable archive
* defined in the errorsAndFailedEntriesZip
field, or in the Migration
* Hub management console.
The status of the import task. An import can have the status of
* IMPORT_COMPLETE
and still have some records fail to import from the
* overall request. More information can be found in the downloadable archive
* defined in the errorsAndFailedEntriesZip
field, or in the Migration
* Hub management console.
The status of the import task. An import can have the status of
* IMPORT_COMPLETE
and still have some records fail to import from the
* overall request. More information can be found in the downloadable archive
* defined in the errorsAndFailedEntriesZip
field, or in the Migration
* Hub management console.
The status of the import task. An import can have the status of
* IMPORT_COMPLETE
and still have some records fail to import from the
* overall request. More information can be found in the downloadable archive
* defined in the errorsAndFailedEntriesZip
field, or in the Migration
* Hub management console.
The time that the import task request was made, presented in the Unix time * stamp format.
*/ inline const Aws::Utils::DateTime& GetImportRequestTime() const{ return m_importRequestTime; } /** *The time that the import task request was made, presented in the Unix time * stamp format.
*/ inline bool ImportRequestTimeHasBeenSet() const { return m_importRequestTimeHasBeenSet; } /** *The time that the import task request was made, presented in the Unix time * stamp format.
*/ inline void SetImportRequestTime(const Aws::Utils::DateTime& value) { m_importRequestTimeHasBeenSet = true; m_importRequestTime = value; } /** *The time that the import task request was made, presented in the Unix time * stamp format.
*/ inline void SetImportRequestTime(Aws::Utils::DateTime&& value) { m_importRequestTimeHasBeenSet = true; m_importRequestTime = std::move(value); } /** *The time that the import task request was made, presented in the Unix time * stamp format.
*/ inline ImportTask& WithImportRequestTime(const Aws::Utils::DateTime& value) { SetImportRequestTime(value); return *this;} /** *The time that the import task request was made, presented in the Unix time * stamp format.
*/ inline ImportTask& WithImportRequestTime(Aws::Utils::DateTime&& value) { SetImportRequestTime(std::move(value)); return *this;} /** *The time that the import task request finished, presented in the Unix time * stamp format.
*/ inline const Aws::Utils::DateTime& GetImportCompletionTime() const{ return m_importCompletionTime; } /** *The time that the import task request finished, presented in the Unix time * stamp format.
*/ inline bool ImportCompletionTimeHasBeenSet() const { return m_importCompletionTimeHasBeenSet; } /** *The time that the import task request finished, presented in the Unix time * stamp format.
*/ inline void SetImportCompletionTime(const Aws::Utils::DateTime& value) { m_importCompletionTimeHasBeenSet = true; m_importCompletionTime = value; } /** *The time that the import task request finished, presented in the Unix time * stamp format.
*/ inline void SetImportCompletionTime(Aws::Utils::DateTime&& value) { m_importCompletionTimeHasBeenSet = true; m_importCompletionTime = std::move(value); } /** *The time that the import task request finished, presented in the Unix time * stamp format.
*/ inline ImportTask& WithImportCompletionTime(const Aws::Utils::DateTime& value) { SetImportCompletionTime(value); return *this;} /** *The time that the import task request finished, presented in the Unix time * stamp format.
*/ inline ImportTask& WithImportCompletionTime(Aws::Utils::DateTime&& value) { SetImportCompletionTime(std::move(value)); return *this;} /** *The time that the import task request was deleted, presented in the Unix time * stamp format.
*/ inline const Aws::Utils::DateTime& GetImportDeletedTime() const{ return m_importDeletedTime; } /** *The time that the import task request was deleted, presented in the Unix time * stamp format.
*/ inline bool ImportDeletedTimeHasBeenSet() const { return m_importDeletedTimeHasBeenSet; } /** *The time that the import task request was deleted, presented in the Unix time * stamp format.
*/ inline void SetImportDeletedTime(const Aws::Utils::DateTime& value) { m_importDeletedTimeHasBeenSet = true; m_importDeletedTime = value; } /** *The time that the import task request was deleted, presented in the Unix time * stamp format.
*/ inline void SetImportDeletedTime(Aws::Utils::DateTime&& value) { m_importDeletedTimeHasBeenSet = true; m_importDeletedTime = std::move(value); } /** *The time that the import task request was deleted, presented in the Unix time * stamp format.
*/ inline ImportTask& WithImportDeletedTime(const Aws::Utils::DateTime& value) { SetImportDeletedTime(value); return *this;} /** *The time that the import task request was deleted, presented in the Unix time * stamp format.
*/ inline ImportTask& WithImportDeletedTime(Aws::Utils::DateTime&& value) { SetImportDeletedTime(std::move(value)); return *this;} /** *The total number of server records in the import file that were successfully * imported.
*/ inline int GetServerImportSuccess() const{ return m_serverImportSuccess; } /** *The total number of server records in the import file that were successfully * imported.
*/ inline bool ServerImportSuccessHasBeenSet() const { return m_serverImportSuccessHasBeenSet; } /** *The total number of server records in the import file that were successfully * imported.
*/ inline void SetServerImportSuccess(int value) { m_serverImportSuccessHasBeenSet = true; m_serverImportSuccess = value; } /** *The total number of server records in the import file that were successfully * imported.
*/ inline ImportTask& WithServerImportSuccess(int value) { SetServerImportSuccess(value); return *this;} /** *The total number of server records in the import file that failed to be * imported.
*/ inline int GetServerImportFailure() const{ return m_serverImportFailure; } /** *The total number of server records in the import file that failed to be * imported.
*/ inline bool ServerImportFailureHasBeenSet() const { return m_serverImportFailureHasBeenSet; } /** *The total number of server records in the import file that failed to be * imported.
*/ inline void SetServerImportFailure(int value) { m_serverImportFailureHasBeenSet = true; m_serverImportFailure = value; } /** *The total number of server records in the import file that failed to be * imported.
*/ inline ImportTask& WithServerImportFailure(int value) { SetServerImportFailure(value); return *this;} /** *The total number of application records in the import file that were * successfully imported.
*/ inline int GetApplicationImportSuccess() const{ return m_applicationImportSuccess; } /** *The total number of application records in the import file that were * successfully imported.
*/ inline bool ApplicationImportSuccessHasBeenSet() const { return m_applicationImportSuccessHasBeenSet; } /** *The total number of application records in the import file that were * successfully imported.
*/ inline void SetApplicationImportSuccess(int value) { m_applicationImportSuccessHasBeenSet = true; m_applicationImportSuccess = value; } /** *The total number of application records in the import file that were * successfully imported.
*/ inline ImportTask& WithApplicationImportSuccess(int value) { SetApplicationImportSuccess(value); return *this;} /** *The total number of application records in the import file that failed to be * imported.
*/ inline int GetApplicationImportFailure() const{ return m_applicationImportFailure; } /** *The total number of application records in the import file that failed to be * imported.
*/ inline bool ApplicationImportFailureHasBeenSet() const { return m_applicationImportFailureHasBeenSet; } /** *The total number of application records in the import file that failed to be * imported.
*/ inline void SetApplicationImportFailure(int value) { m_applicationImportFailureHasBeenSet = true; m_applicationImportFailure = value; } /** *The total number of application records in the import file that failed to be * imported.
*/ inline ImportTask& WithApplicationImportFailure(int value) { SetApplicationImportFailure(value); return *this;} /** *A link to a compressed archive folder (in the ZIP format) that contains an * error log and a file of failed records. You can use these two files to quickly * identify records that failed, why they failed, and correct those records. * Afterward, you can upload the corrected file to your Amazon S3 bucket and create * another import task request.
This field also includes authorization * information so you can confirm the authenticity of the compressed archive before * you download it.
If some records failed to be imported we recommend that * you correct the records in the failed entries file and then imports that failed * entries file. This prevents you from having to correct and update the larger * original file and attempt importing it again.
*/ inline const Aws::String& GetErrorsAndFailedEntriesZip() const{ return m_errorsAndFailedEntriesZip; } /** *A link to a compressed archive folder (in the ZIP format) that contains an * error log and a file of failed records. You can use these two files to quickly * identify records that failed, why they failed, and correct those records. * Afterward, you can upload the corrected file to your Amazon S3 bucket and create * another import task request.
This field also includes authorization * information so you can confirm the authenticity of the compressed archive before * you download it.
If some records failed to be imported we recommend that * you correct the records in the failed entries file and then imports that failed * entries file. This prevents you from having to correct and update the larger * original file and attempt importing it again.
*/ inline bool ErrorsAndFailedEntriesZipHasBeenSet() const { return m_errorsAndFailedEntriesZipHasBeenSet; } /** *A link to a compressed archive folder (in the ZIP format) that contains an * error log and a file of failed records. You can use these two files to quickly * identify records that failed, why they failed, and correct those records. * Afterward, you can upload the corrected file to your Amazon S3 bucket and create * another import task request.
This field also includes authorization * information so you can confirm the authenticity of the compressed archive before * you download it.
If some records failed to be imported we recommend that * you correct the records in the failed entries file and then imports that failed * entries file. This prevents you from having to correct and update the larger * original file and attempt importing it again.
*/ inline void SetErrorsAndFailedEntriesZip(const Aws::String& value) { m_errorsAndFailedEntriesZipHasBeenSet = true; m_errorsAndFailedEntriesZip = value; } /** *A link to a compressed archive folder (in the ZIP format) that contains an * error log and a file of failed records. You can use these two files to quickly * identify records that failed, why they failed, and correct those records. * Afterward, you can upload the corrected file to your Amazon S3 bucket and create * another import task request.
This field also includes authorization * information so you can confirm the authenticity of the compressed archive before * you download it.
If some records failed to be imported we recommend that * you correct the records in the failed entries file and then imports that failed * entries file. This prevents you from having to correct and update the larger * original file and attempt importing it again.
*/ inline void SetErrorsAndFailedEntriesZip(Aws::String&& value) { m_errorsAndFailedEntriesZipHasBeenSet = true; m_errorsAndFailedEntriesZip = std::move(value); } /** *A link to a compressed archive folder (in the ZIP format) that contains an * error log and a file of failed records. You can use these two files to quickly * identify records that failed, why they failed, and correct those records. * Afterward, you can upload the corrected file to your Amazon S3 bucket and create * another import task request.
This field also includes authorization * information so you can confirm the authenticity of the compressed archive before * you download it.
If some records failed to be imported we recommend that * you correct the records in the failed entries file and then imports that failed * entries file. This prevents you from having to correct and update the larger * original file and attempt importing it again.
*/ inline void SetErrorsAndFailedEntriesZip(const char* value) { m_errorsAndFailedEntriesZipHasBeenSet = true; m_errorsAndFailedEntriesZip.assign(value); } /** *A link to a compressed archive folder (in the ZIP format) that contains an * error log and a file of failed records. You can use these two files to quickly * identify records that failed, why they failed, and correct those records. * Afterward, you can upload the corrected file to your Amazon S3 bucket and create * another import task request.
This field also includes authorization * information so you can confirm the authenticity of the compressed archive before * you download it.
If some records failed to be imported we recommend that * you correct the records in the failed entries file and then imports that failed * entries file. This prevents you from having to correct and update the larger * original file and attempt importing it again.
*/ inline ImportTask& WithErrorsAndFailedEntriesZip(const Aws::String& value) { SetErrorsAndFailedEntriesZip(value); return *this;} /** *A link to a compressed archive folder (in the ZIP format) that contains an * error log and a file of failed records. You can use these two files to quickly * identify records that failed, why they failed, and correct those records. * Afterward, you can upload the corrected file to your Amazon S3 bucket and create * another import task request.
This field also includes authorization * information so you can confirm the authenticity of the compressed archive before * you download it.
If some records failed to be imported we recommend that * you correct the records in the failed entries file and then imports that failed * entries file. This prevents you from having to correct and update the larger * original file and attempt importing it again.
*/ inline ImportTask& WithErrorsAndFailedEntriesZip(Aws::String&& value) { SetErrorsAndFailedEntriesZip(std::move(value)); return *this;} /** *A link to a compressed archive folder (in the ZIP format) that contains an * error log and a file of failed records. You can use these two files to quickly * identify records that failed, why they failed, and correct those records. * Afterward, you can upload the corrected file to your Amazon S3 bucket and create * another import task request.
This field also includes authorization * information so you can confirm the authenticity of the compressed archive before * you download it.
If some records failed to be imported we recommend that * you correct the records in the failed entries file and then imports that failed * entries file. This prevents you from having to correct and update the larger * original file and attempt importing it again.
*/ inline ImportTask& WithErrorsAndFailedEntriesZip(const char* value) { SetErrorsAndFailedEntriesZip(value); return *this;} private: Aws::String m_importTaskId; bool m_importTaskIdHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_importUrl; bool m_importUrlHasBeenSet = false; ImportStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_importRequestTime; bool m_importRequestTimeHasBeenSet = false; Aws::Utils::DateTime m_importCompletionTime; bool m_importCompletionTimeHasBeenSet = false; Aws::Utils::DateTime m_importDeletedTime; bool m_importDeletedTimeHasBeenSet = false; int m_serverImportSuccess; bool m_serverImportSuccessHasBeenSet = false; int m_serverImportFailure; bool m_serverImportFailureHasBeenSet = false; int m_applicationImportSuccess; bool m_applicationImportSuccessHasBeenSet = false; int m_applicationImportFailure; bool m_applicationImportFailureHasBeenSet = false; Aws::String m_errorsAndFailedEntriesZip; bool m_errorsAndFailedEntriesZipHasBeenSet = false; }; } // namespace Model } // namespace ApplicationDiscoveryService } // namespace Aws