AWS SDK for C++

AWS SDK for C++ Version 1.11.769

Loading...
Searching...
No Matches
NetworkMigrationExecution.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mgn/Mgn_EXPORTS.h>
11#include <aws/mgn/model/ExecutionStage.h>
12#include <aws/mgn/model/ExecutionStageActivity.h>
13#include <aws/mgn/model/ExecutionStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace mgn {
25namespace Model {
26
34 public:
35 AWS_MGN_API NetworkMigrationExecution() = default;
39
41
45 inline const Aws::String& GetNetworkMigrationDefinitionID() const { return m_networkMigrationDefinitionID; }
46 inline bool NetworkMigrationDefinitionIDHasBeenSet() const { return m_networkMigrationDefinitionIDHasBeenSet; }
47 template <typename NetworkMigrationDefinitionIDT = Aws::String>
48 void SetNetworkMigrationDefinitionID(NetworkMigrationDefinitionIDT&& value) {
49 m_networkMigrationDefinitionIDHasBeenSet = true;
50 m_networkMigrationDefinitionID = std::forward<NetworkMigrationDefinitionIDT>(value);
51 }
52 template <typename NetworkMigrationDefinitionIDT = Aws::String>
53 NetworkMigrationExecution& WithNetworkMigrationDefinitionID(NetworkMigrationDefinitionIDT&& value) {
54 SetNetworkMigrationDefinitionID(std::forward<NetworkMigrationDefinitionIDT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetNetworkMigrationExecutionID() const { return m_networkMigrationExecutionID; }
64 inline bool NetworkMigrationExecutionIDHasBeenSet() const { return m_networkMigrationExecutionIDHasBeenSet; }
65 template <typename NetworkMigrationExecutionIDT = Aws::String>
66 void SetNetworkMigrationExecutionID(NetworkMigrationExecutionIDT&& value) {
67 m_networkMigrationExecutionIDHasBeenSet = true;
68 m_networkMigrationExecutionID = std::forward<NetworkMigrationExecutionIDT>(value);
69 }
70 template <typename NetworkMigrationExecutionIDT = Aws::String>
71 NetworkMigrationExecution& WithNetworkMigrationExecutionID(NetworkMigrationExecutionIDT&& value) {
72 SetNetworkMigrationExecutionID(std::forward<NetworkMigrationExecutionIDT>(value));
73 return *this;
74 }
76
78
81 inline ExecutionStatus GetStatus() const { return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 inline void SetStatus(ExecutionStatus value) {
84 m_statusHasBeenSet = true;
85 m_status = value;
86 }
88 SetStatus(value);
89 return *this;
90 }
92
94
97 inline ExecutionStage GetStage() const { return m_stage; }
98 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
99 inline void SetStage(ExecutionStage value) {
100 m_stageHasBeenSet = true;
101 m_stage = value;
102 }
104 SetStage(value);
105 return *this;
106 }
108
110
113 inline ExecutionStageActivity GetActivity() const { return m_activity; }
114 inline bool ActivityHasBeenSet() const { return m_activityHasBeenSet; }
116 m_activityHasBeenSet = true;
117 m_activity = value;
118 }
120 SetActivity(value);
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
130 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
131 template <typename CreatedAtT = Aws::Utils::DateTime>
132 void SetCreatedAt(CreatedAtT&& value) {
133 m_createdAtHasBeenSet = true;
134 m_createdAt = std::forward<CreatedAtT>(value);
135 }
136 template <typename CreatedAtT = Aws::Utils::DateTime>
138 SetCreatedAt(std::forward<CreatedAtT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
148 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
149 template <typename UpdatedAtT = Aws::Utils::DateTime>
150 void SetUpdatedAt(UpdatedAtT&& value) {
151 m_updatedAtHasBeenSet = true;
152 m_updatedAt = std::forward<UpdatedAtT>(value);
153 }
154 template <typename UpdatedAtT = Aws::Utils::DateTime>
156 SetUpdatedAt(std::forward<UpdatedAtT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
166 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
168 void SetTags(TagsT&& value) {
169 m_tagsHasBeenSet = true;
170 m_tags = std::forward<TagsT>(value);
171 }
172 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 SetTags(std::forward<TagsT>(value));
175 return *this;
176 }
177 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
178 NetworkMigrationExecution& AddTags(TagsKeyT&& key, TagsValueT&& value) {
179 m_tagsHasBeenSet = true;
180 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_networkMigrationDefinitionID;
186
187 Aws::String m_networkMigrationExecutionID;
188
190
192
194
195 Aws::Utils::DateTime m_createdAt{};
196
197 Aws::Utils::DateTime m_updatedAt{};
198
200 bool m_networkMigrationDefinitionIDHasBeenSet = false;
201 bool m_networkMigrationExecutionIDHasBeenSet = false;
202 bool m_statusHasBeenSet = false;
203 bool m_stageHasBeenSet = false;
204 bool m_activityHasBeenSet = false;
205 bool m_createdAtHasBeenSet = false;
206 bool m_updatedAtHasBeenSet = false;
207 bool m_tagsHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace mgn
212} // namespace Aws
const Aws::String & GetNetworkMigrationDefinitionID() const
NetworkMigrationExecution & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetNetworkMigrationExecutionID(NetworkMigrationExecutionIDT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_MGN_API NetworkMigrationExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkMigrationExecution & WithTags(TagsT &&value)
NetworkMigrationExecution & WithStatus(ExecutionStatus value)
NetworkMigrationExecution & WithNetworkMigrationDefinitionID(NetworkMigrationDefinitionIDT &&value)
void SetNetworkMigrationDefinitionID(NetworkMigrationDefinitionIDT &&value)
NetworkMigrationExecution & WithUpdatedAt(UpdatedAtT &&value)
NetworkMigrationExecution & WithNetworkMigrationExecutionID(NetworkMigrationExecutionIDT &&value)
NetworkMigrationExecution & WithStage(ExecutionStage value)
AWS_MGN_API NetworkMigrationExecution(Aws::Utils::Json::JsonView jsonValue)
NetworkMigrationExecution & WithActivity(ExecutionStageActivity value)
NetworkMigrationExecution & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MGN_API NetworkMigrationExecution()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue