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

The error in server analysis.

See Also:

AWS * API Reference

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

The error in server analysis.

*/ inline const AnalysisStatusUnion& GetAnalysisStatus() const{ return m_analysisStatus; } /** *

The error in server analysis.

*/ inline bool AnalysisStatusHasBeenSet() const { return m_analysisStatusHasBeenSet; } /** *

The error in server analysis.

*/ inline void SetAnalysisStatus(const AnalysisStatusUnion& value) { m_analysisStatusHasBeenSet = true; m_analysisStatus = value; } /** *

The error in server analysis.

*/ inline void SetAnalysisStatus(AnalysisStatusUnion&& value) { m_analysisStatusHasBeenSet = true; m_analysisStatus = std::move(value); } /** *

The error in server analysis.

*/ inline Result& WithAnalysisStatus(const AnalysisStatusUnion& value) { SetAnalysisStatus(value); return *this;} /** *

The error in server analysis.

*/ inline Result& WithAnalysisStatus(AnalysisStatusUnion&& value) { SetAnalysisStatus(std::move(value)); return *this;} /** *

The error in server analysis.

*/ inline const AnalysisType& GetAnalysisType() const{ return m_analysisType; } /** *

The error in server analysis.

*/ inline bool AnalysisTypeHasBeenSet() const { return m_analysisTypeHasBeenSet; } /** *

The error in server analysis.

*/ inline void SetAnalysisType(const AnalysisType& value) { m_analysisTypeHasBeenSet = true; m_analysisType = value; } /** *

The error in server analysis.

*/ inline void SetAnalysisType(AnalysisType&& value) { m_analysisTypeHasBeenSet = true; m_analysisType = std::move(value); } /** *

The error in server analysis.

*/ inline Result& WithAnalysisType(const AnalysisType& value) { SetAnalysisType(value); return *this;} /** *

The error in server analysis.

*/ inline Result& WithAnalysisType(AnalysisType&& value) { SetAnalysisType(std::move(value)); return *this;} /** *

The error in server analysis.

*/ inline const Aws::Vector& GetAntipatternReportResultList() const{ return m_antipatternReportResultList; } /** *

The error in server analysis.

*/ inline bool AntipatternReportResultListHasBeenSet() const { return m_antipatternReportResultListHasBeenSet; } /** *

The error in server analysis.

*/ inline void SetAntipatternReportResultList(const Aws::Vector& value) { m_antipatternReportResultListHasBeenSet = true; m_antipatternReportResultList = value; } /** *

The error in server analysis.

*/ inline void SetAntipatternReportResultList(Aws::Vector&& value) { m_antipatternReportResultListHasBeenSet = true; m_antipatternReportResultList = std::move(value); } /** *

The error in server analysis.

*/ inline Result& WithAntipatternReportResultList(const Aws::Vector& value) { SetAntipatternReportResultList(value); return *this;} /** *

The error in server analysis.

*/ inline Result& WithAntipatternReportResultList(Aws::Vector&& value) { SetAntipatternReportResultList(std::move(value)); return *this;} /** *

The error in server analysis.

*/ inline Result& AddAntipatternReportResultList(const AntipatternReportResult& value) { m_antipatternReportResultListHasBeenSet = true; m_antipatternReportResultList.push_back(value); return *this; } /** *

The error in server analysis.

*/ inline Result& AddAntipatternReportResultList(AntipatternReportResult&& value) { m_antipatternReportResultListHasBeenSet = true; m_antipatternReportResultList.push_back(std::move(value)); return *this; } /** *

The error in server analysis.

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

The error in server analysis.

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

The error in server analysis.

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

The error in server analysis.

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

The error in server analysis.

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

The error in server analysis.

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

The error in server analysis.

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

The error in server analysis.

*/ inline Result& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} private: AnalysisStatusUnion m_analysisStatus; bool m_analysisStatusHasBeenSet = false; AnalysisType m_analysisType; bool m_analysisTypeHasBeenSet = false; Aws::Vector m_antipatternReportResultList; bool m_antipatternReportResultListHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; }; } // namespace Model } // namespace MigrationHubStrategyRecommendations } // namespace Aws