AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ApplicationComponentStrategy.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 ApplicationComponentStrategy() = default;
37 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ApplicationComponentStrategy(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ApplicationComponentStrategy& 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 ApplicationComponentStrategy& WithIsPreferred(bool value) { SetIsPreferred(value); return *this;}
51
53
56 inline const RecommendationSet& GetRecommendation() const { return m_recommendation; }
57 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
58 template<typename RecommendationT = RecommendationSet>
59 void SetRecommendation(RecommendationT&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::forward<RecommendationT>(value); }
60 template<typename RecommendationT = RecommendationSet>
61 ApplicationComponentStrategy& WithRecommendation(RecommendationT&& value) { SetRecommendation(std::forward<RecommendationT>(value)); return *this;}
63
65
68 inline StrategyRecommendation GetStatus() const { return m_status; }
69 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
70 inline void SetStatus(StrategyRecommendation value) { m_statusHasBeenSet = true; m_status = value; }
73 private:
74
75 bool m_isPreferred{false};
76 bool m_isPreferredHasBeenSet = false;
77
78 RecommendationSet m_recommendation;
79 bool m_recommendationHasBeenSet = false;
80
82 bool m_statusHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace MigrationHubStrategyRecommendations
87} // namespace Aws
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ApplicationComponentStrategy(Aws::Utils::Json::JsonView jsonValue)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ApplicationComponentStrategy()=default
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API ApplicationComponentStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationComponentStrategy & WithStatus(StrategyRecommendation value)
Aws::Utils::Json::JsonValue JsonValue