AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const Strategy& GetStrategy() const{ return m_strategy; }
59 inline bool StrategyHasBeenSet() const { return m_strategyHasBeenSet; }
60 inline void SetStrategy(const Strategy& value) { m_strategyHasBeenSet = true; m_strategy = value; }
61 inline void SetStrategy(Strategy&& value) { m_strategyHasBeenSet = true; m_strategy = std::move(value); }
62 inline StrategyOption& WithStrategy(const Strategy& value) { SetStrategy(value); return *this;}
63 inline StrategyOption& WithStrategy(Strategy&& value) { SetStrategy(std::move(value)); return *this;}
65
67
71 inline const TargetDestination& GetTargetDestination() const{ return m_targetDestination; }
72 inline bool TargetDestinationHasBeenSet() const { return m_targetDestinationHasBeenSet; }
73 inline void SetTargetDestination(const TargetDestination& value) { m_targetDestinationHasBeenSet = true; m_targetDestination = value; }
74 inline void SetTargetDestination(TargetDestination&& value) { m_targetDestinationHasBeenSet = true; m_targetDestination = std::move(value); }
75 inline StrategyOption& WithTargetDestination(const TargetDestination& value) { SetTargetDestination(value); return *this;}
76 inline StrategyOption& WithTargetDestination(TargetDestination&& value) { SetTargetDestination(std::move(value)); return *this;}
78
80
84 inline const TransformationToolName& GetToolName() const{ return m_toolName; }
85 inline bool ToolNameHasBeenSet() const { return m_toolNameHasBeenSet; }
86 inline void SetToolName(const TransformationToolName& value) { m_toolNameHasBeenSet = true; m_toolName = value; }
87 inline void SetToolName(TransformationToolName&& value) { m_toolNameHasBeenSet = true; m_toolName = std::move(value); }
88 inline StrategyOption& WithToolName(const TransformationToolName& value) { SetToolName(value); return *this;}
89 inline StrategyOption& WithToolName(TransformationToolName&& value) { SetToolName(std::move(value)); return *this;}
91 private:
92
93 bool m_isPreferred;
94 bool m_isPreferredHasBeenSet = false;
95
96 Strategy m_strategy;
97 bool m_strategyHasBeenSet = false;
98
99 TargetDestination m_targetDestination;
100 bool m_targetDestinationHasBeenSet = false;
101
102 TransformationToolName m_toolName;
103 bool m_toolNameHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace MigrationHubStrategyRecommendations
108} // namespace Aws
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
StrategyOption & WithToolName(const TransformationToolName &value)
void SetToolName(const TransformationToolName &value)
StrategyOption & WithToolName(TransformationToolName &&value)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API StrategyOption(Aws::Utils::Json::JsonView jsonValue)
StrategyOption & WithTargetDestination(TargetDestination &&value)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API StrategyOption & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API StrategyOption()
StrategyOption & WithTargetDestination(const TargetDestination &value)
Aws::Utils::Json::JsonValue JsonValue