AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClusterMetadata.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/ClusterState.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/ShippingOption.h>
15#include <aws/snowball/model/Notification.h>
16#include <aws/snowball/model/TaxDocuments.h>
17#include <aws/snowball/model/OnDeviceServiceConfiguration.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace Snowball
31{
32namespace Model
33{
34
41 {
42 public:
43 AWS_SNOWBALL_API ClusterMetadata();
44 AWS_SNOWBALL_API ClusterMetadata(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetClusterId() const{ return m_clusterId; }
54 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
55 inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
56 inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
57 inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
58 inline ClusterMetadata& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
59 inline ClusterMetadata& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
60 inline ClusterMetadata& WithClusterId(const char* value) { SetClusterId(value); return *this;}
62
64
67 inline const Aws::String& GetDescription() const{ return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
70 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
71 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
72 inline ClusterMetadata& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
73 inline ClusterMetadata& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
74 inline ClusterMetadata& WithDescription(const char* value) { SetDescription(value); return *this;}
76
78
84 inline const Aws::String& GetKmsKeyARN() const{ return m_kmsKeyARN; }
85 inline bool KmsKeyARNHasBeenSet() const { return m_kmsKeyARNHasBeenSet; }
86 inline void SetKmsKeyARN(const Aws::String& value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN = value; }
87 inline void SetKmsKeyARN(Aws::String&& value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN = std::move(value); }
88 inline void SetKmsKeyARN(const char* value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN.assign(value); }
89 inline ClusterMetadata& WithKmsKeyARN(const Aws::String& value) { SetKmsKeyARN(value); return *this;}
90 inline ClusterMetadata& WithKmsKeyARN(Aws::String&& value) { SetKmsKeyARN(std::move(value)); return *this;}
91 inline ClusterMetadata& WithKmsKeyARN(const char* value) { SetKmsKeyARN(value); return *this;}
93
95
100 inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
101 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
102 inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
103 inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
104 inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
105 inline ClusterMetadata& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
106 inline ClusterMetadata& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
107 inline ClusterMetadata& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
109
111
114 inline const ClusterState& GetClusterState() const{ return m_clusterState; }
115 inline bool ClusterStateHasBeenSet() const { return m_clusterStateHasBeenSet; }
116 inline void SetClusterState(const ClusterState& value) { m_clusterStateHasBeenSet = true; m_clusterState = value; }
117 inline void SetClusterState(ClusterState&& value) { m_clusterStateHasBeenSet = true; m_clusterState = std::move(value); }
118 inline ClusterMetadata& WithClusterState(const ClusterState& value) { SetClusterState(value); return *this;}
119 inline ClusterMetadata& WithClusterState(ClusterState&& value) { SetClusterState(std::move(value)); return *this;}
121
123
127 inline const JobType& GetJobType() const{ return m_jobType; }
128 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
129 inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
130 inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); }
131 inline ClusterMetadata& WithJobType(const JobType& value) { SetJobType(value); return *this;}
132 inline ClusterMetadata& WithJobType(JobType&& value) { SetJobType(std::move(value)); return *this;}
134
136
141 inline const SnowballType& GetSnowballType() const{ return m_snowballType; }
142 inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; }
143 inline void SetSnowballType(const SnowballType& value) { m_snowballTypeHasBeenSet = true; m_snowballType = value; }
144 inline void SetSnowballType(SnowballType&& value) { m_snowballTypeHasBeenSet = true; m_snowballType = std::move(value); }
145 inline ClusterMetadata& WithSnowballType(const SnowballType& value) { SetSnowballType(value); return *this;}
146 inline ClusterMetadata& WithSnowballType(SnowballType&& value) { SetSnowballType(std::move(value)); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
154 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
155 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
156 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
157 inline ClusterMetadata& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
158 inline ClusterMetadata& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
160
162
166 inline const JobResource& GetResources() const{ return m_resources; }
167 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
168 inline void SetResources(const JobResource& value) { m_resourcesHasBeenSet = true; m_resources = value; }
169 inline void SetResources(JobResource&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
170 inline ClusterMetadata& WithResources(const JobResource& value) { SetResources(value); return *this;}
171 inline ClusterMetadata& WithResources(JobResource&& value) { SetResources(std::move(value)); return *this;}
173
175
178 inline const Aws::String& GetAddressId() const{ return m_addressId; }
179 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
180 inline void SetAddressId(const Aws::String& value) { m_addressIdHasBeenSet = true; m_addressId = value; }
181 inline void SetAddressId(Aws::String&& value) { m_addressIdHasBeenSet = true; m_addressId = std::move(value); }
182 inline void SetAddressId(const char* value) { m_addressIdHasBeenSet = true; m_addressId.assign(value); }
183 inline ClusterMetadata& WithAddressId(const Aws::String& value) { SetAddressId(value); return *this;}
184 inline ClusterMetadata& WithAddressId(Aws::String&& value) { SetAddressId(std::move(value)); return *this;}
185 inline ClusterMetadata& WithAddressId(const char* value) { SetAddressId(value); return *this;}
187
189
202 inline const ShippingOption& GetShippingOption() const{ return m_shippingOption; }
203 inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
204 inline void SetShippingOption(const ShippingOption& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
205 inline void SetShippingOption(ShippingOption&& value) { m_shippingOptionHasBeenSet = true; m_shippingOption = std::move(value); }
206 inline ClusterMetadata& WithShippingOption(const ShippingOption& value) { SetShippingOption(value); return *this;}
207 inline ClusterMetadata& WithShippingOption(ShippingOption&& value) { SetShippingOption(std::move(value)); return *this;}
209
211
215 inline const Notification& GetNotification() const{ return m_notification; }
216 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
217 inline void SetNotification(const Notification& value) { m_notificationHasBeenSet = true; m_notification = value; }
218 inline void SetNotification(Notification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
219 inline ClusterMetadata& WithNotification(const Notification& value) { SetNotification(value); return *this;}
220 inline ClusterMetadata& WithNotification(Notification&& value) { SetNotification(std::move(value)); return *this;}
222
224
228 inline const Aws::String& GetForwardingAddressId() const{ return m_forwardingAddressId; }
229 inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
230 inline void SetForwardingAddressId(const Aws::String& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = value; }
231 inline void SetForwardingAddressId(Aws::String&& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = std::move(value); }
232 inline void SetForwardingAddressId(const char* value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId.assign(value); }
233 inline ClusterMetadata& WithForwardingAddressId(const Aws::String& value) { SetForwardingAddressId(value); return *this;}
234 inline ClusterMetadata& WithForwardingAddressId(Aws::String&& value) { SetForwardingAddressId(std::move(value)); return *this;}
235 inline ClusterMetadata& WithForwardingAddressId(const char* value) { SetForwardingAddressId(value); return *this;}
237
239
242 inline const TaxDocuments& GetTaxDocuments() const{ return m_taxDocuments; }
243 inline bool TaxDocumentsHasBeenSet() const { return m_taxDocumentsHasBeenSet; }
244 inline void SetTaxDocuments(const TaxDocuments& value) { m_taxDocumentsHasBeenSet = true; m_taxDocuments = value; }
245 inline void SetTaxDocuments(TaxDocuments&& value) { m_taxDocumentsHasBeenSet = true; m_taxDocuments = std::move(value); }
246 inline ClusterMetadata& WithTaxDocuments(const TaxDocuments& value) { SetTaxDocuments(value); return *this;}
247 inline ClusterMetadata& WithTaxDocuments(TaxDocuments&& value) { SetTaxDocuments(std::move(value)); return *this;}
249
251
255 inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const{ return m_onDeviceServiceConfiguration; }
256 inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; }
257 inline void SetOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = value; }
258 inline void SetOnDeviceServiceConfiguration(OnDeviceServiceConfiguration&& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = std::move(value); }
262 private:
263
264 Aws::String m_clusterId;
265 bool m_clusterIdHasBeenSet = false;
266
267 Aws::String m_description;
268 bool m_descriptionHasBeenSet = false;
269
270 Aws::String m_kmsKeyARN;
271 bool m_kmsKeyARNHasBeenSet = false;
272
273 Aws::String m_roleARN;
274 bool m_roleARNHasBeenSet = false;
275
276 ClusterState m_clusterState;
277 bool m_clusterStateHasBeenSet = false;
278
279 JobType m_jobType;
280 bool m_jobTypeHasBeenSet = false;
281
282 SnowballType m_snowballType;
283 bool m_snowballTypeHasBeenSet = false;
284
285 Aws::Utils::DateTime m_creationDate;
286 bool m_creationDateHasBeenSet = false;
287
288 JobResource m_resources;
289 bool m_resourcesHasBeenSet = false;
290
291 Aws::String m_addressId;
292 bool m_addressIdHasBeenSet = false;
293
294 ShippingOption m_shippingOption;
295 bool m_shippingOptionHasBeenSet = false;
296
297 Notification m_notification;
298 bool m_notificationHasBeenSet = false;
299
300 Aws::String m_forwardingAddressId;
301 bool m_forwardingAddressIdHasBeenSet = false;
302
303 TaxDocuments m_taxDocuments;
304 bool m_taxDocumentsHasBeenSet = false;
305
306 OnDeviceServiceConfiguration m_onDeviceServiceConfiguration;
307 bool m_onDeviceServiceConfigurationHasBeenSet = false;
308 };
309
310} // namespace Model
311} // namespace Snowball
312} // namespace Aws
AWS_SNOWBALL_API ClusterMetadata(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAddressId() const
void SetShippingOption(const ShippingOption &value)
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetClusterId(const Aws::String &value)
void SetClusterId(Aws::String &&value)
ClusterMetadata & WithRoleARN(const char *value)
const Aws::String & GetKmsKeyARN() const
void SetSnowballType(const SnowballType &value)
ClusterMetadata & WithAddressId(const char *value)
ClusterMetadata & WithOnDeviceServiceConfiguration(OnDeviceServiceConfiguration &&value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetSnowballType(SnowballType &&value)
void SetDescription(const Aws::String &value)
void SetAddressId(const Aws::String &value)
void SetTaxDocuments(const TaxDocuments &value)
ClusterMetadata & WithClusterId(const Aws::String &value)
const ShippingOption & GetShippingOption() const
void SetShippingOption(ShippingOption &&value)
ClusterMetadata & WithClusterId(Aws::String &&value)
void SetResources(const JobResource &value)
ClusterMetadata & WithForwardingAddressId(Aws::String &&value)
ClusterMetadata & WithClusterId(const char *value)
void SetKmsKeyARN(const Aws::String &value)
ClusterMetadata & WithAddressId(const Aws::String &value)
ClusterMetadata & WithForwardingAddressId(const char *value)
ClusterMetadata & WithJobType(const JobType &value)
const SnowballType & GetSnowballType() const
void SetOnDeviceServiceConfiguration(OnDeviceServiceConfiguration &&value)
const ClusterState & GetClusterState() const
ClusterMetadata & WithShippingOption(const ShippingOption &value)
ClusterMetadata & WithSnowballType(SnowballType &&value)
void SetDescription(Aws::String &&value)
const Notification & GetNotification() const
void SetOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration &value)
const OnDeviceServiceConfiguration & GetOnDeviceServiceConfiguration() const
ClusterMetadata & WithRoleARN(Aws::String &&value)
ClusterMetadata & WithShippingOption(ShippingOption &&value)
void SetNotification(const Notification &value)
ClusterMetadata & WithNotification(Notification &&value)
void SetCreationDate(Aws::Utils::DateTime &&value)
void SetForwardingAddressId(const Aws::String &value)
ClusterMetadata & WithDescription(const char *value)
const Aws::String & GetRoleARN() const
void SetAddressId(Aws::String &&value)
ClusterMetadata & WithDescription(const Aws::String &value)
ClusterMetadata & WithTaxDocuments(const TaxDocuments &value)
void SetTaxDocuments(TaxDocuments &&value)
ClusterMetadata & WithKmsKeyARN(const Aws::String &value)
void SetResources(JobResource &&value)
const JobResource & GetResources() const
ClusterMetadata & WithResources(JobResource &&value)
AWS_SNOWBALL_API ClusterMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetForwardingAddressId() const
void SetClusterState(ClusterState &&value)
ClusterMetadata & WithNotification(const Notification &value)
const TaxDocuments & GetTaxDocuments() const
const Aws::String & GetDescription() const
ClusterMetadata & WithTaxDocuments(TaxDocuments &&value)
ClusterMetadata & WithRoleARN(const Aws::String &value)
void SetForwardingAddressId(const char *value)
void SetDescription(const char *value)
ClusterMetadata & WithCreationDate(const Aws::Utils::DateTime &value)
void SetRoleARN(Aws::String &&value)
const Aws::String & GetClusterId() const
ClusterMetadata & WithSnowballType(const SnowballType &value)
ClusterMetadata & WithJobType(JobType &&value)
ClusterMetadata & WithKmsKeyARN(const char *value)
void SetClusterState(const ClusterState &value)
ClusterMetadata & WithForwardingAddressId(const Aws::String &value)
void SetForwardingAddressId(Aws::String &&value)
ClusterMetadata & WithResources(const JobResource &value)
ClusterMetadata & WithClusterState(ClusterState &&value)
void SetRoleARN(const Aws::String &value)
ClusterMetadata & WithClusterState(const ClusterState &value)
void SetNotification(Notification &&value)
ClusterMetadata & WithAddressId(Aws::String &&value)
ClusterMetadata & WithOnDeviceServiceConfiguration(const OnDeviceServiceConfiguration &value)
ClusterMetadata & WithDescription(Aws::String &&value)
ClusterMetadata & WithKmsKeyARN(Aws::String &&value)
void SetKmsKeyARN(Aws::String &&value)
ClusterMetadata & WithCreationDate(Aws::Utils::DateTime &&value)
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetJobType(const JobType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue