AWS SDK for C++  1.9.130
AWS SDK for C++
Resource.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace SecurityHub
26 {
27 namespace Model
28 {
29 
36  {
37  public:
42 
43 
51  inline const Aws::String& GetType() const{ return m_type; }
52 
60  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 
69  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
70 
78  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
79 
87  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
88 
96  inline Resource& WithType(const Aws::String& value) { SetType(value); return *this;}
97 
105  inline Resource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
106 
114  inline Resource& WithType(const char* value) { SetType(value); return *this;}
115 
116 
120  inline const Aws::String& GetId() const{ return m_id; }
121 
125  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
126 
130  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
131 
135  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
136 
140  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
141 
145  inline Resource& WithId(const Aws::String& value) { SetId(value); return *this;}
146 
150  inline Resource& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
151 
155  inline Resource& WithId(const char* value) { SetId(value); return *this;}
156 
157 
162  inline const Partition& GetPartition() const{ return m_partition; }
163 
168  inline bool PartitionHasBeenSet() const { return m_partitionHasBeenSet; }
169 
174  inline void SetPartition(const Partition& value) { m_partitionHasBeenSet = true; m_partition = value; }
175 
180  inline void SetPartition(Partition&& value) { m_partitionHasBeenSet = true; m_partition = std::move(value); }
181 
186  inline Resource& WithPartition(const Partition& value) { SetPartition(value); return *this;}
187 
192  inline Resource& WithPartition(Partition&& value) { SetPartition(std::move(value)); return *this;}
193 
194 
199  inline const Aws::String& GetRegion() const{ return m_region; }
200 
205  inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
206 
211  inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
212 
217  inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
218 
223  inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
224 
229  inline Resource& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
230 
235  inline Resource& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
236 
241  inline Resource& WithRegion(const char* value) { SetRegion(value); return *this;}
242 
243 
248  inline const Aws::String& GetResourceRole() const{ return m_resourceRole; }
249 
254  inline bool ResourceRoleHasBeenSet() const { return m_resourceRoleHasBeenSet; }
255 
260  inline void SetResourceRole(const Aws::String& value) { m_resourceRoleHasBeenSet = true; m_resourceRole = value; }
261 
266  inline void SetResourceRole(Aws::String&& value) { m_resourceRoleHasBeenSet = true; m_resourceRole = std::move(value); }
267 
272  inline void SetResourceRole(const char* value) { m_resourceRoleHasBeenSet = true; m_resourceRole.assign(value); }
273 
278  inline Resource& WithResourceRole(const Aws::String& value) { SetResourceRole(value); return *this;}
279 
284  inline Resource& WithResourceRole(Aws::String&& value) { SetResourceRole(std::move(value)); return *this;}
285 
290  inline Resource& WithResourceRole(const char* value) { SetResourceRole(value); return *this;}
291 
292 
297  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
298 
303  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
304 
309  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
310 
315  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
316 
321  inline Resource& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
322 
327  inline Resource& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
328 
333  inline Resource& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
334 
339  inline Resource& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
340 
345  inline Resource& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
346 
351  inline Resource& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
352 
357  inline Resource& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
358 
363  inline Resource& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
364 
369  inline Resource& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
370 
371 
376  inline const DataClassificationDetails& GetDataClassification() const{ return m_dataClassification; }
377 
382  inline bool DataClassificationHasBeenSet() const { return m_dataClassificationHasBeenSet; }
383 
388  inline void SetDataClassification(const DataClassificationDetails& value) { m_dataClassificationHasBeenSet = true; m_dataClassification = value; }
389 
394  inline void SetDataClassification(DataClassificationDetails&& value) { m_dataClassificationHasBeenSet = true; m_dataClassification = std::move(value); }
395 
400  inline Resource& WithDataClassification(const DataClassificationDetails& value) { SetDataClassification(value); return *this;}
401 
406  inline Resource& WithDataClassification(DataClassificationDetails&& value) { SetDataClassification(std::move(value)); return *this;}
407 
408 
412  inline const ResourceDetails& GetDetails() const{ return m_details; }
413 
417  inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
418 
422  inline void SetDetails(const ResourceDetails& value) { m_detailsHasBeenSet = true; m_details = value; }
423 
427  inline void SetDetails(ResourceDetails&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
428 
432  inline Resource& WithDetails(const ResourceDetails& value) { SetDetails(value); return *this;}
433 
437  inline Resource& WithDetails(ResourceDetails&& value) { SetDetails(std::move(value)); return *this;}
438 
439  private:
440 
441  Aws::String m_type;
442  bool m_typeHasBeenSet;
443 
444  Aws::String m_id;
445  bool m_idHasBeenSet;
446 
447  Partition m_partition;
448  bool m_partitionHasBeenSet;
449 
450  Aws::String m_region;
451  bool m_regionHasBeenSet;
452 
453  Aws::String m_resourceRole;
454  bool m_resourceRoleHasBeenSet;
455 
457  bool m_tagsHasBeenSet;
458 
459  DataClassificationDetails m_dataClassification;
460  bool m_dataClassificationHasBeenSet;
461 
462  ResourceDetails m_details;
463  bool m_detailsHasBeenSet;
464  };
465 
466 } // namespace Model
467 } // namespace SecurityHub
468 } // namespace Aws
Aws::SecurityHub::Model::Resource
Definition: Resource.h:36
Aws::SecurityHub::Model::Resource::WithRegion
Resource & WithRegion(const Aws::String &value)
Definition: Resource.h:229
Aws::SecurityHub::Model::Resource::WithDataClassification
Resource & WithDataClassification(const DataClassificationDetails &value)
Definition: Resource.h:400
Aws::SecurityHub::Model::Resource::AddTags
Resource & AddTags(const Aws::String &key, Aws::String &&value)
Definition: Resource.h:345
Aws::SecurityHub::Model::Resource::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Resource.h:315
Aws::SecurityHub::Model::Resource::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Resource.h:60
Aws::SecurityHub::Model::Resource::WithPartition
Resource & WithPartition(const Partition &value)
Definition: Resource.h:186
Aws::SecurityHub::Model::Resource::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Resource.h:309
Aws::SecurityHub::Model::Resource::SetPartition
void SetPartition(const Partition &value)
Definition: Resource.h:174
Aws::SecurityHub::Model::Resource::WithId
Resource & WithId(Aws::String &&value)
Definition: Resource.h:150
Aws::SecurityHub::Model::Resource::WithTags
Resource & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Resource.h:327
Aws::SecurityHub::Model::Resource::SetType
void SetType(const char *value)
Definition: Resource.h:87
Aws::SecurityHub::Model::Resource::SetDetails
void SetDetails(ResourceDetails &&value)
Definition: Resource.h:427
Aws::SecurityHub::Model::Resource::AddTags
Resource & AddTags(const char *key, Aws::String &&value)
Definition: Resource.h:357
Aws::SecurityHub::Model::Resource::SetResourceRole
void SetResourceRole(const char *value)
Definition: Resource.h:272
DataClassificationDetails.h
Aws::SecurityHub::Model::Resource::WithPartition
Resource & WithPartition(Partition &&value)
Definition: Resource.h:192
Aws::SecurityHub::Model::Resource::GetType
const Aws::String & GetType() const
Definition: Resource.h:51
Aws::SecurityHub::Model::Resource::SetDataClassification
void SetDataClassification(const DataClassificationDetails &value)
Definition: Resource.h:388
Aws::SecurityHub::Model::Resource::SetId
void SetId(const Aws::String &value)
Definition: Resource.h:130
Aws::SecurityHub::Model::DataClassificationDetails
Definition: DataClassificationDetails.h:34
Aws::SecurityHub::Model::Resource::WithDataClassification
Resource & WithDataClassification(DataClassificationDetails &&value)
Definition: Resource.h:406
Aws::SecurityHub::Model::Resource::WithDetails
Resource & WithDetails(const ResourceDetails &value)
Definition: Resource.h:432
Aws::SecurityHub::Model::Resource::SetRegion
void SetRegion(const char *value)
Definition: Resource.h:223
Aws::SecurityHub::Model::Resource::SetType
void SetType(Aws::String &&value)
Definition: Resource.h:78
Aws::SecurityHub::Model::Resource::SetDetails
void SetDetails(const ResourceDetails &value)
Definition: Resource.h:422
Aws::SecurityHub::Model::Resource::GetId
const Aws::String & GetId() const
Definition: Resource.h:120
Aws::SecurityHub::Model::Resource::Resource
Resource(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::Resource::operator=
Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::Resource::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: Resource.h:297
Aws::SecurityHub::Model::Resource::WithResourceRole
Resource & WithResourceRole(Aws::String &&value)
Definition: Resource.h:284
Aws::SecurityHub::Model::Resource::SetRegion
void SetRegion(const Aws::String &value)
Definition: Resource.h:211
Aws::SecurityHub::Model::Resource::Resource
Resource()
Aws::SecurityHub::Model::Resource::AddTags
Resource & AddTags(Aws::String &&key, const Aws::String &value)
Definition: Resource.h:339
Aws::SecurityHub::Model::Resource::GetRegion
const Aws::String & GetRegion() const
Definition: Resource.h:199
Aws::SecurityHub::Model::Resource::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Resource.h:125
Aws::SecurityHub::Model::Resource::AddTags
Resource & AddTags(Aws::String &&key, const char *value)
Definition: Resource.h:363
Aws::SecurityHub::Model::Resource::SetType
void SetType(const Aws::String &value)
Definition: Resource.h:69
Aws::SecurityHub::Model::Resource::ResourceRoleHasBeenSet
bool ResourceRoleHasBeenSet() const
Definition: Resource.h:254
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::Resource::WithRegion
Resource & WithRegion(const char *value)
Definition: Resource.h:241
Aws::SecurityHub::Model::ResourceDetails
Definition: ResourceDetails.h:99
Aws::SecurityHub::Model::Resource::WithType
Resource & WithType(const Aws::String &value)
Definition: Resource.h:96
Aws::SecurityHub::Model::Resource::WithRegion
Resource & WithRegion(Aws::String &&value)
Definition: Resource.h:235
Aws::SecurityHub::Model::Resource::WithType
Resource & WithType(Aws::String &&value)
Definition: Resource.h:105
Aws::SecurityHub::Model::Resource::SetResourceRole
void SetResourceRole(const Aws::String &value)
Definition: Resource.h:260
Aws::SecurityHub::Model::Resource::SetRegion
void SetRegion(Aws::String &&value)
Definition: Resource.h:217
Aws::SecurityHub::Model::Resource::AddTags
Resource & AddTags(Aws::String &&key, Aws::String &&value)
Definition: Resource.h:351
Aws::SecurityHub::Model::Resource::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: Resource.h:303
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::Resource::SetResourceRole
void SetResourceRole(Aws::String &&value)
Definition: Resource.h:266
Aws::SecurityHub::Model::Resource::WithId
Resource & WithId(const char *value)
Definition: Resource.h:155
Aws::SecurityHub::Model::Resource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SecurityHub::Model::Resource::SetPartition
void SetPartition(Partition &&value)
Definition: Resource.h:180
Aws::SecurityHub::Model::Resource::RegionHasBeenSet
bool RegionHasBeenSet() const
Definition: Resource.h:205
Aws::SecurityHub::Model::Resource::AddTags
Resource & AddTags(const Aws::String &key, const Aws::String &value)
Definition: Resource.h:333
ResourceDetails.h
Aws::SecurityHub::Model::Resource::SetId
void SetId(Aws::String &&value)
Definition: Resource.h:135
Aws::SecurityHub::Model::Resource::WithResourceRole
Resource & WithResourceRole(const char *value)
Definition: Resource.h:290
Aws::SecurityHub::Model::Resource::AddTags
Resource & AddTags(const char *key, const char *value)
Definition: Resource.h:369
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::Resource::GetDataClassification
const DataClassificationDetails & GetDataClassification() const
Definition: Resource.h:376
Aws::SecurityHub::Model::Resource::PartitionHasBeenSet
bool PartitionHasBeenSet() const
Definition: Resource.h:168
Aws::SecurityHub::Model::Resource::WithDetails
Resource & WithDetails(ResourceDetails &&value)
Definition: Resource.h:437
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Partition.h
Aws::SecurityHub::Model::Resource::SetDataClassification
void SetDataClassification(DataClassificationDetails &&value)
Definition: Resource.h:394
Aws::SecurityHub::Model::Resource::WithTags
Resource & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Resource.h:321
Aws::SecurityHub::Model::Partition
Partition
Definition: Partition.h:17
Aws::SecurityHub::Model::Resource::DetailsHasBeenSet
bool DetailsHasBeenSet() const
Definition: Resource.h:417
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::Resource::WithType
Resource & WithType(const char *value)
Definition: Resource.h:114
Aws::SecurityHub::Model::Resource::DataClassificationHasBeenSet
bool DataClassificationHasBeenSet() const
Definition: Resource.h:382
Aws::SecurityHub::Model::Resource::GetDetails
const ResourceDetails & GetDetails() const
Definition: Resource.h:412
Aws::SecurityHub::Model::Resource::SetId
void SetId(const char *value)
Definition: Resource.h:140
AWSMap.h
Aws::SecurityHub::Model::Resource::GetPartition
const Partition & GetPartition() const
Definition: Resource.h:162
Aws::SecurityHub::Model::Resource::WithResourceRole
Resource & WithResourceRole(const Aws::String &value)
Definition: Resource.h:278
Aws::SecurityHub::Model::Resource::GetResourceRole
const Aws::String & GetResourceRole() const
Definition: Resource.h:248
Aws::SecurityHub::Model::Resource::WithId
Resource & WithId(const Aws::String &value)
Definition: Resource.h:145
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19