AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BaseConfigurationItem.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/config/model/RecordingFrequency.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ConfigService
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_CONFIGSERVICE_API BaseConfigurationItem();
41 AWS_CONFIGSERVICE_API BaseConfigurationItem(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetVersion() const{ return m_version; }
51 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
52 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
53 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
54 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
55 inline BaseConfigurationItem& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
56 inline BaseConfigurationItem& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
57 inline BaseConfigurationItem& WithVersion(const char* value) { SetVersion(value); return *this;}
59
61
64 inline const Aws::String& GetAccountId() const{ return m_accountId; }
65 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
66 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
67 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
68 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
69 inline BaseConfigurationItem& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
70 inline BaseConfigurationItem& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
71 inline BaseConfigurationItem& WithAccountId(const char* value) { SetAccountId(value); return *this;}
73
75
79 inline const Aws::Utils::DateTime& GetConfigurationItemCaptureTime() const{ return m_configurationItemCaptureTime; }
80 inline bool ConfigurationItemCaptureTimeHasBeenSet() const { return m_configurationItemCaptureTimeHasBeenSet; }
81 inline void SetConfigurationItemCaptureTime(const Aws::Utils::DateTime& value) { m_configurationItemCaptureTimeHasBeenSet = true; m_configurationItemCaptureTime = value; }
82 inline void SetConfigurationItemCaptureTime(Aws::Utils::DateTime&& value) { m_configurationItemCaptureTimeHasBeenSet = true; m_configurationItemCaptureTime = std::move(value); }
86
88
99 inline const ConfigurationItemStatus& GetConfigurationItemStatus() const{ return m_configurationItemStatus; }
100 inline bool ConfigurationItemStatusHasBeenSet() const { return m_configurationItemStatusHasBeenSet; }
101 inline void SetConfigurationItemStatus(const ConfigurationItemStatus& value) { m_configurationItemStatusHasBeenSet = true; m_configurationItemStatus = value; }
102 inline void SetConfigurationItemStatus(ConfigurationItemStatus&& value) { m_configurationItemStatusHasBeenSet = true; m_configurationItemStatus = std::move(value); }
106
108
112 inline const Aws::String& GetConfigurationStateId() const{ return m_configurationStateId; }
113 inline bool ConfigurationStateIdHasBeenSet() const { return m_configurationStateIdHasBeenSet; }
114 inline void SetConfigurationStateId(const Aws::String& value) { m_configurationStateIdHasBeenSet = true; m_configurationStateId = value; }
115 inline void SetConfigurationStateId(Aws::String&& value) { m_configurationStateIdHasBeenSet = true; m_configurationStateId = std::move(value); }
116 inline void SetConfigurationStateId(const char* value) { m_configurationStateIdHasBeenSet = true; m_configurationStateId.assign(value); }
118 inline BaseConfigurationItem& WithConfigurationStateId(Aws::String&& value) { SetConfigurationStateId(std::move(value)); return *this;}
119 inline BaseConfigurationItem& WithConfigurationStateId(const char* value) { SetConfigurationStateId(value); return *this;}
121
123
126 inline const Aws::String& GetArn() const{ return m_arn; }
127 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
128 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
129 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
130 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
131 inline BaseConfigurationItem& WithArn(const Aws::String& value) { SetArn(value); return *this;}
132 inline BaseConfigurationItem& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
133 inline BaseConfigurationItem& WithArn(const char* value) { SetArn(value); return *this;}
135
137
140 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
141 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
142 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
143 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
144 inline BaseConfigurationItem& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
145 inline BaseConfigurationItem& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
147
149
152 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
153 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
154 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
155 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
156 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
157 inline BaseConfigurationItem& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
158 inline BaseConfigurationItem& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
159 inline BaseConfigurationItem& WithResourceId(const char* value) { SetResourceId(value); return *this;}
161
163
166 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
167 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
168 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
169 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
170 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
171 inline BaseConfigurationItem& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
172 inline BaseConfigurationItem& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
173 inline BaseConfigurationItem& WithResourceName(const char* value) { SetResourceName(value); return *this;}
175
177
180 inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; }
181 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
182 inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; }
183 inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); }
184 inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); }
185 inline BaseConfigurationItem& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;}
186 inline BaseConfigurationItem& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;}
187 inline BaseConfigurationItem& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;}
189
191
194 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
195 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
196 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
197 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
198 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
199 inline BaseConfigurationItem& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
200 inline BaseConfigurationItem& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
201 inline BaseConfigurationItem& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
203
205
208 inline const Aws::Utils::DateTime& GetResourceCreationTime() const{ return m_resourceCreationTime; }
209 inline bool ResourceCreationTimeHasBeenSet() const { return m_resourceCreationTimeHasBeenSet; }
210 inline void SetResourceCreationTime(const Aws::Utils::DateTime& value) { m_resourceCreationTimeHasBeenSet = true; m_resourceCreationTime = value; }
211 inline void SetResourceCreationTime(Aws::Utils::DateTime&& value) { m_resourceCreationTimeHasBeenSet = true; m_resourceCreationTime = std::move(value); }
215
217
220 inline const Aws::String& GetConfiguration() const{ return m_configuration; }
221 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
222 inline void SetConfiguration(const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration = value; }
223 inline void SetConfiguration(Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
224 inline void SetConfiguration(const char* value) { m_configurationHasBeenSet = true; m_configuration.assign(value); }
225 inline BaseConfigurationItem& WithConfiguration(const Aws::String& value) { SetConfiguration(value); return *this;}
226 inline BaseConfigurationItem& WithConfiguration(Aws::String&& value) { SetConfiguration(std::move(value)); return *this;}
227 inline BaseConfigurationItem& WithConfiguration(const char* value) { SetConfiguration(value); return *this;}
229
231
235 inline const Aws::Map<Aws::String, Aws::String>& GetSupplementaryConfiguration() const{ return m_supplementaryConfiguration; }
236 inline bool SupplementaryConfigurationHasBeenSet() const { return m_supplementaryConfigurationHasBeenSet; }
237 inline void SetSupplementaryConfiguration(const Aws::Map<Aws::String, Aws::String>& value) { m_supplementaryConfigurationHasBeenSet = true; m_supplementaryConfiguration = value; }
238 inline void SetSupplementaryConfiguration(Aws::Map<Aws::String, Aws::String>&& value) { m_supplementaryConfigurationHasBeenSet = true; m_supplementaryConfiguration = std::move(value); }
241 inline BaseConfigurationItem& AddSupplementaryConfiguration(const Aws::String& key, const Aws::String& value) { m_supplementaryConfigurationHasBeenSet = true; m_supplementaryConfiguration.emplace(key, value); return *this; }
242 inline BaseConfigurationItem& AddSupplementaryConfiguration(Aws::String&& key, const Aws::String& value) { m_supplementaryConfigurationHasBeenSet = true; m_supplementaryConfiguration.emplace(std::move(key), value); return *this; }
243 inline BaseConfigurationItem& AddSupplementaryConfiguration(const Aws::String& key, Aws::String&& value) { m_supplementaryConfigurationHasBeenSet = true; m_supplementaryConfiguration.emplace(key, std::move(value)); return *this; }
244 inline BaseConfigurationItem& AddSupplementaryConfiguration(Aws::String&& key, Aws::String&& value) { m_supplementaryConfigurationHasBeenSet = true; m_supplementaryConfiguration.emplace(std::move(key), std::move(value)); return *this; }
245 inline BaseConfigurationItem& AddSupplementaryConfiguration(const char* key, Aws::String&& value) { m_supplementaryConfigurationHasBeenSet = true; m_supplementaryConfiguration.emplace(key, std::move(value)); return *this; }
246 inline BaseConfigurationItem& AddSupplementaryConfiguration(Aws::String&& key, const char* value) { m_supplementaryConfigurationHasBeenSet = true; m_supplementaryConfiguration.emplace(std::move(key), value); return *this; }
247 inline BaseConfigurationItem& AddSupplementaryConfiguration(const char* key, const char* value) { m_supplementaryConfigurationHasBeenSet = true; m_supplementaryConfiguration.emplace(key, value); return *this; }
249
251
255 inline const RecordingFrequency& GetRecordingFrequency() const{ return m_recordingFrequency; }
256 inline bool RecordingFrequencyHasBeenSet() const { return m_recordingFrequencyHasBeenSet; }
257 inline void SetRecordingFrequency(const RecordingFrequency& value) { m_recordingFrequencyHasBeenSet = true; m_recordingFrequency = value; }
258 inline void SetRecordingFrequency(RecordingFrequency&& value) { m_recordingFrequencyHasBeenSet = true; m_recordingFrequency = std::move(value); }
262
264
274 inline const Aws::Utils::DateTime& GetConfigurationItemDeliveryTime() const{ return m_configurationItemDeliveryTime; }
275 inline bool ConfigurationItemDeliveryTimeHasBeenSet() const { return m_configurationItemDeliveryTimeHasBeenSet; }
276 inline void SetConfigurationItemDeliveryTime(const Aws::Utils::DateTime& value) { m_configurationItemDeliveryTimeHasBeenSet = true; m_configurationItemDeliveryTime = value; }
277 inline void SetConfigurationItemDeliveryTime(Aws::Utils::DateTime&& value) { m_configurationItemDeliveryTimeHasBeenSet = true; m_configurationItemDeliveryTime = std::move(value); }
281 private:
282
283 Aws::String m_version;
284 bool m_versionHasBeenSet = false;
285
286 Aws::String m_accountId;
287 bool m_accountIdHasBeenSet = false;
288
289 Aws::Utils::DateTime m_configurationItemCaptureTime;
290 bool m_configurationItemCaptureTimeHasBeenSet = false;
291
292 ConfigurationItemStatus m_configurationItemStatus;
293 bool m_configurationItemStatusHasBeenSet = false;
294
295 Aws::String m_configurationStateId;
296 bool m_configurationStateIdHasBeenSet = false;
297
298 Aws::String m_arn;
299 bool m_arnHasBeenSet = false;
300
301 ResourceType m_resourceType;
302 bool m_resourceTypeHasBeenSet = false;
303
304 Aws::String m_resourceId;
305 bool m_resourceIdHasBeenSet = false;
306
307 Aws::String m_resourceName;
308 bool m_resourceNameHasBeenSet = false;
309
310 Aws::String m_awsRegion;
311 bool m_awsRegionHasBeenSet = false;
312
313 Aws::String m_availabilityZone;
314 bool m_availabilityZoneHasBeenSet = false;
315
316 Aws::Utils::DateTime m_resourceCreationTime;
317 bool m_resourceCreationTimeHasBeenSet = false;
318
319 Aws::String m_configuration;
320 bool m_configurationHasBeenSet = false;
321
322 Aws::Map<Aws::String, Aws::String> m_supplementaryConfiguration;
323 bool m_supplementaryConfigurationHasBeenSet = false;
324
325 RecordingFrequency m_recordingFrequency;
326 bool m_recordingFrequencyHasBeenSet = false;
327
328 Aws::Utils::DateTime m_configurationItemDeliveryTime;
329 bool m_configurationItemDeliveryTimeHasBeenSet = false;
330 };
331
332} // namespace Model
333} // namespace ConfigService
334} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetSupplementaryConfiguration() const
BaseConfigurationItem & WithAvailabilityZone(const Aws::String &value)
BaseConfigurationItem & WithConfigurationItemStatus(const ConfigurationItemStatus &value)
const RecordingFrequency & GetRecordingFrequency() const
void SetRecordingFrequency(const RecordingFrequency &value)
BaseConfigurationItem & WithAwsRegion(const char *value)
BaseConfigurationItem & WithResourceId(Aws::String &&value)
BaseConfigurationItem & WithVersion(const Aws::String &value)
void SetConfigurationItemStatus(ConfigurationItemStatus &&value)
BaseConfigurationItem & WithArn(const char *value)
BaseConfigurationItem & WithResourceId(const Aws::String &value)
BaseConfigurationItem & WithConfigurationItemCaptureTime(const Aws::Utils::DateTime &value)
BaseConfigurationItem & WithAvailabilityZone(Aws::String &&value)
void SetConfigurationItemCaptureTime(const Aws::Utils::DateTime &value)
BaseConfigurationItem & AddSupplementaryConfiguration(const char *key, const char *value)
BaseConfigurationItem & WithVersion(const char *value)
void SetConfigurationItemDeliveryTime(const Aws::Utils::DateTime &value)
BaseConfigurationItem & WithAccountId(const char *value)
BaseConfigurationItem & WithResourceCreationTime(const Aws::Utils::DateTime &value)
BaseConfigurationItem & WithConfiguration(const char *value)
BaseConfigurationItem & WithArn(Aws::String &&value)
BaseConfigurationItem & AddSupplementaryConfiguration(Aws::String &&key, const Aws::String &value)
BaseConfigurationItem & WithAwsRegion(const Aws::String &value)
BaseConfigurationItem & WithRecordingFrequency(RecordingFrequency &&value)
BaseConfigurationItem & WithAwsRegion(Aws::String &&value)
BaseConfigurationItem & WithResourceName(const Aws::String &value)
const Aws::Utils::DateTime & GetConfigurationItemCaptureTime() const
BaseConfigurationItem & AddSupplementaryConfiguration(Aws::String &&key, Aws::String &&value)
BaseConfigurationItem & WithConfigurationItemStatus(ConfigurationItemStatus &&value)
BaseConfigurationItem & WithAccountId(Aws::String &&value)
BaseConfigurationItem & WithConfigurationStateId(const char *value)
AWS_CONFIGSERVICE_API BaseConfigurationItem(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetResourceCreationTime() const
BaseConfigurationItem & WithResourceType(ResourceType &&value)
BaseConfigurationItem & WithRecordingFrequency(const RecordingFrequency &value)
BaseConfigurationItem & WithConfigurationStateId(Aws::String &&value)
BaseConfigurationItem & WithConfigurationStateId(const Aws::String &value)
const Aws::Utils::DateTime & GetConfigurationItemDeliveryTime() const
BaseConfigurationItem & AddSupplementaryConfiguration(const char *key, Aws::String &&value)
BaseConfigurationItem & WithSupplementaryConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
BaseConfigurationItem & WithAccountId(const Aws::String &value)
void SetSupplementaryConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
BaseConfigurationItem & WithSupplementaryConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
AWS_CONFIGSERVICE_API BaseConfigurationItem & operator=(Aws::Utils::Json::JsonView jsonValue)
BaseConfigurationItem & WithResourceCreationTime(Aws::Utils::DateTime &&value)
void SetResourceCreationTime(const Aws::Utils::DateTime &value)
BaseConfigurationItem & WithArn(const Aws::String &value)
BaseConfigurationItem & WithResourceName(const char *value)
BaseConfigurationItem & AddSupplementaryConfiguration(Aws::String &&key, const char *value)
BaseConfigurationItem & WithConfiguration(const Aws::String &value)
void SetResourceCreationTime(Aws::Utils::DateTime &&value)
BaseConfigurationItem & AddSupplementaryConfiguration(const Aws::String &key, Aws::String &&value)
BaseConfigurationItem & WithResourceId(const char *value)
void SetConfigurationItemStatus(const ConfigurationItemStatus &value)
BaseConfigurationItem & WithConfiguration(Aws::String &&value)
BaseConfigurationItem & WithConfigurationItemDeliveryTime(Aws::Utils::DateTime &&value)
const ConfigurationItemStatus & GetConfigurationItemStatus() const
BaseConfigurationItem & WithResourceName(Aws::String &&value)
void SetConfigurationItemCaptureTime(Aws::Utils::DateTime &&value)
BaseConfigurationItem & WithConfigurationItemDeliveryTime(const Aws::Utils::DateTime &value)
BaseConfigurationItem & WithVersion(Aws::String &&value)
BaseConfigurationItem & WithResourceType(const ResourceType &value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
BaseConfigurationItem & WithAvailabilityZone(const char *value)
void SetSupplementaryConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
void SetConfigurationItemDeliveryTime(Aws::Utils::DateTime &&value)
BaseConfigurationItem & WithConfigurationItemCaptureTime(Aws::Utils::DateTime &&value)
BaseConfigurationItem & AddSupplementaryConfiguration(const Aws::String &key, const Aws::String &value)
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
Aws::Utils::Json::JsonValue JsonValue