AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Result.h
1
6#pragma once
7#include <aws/migrationhubstrategy/MigrationHubStrategyRecommendations_EXPORTS.h>
8#include <aws/migrationhubstrategy/model/AnalysisStatusUnion.h>
9#include <aws/migrationhubstrategy/model/AnalysisType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/migrationhubstrategy/model/AntipatternReportResult.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MigrationHubStrategyRecommendations
26{
27namespace Model
28{
29
35 class Result
36 {
37 public:
38 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Result();
39 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Result(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Result& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const AnalysisStatusUnion& GetAnalysisStatus() const{ return m_analysisStatus; }
49 inline bool AnalysisStatusHasBeenSet() const { return m_analysisStatusHasBeenSet; }
50 inline void SetAnalysisStatus(const AnalysisStatusUnion& value) { m_analysisStatusHasBeenSet = true; m_analysisStatus = value; }
51 inline void SetAnalysisStatus(AnalysisStatusUnion&& value) { m_analysisStatusHasBeenSet = true; m_analysisStatus = std::move(value); }
52 inline Result& WithAnalysisStatus(const AnalysisStatusUnion& value) { SetAnalysisStatus(value); return *this;}
53 inline Result& WithAnalysisStatus(AnalysisStatusUnion&& value) { SetAnalysisStatus(std::move(value)); return *this;}
55
57
60 inline const AnalysisType& GetAnalysisType() const{ return m_analysisType; }
61 inline bool AnalysisTypeHasBeenSet() const { return m_analysisTypeHasBeenSet; }
62 inline void SetAnalysisType(const AnalysisType& value) { m_analysisTypeHasBeenSet = true; m_analysisType = value; }
63 inline void SetAnalysisType(AnalysisType&& value) { m_analysisTypeHasBeenSet = true; m_analysisType = std::move(value); }
64 inline Result& WithAnalysisType(const AnalysisType& value) { SetAnalysisType(value); return *this;}
65 inline Result& WithAnalysisType(AnalysisType&& value) { SetAnalysisType(std::move(value)); return *this;}
67
69
72 inline const Aws::Vector<AntipatternReportResult>& GetAntipatternReportResultList() const{ return m_antipatternReportResultList; }
73 inline bool AntipatternReportResultListHasBeenSet() const { return m_antipatternReportResultListHasBeenSet; }
74 inline void SetAntipatternReportResultList(const Aws::Vector<AntipatternReportResult>& value) { m_antipatternReportResultListHasBeenSet = true; m_antipatternReportResultList = value; }
75 inline void SetAntipatternReportResultList(Aws::Vector<AntipatternReportResult>&& value) { m_antipatternReportResultListHasBeenSet = true; m_antipatternReportResultList = std::move(value); }
78 inline Result& AddAntipatternReportResultList(const AntipatternReportResult& value) { m_antipatternReportResultListHasBeenSet = true; m_antipatternReportResultList.push_back(value); return *this; }
79 inline Result& AddAntipatternReportResultList(AntipatternReportResult&& value) { m_antipatternReportResultListHasBeenSet = true; m_antipatternReportResultList.push_back(std::move(value)); return *this; }
81
83
86 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
87 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
88 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
89 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
90 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
91 inline Result& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
92 inline Result& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
93 inline Result& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
95 private:
96
97 AnalysisStatusUnion m_analysisStatus;
98 bool m_analysisStatusHasBeenSet = false;
99
100 AnalysisType m_analysisType;
101 bool m_analysisTypeHasBeenSet = false;
102
103 Aws::Vector<AntipatternReportResult> m_antipatternReportResultList;
104 bool m_antipatternReportResultListHasBeenSet = false;
105
106 Aws::String m_statusMessage;
107 bool m_statusMessageHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace MigrationHubStrategyRecommendations
112} // namespace Aws
Result & WithStatusMessage(const Aws::String &value)
Definition Result.h:91
void SetAnalysisType(const AnalysisType &value)
Definition Result.h:62
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
Result & WithAnalysisType(const AnalysisType &value)
Definition Result.h:64
Result & WithAntipatternReportResultList(Aws::Vector< AntipatternReportResult > &&value)
Definition Result.h:77
void SetAntipatternReportResultList(const Aws::Vector< AntipatternReportResult > &value)
Definition Result.h:74
Result & WithAnalysisStatus(const AnalysisStatusUnion &value)
Definition Result.h:52
const AnalysisStatusUnion & GetAnalysisStatus() const
Definition Result.h:48
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Result()
Result & WithAntipatternReportResultList(const Aws::Vector< AntipatternReportResult > &value)
Definition Result.h:76
Result & WithStatusMessage(Aws::String &&value)
Definition Result.h:92
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Result(Aws::Utils::Json::JsonView jsonValue)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Result & operator=(Aws::Utils::Json::JsonView jsonValue)
Result & WithAnalysisType(AnalysisType &&value)
Definition Result.h:65
void SetAntipatternReportResultList(Aws::Vector< AntipatternReportResult > &&value)
Definition Result.h:75
Result & AddAntipatternReportResultList(const AntipatternReportResult &value)
Definition Result.h:78
Result & AddAntipatternReportResultList(AntipatternReportResult &&value)
Definition Result.h:79
Result & WithAnalysisStatus(AnalysisStatusUnion &&value)
Definition Result.h:53
void SetAnalysisStatus(const AnalysisStatusUnion &value)
Definition Result.h:50
void SetAnalysisStatus(AnalysisStatusUnion &&value)
Definition Result.h:51
const Aws::Vector< AntipatternReportResult > & GetAntipatternReportResultList() const
Definition Result.h:72
void SetStatusMessage(const Aws::String &value)
Definition Result.h:88
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue