AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
JobMetadata.h
1
6#pragma once
7#include <aws/snowball/Snowball_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/snowball/model/JobState.h>
10#include <aws/snowball/model/JobType.h>
11#include <aws/snowball/model/SnowballType.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/snowball/model/JobResource.h>
14#include <aws/snowball/model/ShippingDetails.h>
15#include <aws/snowball/model/SnowballCapacity.h>
16#include <aws/snowball/model/Notification.h>
17#include <aws/snowball/model/DataTransfer.h>
18#include <aws/snowball/model/JobLogs.h>
19#include <aws/snowball/model/TaxDocuments.h>
20#include <aws/snowball/model/DeviceConfiguration.h>
21#include <aws/snowball/model/RemoteManagement.h>
22#include <aws/snowball/model/OnDeviceServiceConfiguration.h>
23#include <aws/snowball/model/ImpactLevel.h>
24#include <aws/snowball/model/PickupDetails.h>
25#include <utility>
26
27namespace Aws
28{
29namespace Utils
30{
31namespace Json
32{
33 class JsonValue;
34 class JsonView;
35} // namespace Json
36} // namespace Utils
37namespace Snowball
38{
39namespace Model
40{
41
51 {
52 public:
53 AWS_SNOWBALL_API JobMetadata() = default;
54 AWS_SNOWBALL_API JobMetadata(Aws::Utils::Json::JsonView jsonValue);
55 AWS_SNOWBALL_API JobMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
56 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
57
58
60
64 inline const Aws::String& GetJobId() const { return m_jobId; }
65 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
66 template<typename JobIdT = Aws::String>
67 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
68 template<typename JobIdT = Aws::String>
69 JobMetadata& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
71
73
76 inline JobState GetJobState() const { return m_jobState; }
77 inline bool JobStateHasBeenSet() const { return m_jobStateHasBeenSet; }
78 inline void SetJobState(JobState value) { m_jobStateHasBeenSet = true; m_jobState = value; }
79 inline JobMetadata& WithJobState(JobState value) { SetJobState(value); return *this;}
81
83
86 inline JobType GetJobType() const { return m_jobType; }
87 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
88 inline void SetJobType(JobType value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
89 inline JobMetadata& WithJobType(JobType value) { SetJobType(value); return *this;}
91
93
96 inline SnowballType GetSnowballType() const { return m_snowballType; }
97 inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; }
98 inline void SetSnowballType(SnowballType value) { m_snowballTypeHasBeenSet = true; m_snowballType = value; }
99 inline JobMetadata& WithSnowballType(SnowballType value) { SetSnowballType(value); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
107 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
108 template<typename CreationDateT = Aws::Utils::DateTime>
109 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
110 template<typename CreationDateT = Aws::Utils::DateTime>
111 JobMetadata& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
113
115
120 inline const JobResource& GetResources() const { return m_resources; }
121 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
122 template<typename ResourcesT = JobResource>
123 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
124 template<typename ResourcesT = JobResource>
125 JobMetadata& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
127
129
132 inline const Aws::String& GetDescription() const { return m_description; }
133 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
134 template<typename DescriptionT = Aws::String>
135 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
136 template<typename DescriptionT = Aws::String>
137 JobMetadata& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
139
141
147 inline const Aws::String& GetKmsKeyARN() const { return m_kmsKeyARN; }
148 inline bool KmsKeyARNHasBeenSet() const { return m_kmsKeyARNHasBeenSet; }
149 template<typename KmsKeyARNT = Aws::String>
150 void SetKmsKeyARN(KmsKeyARNT&& value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN = std::forward<KmsKeyARNT>(value); }
151 template<typename KmsKeyARNT = Aws::String>
152 JobMetadata& WithKmsKeyARN(KmsKeyARNT&& value) { SetKmsKeyARN(std::forward<KmsKeyARNT>(value)); return *this;}
154
156
161 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
162 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
163 template<typename RoleARNT = Aws::String>
164 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
165 template<typename RoleARNT = Aws::String>
166 JobMetadata& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
168
170
173 inline const Aws::String& GetAddressId() const { return m_addressId; }
174 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
175 template<typename AddressIdT = Aws::String>
176 void SetAddressId(AddressIdT&& value) { m_addressIdHasBeenSet = true; m_addressId = std::forward<AddressIdT>(value); }
177 template<typename AddressIdT = Aws::String>
178 JobMetadata& WithAddressId(AddressIdT&& value) { SetAddressId(std::forward<AddressIdT>(value)); return *this;}
180
182
186 inline const ShippingDetails& GetShippingDetails() const { return m_shippingDetails; }
187 inline bool ShippingDetailsHasBeenSet() const { return m_shippingDetailsHasBeenSet; }
188 template<typename ShippingDetailsT = ShippingDetails>
189 void SetShippingDetails(ShippingDetailsT&& value) { m_shippingDetailsHasBeenSet = true; m_shippingDetails = std::forward<ShippingDetailsT>(value); }
190 template<typename ShippingDetailsT = ShippingDetails>
191 JobMetadata& WithShippingDetails(ShippingDetailsT&& value) { SetShippingDetails(std::forward<ShippingDetailsT>(value)); return *this;}
193
195
204 inline SnowballCapacity GetSnowballCapacityPreference() const { return m_snowballCapacityPreference; }
205 inline bool SnowballCapacityPreferenceHasBeenSet() const { return m_snowballCapacityPreferenceHasBeenSet; }
206 inline void SetSnowballCapacityPreference(SnowballCapacity value) { m_snowballCapacityPreferenceHasBeenSet = true; m_snowballCapacityPreference = value; }
209
211
217 inline const Notification& GetNotification() const { return m_notification; }
218 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
219 template<typename NotificationT = Notification>
220 void SetNotification(NotificationT&& value) { m_notificationHasBeenSet = true; m_notification = std::forward<NotificationT>(value); }
221 template<typename NotificationT = Notification>
222 JobMetadata& WithNotification(NotificationT&& value) { SetNotification(std::forward<NotificationT>(value)); return *this;}
224
226
232 inline const DataTransfer& GetDataTransferProgress() const { return m_dataTransferProgress; }
233 inline bool DataTransferProgressHasBeenSet() const { return m_dataTransferProgressHasBeenSet; }
234 template<typename DataTransferProgressT = DataTransfer>
235 void SetDataTransferProgress(DataTransferProgressT&& value) { m_dataTransferProgressHasBeenSet = true; m_dataTransferProgress = std::forward<DataTransferProgressT>(value); }
236 template<typename DataTransferProgressT = DataTransfer>
237 JobMetadata& WithDataTransferProgress(DataTransferProgressT&& value) { SetDataTransferProgress(std::forward<DataTransferProgressT>(value)); return *this;}
239
241
247 inline const JobLogs& GetJobLogInfo() const { return m_jobLogInfo; }
248 inline bool JobLogInfoHasBeenSet() const { return m_jobLogInfoHasBeenSet; }
249 template<typename JobLogInfoT = JobLogs>
250 void SetJobLogInfo(JobLogInfoT&& value) { m_jobLogInfoHasBeenSet = true; m_jobLogInfo = std::forward<JobLogInfoT>(value); }
251 template<typename JobLogInfoT = JobLogs>
252 JobMetadata& WithJobLogInfo(JobLogInfoT&& value) { SetJobLogInfo(std::forward<JobLogInfoT>(value)); return *this;}
254
256
260 inline const Aws::String& GetClusterId() const { return m_clusterId; }
261 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
262 template<typename ClusterIdT = Aws::String>
263 void SetClusterId(ClusterIdT&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::forward<ClusterIdT>(value); }
264 template<typename ClusterIdT = Aws::String>
265 JobMetadata& WithClusterId(ClusterIdT&& value) { SetClusterId(std::forward<ClusterIdT>(value)); return *this;}
267
269
273 inline const Aws::String& GetForwardingAddressId() const { return m_forwardingAddressId; }
274 inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
275 template<typename ForwardingAddressIdT = Aws::String>
276 void SetForwardingAddressId(ForwardingAddressIdT&& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = std::forward<ForwardingAddressIdT>(value); }
277 template<typename ForwardingAddressIdT = Aws::String>
278 JobMetadata& WithForwardingAddressId(ForwardingAddressIdT&& value) { SetForwardingAddressId(std::forward<ForwardingAddressIdT>(value)); return *this;}
280
282
286 inline const TaxDocuments& GetTaxDocuments() const { return m_taxDocuments; }
287 inline bool TaxDocumentsHasBeenSet() const { return m_taxDocumentsHasBeenSet; }
288 template<typename TaxDocumentsT = TaxDocuments>
289 void SetTaxDocuments(TaxDocumentsT&& value) { m_taxDocumentsHasBeenSet = true; m_taxDocuments = std::forward<TaxDocumentsT>(value); }
290 template<typename TaxDocumentsT = TaxDocuments>
291 JobMetadata& WithTaxDocuments(TaxDocumentsT&& value) { SetTaxDocuments(std::forward<TaxDocumentsT>(value)); return *this;}
293
295
296 inline const DeviceConfiguration& GetDeviceConfiguration() const { return m_deviceConfiguration; }
297 inline bool DeviceConfigurationHasBeenSet() const { return m_deviceConfigurationHasBeenSet; }
298 template<typename DeviceConfigurationT = DeviceConfiguration>
299 void SetDeviceConfiguration(DeviceConfigurationT&& value) { m_deviceConfigurationHasBeenSet = true; m_deviceConfiguration = std::forward<DeviceConfigurationT>(value); }
300 template<typename DeviceConfigurationT = DeviceConfiguration>
301 JobMetadata& WithDeviceConfiguration(DeviceConfigurationT&& value) { SetDeviceConfiguration(std::forward<DeviceConfigurationT>(value)); return *this;}
303
305
312 inline RemoteManagement GetRemoteManagement() const { return m_remoteManagement; }
313 inline bool RemoteManagementHasBeenSet() const { return m_remoteManagementHasBeenSet; }
314 inline void SetRemoteManagement(RemoteManagement value) { m_remoteManagementHasBeenSet = true; m_remoteManagement = value; }
317
319
322 inline const Aws::String& GetLongTermPricingId() const { return m_longTermPricingId; }
323 inline bool LongTermPricingIdHasBeenSet() const { return m_longTermPricingIdHasBeenSet; }
324 template<typename LongTermPricingIdT = Aws::String>
325 void SetLongTermPricingId(LongTermPricingIdT&& value) { m_longTermPricingIdHasBeenSet = true; m_longTermPricingId = std::forward<LongTermPricingIdT>(value); }
326 template<typename LongTermPricingIdT = Aws::String>
327 JobMetadata& WithLongTermPricingId(LongTermPricingIdT&& value) { SetLongTermPricingId(std::forward<LongTermPricingIdT>(value)); return *this;}
329
331
335 inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const { return m_onDeviceServiceConfiguration; }
336 inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; }
337 template<typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
338 void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = std::forward<OnDeviceServiceConfigurationT>(value); }
339 template<typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
340 JobMetadata& WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) { SetOnDeviceServiceConfiguration(std::forward<OnDeviceServiceConfigurationT>(value)); return *this;}
342
344
348 inline ImpactLevel GetImpactLevel() const { return m_impactLevel; }
349 inline bool ImpactLevelHasBeenSet() const { return m_impactLevelHasBeenSet; }
350 inline void SetImpactLevel(ImpactLevel value) { m_impactLevelHasBeenSet = true; m_impactLevel = value; }
351 inline JobMetadata& WithImpactLevel(ImpactLevel value) { SetImpactLevel(value); return *this;}
353
355
358 inline const PickupDetails& GetPickupDetails() const { return m_pickupDetails; }
359 inline bool PickupDetailsHasBeenSet() const { return m_pickupDetailsHasBeenSet; }
360 template<typename PickupDetailsT = PickupDetails>
361 void SetPickupDetails(PickupDetailsT&& value) { m_pickupDetailsHasBeenSet = true; m_pickupDetails = std::forward<PickupDetailsT>(value); }
362 template<typename PickupDetailsT = PickupDetails>
363 JobMetadata& WithPickupDetails(PickupDetailsT&& value) { SetPickupDetails(std::forward<PickupDetailsT>(value)); return *this;}
365
367
370 inline const Aws::String& GetSnowballId() const { return m_snowballId; }
371 inline bool SnowballIdHasBeenSet() const { return m_snowballIdHasBeenSet; }
372 template<typename SnowballIdT = Aws::String>
373 void SetSnowballId(SnowballIdT&& value) { m_snowballIdHasBeenSet = true; m_snowballId = std::forward<SnowballIdT>(value); }
374 template<typename SnowballIdT = Aws::String>
375 JobMetadata& WithSnowballId(SnowballIdT&& value) { SetSnowballId(std::forward<SnowballIdT>(value)); return *this;}
377 private:
378
379 Aws::String m_jobId;
380 bool m_jobIdHasBeenSet = false;
381
382 JobState m_jobState{JobState::NOT_SET};
383 bool m_jobStateHasBeenSet = false;
384
385 JobType m_jobType{JobType::NOT_SET};
386 bool m_jobTypeHasBeenSet = false;
387
388 SnowballType m_snowballType{SnowballType::NOT_SET};
389 bool m_snowballTypeHasBeenSet = false;
390
391 Aws::Utils::DateTime m_creationDate{};
392 bool m_creationDateHasBeenSet = false;
393
394 JobResource m_resources;
395 bool m_resourcesHasBeenSet = false;
396
397 Aws::String m_description;
398 bool m_descriptionHasBeenSet = false;
399
400 Aws::String m_kmsKeyARN;
401 bool m_kmsKeyARNHasBeenSet = false;
402
403 Aws::String m_roleARN;
404 bool m_roleARNHasBeenSet = false;
405
406 Aws::String m_addressId;
407 bool m_addressIdHasBeenSet = false;
408
409 ShippingDetails m_shippingDetails;
410 bool m_shippingDetailsHasBeenSet = false;
411
412 SnowballCapacity m_snowballCapacityPreference{SnowballCapacity::NOT_SET};
413 bool m_snowballCapacityPreferenceHasBeenSet = false;
414
415 Notification m_notification;
416 bool m_notificationHasBeenSet = false;
417
418 DataTransfer m_dataTransferProgress;
419 bool m_dataTransferProgressHasBeenSet = false;
420
421 JobLogs m_jobLogInfo;
422 bool m_jobLogInfoHasBeenSet = false;
423
424 Aws::String m_clusterId;
425 bool m_clusterIdHasBeenSet = false;
426
427 Aws::String m_forwardingAddressId;
428 bool m_forwardingAddressIdHasBeenSet = false;
429
430 TaxDocuments m_taxDocuments;
431 bool m_taxDocumentsHasBeenSet = false;
432
433 DeviceConfiguration m_deviceConfiguration;
434 bool m_deviceConfigurationHasBeenSet = false;
435
437 bool m_remoteManagementHasBeenSet = false;
438
439 Aws::String m_longTermPricingId;
440 bool m_longTermPricingIdHasBeenSet = false;
441
442 OnDeviceServiceConfiguration m_onDeviceServiceConfiguration;
443 bool m_onDeviceServiceConfigurationHasBeenSet = false;
444
445 ImpactLevel m_impactLevel{ImpactLevel::NOT_SET};
446 bool m_impactLevelHasBeenSet = false;
447
448 PickupDetails m_pickupDetails;
449 bool m_pickupDetailsHasBeenSet = false;
450
451 Aws::String m_snowballId;
452 bool m_snowballIdHasBeenSet = false;
453 };
454
455} // namespace Model
456} // namespace Snowball
457} // namespace Aws
const TaxDocuments & GetTaxDocuments() const
const Aws::String & GetSnowballId() const
const JobResource & GetResources() const
void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT &&value)
void SetDataTransferProgress(DataTransferProgressT &&value)
JobMetadata & WithDataTransferProgress(DataTransferProgressT &&value)
void SetSnowballCapacityPreference(SnowballCapacity value)
const DataTransfer & GetDataTransferProgress() const
JobMetadata & WithShippingDetails(ShippingDetailsT &&value)
const Aws::String & GetForwardingAddressId() const
JobMetadata & WithCreationDate(CreationDateT &&value)
JobMetadata & WithImpactLevel(ImpactLevel value)
void SetCreationDate(CreationDateT &&value)
const Aws::String & GetLongTermPricingId() const
void SetRoleARN(RoleARNT &&value)
bool SnowballCapacityPreferenceHasBeenSet() const
JobMetadata & WithJobState(JobState value)
Definition JobMetadata.h:79
JobMetadata & WithSnowballId(SnowballIdT &&value)
JobMetadata & WithRemoteManagement(RemoteManagement value)
void SetImpactLevel(ImpactLevel value)
bool OnDeviceServiceConfigurationHasBeenSet() const
void SetAddressId(AddressIdT &&value)
void SetShippingDetails(ShippingDetailsT &&value)
void SetJobState(JobState value)
Definition JobMetadata.h:78
void SetLongTermPricingId(LongTermPricingIdT &&value)
void SetKmsKeyARN(KmsKeyARNT &&value)
JobMetadata & WithSnowballType(SnowballType value)
Definition JobMetadata.h:99
RemoteManagement GetRemoteManagement() const
JobMetadata & WithClusterId(ClusterIdT &&value)
void SetClusterId(ClusterIdT &&value)
JobMetadata & WithSnowballCapacityPreference(SnowballCapacity value)
JobMetadata & WithForwardingAddressId(ForwardingAddressIdT &&value)
JobMetadata & WithLongTermPricingId(LongTermPricingIdT &&value)
JobMetadata & WithResources(ResourcesT &&value)
const DeviceConfiguration & GetDeviceConfiguration() const
void SetDeviceConfiguration(DeviceConfigurationT &&value)
AWS_SNOWBALL_API JobMetadata()=default
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
const OnDeviceServiceConfiguration & GetOnDeviceServiceConfiguration() const
JobMetadata & WithJobType(JobType value)
Definition JobMetadata.h:89
void SetSnowballId(SnowballIdT &&value)
void SetJobId(JobIdT &&value)
Definition JobMetadata.h:67
void SetPickupDetails(PickupDetailsT &&value)
const Aws::String & GetJobId() const
Definition JobMetadata.h:64
void SetNotification(NotificationT &&value)
JobMetadata & WithJobLogInfo(JobLogInfoT &&value)
void SetJobLogInfo(JobLogInfoT &&value)
JobMetadata & WithTaxDocuments(TaxDocumentsT &&value)
const Aws::String & GetDescription() const
const Notification & GetNotification() const
JobMetadata & WithRoleARN(RoleARNT &&value)
void SetRemoteManagement(RemoteManagement value)
void SetJobType(JobType value)
Definition JobMetadata.h:88
void SetSnowballType(SnowballType value)
Definition JobMetadata.h:98
void SetForwardingAddressId(ForwardingAddressIdT &&value)
JobMetadata & WithKmsKeyARN(KmsKeyARNT &&value)
JobMetadata & WithNotification(NotificationT &&value)
const Aws::String & GetAddressId() const
JobMetadata & WithDescription(DescriptionT &&value)
ImpactLevel GetImpactLevel() const
const Aws::String & GetKmsKeyARN() const
const Aws::String & GetClusterId() const
JobMetadata & WithDeviceConfiguration(DeviceConfigurationT &&value)
void SetTaxDocuments(TaxDocumentsT &&value)
const ShippingDetails & GetShippingDetails() const
const PickupDetails & GetPickupDetails() const
void SetDescription(DescriptionT &&value)
JobMetadata & WithJobId(JobIdT &&value)
Definition JobMetadata.h:69
AWS_SNOWBALL_API JobMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
JobMetadata & WithPickupDetails(PickupDetailsT &&value)
SnowballType GetSnowballType() const
Definition JobMetadata.h:96
SnowballCapacity GetSnowballCapacityPreference() const
void SetResources(ResourcesT &&value)
AWS_SNOWBALL_API JobMetadata(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRoleARN() const
const Aws::Utils::DateTime & GetCreationDate() const
JobMetadata & WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT &&value)
JobMetadata & WithAddressId(AddressIdT &&value)
const JobLogs & GetJobLogInfo() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue