AWS SDK for C++

AWS SDK for C++ Version 1.11.891

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
113 inline NetworkMigrationMapperSegmentType GetSegmentType() const { return m_segmentType; }
114 inline bool SegmentTypeHasBeenSet() const { return m_segmentTypeHasBeenSet; }
116 m_segmentTypeHasBeenSet = true;
117 m_segmentType = value;
118 }
120 SetSegmentType(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetName() const { return m_name; }
130 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
131 template <typename NameT = Aws::String>
132 void SetName(NameT&& value) {
133 m_nameHasBeenSet = true;
134 m_name = std::forward<NameT>(value);
135 }
136 template <typename NameT = Aws::String>
138 SetName(std::forward<NameT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetDescription() const { return m_description; }
148 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
149 template <typename DescriptionT = Aws::String>
150 void SetDescription(DescriptionT&& value) {
151 m_descriptionHasBeenSet = true;
152 m_description = std::forward<DescriptionT>(value);
153 }
154 template <typename DescriptionT = Aws::String>
156 SetDescription(std::forward<DescriptionT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetLogicalID() const { return m_logicalID; }
166 inline bool LogicalIDHasBeenSet() const { return m_logicalIDHasBeenSet; }
167 template <typename LogicalIDT = Aws::String>
168 void SetLogicalID(LogicalIDT&& value) {
169 m_logicalIDHasBeenSet = true;
170 m_logicalID = std::forward<LogicalIDT>(value);
171 }
172 template <typename LogicalIDT = Aws::String>
174 SetLogicalID(std::forward<LogicalIDT>(value));
175 return *this;
176 }
178
180
183 inline const Checksum& GetChecksum() const { return m_checksum; }
184 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
185 template <typename ChecksumT = Checksum>
186 void SetChecksum(ChecksumT&& value) {
187 m_checksumHasBeenSet = true;
188 m_checksum = std::forward<ChecksumT>(value);
189 }
190 template <typename ChecksumT = Checksum>
192 SetChecksum(std::forward<ChecksumT>(value));
193 return *this;
194 }
196
198
201 inline const S3Configuration& GetOutputS3Configuration() const { return m_outputS3Configuration; }
202 inline bool OutputS3ConfigurationHasBeenSet() const { return m_outputS3ConfigurationHasBeenSet; }
203 template <typename OutputS3ConfigurationT = S3Configuration>
204 void SetOutputS3Configuration(OutputS3ConfigurationT&& value) {
205 m_outputS3ConfigurationHasBeenSet = true;
206 m_outputS3Configuration = std::forward<OutputS3ConfigurationT>(value);
207 }
208 template <typename OutputS3ConfigurationT = S3Configuration>
210 SetOutputS3Configuration(std::forward<OutputS3ConfigurationT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
220 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
221 template <typename CreatedAtT = Aws::Utils::DateTime>
222 void SetCreatedAt(CreatedAtT&& value) {
223 m_createdAtHasBeenSet = true;
224 m_createdAt = std::forward<CreatedAtT>(value);
225 }
226 template <typename CreatedAtT = Aws::Utils::DateTime>
228 SetCreatedAt(std::forward<CreatedAtT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
238 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
239 template <typename UpdatedAtT = Aws::Utils::DateTime>
240 void SetUpdatedAt(UpdatedAtT&& value) {
241 m_updatedAtHasBeenSet = true;
242 m_updatedAt = std::forward<UpdatedAtT>(value);
243 }
244 template <typename UpdatedAtT = Aws::Utils::DateTime>
246 SetUpdatedAt(std::forward<UpdatedAtT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::Map<Aws::String, Aws::String>& GetScopeTags() const { return m_scopeTags; }
256 inline bool ScopeTagsHasBeenSet() const { return m_scopeTagsHasBeenSet; }
257 template <typename ScopeTagsT = Aws::Map<Aws::String, Aws::String>>
258 void SetScopeTags(ScopeTagsT&& value) {
259 m_scopeTagsHasBeenSet = true;
260 m_scopeTags = std::forward<ScopeTagsT>(value);
261 }
262 template <typename ScopeTagsT = Aws::Map<Aws::String, Aws::String>>
264 SetScopeTags(std::forward<ScopeTagsT>(value));
265 return *this;
266 }
267 template <typename ScopeTagsKeyT = Aws::String, typename ScopeTagsValueT = Aws::String>
268 NetworkMigrationMapperSegment& AddScopeTags(ScopeTagsKeyT&& key, ScopeTagsValueT&& value) {
269 m_scopeTagsHasBeenSet = true;
270 m_scopeTags.emplace(std::forward<ScopeTagsKeyT>(key), std::forward<ScopeTagsValueT>(value));
271 return *this;
272 }
274
276
279 inline const Aws::String& GetTargetAccount() const { return m_targetAccount; }
280 inline bool TargetAccountHasBeenSet() const { return m_targetAccountHasBeenSet; }
281 template <typename TargetAccountT = Aws::String>
282 void SetTargetAccount(TargetAccountT&& value) {
283 m_targetAccountHasBeenSet = true;
284 m_targetAccount = std::forward<TargetAccountT>(value);
285 }
286 template <typename TargetAccountT = Aws::String>
288 SetTargetAccount(std::forward<TargetAccountT>(value));
289 return *this;
290 }
292
294
297 inline const Aws::Vector<Aws::String>& GetReferencedSegments() const { return m_referencedSegments; }
298 inline bool ReferencedSegmentsHasBeenSet() const { return m_referencedSegmentsHasBeenSet; }
299 template <typename ReferencedSegmentsT = Aws::Vector<Aws::String>>
300 void SetReferencedSegments(ReferencedSegmentsT&& value) {
301 m_referencedSegmentsHasBeenSet = true;
302 m_referencedSegments = std::forward<ReferencedSegmentsT>(value);
303 }
304 template <typename ReferencedSegmentsT = Aws::Vector<Aws::String>>
306 SetReferencedSegments(std::forward<ReferencedSegmentsT>(value));
307 return *this;
308 }
309 template <typename ReferencedSegmentsT = Aws::String>
311 m_referencedSegmentsHasBeenSet = true;
312 m_referencedSegments.emplace_back(std::forward<ReferencedSegmentsT>(value));
313 return *this;
314 }
316
318
319 inline const Aws::String& GetRequestId() const { return m_requestId; }
320 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
321 template <typename RequestIdT = Aws::String>
322 void SetRequestId(RequestIdT&& value) {
323 m_requestIdHasBeenSet = true;
324 m_requestId = std::forward<RequestIdT>(value);
325 }
326 template <typename RequestIdT = Aws::String>
328 SetRequestId(std::forward<RequestIdT>(value));
329 return *this;
330 }
332 private:
333 Aws::String m_jobID;
334
335 Aws::String m_networkMigrationExecutionID;
336
337 Aws::String m_networkMigrationDefinitionID;
338
339 Aws::String m_segmentID;
340
342
343 Aws::String m_name;
344
345 Aws::String m_description;
346
347 Aws::String m_logicalID;
348
349 Checksum m_checksum;
350
351 S3Configuration m_outputS3Configuration;
352
353 Aws::Utils::DateTime m_createdAt{};
354
355 Aws::Utils::DateTime m_updatedAt{};
356
358
359 Aws::String m_targetAccount;
360
361 Aws::Vector<Aws::String> m_referencedSegments;
362
363 Aws::String m_requestId;
364 bool m_jobIDHasBeenSet = false;
365 bool m_networkMigrationExecutionIDHasBeenSet = false;
366 bool m_networkMigrationDefinitionIDHasBeenSet = false;
367 bool m_segmentIDHasBeenSet = false;
368 bool m_segmentTypeHasBeenSet = false;
369 bool m_nameHasBeenSet = false;
370 bool m_descriptionHasBeenSet = false;
371 bool m_logicalIDHasBeenSet = false;
372 bool m_checksumHasBeenSet = false;
373 bool m_outputS3ConfigurationHasBeenSet = false;
374 bool m_createdAtHasBeenSet = false;
375 bool m_updatedAtHasBeenSet = false;
376 bool m_scopeTagsHasBeenSet = false;
377 bool m_targetAccountHasBeenSet = false;
378 bool m_referencedSegmentsHasBeenSet = false;
379 bool m_requestIdHasBeenSet = false;
380};
381
382} // namespace Model
383} // namespace mgn
384} // 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