/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace MigrationHubStrategyRecommendations { namespace Model { class GetImportFileTaskResult { public: AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API GetImportFileTaskResult(); AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API GetImportFileTaskResult(const Aws::AmazonWebServiceResult& result); AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API GetImportFileTaskResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The time that the import task completed.

*/ inline const Aws::Utils::DateTime& GetCompletionTime() const{ return m_completionTime; } /** *

The time that the import task completed.

*/ inline void SetCompletionTime(const Aws::Utils::DateTime& value) { m_completionTime = value; } /** *

The time that the import task completed.

*/ inline void SetCompletionTime(Aws::Utils::DateTime&& value) { m_completionTime = std::move(value); } /** *

The time that the import task completed.

*/ inline GetImportFileTaskResult& WithCompletionTime(const Aws::Utils::DateTime& value) { SetCompletionTime(value); return *this;} /** *

The time that the import task completed.

*/ inline GetImportFileTaskResult& WithCompletionTime(Aws::Utils::DateTime&& value) { SetCompletionTime(std::move(value)); return *this;} /** *

The import file task id returned in the response of * StartImportFileTask.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The import file task id returned in the response of * StartImportFileTask.

*/ inline void SetId(const Aws::String& value) { m_id = value; } /** *

The import file task id returned in the response of * StartImportFileTask.

*/ inline void SetId(Aws::String&& value) { m_id = std::move(value); } /** *

The import file task id returned in the response of * StartImportFileTask.

*/ inline void SetId(const char* value) { m_id.assign(value); } /** *

The import file task id returned in the response of * StartImportFileTask.

*/ inline GetImportFileTaskResult& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The import file task id returned in the response of * StartImportFileTask.

*/ inline GetImportFileTaskResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The import file task id returned in the response of * StartImportFileTask.

*/ inline GetImportFileTaskResult& WithId(const char* value) { SetId(value); return *this;} /** *

The name of the import task given in StartImportFileTask.

*/ inline const Aws::String& GetImportName() const{ return m_importName; } /** *

The name of the import task given in StartImportFileTask.

*/ inline void SetImportName(const Aws::String& value) { m_importName = value; } /** *

The name of the import task given in StartImportFileTask.

*/ inline void SetImportName(Aws::String&& value) { m_importName = std::move(value); } /** *

The name of the import task given in StartImportFileTask.

*/ inline void SetImportName(const char* value) { m_importName.assign(value); } /** *

The name of the import task given in StartImportFileTask.

*/ inline GetImportFileTaskResult& WithImportName(const Aws::String& value) { SetImportName(value); return *this;} /** *

The name of the import task given in StartImportFileTask.

*/ inline GetImportFileTaskResult& WithImportName(Aws::String&& value) { SetImportName(std::move(value)); return *this;} /** *

The name of the import task given in StartImportFileTask.

*/ inline GetImportFileTaskResult& WithImportName(const char* value) { SetImportName(value); return *this;} /** *

The S3 bucket where import file is located.

*/ inline const Aws::String& GetInputS3Bucket() const{ return m_inputS3Bucket; } /** *

The S3 bucket where import file is located.

*/ inline void SetInputS3Bucket(const Aws::String& value) { m_inputS3Bucket = value; } /** *

The S3 bucket where import file is located.

*/ inline void SetInputS3Bucket(Aws::String&& value) { m_inputS3Bucket = std::move(value); } /** *

The S3 bucket where import file is located.

*/ inline void SetInputS3Bucket(const char* value) { m_inputS3Bucket.assign(value); } /** *

The S3 bucket where import file is located.

*/ inline GetImportFileTaskResult& WithInputS3Bucket(const Aws::String& value) { SetInputS3Bucket(value); return *this;} /** *

The S3 bucket where import file is located.

*/ inline GetImportFileTaskResult& WithInputS3Bucket(Aws::String&& value) { SetInputS3Bucket(std::move(value)); return *this;} /** *

The S3 bucket where import file is located.

*/ inline GetImportFileTaskResult& WithInputS3Bucket(const char* value) { SetInputS3Bucket(value); return *this;} /** *

The Amazon S3 key name of the import file.

*/ inline const Aws::String& GetInputS3Key() const{ return m_inputS3Key; } /** *

The Amazon S3 key name of the import file.

*/ inline void SetInputS3Key(const Aws::String& value) { m_inputS3Key = value; } /** *

The Amazon S3 key name of the import file.

*/ inline void SetInputS3Key(Aws::String&& value) { m_inputS3Key = std::move(value); } /** *

The Amazon S3 key name of the import file.

*/ inline void SetInputS3Key(const char* value) { m_inputS3Key.assign(value); } /** *

The Amazon S3 key name of the import file.

*/ inline GetImportFileTaskResult& WithInputS3Key(const Aws::String& value) { SetInputS3Key(value); return *this;} /** *

The Amazon S3 key name of the import file.

*/ inline GetImportFileTaskResult& WithInputS3Key(Aws::String&& value) { SetInputS3Key(std::move(value)); return *this;} /** *

The Amazon S3 key name of the import file.

*/ inline GetImportFileTaskResult& WithInputS3Key(const char* value) { SetInputS3Key(value); return *this;} /** *

The number of records that failed to be imported.

*/ inline int GetNumberOfRecordsFailed() const{ return m_numberOfRecordsFailed; } /** *

The number of records that failed to be imported.

*/ inline void SetNumberOfRecordsFailed(int value) { m_numberOfRecordsFailed = value; } /** *

The number of records that failed to be imported.

*/ inline GetImportFileTaskResult& WithNumberOfRecordsFailed(int value) { SetNumberOfRecordsFailed(value); return *this;} /** *

The number of records successfully imported.

*/ inline int GetNumberOfRecordsSuccess() const{ return m_numberOfRecordsSuccess; } /** *

The number of records successfully imported.

*/ inline void SetNumberOfRecordsSuccess(int value) { m_numberOfRecordsSuccess = value; } /** *

The number of records successfully imported.

*/ inline GetImportFileTaskResult& WithNumberOfRecordsSuccess(int value) { SetNumberOfRecordsSuccess(value); return *this;} /** *

Start time of the import task.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

Start time of the import task.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; } /** *

Start time of the import task.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); } /** *

Start time of the import task.

*/ inline GetImportFileTaskResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

Start time of the import task.

*/ inline GetImportFileTaskResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

Status of import file task.

*/ inline const ImportFileTaskStatus& GetStatus() const{ return m_status; } /** *

Status of import file task.

*/ inline void SetStatus(const ImportFileTaskStatus& value) { m_status = value; } /** *

Status of import file task.

*/ inline void SetStatus(ImportFileTaskStatus&& value) { m_status = std::move(value); } /** *

Status of import file task.

*/ inline GetImportFileTaskResult& WithStatus(const ImportFileTaskStatus& value) { SetStatus(value); return *this;} /** *

Status of import file task.

*/ inline GetImportFileTaskResult& WithStatus(ImportFileTaskStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The S3 bucket name for status report of import task.

*/ inline const Aws::String& GetStatusReportS3Bucket() const{ return m_statusReportS3Bucket; } /** *

The S3 bucket name for status report of import task.

*/ inline void SetStatusReportS3Bucket(const Aws::String& value) { m_statusReportS3Bucket = value; } /** *

The S3 bucket name for status report of import task.

*/ inline void SetStatusReportS3Bucket(Aws::String&& value) { m_statusReportS3Bucket = std::move(value); } /** *

The S3 bucket name for status report of import task.

*/ inline void SetStatusReportS3Bucket(const char* value) { m_statusReportS3Bucket.assign(value); } /** *

The S3 bucket name for status report of import task.

*/ inline GetImportFileTaskResult& WithStatusReportS3Bucket(const Aws::String& value) { SetStatusReportS3Bucket(value); return *this;} /** *

The S3 bucket name for status report of import task.

*/ inline GetImportFileTaskResult& WithStatusReportS3Bucket(Aws::String&& value) { SetStatusReportS3Bucket(std::move(value)); return *this;} /** *

The S3 bucket name for status report of import task.

*/ inline GetImportFileTaskResult& WithStatusReportS3Bucket(const char* value) { SetStatusReportS3Bucket(value); return *this;} /** *

The Amazon S3 key name for status report of import task. The report contains * details about whether each record imported successfully or why it did not.

*/ inline const Aws::String& GetStatusReportS3Key() const{ return m_statusReportS3Key; } /** *

The Amazon S3 key name for status report of import task. The report contains * details about whether each record imported successfully or why it did not.

*/ inline void SetStatusReportS3Key(const Aws::String& value) { m_statusReportS3Key = value; } /** *

The Amazon S3 key name for status report of import task. The report contains * details about whether each record imported successfully or why it did not.

*/ inline void SetStatusReportS3Key(Aws::String&& value) { m_statusReportS3Key = std::move(value); } /** *

The Amazon S3 key name for status report of import task. The report contains * details about whether each record imported successfully or why it did not.

*/ inline void SetStatusReportS3Key(const char* value) { m_statusReportS3Key.assign(value); } /** *

The Amazon S3 key name for status report of import task. The report contains * details about whether each record imported successfully or why it did not.

*/ inline GetImportFileTaskResult& WithStatusReportS3Key(const Aws::String& value) { SetStatusReportS3Key(value); return *this;} /** *

The Amazon S3 key name for status report of import task. The report contains * details about whether each record imported successfully or why it did not.

*/ inline GetImportFileTaskResult& WithStatusReportS3Key(Aws::String&& value) { SetStatusReportS3Key(std::move(value)); return *this;} /** *

The Amazon S3 key name for status report of import task. The report contains * details about whether each record imported successfully or why it did not.

*/ inline GetImportFileTaskResult& WithStatusReportS3Key(const char* value) { SetStatusReportS3Key(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetImportFileTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetImportFileTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetImportFileTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_completionTime; Aws::String m_id; Aws::String m_importName; Aws::String m_inputS3Bucket; Aws::String m_inputS3Key; int m_numberOfRecordsFailed; int m_numberOfRecordsSuccess; Aws::Utils::DateTime m_startTime; ImportFileTaskStatus m_status; Aws::String m_statusReportS3Bucket; Aws::String m_statusReportS3Key; Aws::String m_requestId; }; } // namespace Model } // namespace MigrationHubStrategyRecommendations } // namespace Aws