AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
MigrationStep.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/DeploymentStepStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AmplifyGen3 {
23namespace Model {
24
33 public:
34 AWS_AMPLIFYGEN3_API MigrationStep() = default;
35 AWS_AMPLIFYGEN3_API MigrationStep(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AMPLIFYGEN3_API MigrationStep& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline DeploymentStepStatus GetStatus() const { return m_status; }
44 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
45 inline void SetStatus(DeploymentStepStatus value) {
46 m_statusHasBeenSet = true;
47 m_status = value;
48 }
50 SetStatus(value);
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
60 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
61 template <typename StartedAtT = Aws::Utils::DateTime>
62 void SetStartedAt(StartedAtT&& value) {
63 m_startedAtHasBeenSet = true;
64 m_startedAt = std::forward<StartedAtT>(value);
65 }
66 template <typename StartedAtT = Aws::Utils::DateTime>
67 MigrationStep& WithStartedAt(StartedAtT&& value) {
68 SetStartedAt(std::forward<StartedAtT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
78 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
79 template <typename EndedAtT = Aws::Utils::DateTime>
80 void SetEndedAt(EndedAtT&& value) {
81 m_endedAtHasBeenSet = true;
82 m_endedAt = std::forward<EndedAtT>(value);
83 }
84 template <typename EndedAtT = Aws::Utils::DateTime>
85 MigrationStep& WithEndedAt(EndedAtT&& value) {
86 SetEndedAt(std::forward<EndedAtT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<Aws::String>& GetAppliedMigrationNames() const { return m_appliedMigrationNames; }
96 inline bool AppliedMigrationNamesHasBeenSet() const { return m_appliedMigrationNamesHasBeenSet; }
97 template <typename AppliedMigrationNamesT = Aws::Vector<Aws::String>>
98 void SetAppliedMigrationNames(AppliedMigrationNamesT&& value) {
99 m_appliedMigrationNamesHasBeenSet = true;
100 m_appliedMigrationNames = std::forward<AppliedMigrationNamesT>(value);
101 }
102 template <typename AppliedMigrationNamesT = Aws::Vector<Aws::String>>
103 MigrationStep& WithAppliedMigrationNames(AppliedMigrationNamesT&& value) {
104 SetAppliedMigrationNames(std::forward<AppliedMigrationNamesT>(value));
105 return *this;
106 }
107 template <typename AppliedMigrationNamesT = Aws::String>
108 MigrationStep& AddAppliedMigrationNames(AppliedMigrationNamesT&& value) {
109 m_appliedMigrationNamesHasBeenSet = true;
110 m_appliedMigrationNames.emplace_back(std::forward<AppliedMigrationNamesT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<Aws::String>& GetSkippedMigrationNames() const { return m_skippedMigrationNames; }
120 inline bool SkippedMigrationNamesHasBeenSet() const { return m_skippedMigrationNamesHasBeenSet; }
121 template <typename SkippedMigrationNamesT = Aws::Vector<Aws::String>>
122 void SetSkippedMigrationNames(SkippedMigrationNamesT&& value) {
123 m_skippedMigrationNamesHasBeenSet = true;
124 m_skippedMigrationNames = std::forward<SkippedMigrationNamesT>(value);
125 }
126 template <typename SkippedMigrationNamesT = Aws::Vector<Aws::String>>
127 MigrationStep& WithSkippedMigrationNames(SkippedMigrationNamesT&& value) {
128 SetSkippedMigrationNames(std::forward<SkippedMigrationNamesT>(value));
129 return *this;
130 }
131 template <typename SkippedMigrationNamesT = Aws::String>
132 MigrationStep& AddSkippedMigrationNames(SkippedMigrationNamesT&& value) {
133 m_skippedMigrationNamesHasBeenSet = true;
134 m_skippedMigrationNames.emplace_back(std::forward<SkippedMigrationNamesT>(value));
135 return *this;
136 }
138 private:
140
141 Aws::Utils::DateTime m_startedAt{};
142
143 Aws::Utils::DateTime m_endedAt{};
144
145 Aws::Vector<Aws::String> m_appliedMigrationNames;
146
147 Aws::Vector<Aws::String> m_skippedMigrationNames;
148 bool m_statusHasBeenSet = false;
149 bool m_startedAtHasBeenSet = false;
150 bool m_endedAtHasBeenSet = false;
151 bool m_appliedMigrationNamesHasBeenSet = false;
152 bool m_skippedMigrationNamesHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace AmplifyGen3
157} // namespace Aws
const Aws::Vector< Aws::String > & GetSkippedMigrationNames() const
MigrationStep & WithSkippedMigrationNames(SkippedMigrationNamesT &&value)
AWS_AMPLIFYGEN3_API MigrationStep(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYGEN3_API MigrationStep & operator=(Aws::Utils::Json::JsonView jsonValue)
MigrationStep & WithEndedAt(EndedAtT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
DeploymentStepStatus GetStatus() const
void SetStatus(DeploymentStepStatus value)
MigrationStep & WithAppliedMigrationNames(AppliedMigrationNamesT &&value)
AWS_AMPLIFYGEN3_API MigrationStep()=default
const Aws::Utils::DateTime & GetEndedAt() const
void SetAppliedMigrationNames(AppliedMigrationNamesT &&value)
void SetSkippedMigrationNames(SkippedMigrationNamesT &&value)
MigrationStep & AddSkippedMigrationNames(SkippedMigrationNamesT &&value)
MigrationStep & WithStatus(DeploymentStepStatus value)
MigrationStep & WithStartedAt(StartedAtT &&value)
MigrationStep & AddAppliedMigrationNames(AppliedMigrationNamesT &&value)
const Aws::Vector< Aws::String > & GetAppliedMigrationNames() const
void SetStartedAt(StartedAtT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue