AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StrategyOption.h
1
6#pragma once
7#include <aws/migrationhubstrategy/MigrationHubStrategyRecommendations_EXPORTS.h>
8#include <aws/migrationhubstrategy/model/Strategy.h>
9#include <aws/migrationhubstrategy/model/TargetDestination.h>
10#include <aws/migrationhubstrategy/model/TransformationToolName.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MigrationHubStrategyRecommendations
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API StrategyOption() = default;
38 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API StrategyOption(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API StrategyOption& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline bool GetIsPreferred() const { return m_isPreferred; }
49 inline bool IsPreferredHasBeenSet() const { return m_isPreferredHasBeenSet; }
50 inline void SetIsPreferred(bool value) { m_isPreferredHasBeenSet = true; m_isPreferred = value; }
51 inline StrategyOption& WithIsPreferred(bool value) { SetIsPreferred(value); return *this;}
53
55
58 inline Strategy GetStrategy() const { return m_strategy; }
59 inline bool StrategyHasBeenSet() const { return m_strategyHasBeenSet; }
60 inline void SetStrategy(Strategy value) { m_strategyHasBeenSet = true; m_strategy = value; }
61 inline StrategyOption& WithStrategy(Strategy value) { SetStrategy(value); return *this;}
63
65
69 inline TargetDestination GetTargetDestination() const { return m_targetDestination; }
70 inline bool TargetDestinationHasBeenSet() const { return m_targetDestinationHasBeenSet; }
71 inline void SetTargetDestination(TargetDestination value) { m_targetDestinationHasBeenSet = true; m_targetDestination = value; }
74
76
80 inline TransformationToolName GetToolName() const { return m_toolName; }
81 inline bool ToolNameHasBeenSet() const { return m_toolNameHasBeenSet; }
82 inline void SetToolName(TransformationToolName value) { m_toolNameHasBeenSet = true; m_toolName = value; }
83 inline StrategyOption& WithToolName(TransformationToolName value) { SetToolName(value); return *this;}
85 private:
86
87 bool m_isPreferred{false};
88 bool m_isPreferredHasBeenSet = false;
89
90 Strategy m_strategy{Strategy::NOT_SET};
91 bool m_strategyHasBeenSet = false;
92
94 bool m_targetDestinationHasBeenSet = false;
95
97 bool m_toolNameHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace MigrationHubStrategyRecommendations
102} // namespace Aws
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API StrategyOption()=default
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API StrategyOption(Aws::Utils::Json::JsonView jsonValue)
StrategyOption & WithTargetDestination(TargetDestination value)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API StrategyOption & operator=(Aws::Utils::Json::JsonView jsonValue)
StrategyOption & WithToolName(TransformationToolName value)
Aws::Utils::Json::JsonValue JsonValue