AWS SDK for C++

AWS SDK for C++ Version 1.11.871

Loading...
Searching...
No Matches
CreateNotebookResult.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
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace DataZone {
31namespace Model {
33 public:
34 AWS_DATAZONE_API CreateNotebookResult() = default;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetOwningProjectId() const { return m_owningProjectId; }
77 template <typename OwningProjectIdT = Aws::String>
78 void SetOwningProjectId(OwningProjectIdT&& value) {
79 m_owningProjectIdHasBeenSet = true;
80 m_owningProjectId = std::forward<OwningProjectIdT>(value);
81 }
82 template <typename OwningProjectIdT = Aws::String>
83 CreateNotebookResult& WithOwningProjectId(OwningProjectIdT&& value) {
84 SetOwningProjectId(std::forward<OwningProjectIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDomainId() const { return m_domainId; }
94 template <typename DomainIdT = Aws::String>
95 void SetDomainId(DomainIdT&& value) {
96 m_domainIdHasBeenSet = true;
97 m_domainId = std::forward<DomainIdT>(value);
98 }
99 template <typename DomainIdT = Aws::String>
100 CreateNotebookResult& WithDomainId(DomainIdT&& value) {
101 SetDomainId(std::forward<DomainIdT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Vector<CellInformation>& GetCellOrder() const { return m_cellOrder; }
111 template <typename CellOrderT = Aws::Vector<CellInformation>>
112 void SetCellOrder(CellOrderT&& value) {
113 m_cellOrderHasBeenSet = true;
114 m_cellOrder = std::forward<CellOrderT>(value);
115 }
116 template <typename CellOrderT = Aws::Vector<CellInformation>>
117 CreateNotebookResult& WithCellOrder(CellOrderT&& value) {
118 SetCellOrder(std::forward<CellOrderT>(value));
119 return *this;
120 }
121 template <typename CellOrderT = CellInformation>
122 CreateNotebookResult& AddCellOrder(CellOrderT&& value) {
123 m_cellOrderHasBeenSet = true;
124 m_cellOrder.emplace_back(std::forward<CellOrderT>(value));
125 return *this;
126 }
128
130
133 inline NotebookStatus GetStatus() const { return m_status; }
134 inline void SetStatus(NotebookStatus value) {
135 m_statusHasBeenSet = true;
136 m_status = value;
137 }
139 SetStatus(value);
140 return *this;
141 }
143
145
148 inline const Aws::String& GetDescription() const { return m_description; }
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>
155 CreateNotebookResult& WithDescription(DescriptionT&& value) {
156 SetDescription(std::forward<DescriptionT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
166 template <typename CreatedAtT = Aws::Utils::DateTime>
167 void SetCreatedAt(CreatedAtT&& value) {
168 m_createdAtHasBeenSet = true;
169 m_createdAt = std::forward<CreatedAtT>(value);
170 }
171 template <typename CreatedAtT = Aws::Utils::DateTime>
172 CreateNotebookResult& WithCreatedAt(CreatedAtT&& value) {
173 SetCreatedAt(std::forward<CreatedAtT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
183 template <typename CreatedByT = Aws::String>
184 void SetCreatedBy(CreatedByT&& value) {
185 m_createdByHasBeenSet = true;
186 m_createdBy = std::forward<CreatedByT>(value);
187 }
188 template <typename CreatedByT = Aws::String>
189 CreateNotebookResult& WithCreatedBy(CreatedByT&& value) {
190 SetCreatedBy(std::forward<CreatedByT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
200 template <typename UpdatedAtT = Aws::Utils::DateTime>
201 void SetUpdatedAt(UpdatedAtT&& value) {
202 m_updatedAtHasBeenSet = true;
203 m_updatedAt = std::forward<UpdatedAtT>(value);
204 }
205 template <typename UpdatedAtT = Aws::Utils::DateTime>
206 CreateNotebookResult& WithUpdatedAt(UpdatedAtT&& value) {
207 SetUpdatedAt(std::forward<UpdatedAtT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
217 template <typename UpdatedByT = Aws::String>
218 void SetUpdatedBy(UpdatedByT&& value) {
219 m_updatedByHasBeenSet = true;
220 m_updatedBy = std::forward<UpdatedByT>(value);
221 }
222 template <typename UpdatedByT = Aws::String>
223 CreateNotebookResult& WithUpdatedBy(UpdatedByT&& value) {
224 SetUpdatedBy(std::forward<UpdatedByT>(value));
225 return *this;
226 }
228
230
233 inline const Aws::String& GetLockedBy() const { return m_lockedBy; }
234 template <typename LockedByT = Aws::String>
235 void SetLockedBy(LockedByT&& value) {
236 m_lockedByHasBeenSet = true;
237 m_lockedBy = std::forward<LockedByT>(value);
238 }
239 template <typename LockedByT = Aws::String>
240 CreateNotebookResult& WithLockedBy(LockedByT&& value) {
241 SetLockedBy(std::forward<LockedByT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::Utils::DateTime& GetLockedAt() const { return m_lockedAt; }
251 template <typename LockedAtT = Aws::Utils::DateTime>
252 void SetLockedAt(LockedAtT&& value) {
253 m_lockedAtHasBeenSet = true;
254 m_lockedAt = std::forward<LockedAtT>(value);
255 }
256 template <typename LockedAtT = Aws::Utils::DateTime>
257 CreateNotebookResult& WithLockedAt(LockedAtT&& value) {
258 SetLockedAt(std::forward<LockedAtT>(value));
259 return *this;
260 }
262
264
267 inline const Aws::Utils::DateTime& GetLockExpiresAt() const { return m_lockExpiresAt; }
268 template <typename LockExpiresAtT = Aws::Utils::DateTime>
269 void SetLockExpiresAt(LockExpiresAtT&& value) {
270 m_lockExpiresAtHasBeenSet = true;
271 m_lockExpiresAt = std::forward<LockExpiresAtT>(value);
272 }
273 template <typename LockExpiresAtT = Aws::Utils::DateTime>
274 CreateNotebookResult& WithLockExpiresAt(LockExpiresAtT&& value) {
275 SetLockExpiresAt(std::forward<LockExpiresAtT>(value));
276 return *this;
277 }
279
281
284 inline const Aws::String& GetComputeId() const { return m_computeId; }
285 template <typename ComputeIdT = Aws::String>
286 void SetComputeId(ComputeIdT&& value) {
287 m_computeIdHasBeenSet = true;
288 m_computeId = std::forward<ComputeIdT>(value);
289 }
290 template <typename ComputeIdT = Aws::String>
291 CreateNotebookResult& WithComputeId(ComputeIdT&& value) {
292 SetComputeId(std::forward<ComputeIdT>(value));
293 return *this;
294 }
296
298
301 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
302 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
303 void SetMetadata(MetadataT&& value) {
304 m_metadataHasBeenSet = true;
305 m_metadata = std::forward<MetadataT>(value);
306 }
307 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
308 CreateNotebookResult& WithMetadata(MetadataT&& value) {
309 SetMetadata(std::forward<MetadataT>(value));
310 return *this;
311 }
312 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
313 CreateNotebookResult& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
314 m_metadataHasBeenSet = true;
315 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
316 return *this;
317 }
319
321
324 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
325 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
326 void SetParameters(ParametersT&& value) {
327 m_parametersHasBeenSet = true;
328 m_parameters = std::forward<ParametersT>(value);
329 }
330 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
331 CreateNotebookResult& WithParameters(ParametersT&& value) {
332 SetParameters(std::forward<ParametersT>(value));
333 return *this;
334 }
335 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
336 CreateNotebookResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
337 m_parametersHasBeenSet = true;
338 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
339 return *this;
340 }
342
344
347 inline const EnvironmentConfig& GetEnvironmentConfiguration() const { return m_environmentConfiguration; }
348 template <typename EnvironmentConfigurationT = EnvironmentConfig>
349 void SetEnvironmentConfiguration(EnvironmentConfigurationT&& value) {
350 m_environmentConfigurationHasBeenSet = true;
351 m_environmentConfiguration = std::forward<EnvironmentConfigurationT>(value);
352 }
353 template <typename EnvironmentConfigurationT = EnvironmentConfig>
354 CreateNotebookResult& WithEnvironmentConfiguration(EnvironmentConfigurationT&& value) {
355 SetEnvironmentConfiguration(std::forward<EnvironmentConfigurationT>(value));
356 return *this;
357 }
359
361
364 inline const NotebookError& GetError() const { return m_error; }
365 template <typename ErrorT = NotebookError>
366 void SetError(ErrorT&& value) {
367 m_errorHasBeenSet = true;
368 m_error = std::forward<ErrorT>(value);
369 }
370 template <typename ErrorT = NotebookError>
372 SetError(std::forward<ErrorT>(value));
373 return *this;
374 }
376
378
381 inline const GitMetadata& GetGitMetadata() const { return m_gitMetadata; }
382 template <typename GitMetadataT = GitMetadata>
383 void SetGitMetadata(GitMetadataT&& value) {
384 m_gitMetadataHasBeenSet = true;
385 m_gitMetadata = std::forward<GitMetadataT>(value);
386 }
387 template <typename GitMetadataT = GitMetadata>
388 CreateNotebookResult& WithGitMetadata(GitMetadataT&& value) {
389 SetGitMetadata(std::forward<GitMetadataT>(value));
390 return *this;
391 }
393
395
396 inline const Aws::String& GetRequestId() const { return m_requestId; }
397 template <typename RequestIdT = Aws::String>
398 void SetRequestId(RequestIdT&& value) {
399 m_requestIdHasBeenSet = true;
400 m_requestId = std::forward<RequestIdT>(value);
401 }
402 template <typename RequestIdT = Aws::String>
403 CreateNotebookResult& WithRequestId(RequestIdT&& value) {
404 SetRequestId(std::forward<RequestIdT>(value));
405 return *this;
406 }
408 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
409
410 private:
411 Aws::String m_id;
412
413 Aws::String m_name;
414
415 Aws::String m_owningProjectId;
416
417 Aws::String m_domainId;
418
420
422
423 Aws::String m_description;
424
425 Aws::Utils::DateTime m_createdAt{};
426
427 Aws::String m_createdBy;
428
429 Aws::Utils::DateTime m_updatedAt{};
430
431 Aws::String m_updatedBy;
432
433 Aws::String m_lockedBy;
434
435 Aws::Utils::DateTime m_lockedAt{};
436
437 Aws::Utils::DateTime m_lockExpiresAt{};
438
439 Aws::String m_computeId;
440
442
444
445 EnvironmentConfig m_environmentConfiguration;
446
447 NotebookError m_error;
448
449 GitMetadata m_gitMetadata;
450
451 Aws::String m_requestId;
452 Aws::Http::HttpResponseCode m_HttpResponseCode;
453 bool m_idHasBeenSet = false;
454 bool m_nameHasBeenSet = false;
455 bool m_owningProjectIdHasBeenSet = false;
456 bool m_domainIdHasBeenSet = false;
457 bool m_cellOrderHasBeenSet = false;
458 bool m_statusHasBeenSet = false;
459 bool m_descriptionHasBeenSet = false;
460 bool m_createdAtHasBeenSet = false;
461 bool m_createdByHasBeenSet = false;
462 bool m_updatedAtHasBeenSet = false;
463 bool m_updatedByHasBeenSet = false;
464 bool m_lockedByHasBeenSet = false;
465 bool m_lockedAtHasBeenSet = false;
466 bool m_lockExpiresAtHasBeenSet = false;
467 bool m_computeIdHasBeenSet = false;
468 bool m_metadataHasBeenSet = false;
469 bool m_parametersHasBeenSet = false;
470 bool m_environmentConfigurationHasBeenSet = false;
471 bool m_errorHasBeenSet = false;
472 bool m_gitMetadataHasBeenSet = false;
473 bool m_requestIdHasBeenSet = false;
474};
475
476} // namespace Model
477} // namespace DataZone
478} // namespace Aws
CreateNotebookResult & WithName(NameT &&value)
CreateNotebookResult & WithCellOrder(CellOrderT &&value)
CreateNotebookResult & WithOwningProjectId(OwningProjectIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< CellInformation > & GetCellOrder() const
CreateNotebookResult & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
CreateNotebookResult & AddCellOrder(CellOrderT &&value)
AWS_DATAZONE_API CreateNotebookResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateNotebookResult & WithLockedAt(LockedAtT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
CreateNotebookResult & WithEnvironmentConfiguration(EnvironmentConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
CreateNotebookResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_DATAZONE_API CreateNotebookResult()=default
const Aws::Utils::DateTime & GetUpdatedAt() const
CreateNotebookResult & WithGitMetadata(GitMetadataT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
CreateNotebookResult & WithUpdatedBy(UpdatedByT &&value)
CreateNotebookResult & WithCreatedBy(CreatedByT &&value)
void SetOwningProjectId(OwningProjectIdT &&value)
const Aws::Utils::DateTime & GetLockExpiresAt() const
CreateNotebookResult & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
CreateNotebookResult & WithDescription(DescriptionT &&value)
CreateNotebookResult & WithError(ErrorT &&value)
AWS_DATAZONE_API CreateNotebookResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateNotebookResult & WithDomainId(DomainIdT &&value)
CreateNotebookResult & WithStatus(NotebookStatus value)
CreateNotebookResult & WithLockExpiresAt(LockExpiresAtT &&value)
CreateNotebookResult & WithLockedBy(LockedByT &&value)
CreateNotebookResult & WithParameters(ParametersT &&value)
void SetEnvironmentConfiguration(EnvironmentConfigurationT &&value)
CreateNotebookResult & WithMetadata(MetadataT &&value)
const Aws::Utils::DateTime & GetLockedAt() const
CreateNotebookResult & WithRequestId(RequestIdT &&value)
const EnvironmentConfig & GetEnvironmentConfiguration() const
CreateNotebookResult & WithCreatedAt(CreatedAtT &&value)
CreateNotebookResult & WithId(IdT &&value)
CreateNotebookResult & WithComputeId(ComputeIdT &&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