AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ClusterIdT = Aws::String>
56 void SetClusterId(ClusterIdT&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::forward<ClusterIdT>(value); }
57 template<typename ClusterIdT = Aws::String>
58 ClusterMetadata& WithClusterId(ClusterIdT&& value) { SetClusterId(std::forward<ClusterIdT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 ClusterMetadata& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
80 inline const Aws::String& GetKmsKeyARN() const { return m_kmsKeyARN; }
81 inline bool KmsKeyARNHasBeenSet() const { return m_kmsKeyARNHasBeenSet; }
82 template<typename KmsKeyARNT = Aws::String>
83 void SetKmsKeyARN(KmsKeyARNT&& value) { m_kmsKeyARNHasBeenSet = true; m_kmsKeyARN = std::forward<KmsKeyARNT>(value); }
84 template<typename KmsKeyARNT = Aws::String>
85 ClusterMetadata& WithKmsKeyARN(KmsKeyARNT&& value) { SetKmsKeyARN(std::forward<KmsKeyARNT>(value)); return *this;}
87
89
94 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
95 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
96 template<typename RoleARNT = Aws::String>
97 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
98 template<typename RoleARNT = Aws::String>
99 ClusterMetadata& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
101
103
106 inline ClusterState GetClusterState() const { return m_clusterState; }
107 inline bool ClusterStateHasBeenSet() const { return m_clusterStateHasBeenSet; }
108 inline void SetClusterState(ClusterState value) { m_clusterStateHasBeenSet = true; m_clusterState = value; }
109 inline ClusterMetadata& WithClusterState(ClusterState value) { SetClusterState(value); return *this;}
111
113
117 inline JobType GetJobType() const { return m_jobType; }
118 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
119 inline void SetJobType(JobType value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
120 inline ClusterMetadata& WithJobType(JobType value) { SetJobType(value); return *this;}
122
124
129 inline SnowballType GetSnowballType() const { return m_snowballType; }
130 inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; }
131 inline void SetSnowballType(SnowballType value) { m_snowballTypeHasBeenSet = true; m_snowballType = value; }
132 inline ClusterMetadata& WithSnowballType(SnowballType value) { SetSnowballType(value); return *this;}
134
136
139 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
140 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
141 template<typename CreationDateT = Aws::Utils::DateTime>
142 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
143 template<typename CreationDateT = Aws::Utils::DateTime>
144 ClusterMetadata& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
146
148
152 inline const JobResource& GetResources() const { return m_resources; }
153 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
154 template<typename ResourcesT = JobResource>
155 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
156 template<typename ResourcesT = JobResource>
157 ClusterMetadata& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
159
161
164 inline const Aws::String& GetAddressId() const { return m_addressId; }
165 inline bool AddressIdHasBeenSet() const { return m_addressIdHasBeenSet; }
166 template<typename AddressIdT = Aws::String>
167 void SetAddressId(AddressIdT&& value) { m_addressIdHasBeenSet = true; m_addressId = std::forward<AddressIdT>(value); }
168 template<typename AddressIdT = Aws::String>
169 ClusterMetadata& WithAddressId(AddressIdT&& value) { SetAddressId(std::forward<AddressIdT>(value)); return *this;}
171
173
186 inline ShippingOption GetShippingOption() const { return m_shippingOption; }
187 inline bool ShippingOptionHasBeenSet() const { return m_shippingOptionHasBeenSet; }
188 inline void SetShippingOption(ShippingOption value) { m_shippingOptionHasBeenSet = true; m_shippingOption = value; }
191
193
197 inline const Notification& GetNotification() const { return m_notification; }
198 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
199 template<typename NotificationT = Notification>
200 void SetNotification(NotificationT&& value) { m_notificationHasBeenSet = true; m_notification = std::forward<NotificationT>(value); }
201 template<typename NotificationT = Notification>
202 ClusterMetadata& WithNotification(NotificationT&& value) { SetNotification(std::forward<NotificationT>(value)); return *this;}
204
206
210 inline const Aws::String& GetForwardingAddressId() const { return m_forwardingAddressId; }
211 inline bool ForwardingAddressIdHasBeenSet() const { return m_forwardingAddressIdHasBeenSet; }
212 template<typename ForwardingAddressIdT = Aws::String>
213 void SetForwardingAddressId(ForwardingAddressIdT&& value) { m_forwardingAddressIdHasBeenSet = true; m_forwardingAddressId = std::forward<ForwardingAddressIdT>(value); }
214 template<typename ForwardingAddressIdT = Aws::String>
215 ClusterMetadata& WithForwardingAddressId(ForwardingAddressIdT&& value) { SetForwardingAddressId(std::forward<ForwardingAddressIdT>(value)); return *this;}
217
219
222 inline const TaxDocuments& GetTaxDocuments() const { return m_taxDocuments; }
223 inline bool TaxDocumentsHasBeenSet() const { return m_taxDocumentsHasBeenSet; }
224 template<typename TaxDocumentsT = TaxDocuments>
225 void SetTaxDocuments(TaxDocumentsT&& value) { m_taxDocumentsHasBeenSet = true; m_taxDocuments = std::forward<TaxDocumentsT>(value); }
226 template<typename TaxDocumentsT = TaxDocuments>
227 ClusterMetadata& WithTaxDocuments(TaxDocumentsT&& value) { SetTaxDocuments(std::forward<TaxDocumentsT>(value)); return *this;}
229
231
235 inline const OnDeviceServiceConfiguration& GetOnDeviceServiceConfiguration() const { return m_onDeviceServiceConfiguration; }
236 inline bool OnDeviceServiceConfigurationHasBeenSet() const { return m_onDeviceServiceConfigurationHasBeenSet; }
237 template<typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
238 void SetOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) { m_onDeviceServiceConfigurationHasBeenSet = true; m_onDeviceServiceConfiguration = std::forward<OnDeviceServiceConfigurationT>(value); }
239 template<typename OnDeviceServiceConfigurationT = OnDeviceServiceConfiguration>
240 ClusterMetadata& WithOnDeviceServiceConfiguration(OnDeviceServiceConfigurationT&& value) { SetOnDeviceServiceConfiguration(std::forward<OnDeviceServiceConfigurationT>(value)); return *this;}
242 private:
243
244 Aws::String m_clusterId;
245 bool m_clusterIdHasBeenSet = false;
246
247 Aws::String m_description;
248 bool m_descriptionHasBeenSet = false;
249
250 Aws::String m_kmsKeyARN;
251 bool m_kmsKeyARNHasBeenSet = false;
252
253 Aws::String m_roleARN;
254 bool m_roleARNHasBeenSet = false;
255
256 ClusterState m_clusterState{ClusterState::NOT_SET};
257 bool m_clusterStateHasBeenSet = false;
258
259 JobType m_jobType{JobType::NOT_SET};
260 bool m_jobTypeHasBeenSet = false;
261
262 SnowballType m_snowballType{SnowballType::NOT_SET};
263 bool m_snowballTypeHasBeenSet = false;
264
265 Aws::Utils::DateTime m_creationDate{};
266 bool m_creationDateHasBeenSet = false;
267
268 JobResource m_resources;
269 bool m_resourcesHasBeenSet = false;
270
271 Aws::String m_addressId;
272 bool m_addressIdHasBeenSet = false;
273
274 ShippingOption m_shippingOption{ShippingOption::NOT_SET};
275 bool m_shippingOptionHasBeenSet = false;
276
277 Notification m_notification;
278 bool m_notificationHasBeenSet = false;
279
280 Aws::String m_forwardingAddressId;
281 bool m_forwardingAddressIdHasBeenSet = false;
282
283 TaxDocuments m_taxDocuments;
284 bool m_taxDocumentsHasBeenSet = false;
285
286 OnDeviceServiceConfiguration m_onDeviceServiceConfiguration;
287 bool m_onDeviceServiceConfigurationHasBeenSet = false;
288 };
289
290} // namespace Model
291} // namespace Snowball
292} // 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