/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MigrationHubStrategyRecommendations { namespace Model { /** *

Detailed information about an assessment.

See Also:

AWS * API Reference

*/ class DataCollectionDetails { public: AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API DataCollectionDetails(); AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API DataCollectionDetails(Aws::Utils::Json::JsonView jsonValue); AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API DataCollectionDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The time the assessment completes.

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

The time the assessment completes.

*/ inline bool CompletionTimeHasBeenSet() const { return m_completionTimeHasBeenSet; } /** *

The time the assessment completes.

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

The time the assessment completes.

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

The time the assessment completes.

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

The time the assessment completes.

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

The number of failed servers in the assessment.

*/ inline int GetFailed() const{ return m_failed; } /** *

The number of failed servers in the assessment.

*/ inline bool FailedHasBeenSet() const { return m_failedHasBeenSet; } /** *

The number of failed servers in the assessment.

*/ inline void SetFailed(int value) { m_failedHasBeenSet = true; m_failed = value; } /** *

The number of failed servers in the assessment.

*/ inline DataCollectionDetails& WithFailed(int value) { SetFailed(value); return *this;} /** *

The number of servers with the assessment status IN_PROGESS. *

*/ inline int GetInProgress() const{ return m_inProgress; } /** *

The number of servers with the assessment status IN_PROGESS. *

*/ inline bool InProgressHasBeenSet() const { return m_inProgressHasBeenSet; } /** *

The number of servers with the assessment status IN_PROGESS. *

*/ inline void SetInProgress(int value) { m_inProgressHasBeenSet = true; m_inProgress = value; } /** *

The number of servers with the assessment status IN_PROGESS. *

*/ inline DataCollectionDetails& WithInProgress(int value) { SetInProgress(value); return *this;} /** *

The total number of servers in the assessment.

*/ inline int GetServers() const{ return m_servers; } /** *

The total number of servers in the assessment.

*/ inline bool ServersHasBeenSet() const { return m_serversHasBeenSet; } /** *

The total number of servers in the assessment.

*/ inline void SetServers(int value) { m_serversHasBeenSet = true; m_servers = value; } /** *

The total number of servers in the assessment.

*/ inline DataCollectionDetails& WithServers(int value) { SetServers(value); return *this;} /** *

The start time of assessment.

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

The start time of assessment.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start time of assessment.

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

The start time of assessment.

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

The start time of assessment.

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

The start time of assessment.

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

The status of the assessment.

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

The status of the assessment.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the assessment.

*/ inline void SetStatus(const AssessmentStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the assessment.

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

The status of the assessment.

*/ inline DataCollectionDetails& WithStatus(const AssessmentStatus& value) { SetStatus(value); return *this;} /** *

The status of the assessment.

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

The status message of the assessment.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

The status message of the assessment.

*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *

The status message of the assessment.

*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *

The status message of the assessment.

*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *

The status message of the assessment.

*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *

The status message of the assessment.

*/ inline DataCollectionDetails& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

The status message of the assessment.

*/ inline DataCollectionDetails& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

The status message of the assessment.

*/ inline DataCollectionDetails& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

The number of successful servers in the assessment.

*/ inline int GetSuccess() const{ return m_success; } /** *

The number of successful servers in the assessment.

*/ inline bool SuccessHasBeenSet() const { return m_successHasBeenSet; } /** *

The number of successful servers in the assessment.

*/ inline void SetSuccess(int value) { m_successHasBeenSet = true; m_success = value; } /** *

The number of successful servers in the assessment.

*/ inline DataCollectionDetails& WithSuccess(int value) { SetSuccess(value); return *this;} private: Aws::Utils::DateTime m_completionTime; bool m_completionTimeHasBeenSet = false; int m_failed; bool m_failedHasBeenSet = false; int m_inProgress; bool m_inProgressHasBeenSet = false; int m_servers; bool m_serversHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; AssessmentStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; int m_success; bool m_successHasBeenSet = false; }; } // namespace Model } // namespace MigrationHubStrategyRecommendations } // namespace Aws