AWS SDK for C++

AWS SDK for C++ Version 1.11.904

Loading...
Searching...
No Matches
UpdateNotebookResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/datazone/DataZone_EXPORTS.h>
13#include <aws/datazone/model/CellInformation.h>
14#include <aws/datazone/model/EnvironmentConfig.h>
15#include <aws/datazone/model/GitMetadata.h>
16#include <aws/datazone/model/NotebookError.h>
17#include <aws/datazone/model/NotebookStatus.h>
18#include <aws/datazone/model/NotebookType.h>
19
20#include <utility>
21
22namespace Aws {
23template <typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils {
27namespace Json {
28class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace DataZone {
32namespace Model {
34 public:
35 AWS_DATAZONE_API UpdateNotebookResult() = default;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetOwningProjectId() const { return m_owningProjectId; }
78 template <typename OwningProjectIdT = Aws::String>
79 void SetOwningProjectId(OwningProjectIdT&& value) {
80 m_owningProjectIdHasBeenSet = true;
81 m_owningProjectId = std::forward<OwningProjectIdT>(value);
82 }
83 template <typename OwningProjectIdT = Aws::String>
84 UpdateNotebookResult& WithOwningProjectId(OwningProjectIdT&& value) {
85 SetOwningProjectId(std::forward<OwningProjectIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDomainId() const { return m_domainId; }
95 template <typename DomainIdT = Aws::String>
96 void SetDomainId(DomainIdT&& value) {
97 m_domainIdHasBeenSet = true;
98 m_domainId = std::forward<DomainIdT>(value);
99 }
100 template <typename DomainIdT = Aws::String>
101 UpdateNotebookResult& WithDomainId(DomainIdT&& value) {
102 SetDomainId(std::forward<DomainIdT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Vector<CellInformation>& GetCellOrder() const { return m_cellOrder; }
112 template <typename CellOrderT = Aws::Vector<CellInformation>>
113 void SetCellOrder(CellOrderT&& value) {
114 m_cellOrderHasBeenSet = true;
115 m_cellOrder = std::forward<CellOrderT>(value);
116 }
117 template <typename CellOrderT = Aws::Vector<CellInformation>>
118 UpdateNotebookResult& WithCellOrder(CellOrderT&& value) {
119 SetCellOrder(std::forward<CellOrderT>(value));
120 return *this;
121 }
122 template <typename CellOrderT = CellInformation>
123 UpdateNotebookResult& AddCellOrder(CellOrderT&& value) {
124 m_cellOrderHasBeenSet = true;
125 m_cellOrder.emplace_back(std::forward<CellOrderT>(value));
126 return *this;
127 }
129
131
134 inline NotebookStatus GetStatus() const { return m_status; }
135 inline void SetStatus(NotebookStatus value) {
136 m_statusHasBeenSet = true;
137 m_status = value;
138 }
140 SetStatus(value);
141 return *this;
142 }
144
146
149 inline NotebookType GetType() const { return m_type; }
150 inline void SetType(NotebookType value) {
151 m_typeHasBeenSet = true;
152 m_type = value;
153 }
155 SetType(value);
156 return *this;
157 }
159
161
164 inline const Aws::String& GetDescription() const { return m_description; }
165 template <typename DescriptionT = Aws::String>
166 void SetDescription(DescriptionT&& value) {
167 m_descriptionHasBeenSet = true;
168 m_description = std::forward<DescriptionT>(value);
169 }
170 template <typename DescriptionT = Aws::String>
171 UpdateNotebookResult& WithDescription(DescriptionT&& value) {
172 SetDescription(std::forward<DescriptionT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
182 template <typename CreatedAtT = Aws::Utils::DateTime>
183 void SetCreatedAt(CreatedAtT&& value) {
184 m_createdAtHasBeenSet = true;
185 m_createdAt = std::forward<CreatedAtT>(value);
186 }
187 template <typename CreatedAtT = Aws::Utils::DateTime>
188 UpdateNotebookResult& WithCreatedAt(CreatedAtT&& value) {
189 SetCreatedAt(std::forward<CreatedAtT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
199 template <typename CreatedByT = Aws::String>
200 void SetCreatedBy(CreatedByT&& value) {
201 m_createdByHasBeenSet = true;
202 m_createdBy = std::forward<CreatedByT>(value);
203 }
204 template <typename CreatedByT = Aws::String>
205 UpdateNotebookResult& WithCreatedBy(CreatedByT&& value) {
206 SetCreatedBy(std::forward<CreatedByT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
216 template <typename UpdatedAtT = Aws::Utils::DateTime>
217 void SetUpdatedAt(UpdatedAtT&& value) {
218 m_updatedAtHasBeenSet = true;
219 m_updatedAt = std::forward<UpdatedAtT>(value);
220 }
221 template <typename UpdatedAtT = Aws::Utils::DateTime>
222 UpdateNotebookResult& WithUpdatedAt(UpdatedAtT&& value) {
223 SetUpdatedAt(std::forward<UpdatedAtT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
233 template <typename UpdatedByT = Aws::String>
234 void SetUpdatedBy(UpdatedByT&& value) {
235 m_updatedByHasBeenSet = true;
236 m_updatedBy = std::forward<UpdatedByT>(value);
237 }
238 template <typename UpdatedByT = Aws::String>
239 UpdateNotebookResult& WithUpdatedBy(UpdatedByT&& value) {
240 SetUpdatedBy(std::forward<UpdatedByT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::String& GetLockedBy() const { return m_lockedBy; }
250 template <typename LockedByT = Aws::String>
251 void SetLockedBy(LockedByT&& value) {
252 m_lockedByHasBeenSet = true;
253 m_lockedBy = std::forward<LockedByT>(value);
254 }
255 template <typename LockedByT = Aws::String>
256 UpdateNotebookResult& WithLockedBy(LockedByT&& value) {
257 SetLockedBy(std::forward<LockedByT>(value));
258 return *this;
259 }
261
263
266 inline const Aws::Utils::DateTime& GetLockedAt() const { return m_lockedAt; }
267 template <typename LockedAtT = Aws::Utils::DateTime>
268 void SetLockedAt(LockedAtT&& value) {
269 m_lockedAtHasBeenSet = true;
270 m_lockedAt = std::forward<LockedAtT>(value);
271 }
272 template <typename LockedAtT = Aws::Utils::DateTime>
273 UpdateNotebookResult& WithLockedAt(LockedAtT&& value) {
274 SetLockedAt(std::forward<LockedAtT>(value));
275 return *this;
276 }
278
280
283 inline const Aws::Utils::DateTime& GetLockExpiresAt() const { return m_lockExpiresAt; }
284 template <typename LockExpiresAtT = Aws::Utils::DateTime>
285 void SetLockExpiresAt(LockExpiresAtT&& value) {
286 m_lockExpiresAtHasBeenSet = true;
287 m_lockExpiresAt = std::forward<LockExpiresAtT>(value);
288 }
289 template <typename LockExpiresAtT = Aws::Utils::DateTime>
290 UpdateNotebookResult& WithLockExpiresAt(LockExpiresAtT&& value) {
291 SetLockExpiresAt(std::forward<LockExpiresAtT>(value));
292 return *this;
293 }
295
297
300 inline const Aws::String& GetComputeId() const { return m_computeId; }
301 template <typename ComputeIdT = Aws::String>
302 void SetComputeId(ComputeIdT&& value) {
303 m_computeIdHasBeenSet = true;
304 m_computeId = std::forward<ComputeIdT>(value);
305 }
306 template <typename ComputeIdT = Aws::String>
307 UpdateNotebookResult& WithComputeId(ComputeIdT&& value) {
308 SetComputeId(std::forward<ComputeIdT>(value));
309 return *this;
310 }
312
314
317 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
318 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
319 void SetMetadata(MetadataT&& value) {
320 m_metadataHasBeenSet = true;
321 m_metadata = std::forward<MetadataT>(value);
322 }
323 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
324 UpdateNotebookResult& WithMetadata(MetadataT&& value) {
325 SetMetadata(std::forward<MetadataT>(value));
326 return *this;
327 }
328 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
329 UpdateNotebookResult& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
330 m_metadataHasBeenSet = true;
331 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
332 return *this;
333 }
335
337
340 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
341 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
342 void SetParameters(ParametersT&& value) {
343 m_parametersHasBeenSet = true;
344 m_parameters = std::forward<ParametersT>(value);
345 }
346 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
347 UpdateNotebookResult& WithParameters(ParametersT&& value) {
348 SetParameters(std::forward<ParametersT>(value));
349 return *this;
350 }
351 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
352 UpdateNotebookResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
353 m_parametersHasBeenSet = true;
354 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
355 return *this;
356 }
358
360
363 inline const EnvironmentConfig& GetEnvironmentConfiguration() const { return m_environmentConfiguration; }
364 template <typename EnvironmentConfigurationT = EnvironmentConfig>
365 void SetEnvironmentConfiguration(EnvironmentConfigurationT&& value) {
366 m_environmentConfigurationHasBeenSet = true;
367 m_environmentConfiguration = std::forward<EnvironmentConfigurationT>(value);
368 }
369 template <typename EnvironmentConfigurationT = EnvironmentConfig>
370 UpdateNotebookResult& WithEnvironmentConfiguration(EnvironmentConfigurationT&& value) {
371 SetEnvironmentConfiguration(std::forward<EnvironmentConfigurationT>(value));
372 return *this;
373 }
375
377
380 inline const NotebookError& GetError() const { return m_error; }
381 template <typename ErrorT = NotebookError>
382 void SetError(ErrorT&& value) {
383 m_errorHasBeenSet = true;
384 m_error = std::forward<ErrorT>(value);
385 }
386 template <typename ErrorT = NotebookError>
388 SetError(std::forward<ErrorT>(value));
389 return *this;
390 }
392
394
397 inline const GitMetadata& GetGitMetadata() const { return m_gitMetadata; }
398 template <typename GitMetadataT = GitMetadata>
399 void SetGitMetadata(GitMetadataT&& value) {
400 m_gitMetadataHasBeenSet = true;
401 m_gitMetadata = std::forward<GitMetadataT>(value);
402 }
403 template <typename GitMetadataT = GitMetadata>
404 UpdateNotebookResult& WithGitMetadata(GitMetadataT&& value) {
405 SetGitMetadata(std::forward<GitMetadataT>(value));
406 return *this;
407 }
409
411
412 inline const Aws::String& GetRequestId() const { return m_requestId; }
413 template <typename RequestIdT = Aws::String>
414 void SetRequestId(RequestIdT&& value) {
415 m_requestIdHasBeenSet = true;
416 m_requestId = std::forward<RequestIdT>(value);
417 }
418 template <typename RequestIdT = Aws::String>
419 UpdateNotebookResult& WithRequestId(RequestIdT&& value) {
420 SetRequestId(std::forward<RequestIdT>(value));
421 return *this;
422 }
424 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
425
426 private:
427 Aws::String m_id;
428
429 Aws::String m_name;
430
431 Aws::String m_owningProjectId;
432
433 Aws::String m_domainId;
434
436
438
440
441 Aws::String m_description;
442
443 Aws::Utils::DateTime m_createdAt{};
444
445 Aws::String m_createdBy;
446
447 Aws::Utils::DateTime m_updatedAt{};
448
449 Aws::String m_updatedBy;
450
451 Aws::String m_lockedBy;
452
453 Aws::Utils::DateTime m_lockedAt{};
454
455 Aws::Utils::DateTime m_lockExpiresAt{};
456
457 Aws::String m_computeId;
458
460
462
463 EnvironmentConfig m_environmentConfiguration;
464
465 NotebookError m_error;
466
467 GitMetadata m_gitMetadata;
468
469 Aws::String m_requestId;
470 Aws::Http::HttpResponseCode m_HttpResponseCode;
471 bool m_idHasBeenSet = false;
472 bool m_nameHasBeenSet = false;
473 bool m_owningProjectIdHasBeenSet = false;
474 bool m_domainIdHasBeenSet = false;
475 bool m_cellOrderHasBeenSet = false;
476 bool m_statusHasBeenSet = false;
477 bool m_typeHasBeenSet = false;
478 bool m_descriptionHasBeenSet = false;
479 bool m_createdAtHasBeenSet = false;
480 bool m_createdByHasBeenSet = false;
481 bool m_updatedAtHasBeenSet = false;
482 bool m_updatedByHasBeenSet = false;
483 bool m_lockedByHasBeenSet = false;
484 bool m_lockedAtHasBeenSet = false;
485 bool m_lockExpiresAtHasBeenSet = false;
486 bool m_computeIdHasBeenSet = false;
487 bool m_metadataHasBeenSet = false;
488 bool m_parametersHasBeenSet = false;
489 bool m_environmentConfigurationHasBeenSet = false;
490 bool m_errorHasBeenSet = false;
491 bool m_gitMetadataHasBeenSet = false;
492 bool m_requestIdHasBeenSet = false;
493};
494
495} // namespace Model
496} // namespace DataZone
497} // namespace Aws
UpdateNotebookResult & WithStatus(NotebookStatus value)
UpdateNotebookResult & WithMetadata(MetadataT &&value)
UpdateNotebookResult & WithUpdatedBy(UpdatedByT &&value)
UpdateNotebookResult & WithId(IdT &&value)
UpdateNotebookResult & WithOwningProjectId(OwningProjectIdT &&value)
UpdateNotebookResult & WithCreatedAt(CreatedAtT &&value)
UpdateNotebookResult & WithName(NameT &&value)
UpdateNotebookResult & WithLockedBy(LockedByT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_DATAZONE_API UpdateNotebookResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateNotebookResult & WithLockedAt(LockedAtT &&value)
UpdateNotebookResult & WithLockExpiresAt(LockExpiresAtT &&value)
UpdateNotebookResult & WithType(NotebookType value)
AWS_DATAZONE_API UpdateNotebookResult()=default
const EnvironmentConfig & GetEnvironmentConfiguration() const
UpdateNotebookResult & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
UpdateNotebookResult & WithComputeId(ComputeIdT &&value)
UpdateNotebookResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_DATAZONE_API UpdateNotebookResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
UpdateNotebookResult & WithError(ErrorT &&value)
void SetEnvironmentConfiguration(EnvironmentConfigurationT &&value)
UpdateNotebookResult & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
UpdateNotebookResult & AddCellOrder(CellOrderT &&value)
UpdateNotebookResult & WithParameters(ParametersT &&value)
UpdateNotebookResult & WithDomainId(DomainIdT &&value)
const Aws::Utils::DateTime & GetLockedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() const
UpdateNotebookResult & WithCellOrder(CellOrderT &&value)
UpdateNotebookResult & WithGitMetadata(GitMetadataT &&value)
UpdateNotebookResult & WithCreatedBy(CreatedByT &&value)
UpdateNotebookResult & WithRequestId(RequestIdT &&value)
UpdateNotebookResult & WithEnvironmentConfiguration(EnvironmentConfigurationT &&value)
UpdateNotebookResult & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetLockExpiresAt() const
const Aws::Vector< CellInformation > & GetCellOrder() const
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
void SetOwningProjectId(OwningProjectIdT &&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