AWS SDK for C++

AWS SDK for C++ Version 1.11.769

Loading...
Searching...
No Matches
NetworkMigrationMapperSegment.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/mgn/Mgn_EXPORTS.h>
12#include <aws/mgn/model/Checksum.h>
13#include <aws/mgn/model/NetworkMigrationMapperSegmentType.h>
14#include <aws/mgn/model/S3Configuration.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace mgn {
26namespace Model {
27
29 public:
30 AWS_MGN_API NetworkMigrationMapperSegment() = default;
34
36
39 inline const Aws::String& GetJobID() const { return m_jobID; }
40 inline bool JobIDHasBeenSet() const { return m_jobIDHasBeenSet; }
41 template <typename JobIDT = Aws::String>
42 void SetJobID(JobIDT&& value) {
43 m_jobIDHasBeenSet = true;
44 m_jobID = std::forward<JobIDT>(value);
45 }
46 template <typename JobIDT = Aws::String>
48 SetJobID(std::forward<JobIDT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetNetworkMigrationExecutionID() const { return m_networkMigrationExecutionID; }
58 inline bool NetworkMigrationExecutionIDHasBeenSet() const { return m_networkMigrationExecutionIDHasBeenSet; }
59 template <typename NetworkMigrationExecutionIDT = Aws::String>
60 void SetNetworkMigrationExecutionID(NetworkMigrationExecutionIDT&& value) {
61 m_networkMigrationExecutionIDHasBeenSet = true;
62 m_networkMigrationExecutionID = std::forward<NetworkMigrationExecutionIDT>(value);
63 }
64 template <typename NetworkMigrationExecutionIDT = Aws::String>
65 NetworkMigrationMapperSegment& WithNetworkMigrationExecutionID(NetworkMigrationExecutionIDT&& value) {
66 SetNetworkMigrationExecutionID(std::forward<NetworkMigrationExecutionIDT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetNetworkMigrationDefinitionID() const { return m_networkMigrationDefinitionID; }
76 inline bool NetworkMigrationDefinitionIDHasBeenSet() const { return m_networkMigrationDefinitionIDHasBeenSet; }
77 template <typename NetworkMigrationDefinitionIDT = Aws::String>
78 void SetNetworkMigrationDefinitionID(NetworkMigrationDefinitionIDT&& value) {
79 m_networkMigrationDefinitionIDHasBeenSet = true;
80 m_networkMigrationDefinitionID = std::forward<NetworkMigrationDefinitionIDT>(value);
81 }
82 template <typename NetworkMigrationDefinitionIDT = Aws::String>
83 NetworkMigrationMapperSegment& WithNetworkMigrationDefinitionID(NetworkMigrationDefinitionIDT&& value) {
84 SetNetworkMigrationDefinitionID(std::forward<NetworkMigrationDefinitionIDT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetSegmentID() const { return m_segmentID; }
94 inline bool SegmentIDHasBeenSet() const { return m_segmentIDHasBeenSet; }
95 template <typename SegmentIDT = Aws::String>
96 void SetSegmentID(SegmentIDT&& value) {
97 m_segmentIDHasBeenSet = true;
98 m_segmentID = std::forward<SegmentIDT>(value);
99 }
100 template <typename SegmentIDT = Aws::String>
102 SetSegmentID(std::forward<SegmentIDT>(value));
103 return *this;
104 }
106
108
111 inline NetworkMigrationMapperSegmentType GetSegmentType() const { return m_segmentType; }
112 inline bool SegmentTypeHasBeenSet() const { return m_segmentTypeHasBeenSet; }
114 m_segmentTypeHasBeenSet = true;
115 m_segmentType = value;
116 }
118 SetSegmentType(value);
119 return *this;
120 }
122
124
127 inline const Aws::String& GetName() const { return m_name; }
128 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
129 template <typename NameT = Aws::String>
130 void SetName(NameT&& value) {
131 m_nameHasBeenSet = true;
132 m_name = std::forward<NameT>(value);
133 }
134 template <typename NameT = Aws::String>
136 SetName(std::forward<NameT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetDescription() const { return m_description; }
146 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
147 template <typename DescriptionT = Aws::String>
148 void SetDescription(DescriptionT&& value) {
149 m_descriptionHasBeenSet = true;
150 m_description = std::forward<DescriptionT>(value);
151 }
152 template <typename DescriptionT = Aws::String>
154 SetDescription(std::forward<DescriptionT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetLogicalID() const { return m_logicalID; }
164 inline bool LogicalIDHasBeenSet() const { return m_logicalIDHasBeenSet; }
165 template <typename LogicalIDT = Aws::String>
166 void SetLogicalID(LogicalIDT&& value) {
167 m_logicalIDHasBeenSet = true;
168 m_logicalID = std::forward<LogicalIDT>(value);
169 }
170 template <typename LogicalIDT = Aws::String>
172 SetLogicalID(std::forward<LogicalIDT>(value));
173 return *this;
174 }
176
178
181 inline const Checksum& GetChecksum() const { return m_checksum; }
182 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
183 template <typename ChecksumT = Checksum>
184 void SetChecksum(ChecksumT&& value) {
185 m_checksumHasBeenSet = true;
186 m_checksum = std::forward<ChecksumT>(value);
187 }
188 template <typename ChecksumT = Checksum>
190 SetChecksum(std::forward<ChecksumT>(value));
191 return *this;
192 }
194
196
199 inline const S3Configuration& GetOutputS3Configuration() const { return m_outputS3Configuration; }
200 inline bool OutputS3ConfigurationHasBeenSet() const { return m_outputS3ConfigurationHasBeenSet; }
201 template <typename OutputS3ConfigurationT = S3Configuration>
202 void SetOutputS3Configuration(OutputS3ConfigurationT&& value) {
203 m_outputS3ConfigurationHasBeenSet = true;
204 m_outputS3Configuration = std::forward<OutputS3ConfigurationT>(value);
205 }
206 template <typename OutputS3ConfigurationT = S3Configuration>
208 SetOutputS3Configuration(std::forward<OutputS3ConfigurationT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
218 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
219 template <typename CreatedAtT = Aws::Utils::DateTime>
220 void SetCreatedAt(CreatedAtT&& value) {
221 m_createdAtHasBeenSet = true;
222 m_createdAt = std::forward<CreatedAtT>(value);
223 }
224 template <typename CreatedAtT = Aws::Utils::DateTime>
226 SetCreatedAt(std::forward<CreatedAtT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
236 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
237 template <typename UpdatedAtT = Aws::Utils::DateTime>
238 void SetUpdatedAt(UpdatedAtT&& value) {
239 m_updatedAtHasBeenSet = true;
240 m_updatedAt = std::forward<UpdatedAtT>(value);
241 }
242 template <typename UpdatedAtT = Aws::Utils::DateTime>
244 SetUpdatedAt(std::forward<UpdatedAtT>(value));
245 return *this;
246 }
248
250
253 inline const Aws::Map<Aws::String, Aws::String>& GetScopeTags() const { return m_scopeTags; }
254 inline bool ScopeTagsHasBeenSet() const { return m_scopeTagsHasBeenSet; }
255 template <typename ScopeTagsT = Aws::Map<Aws::String, Aws::String>>
256 void SetScopeTags(ScopeTagsT&& value) {
257 m_scopeTagsHasBeenSet = true;
258 m_scopeTags = std::forward<ScopeTagsT>(value);
259 }
260 template <typename ScopeTagsT = Aws::Map<Aws::String, Aws::String>>
262 SetScopeTags(std::forward<ScopeTagsT>(value));
263 return *this;
264 }
265 template <typename ScopeTagsKeyT = Aws::String, typename ScopeTagsValueT = Aws::String>
266 NetworkMigrationMapperSegment& AddScopeTags(ScopeTagsKeyT&& key, ScopeTagsValueT&& value) {
267 m_scopeTagsHasBeenSet = true;
268 m_scopeTags.emplace(std::forward<ScopeTagsKeyT>(key), std::forward<ScopeTagsValueT>(value));
269 return *this;
270 }
272
274
277 inline const Aws::String& GetTargetAccount() const { return m_targetAccount; }
278 inline bool TargetAccountHasBeenSet() const { return m_targetAccountHasBeenSet; }
279 template <typename TargetAccountT = Aws::String>
280 void SetTargetAccount(TargetAccountT&& value) {
281 m_targetAccountHasBeenSet = true;
282 m_targetAccount = std::forward<TargetAccountT>(value);
283 }
284 template <typename TargetAccountT = Aws::String>
286 SetTargetAccount(std::forward<TargetAccountT>(value));
287 return *this;
288 }
290
292
295 inline const Aws::Vector<Aws::String>& GetReferencedSegments() const { return m_referencedSegments; }
296 inline bool ReferencedSegmentsHasBeenSet() const { return m_referencedSegmentsHasBeenSet; }
297 template <typename ReferencedSegmentsT = Aws::Vector<Aws::String>>
298 void SetReferencedSegments(ReferencedSegmentsT&& value) {
299 m_referencedSegmentsHasBeenSet = true;
300 m_referencedSegments = std::forward<ReferencedSegmentsT>(value);
301 }
302 template <typename ReferencedSegmentsT = Aws::Vector<Aws::String>>
304 SetReferencedSegments(std::forward<ReferencedSegmentsT>(value));
305 return *this;
306 }
307 template <typename ReferencedSegmentsT = Aws::String>
309 m_referencedSegmentsHasBeenSet = true;
310 m_referencedSegments.emplace_back(std::forward<ReferencedSegmentsT>(value));
311 return *this;
312 }
314
316
317 inline const Aws::String& GetRequestId() const { return m_requestId; }
318 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
319 template <typename RequestIdT = Aws::String>
320 void SetRequestId(RequestIdT&& value) {
321 m_requestIdHasBeenSet = true;
322 m_requestId = std::forward<RequestIdT>(value);
323 }
324 template <typename RequestIdT = Aws::String>
326 SetRequestId(std::forward<RequestIdT>(value));
327 return *this;
328 }
330 private:
331 Aws::String m_jobID;
332
333 Aws::String m_networkMigrationExecutionID;
334
335 Aws::String m_networkMigrationDefinitionID;
336
337 Aws::String m_segmentID;
338
340
341 Aws::String m_name;
342
343 Aws::String m_description;
344
345 Aws::String m_logicalID;
346
347 Checksum m_checksum;
348
349 S3Configuration m_outputS3Configuration;
350
351 Aws::Utils::DateTime m_createdAt{};
352
353 Aws::Utils::DateTime m_updatedAt{};
354
356
357 Aws::String m_targetAccount;
358
359 Aws::Vector<Aws::String> m_referencedSegments;
360
361 Aws::String m_requestId;
362 bool m_jobIDHasBeenSet = false;
363 bool m_networkMigrationExecutionIDHasBeenSet = false;
364 bool m_networkMigrationDefinitionIDHasBeenSet = false;
365 bool m_segmentIDHasBeenSet = false;
366 bool m_segmentTypeHasBeenSet = false;
367 bool m_nameHasBeenSet = false;
368 bool m_descriptionHasBeenSet = false;
369 bool m_logicalIDHasBeenSet = false;
370 bool m_checksumHasBeenSet = false;
371 bool m_outputS3ConfigurationHasBeenSet = false;
372 bool m_createdAtHasBeenSet = false;
373 bool m_updatedAtHasBeenSet = false;
374 bool m_scopeTagsHasBeenSet = false;
375 bool m_targetAccountHasBeenSet = false;
376 bool m_referencedSegmentsHasBeenSet = false;
377 bool m_requestIdHasBeenSet = false;
378};
379
380} // namespace Model
381} // namespace mgn
382} // namespace Aws
NetworkMigrationMapperSegment & WithSegmentType(NetworkMigrationMapperSegmentType value)
NetworkMigrationMapperSegment & WithName(NameT &&value)
NetworkMigrationMapperSegment & AddScopeTags(ScopeTagsKeyT &&key, ScopeTagsValueT &&value)
NetworkMigrationMapperSegment & WithNetworkMigrationDefinitionID(NetworkMigrationDefinitionIDT &&value)
NetworkMigrationMapperSegment & WithLogicalID(LogicalIDT &&value)
void SetOutputS3Configuration(OutputS3ConfigurationT &&value)
NetworkMigrationMapperSegment & WithNetworkMigrationExecutionID(NetworkMigrationExecutionIDT &&value)
void SetSegmentType(NetworkMigrationMapperSegmentType value)
AWS_MGN_API NetworkMigrationMapperSegment(Aws::Utils::Json::JsonView jsonValue)
NetworkMigrationMapperSegment & AddReferencedSegments(ReferencedSegmentsT &&value)
NetworkMigrationMapperSegment & WithJobID(JobIDT &&value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkMigrationMapperSegment & WithRequestId(RequestIdT &&value)
NetworkMigrationMapperSegmentType GetSegmentType() const
NetworkMigrationMapperSegment & WithUpdatedAt(UpdatedAtT &&value)
NetworkMigrationMapperSegment & WithReferencedSegments(ReferencedSegmentsT &&value)
void SetNetworkMigrationExecutionID(NetworkMigrationExecutionIDT &&value)
NetworkMigrationMapperSegment & WithScopeTags(ScopeTagsT &&value)
const Aws::Vector< Aws::String > & GetReferencedSegments() const
NetworkMigrationMapperSegment & WithCreatedAt(CreatedAtT &&value)
AWS_MGN_API NetworkMigrationMapperSegment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNetworkMigrationDefinitionID(NetworkMigrationDefinitionIDT &&value)
NetworkMigrationMapperSegment & WithTargetAccount(TargetAccountT &&value)
NetworkMigrationMapperSegment & WithSegmentID(SegmentIDT &&value)
const Aws::Map< Aws::String, Aws::String > & GetScopeTags() const
NetworkMigrationMapperSegment & WithChecksum(ChecksumT &&value)
NetworkMigrationMapperSegment & WithDescription(DescriptionT &&value)
NetworkMigrationMapperSegment & WithOutputS3Configuration(OutputS3ConfigurationT &&value)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue