AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServerStrategy.h
1
6#pragma once
7#include <aws/migrationhubstrategy/MigrationHubStrategyRecommendations_EXPORTS.h>
8#include <aws/migrationhubstrategy/model/RecommendationSet.h>
9#include <aws/migrationhubstrategy/model/StrategyRecommendation.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MigrationHubStrategyRecommendations
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ServerStrategy() = default;
37 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ServerStrategy(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ServerStrategy& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline bool GetIsPreferred() const { return m_isPreferred; }
47 inline bool IsPreferredHasBeenSet() const { return m_isPreferredHasBeenSet; }
48 inline void SetIsPreferred(bool value) { m_isPreferredHasBeenSet = true; m_isPreferred = value; }
49 inline ServerStrategy& WithIsPreferred(bool value) { SetIsPreferred(value); return *this;}
51
53
57 inline int GetNumberOfApplicationComponents() const { return m_numberOfApplicationComponents; }
58 inline bool NumberOfApplicationComponentsHasBeenSet() const { return m_numberOfApplicationComponentsHasBeenSet; }
59 inline void SetNumberOfApplicationComponents(int value) { m_numberOfApplicationComponentsHasBeenSet = true; m_numberOfApplicationComponents = value; }
62
64
67 inline const RecommendationSet& GetRecommendation() const { return m_recommendation; }
68 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
69 template<typename RecommendationT = RecommendationSet>
70 void SetRecommendation(RecommendationT&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::forward<RecommendationT>(value); }
71 template<typename RecommendationT = RecommendationSet>
72 ServerStrategy& WithRecommendation(RecommendationT&& value) { SetRecommendation(std::forward<RecommendationT>(value)); return *this;}
74
76
79 inline StrategyRecommendation GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(StrategyRecommendation value) { m_statusHasBeenSet = true; m_status = value; }
82 inline ServerStrategy& WithStatus(StrategyRecommendation value) { SetStatus(value); return *this;}
84 private:
85
86 bool m_isPreferred{false};
87 bool m_isPreferredHasBeenSet = false;
88
89 int m_numberOfApplicationComponents{0};
90 bool m_numberOfApplicationComponentsHasBeenSet = false;
91
92 RecommendationSet m_recommendation;
93 bool m_recommendationHasBeenSet = false;
94
96 bool m_statusHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace MigrationHubStrategyRecommendations
101} // namespace Aws
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
ServerStrategy & WithRecommendation(RecommendationT &&value)
ServerStrategy & WithStatus(StrategyRecommendation value)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ServerStrategy(Aws::Utils::Json::JsonView jsonValue)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ServerStrategy()=default
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ServerStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue