AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ClusterMetadata.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/snowball/Snowball_EXPORTS.h>
10#include <aws/snowball/model/ClusterState.h>
11#include <aws/snowball/model/JobResource.h>
12#include <aws/snowball/model/JobType.h>
13#include <aws/snowball/model/Notification.h>
14#include <aws/snowball/model/OnDeviceServiceConfiguration.h>
15#include <aws/snowball/model/ShippingOption.h>
16#include <aws/snowball/model/SnowballType.h>
17#include <aws/snowball/model/TaxDocuments.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Snowball {
29namespace Model {
30
37 public:
38 AWS_SNOWBALL_API ClusterMetadata() = default;
39 AWS_SNOWBALL_API ClusterMetadata(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetClusterId() const { return m_clusterId; }
48 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
49 template <typename ClusterIdT = Aws::String>
50 void SetClusterId(ClusterIdT&& value) {
51 m_clusterIdHasBeenSet = true;
52 m_clusterId = std::forward<ClusterIdT>(value);
53 }
54 template <typename ClusterIdT = Aws::String>
55 ClusterMetadata& WithClusterId(ClusterIdT&& value) {
56 SetClusterId(std::forward<ClusterIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template <typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) {
69 m_descriptionHasBeenSet = true;
70 m_description = std::forward<DescriptionT>(value);
71 }
72 template <typename DescriptionT = Aws::String>
73 ClusterMetadata& WithDescription(DescriptionT&& value) {
74 SetDescription(std::forward<DescriptionT>(value));
75 return *this;
76 }
78
80
86 inline const Aws::String& GetKmsKeyARN() const { return m_kmsKeyARN; }
87 inline bool KmsKeyARNHasBeenSet() const { return m_kmsKeyARNHasBeenSet; }
88 template <typename KmsKeyARNT = Aws::String>
89 void SetKmsKeyARN(KmsKeyARNT&& value) {
90 m_kmsKeyARNHasBeenSet = true;
91 m_kmsKeyARN = std::forward<KmsKeyARNT>(value);
92 }
93 template <typename KmsKeyARNT = Aws::String>
94 ClusterMetadata& WithKmsKeyARN(KmsKeyARNT&& value) {
95 SetKmsKeyARN(std::forward<KmsKeyARNT>(value));
96 return *this;
97 }
99
101
106 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
107 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
108 template <typename RoleARNT = Aws::String>
109 void SetRoleARN(RoleARNT&& value) {
110 m_roleARNHasBeenSet = true;
111 m_roleARN = std::forward<RoleARNT>(value);
112 }
113 template <typename RoleARNT = Aws::String>
114 ClusterMetadata& WithRoleARN(RoleARNT&& value) {
115 SetRoleARN(std::forward<RoleARNT>(value));
116 return *this;
117 }
119
121
124 inline ClusterState GetClusterState() const { return m_clusterState; }
125 inline bool ClusterStateHasBeenSet() const { return m_clusterStateHasBeenSet; }
126 inline void SetClusterState(ClusterState value) {
127 m_clusterStateHasBeenSet = true;
128 m_clusterState = value;
129 }
131 SetClusterState(value);
132 return *this;
133 }
135
137
141 inline JobType GetJobType() const { return m_jobType; }
142 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
143 inline void SetJobType(JobType value) {
144 m_jobTypeHasBeenSet = true;
145 m_jobType = value;
146 }
148 SetJobType(value);
149 return *this;
150 }
152
154
159 inline SnowballType GetSnowballType() const { return m_snowballType; }
160 inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; }
161 inline void SetSnowballType(SnowballType value) {
162 m_snowballTypeHasBeenSet = true;
163 m_snowballType = value;
164 }
166 SetSnowballType(value);
167 return *this;
168 }
170
172
175 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
176 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
177 template <typename CreationDateT = Aws::Utils::DateTime>
178 void SetCreationDate(CreationDateT&& value) {
179 m_creationDateHasBeenSet = true;
180 m_creationDate = std::forward<CreationDateT>(value);
181 }
182 template <typename CreationDateT = Aws::Utils::DateTime>
183 ClusterMetadata& WithCreationDate(CreationDateT&& value) {
184 SetCreationDate(std::forward<CreationDateT>(value));
185 return *this;
186 }
188
190
194 inline const JobResource& GetResources() const { return m_resources; }
195 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
196 template <typename ResourcesT = JobResource>
197 void SetResources(ResourcesT&& value) {
198 m_resourcesHasBeenSet = true;
199 m_resources = std::forward<ResourcesT>(value);
200 }
201 template <typename ResourcesT = JobResource>
202 ClusterMetadata& WithResources(ResourcesT&& value) {
203 SetResources(std::forward<ResourcesT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::String& GetAddressId() const { return m_addressId; }
213 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
214 template <typename AddressIdT = Aws::String>
215 void SetAddressId(AddressIdT&& value) {
216 m_addressIdHasBeenSet = true;
217 m_addressId = std::forward<AddressIdT>(value);
218 }
219 template <typename AddressIdT = Aws::String>
220 ClusterMetadata& WithAddressId(AddressIdT&& value) {
221 SetAddressId(std::forward<AddressIdT>(value));
222 return *this;
223 }
225
227
240 inline ShippingOption GetShippingOption() const { return m_shippingOption; }
241 inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
243 m_shippingOptionHasBeenSet = true;
244 m_shippingOption = value;
245 }
247 SetShippingOption(value);
248 return *this;
249 }
251
253
257 inline const Notification& GetNotification() const { return m_notification; }
258 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
259 template <typename NotificationT = Notification>
260 void SetNotification(NotificationT&& value) {
261 m_notificationHasBeenSet = true;
262 m_notification = std::forward<NotificationT>(value);
263 }
264 template <typename NotificationT = Notification>
265 ClusterMetadata& WithNotification(NotificationT&& value) {
266 SetNotification(std::forward<NotificationT>(value));
267 return *this;
268 }
270
272
276 inline const Aws::String& GetForwardingAddressId() const { return m_forwardingAddressId; }
277 inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
278 template <typename ForwardingAddressIdT = Aws::String>
279 void SetForwardingAddressId(ForwardingAddressIdT&& value) {
280 m_forwardingAddressIdHasBeenSet = true;
281 m_forwardingAddressId = std::forward<ForwardingAddressIdT>(value);
282 }
283 template <typename ForwardingAddressIdT = Aws::String>
284 ClusterMetadata& WithForwardingAddressId(ForwardingAddressIdT&& value) {
285 SetForwardingAddressId(std::forward<ForwardingAddressIdT>(value));
286 return *this;
287 }
289
291
294 inline const TaxDocuments& GetTaxDocuments() const { return m_taxDocuments; }
295 inline bool TaxDocumentsHasBeenSet() const { return m_taxDocumentsHasBeenSet; }
296 template <typename TaxDocumentsT = TaxDocuments>
297 void SetTaxDocuments(TaxDocumentsT&& value) {
298 m_taxDocumentsHasBeenSet = true;
299 m_taxDocuments = std::forward<TaxDocumentsT>(value);
300 }
301 template <typename TaxDocumentsT = TaxDocuments>
302 ClusterMetadata& WithTaxDocuments(TaxDocumentsT&& value) {
303 SetTaxDocuments(std::forward<TaxDocumentsT>(value));
304 return *this;
305 }
307
309
313 inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const { return m_onDeviceServiceConfiguration; }
314 inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; }
315 template <typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
316 void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) {
317 m_onDeviceServiceConfigurationHasBeenSet = true;
318 m_onDeviceServiceConfiguration = std::forward<OnDeviceServiceConfigurationT>(value);
319 }
320 template <typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
321 ClusterMetadata& WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) {
322 SetOnDeviceServiceConfiguration(std::forward<OnDeviceServiceConfigurationT>(value));
323 return *this;
324 }
326 private:
327 Aws::String m_clusterId;
328
329 Aws::String m_description;
330
331 Aws::String m_kmsKeyARN;
332
333 Aws::String m_roleARN;
334
335 ClusterState m_clusterState{ClusterState::NOT_SET};
336
337 JobType m_jobType{JobType::NOT_SET};
338
339 SnowballType m_snowballType{SnowballType::NOT_SET};
340
341 Aws::Utils::DateTime m_creationDate{};
342
343 JobResource m_resources;
344
345 Aws::String m_addressId;
346
347 ShippingOption m_shippingOption{ShippingOption::NOT_SET};
348
349 Notification m_notification;
350
351 Aws::String m_forwardingAddressId;
352
353 TaxDocuments m_taxDocuments;
354
355 OnDeviceServiceConfiguration m_onDeviceServiceConfiguration;
356 bool m_clusterIdHasBeenSet = false;
357 bool m_descriptionHasBeenSet = false;
358 bool m_kmsKeyARNHasBeenSet = false;
359 bool m_roleARNHasBeenSet = false;
360 bool m_clusterStateHasBeenSet = false;
361 bool m_jobTypeHasBeenSet = false;
362 bool m_snowballTypeHasBeenSet = false;
363 bool m_creationDateHasBeenSet = false;
364 bool m_resourcesHasBeenSet = false;
365 bool m_addressIdHasBeenSet = false;
366 bool m_shippingOptionHasBeenSet = false;
367 bool m_notificationHasBeenSet = false;
368 bool m_forwardingAddressIdHasBeenSet = false;
369 bool m_taxDocumentsHasBeenSet = false;
370 bool m_onDeviceServiceConfigurationHasBeenSet = false;
371};
372
373} // namespace Model
374} // namespace Snowball
375} // namespace Aws
AWS_SNOWBALL_API ClusterMetadata(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAddressId() const
const Aws::String & GetKmsKeyARN() const
void SetClusterState(ClusterState value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetAddressId(AddressIdT &&value)
void SetTaxDocuments(TaxDocumentsT &&value)
void SetCreationDate(CreationDateT &&value)
ClusterMetadata & WithAddressId(AddressIdT &&value)
ClusterMetadata & WithDescription(DescriptionT &&value)
ClusterMetadata & WithTaxDocuments(TaxDocumentsT &&value)
void SetForwardingAddressId(ForwardingAddressIdT &&value)
AWS_SNOWBALL_API ClusterMetadata()=default
ClusterMetadata & WithJobType(JobType value)
void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT &&value)
ClusterMetadata & WithRoleARN(RoleARNT &&value)
ClusterMetadata & WithKmsKeyARN(KmsKeyARNT &&value)
ClusterMetadata & WithNotification(NotificationT &&value)
const Notification & GetNotification() const
ClusterMetadata & WithSnowballType(SnowballType value)
void SetResources(ResourcesT &&value)
const OnDeviceServiceConfiguration & GetOnDeviceServiceConfiguration() const
void SetShippingOption(ShippingOption value)
const Aws::String & GetRoleARN() const
ClusterMetadata & WithShippingOption(ShippingOption value)
const JobResource & GetResources() const
void SetKmsKeyARN(KmsKeyARNT &&value)
AWS_SNOWBALL_API ClusterMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterMetadata & WithResources(ResourcesT &&value)
const Aws::String & GetForwardingAddressId() const
const TaxDocuments & GetTaxDocuments() const
const Aws::String & GetDescription() const
ClusterMetadata & WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT &&value)
ClusterMetadata & WithCreationDate(CreationDateT &&value)
const Aws::String & GetClusterId() const
void SetNotification(NotificationT &&value)
void SetDescription(DescriptionT &&value)
ClusterMetadata & WithClusterState(ClusterState value)
void SetSnowballType(SnowballType value)
ClusterMetadata & WithForwardingAddressId(ForwardingAddressIdT &&value)
void SetClusterId(ClusterIdT &&value)
ClusterMetadata & WithClusterId(ClusterIdT &&value)
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue