AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConfigurationItem.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/config/model/ConfigurationItemStatus.h>
11#include <aws/config/model/ResourceType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/config/model/RecordingFrequency.h>
15#include <aws/config/model/Relationship.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace ConfigService
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_CONFIGSERVICE_API ConfigurationItem() = default;
43 AWS_CONFIGSERVICE_API ConfigurationItem(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CONFIGSERVICE_API ConfigurationItem& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetVersion() const { return m_version; }
53 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
54 template<typename VersionT = Aws::String>
55 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
56 template<typename VersionT = Aws::String>
57 ConfigurationItem& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
59
61
64 inline const Aws::String& GetAccountId() const { return m_accountId; }
65 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
66 template<typename AccountIdT = Aws::String>
67 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
68 template<typename AccountIdT = Aws::String>
69 ConfigurationItem& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
71
73
77 inline const Aws::Utils::DateTime& GetConfigurationItemCaptureTime() const { return m_configurationItemCaptureTime; }
78 inline bool ConfigurationItemCaptureTimeHasBeenSet() const { return m_configurationItemCaptureTimeHasBeenSet; }
79 template<typename ConfigurationItemCaptureTimeT = Aws::Utils::DateTime>
80 void SetConfigurationItemCaptureTime(ConfigurationItemCaptureTimeT&& value) { m_configurationItemCaptureTimeHasBeenSet = true; m_configurationItemCaptureTime = std::forward<ConfigurationItemCaptureTimeT>(value); }
81 template<typename ConfigurationItemCaptureTimeT = Aws::Utils::DateTime>
82 ConfigurationItem& WithConfigurationItemCaptureTime(ConfigurationItemCaptureTimeT&& value) { SetConfigurationItemCaptureTime(std::forward<ConfigurationItemCaptureTimeT>(value)); return *this;}
84
86
96 inline ConfigurationItemStatus GetConfigurationItemStatus() const { return m_configurationItemStatus; }
97 inline bool ConfigurationItemStatusHasBeenSet() const { return m_configurationItemStatusHasBeenSet; }
98 inline void SetConfigurationItemStatus(ConfigurationItemStatus value) { m_configurationItemStatusHasBeenSet = true; m_configurationItemStatus = value; }
101
103
107 inline const Aws::String& GetConfigurationStateId() const { return m_configurationStateId; }
108 inline bool ConfigurationStateIdHasBeenSet() const { return m_configurationStateIdHasBeenSet; }
109 template<typename ConfigurationStateIdT = Aws::String>
110 void SetConfigurationStateId(ConfigurationStateIdT&& value) { m_configurationStateIdHasBeenSet = true; m_configurationStateId = std::forward<ConfigurationStateIdT>(value); }
111 template<typename ConfigurationStateIdT = Aws::String>
112 ConfigurationItem& WithConfigurationStateId(ConfigurationStateIdT&& value) { SetConfigurationStateId(std::forward<ConfigurationStateIdT>(value)); return *this;}
114
116
121 inline const Aws::String& GetConfigurationItemMD5Hash() const { return m_configurationItemMD5Hash; }
122 inline bool ConfigurationItemMD5HashHasBeenSet() const { return m_configurationItemMD5HashHasBeenSet; }
123 template<typename ConfigurationItemMD5HashT = Aws::String>
124 void SetConfigurationItemMD5Hash(ConfigurationItemMD5HashT&& value) { m_configurationItemMD5HashHasBeenSet = true; m_configurationItemMD5Hash = std::forward<ConfigurationItemMD5HashT>(value); }
125 template<typename ConfigurationItemMD5HashT = Aws::String>
126 ConfigurationItem& WithConfigurationItemMD5Hash(ConfigurationItemMD5HashT&& value) { SetConfigurationItemMD5Hash(std::forward<ConfigurationItemMD5HashT>(value)); return *this;}
128
130
133 inline const Aws::String& GetArn() const { return m_arn; }
134 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
135 template<typename ArnT = Aws::String>
136 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
137 template<typename ArnT = Aws::String>
138 ConfigurationItem& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
140
142
145 inline ResourceType GetResourceType() const { return m_resourceType; }
146 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
147 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
148 inline ConfigurationItem& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
150
152
155 inline const Aws::String& GetResourceId() const { return m_resourceId; }
156 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
157 template<typename ResourceIdT = Aws::String>
158 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
159 template<typename ResourceIdT = Aws::String>
160 ConfigurationItem& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
162
164
167 inline const Aws::String& GetResourceName() const { return m_resourceName; }
168 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
169 template<typename ResourceNameT = Aws::String>
170 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
171 template<typename ResourceNameT = Aws::String>
172 ConfigurationItem& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
174
176
179 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
180 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
181 template<typename AwsRegionT = Aws::String>
182 void SetAwsRegion(AwsRegionT&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::forward<AwsRegionT>(value); }
183 template<typename AwsRegionT = Aws::String>
184 ConfigurationItem& WithAwsRegion(AwsRegionT&& value) { SetAwsRegion(std::forward<AwsRegionT>(value)); return *this;}
186
188
191 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
192 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
193 template<typename AvailabilityZoneT = Aws::String>
194 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
195 template<typename AvailabilityZoneT = Aws::String>
196 ConfigurationItem& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
198
200
203 inline const Aws::Utils::DateTime& GetResourceCreationTime() const { return m_resourceCreationTime; }
204 inline bool ResourceCreationTimeHasBeenSet() const { return m_resourceCreationTimeHasBeenSet; }
205 template<typename ResourceCreationTimeT = Aws::Utils::DateTime>
206 void SetResourceCreationTime(ResourceCreationTimeT&& value) { m_resourceCreationTimeHasBeenSet = true; m_resourceCreationTime = std::forward<ResourceCreationTimeT>(value); }
207 template<typename ResourceCreationTimeT = Aws::Utils::DateTime>
208 ConfigurationItem& WithResourceCreationTime(ResourceCreationTimeT&& value) { SetResourceCreationTime(std::forward<ResourceCreationTimeT>(value)); return *this;}
210
212
215 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
216 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
217 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
218 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
219 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
220 ConfigurationItem& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
221 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
222 ConfigurationItem& AddTags(TagsKeyT&& key, TagsValueT&& value) {
223 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
224 }
226
228
240 inline const Aws::Vector<Aws::String>& GetRelatedEvents() const { return m_relatedEvents; }
241 inline bool RelatedEventsHasBeenSet() const { return m_relatedEventsHasBeenSet; }
242 template<typename RelatedEventsT = Aws::Vector<Aws::String>>
243 void SetRelatedEvents(RelatedEventsT&& value) { m_relatedEventsHasBeenSet = true; m_relatedEvents = std::forward<RelatedEventsT>(value); }
244 template<typename RelatedEventsT = Aws::Vector<Aws::String>>
245 ConfigurationItem& WithRelatedEvents(RelatedEventsT&& value) { SetRelatedEvents(std::forward<RelatedEventsT>(value)); return *this;}
246 template<typename RelatedEventsT = Aws::String>
247 ConfigurationItem& AddRelatedEvents(RelatedEventsT&& value) { m_relatedEventsHasBeenSet = true; m_relatedEvents.emplace_back(std::forward<RelatedEventsT>(value)); return *this; }
249
251
254 inline const Aws::Vector<Relationship>& GetRelationships() const { return m_relationships; }
255 inline bool RelationshipsHasBeenSet() const { return m_relationshipsHasBeenSet; }
256 template<typename RelationshipsT = Aws::Vector<Relationship>>
257 void SetRelationships(RelationshipsT&& value) { m_relationshipsHasBeenSet = true; m_relationships = std::forward<RelationshipsT>(value); }
258 template<typename RelationshipsT = Aws::Vector<Relationship>>
259 ConfigurationItem& WithRelationships(RelationshipsT&& value) { SetRelationships(std::forward<RelationshipsT>(value)); return *this;}
260 template<typename RelationshipsT = Relationship>
261 ConfigurationItem& AddRelationships(RelationshipsT&& value) { m_relationshipsHasBeenSet = true; m_relationships.emplace_back(std::forward<RelationshipsT>(value)); return *this; }
263
265
268 inline const Aws::String& GetConfiguration() const { return m_configuration; }
269 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
270 template<typename ConfigurationT = Aws::String>
271 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
272 template<typename ConfigurationT = Aws::String>
273 ConfigurationItem& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
275
277
282 inline const Aws::Map<Aws::String, Aws::String>& GetSupplementaryConfiguration() const { return m_supplementaryConfiguration; }
283 inline bool SupplementaryConfigurationHasBeenSet() const { return m_supplementaryConfigurationHasBeenSet; }
284 template<typename SupplementaryConfigurationT = Aws::Map<Aws::String, Aws::String>>
285 void SetSupplementaryConfiguration(SupplementaryConfigurationT&& value) { m_supplementaryConfigurationHasBeenSet = true; m_supplementaryConfiguration = std::forward<SupplementaryConfigurationT>(value); }
286 template<typename SupplementaryConfigurationT = Aws::Map<Aws::String, Aws::String>>
287 ConfigurationItem& WithSupplementaryConfiguration(SupplementaryConfigurationT&& value) { SetSupplementaryConfiguration(std::forward<SupplementaryConfigurationT>(value)); return *this;}
288 template<typename SupplementaryConfigurationKeyT = Aws::String, typename SupplementaryConfigurationValueT = Aws::String>
289 ConfigurationItem& AddSupplementaryConfiguration(SupplementaryConfigurationKeyT&& key, SupplementaryConfigurationValueT&& value) {
290 m_supplementaryConfigurationHasBeenSet = true; m_supplementaryConfiguration.emplace(std::forward<SupplementaryConfigurationKeyT>(key), std::forward<SupplementaryConfigurationValueT>(value)); return *this;
291 }
293
295
299 inline RecordingFrequency GetRecordingFrequency() const { return m_recordingFrequency; }
300 inline bool RecordingFrequencyHasBeenSet() const { return m_recordingFrequencyHasBeenSet; }
301 inline void SetRecordingFrequency(RecordingFrequency value) { m_recordingFrequencyHasBeenSet = true; m_recordingFrequency = value; }
304
306
316 inline const Aws::Utils::DateTime& GetConfigurationItemDeliveryTime() const { return m_configurationItemDeliveryTime; }
317 inline bool ConfigurationItemDeliveryTimeHasBeenSet() const { return m_configurationItemDeliveryTimeHasBeenSet; }
318 template<typename ConfigurationItemDeliveryTimeT = Aws::Utils::DateTime>
319 void SetConfigurationItemDeliveryTime(ConfigurationItemDeliveryTimeT&& value) { m_configurationItemDeliveryTimeHasBeenSet = true; m_configurationItemDeliveryTime = std::forward<ConfigurationItemDeliveryTimeT>(value); }
320 template<typename ConfigurationItemDeliveryTimeT = Aws::Utils::DateTime>
321 ConfigurationItem& WithConfigurationItemDeliveryTime(ConfigurationItemDeliveryTimeT&& value) { SetConfigurationItemDeliveryTime(std::forward<ConfigurationItemDeliveryTimeT>(value)); return *this;}
323 private:
324
325 Aws::String m_version;
326 bool m_versionHasBeenSet = false;
327
328 Aws::String m_accountId;
329 bool m_accountIdHasBeenSet = false;
330
331 Aws::Utils::DateTime m_configurationItemCaptureTime{};
332 bool m_configurationItemCaptureTimeHasBeenSet = false;
333
335 bool m_configurationItemStatusHasBeenSet = false;
336
337 Aws::String m_configurationStateId;
338 bool m_configurationStateIdHasBeenSet = false;
339
340 Aws::String m_configurationItemMD5Hash;
341 bool m_configurationItemMD5HashHasBeenSet = false;
342
343 Aws::String m_arn;
344 bool m_arnHasBeenSet = false;
345
346 ResourceType m_resourceType{ResourceType::NOT_SET};
347 bool m_resourceTypeHasBeenSet = false;
348
349 Aws::String m_resourceId;
350 bool m_resourceIdHasBeenSet = false;
351
352 Aws::String m_resourceName;
353 bool m_resourceNameHasBeenSet = false;
354
355 Aws::String m_awsRegion;
356 bool m_awsRegionHasBeenSet = false;
357
358 Aws::String m_availabilityZone;
359 bool m_availabilityZoneHasBeenSet = false;
360
361 Aws::Utils::DateTime m_resourceCreationTime{};
362 bool m_resourceCreationTimeHasBeenSet = false;
363
365 bool m_tagsHasBeenSet = false;
366
367 Aws::Vector<Aws::String> m_relatedEvents;
368 bool m_relatedEventsHasBeenSet = false;
369
370 Aws::Vector<Relationship> m_relationships;
371 bool m_relationshipsHasBeenSet = false;
372
373 Aws::String m_configuration;
374 bool m_configurationHasBeenSet = false;
375
376 Aws::Map<Aws::String, Aws::String> m_supplementaryConfiguration;
377 bool m_supplementaryConfigurationHasBeenSet = false;
378
380 bool m_recordingFrequencyHasBeenSet = false;
381
382 Aws::Utils::DateTime m_configurationItemDeliveryTime{};
383 bool m_configurationItemDeliveryTimeHasBeenSet = false;
384 };
385
386} // namespace Model
387} // namespace ConfigService
388} // namespace Aws
ConfigurationItem & WithConfigurationItemDeliveryTime(ConfigurationItemDeliveryTimeT &&value)
ConfigurationItem & WithAwsRegion(AwsRegionT &&value)
ConfigurationItemStatus GetConfigurationItemStatus() const
ConfigurationItem & AddSupplementaryConfiguration(SupplementaryConfigurationKeyT &&key, SupplementaryConfigurationValueT &&value)
ConfigurationItem & WithSupplementaryConfiguration(SupplementaryConfigurationT &&value)
const Aws::Vector< Aws::String > & GetRelatedEvents() const
ConfigurationItem & WithAvailabilityZone(AvailabilityZoneT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
ConfigurationItem & AddRelationships(RelationshipsT &&value)
AWS_CONFIGSERVICE_API ConfigurationItem(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API ConfigurationItem()=default
const Aws::String & GetConfigurationStateId() const
ConfigurationItem & WithArn(ArnT &&value)
void SetConfigurationStateId(ConfigurationStateIdT &&value)
ConfigurationItem & WithAccountId(AccountIdT &&value)
ConfigurationItem & WithConfiguration(ConfigurationT &&value)
ConfigurationItem & WithResourceType(ResourceType value)
ConfigurationItem & WithConfigurationItemMD5Hash(ConfigurationItemMD5HashT &&value)
const Aws::Utils::DateTime & GetResourceCreationTime() const
ConfigurationItem & WithConfigurationItemCaptureTime(ConfigurationItemCaptureTimeT &&value)
void SetConfigurationItemCaptureTime(ConfigurationItemCaptureTimeT &&value)
void SetSupplementaryConfiguration(SupplementaryConfigurationT &&value)
ConfigurationItem & WithRecordingFrequency(RecordingFrequency value)
ConfigurationItem & WithConfigurationItemStatus(ConfigurationItemStatus value)
void SetResourceCreationTime(ResourceCreationTimeT &&value)
const Aws::Utils::DateTime & GetConfigurationItemCaptureTime() const
ConfigurationItem & WithResourceName(ResourceNameT &&value)
AWS_CONFIGSERVICE_API ConfigurationItem & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigurationItem & WithRelationships(RelationshipsT &&value)
const Aws::Vector< Relationship > & GetRelationships() const
ConfigurationItem & WithResourceId(ResourceIdT &&value)
const Aws::String & GetConfigurationItemMD5Hash() const
const Aws::Utils::DateTime & GetConfigurationItemDeliveryTime() const
ConfigurationItem & WithConfigurationStateId(ConfigurationStateIdT &&value)
ConfigurationItem & WithResourceCreationTime(ResourceCreationTimeT &&value)
void SetRecordingFrequency(RecordingFrequency value)
ConfigurationItem & AddTags(TagsKeyT &&key, TagsValueT &&value)
ConfigurationItem & WithVersion(VersionT &&value)
ConfigurationItem & WithRelatedEvents(RelatedEventsT &&value)
void SetConfigurationItemStatus(ConfigurationItemStatus value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Map< Aws::String, Aws::String > & GetSupplementaryConfiguration() const
void SetConfigurationItemMD5Hash(ConfigurationItemMD5HashT &&value)
void SetConfigurationItemDeliveryTime(ConfigurationItemDeliveryTimeT &&value)
ConfigurationItem & AddRelatedEvents(RelatedEventsT &&value)
ConfigurationItem & WithTags(TagsT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
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