AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
DeploymentSteps.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/BuildStep.h>
9#include <aws/amplifygen3/model/DeployStep.h>
10#include <aws/amplifygen3/model/MigrationStep.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AmplifyGen3 {
22namespace Model {
23
32 public:
33 AWS_AMPLIFYGEN3_API DeploymentSteps() = default;
34 AWS_AMPLIFYGEN3_API DeploymentSteps(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AMPLIFYGEN3_API DeploymentSteps& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const BuildStep& GetBuild() const { return m_build; }
43 inline bool BuildHasBeenSet() const { return m_buildHasBeenSet; }
44 template <typename BuildT = BuildStep>
45 void SetBuild(BuildT&& value) {
46 m_buildHasBeenSet = true;
47 m_build = std::forward<BuildT>(value);
48 }
49 template <typename BuildT = BuildStep>
50 DeploymentSteps& WithBuild(BuildT&& value) {
51 SetBuild(std::forward<BuildT>(value));
52 return *this;
53 }
55
57
60 inline const MigrationStep& GetMigration() const { return m_migration; }
61 inline bool MigrationHasBeenSet() const { return m_migrationHasBeenSet; }
62 template <typename MigrationT = MigrationStep>
63 void SetMigration(MigrationT&& value) {
64 m_migrationHasBeenSet = true;
65 m_migration = std::forward<MigrationT>(value);
66 }
67 template <typename MigrationT = MigrationStep>
68 DeploymentSteps& WithMigration(MigrationT&& value) {
69 SetMigration(std::forward<MigrationT>(value));
70 return *this;
71 }
73
75
78 inline const DeployStep& GetDeploy() const { return m_deploy; }
79 inline bool DeployHasBeenSet() const { return m_deployHasBeenSet; }
80 template <typename DeployT = DeployStep>
81 void SetDeploy(DeployT&& value) {
82 m_deployHasBeenSet = true;
83 m_deploy = std::forward<DeployT>(value);
84 }
85 template <typename DeployT = DeployStep>
86 DeploymentSteps& WithDeploy(DeployT&& value) {
87 SetDeploy(std::forward<DeployT>(value));
88 return *this;
89 }
91 private:
92 BuildStep m_build;
93
94 MigrationStep m_migration;
95
96 DeployStep m_deploy;
97 bool m_buildHasBeenSet = false;
98 bool m_migrationHasBeenSet = false;
99 bool m_deployHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace AmplifyGen3
104} // namespace Aws
AWS_AMPLIFYGEN3_API DeploymentSteps & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYGEN3_API DeploymentSteps()=default
AWS_AMPLIFYGEN3_API DeploymentSteps(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentSteps & WithMigration(MigrationT &&value)
DeploymentSteps & WithDeploy(DeployT &&value)
const MigrationStep & GetMigration() const
DeploymentSteps & WithBuild(BuildT &&value)
Aws::Utils::Json::JsonValue JsonValue