AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRecommendation(const RecommendationSet& value) { m_recommendationHasBeenSet = true; m_recommendation = value; }
70 inline void SetRecommendation(RecommendationSet&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::move(value); }
71 inline ServerStrategy& WithRecommendation(const RecommendationSet& value) { SetRecommendation(value); return *this;}
72 inline ServerStrategy& WithRecommendation(RecommendationSet&& value) { SetRecommendation(std::move(value)); return *this;}
74
76
79 inline const StrategyRecommendation& GetStatus() const{ return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(const StrategyRecommendation& value) { m_statusHasBeenSet = true; m_status = value; }
82 inline void SetStatus(StrategyRecommendation&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
83 inline ServerStrategy& WithStatus(const StrategyRecommendation& value) { SetStatus(value); return *this;}
84 inline ServerStrategy& WithStatus(StrategyRecommendation&& value) { SetStatus(std::move(value)); return *this;}
86 private:
87
88 bool m_isPreferred;
89 bool m_isPreferredHasBeenSet = false;
90
91 int m_numberOfApplicationComponents;
92 bool m_numberOfApplicationComponentsHasBeenSet = false;
93
94 RecommendationSet m_recommendation;
95 bool m_recommendationHasBeenSet = false;
96
98 bool m_statusHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace MigrationHubStrategyRecommendations
103} // namespace Aws
ServerStrategy & WithRecommendation(RecommendationSet &&value)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ServerStrategy()
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ServerStrategy(Aws::Utils::Json::JsonView jsonValue)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ServerStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
ServerStrategy & WithStatus(StrategyRecommendation &&value)
ServerStrategy & WithStatus(const StrategyRecommendation &value)
void SetStatus(const StrategyRecommendation &value)
ServerStrategy & WithRecommendation(const RecommendationSet &value)
Aws::Utils::Json::JsonValue JsonValue