AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/Partition.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/securityhub/model/DataClassificationDetails.h>
12#include <aws/securityhub/model/ResourceDetails.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_SECURITYHUB_API Resource();
39 AWS_SECURITYHUB_API Resource(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
53 inline const Aws::String& GetType() const{ return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
56 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
57 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
58 inline Resource& WithType(const Aws::String& value) { SetType(value); return *this;}
59 inline Resource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
60 inline Resource& WithType(const char* value) { SetType(value); return *this;}
62
64
67 inline const Aws::String& GetId() const{ return m_id; }
68 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
69 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
70 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
71 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
72 inline Resource& WithId(const Aws::String& value) { SetId(value); return *this;}
73 inline Resource& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
74 inline Resource& WithId(const char* value) { SetId(value); return *this;}
76
78
82 inline const Partition& GetPartition() const{ return m_partition; }
83 inline bool PartitionHasBeenSet() const { return m_partitionHasBeenSet; }
84 inline void SetPartition(const Partition& value) { m_partitionHasBeenSet = true; m_partition = value; }
85 inline void SetPartition(Partition&& value) { m_partitionHasBeenSet = true; m_partition = std::move(value); }
86 inline Resource& WithPartition(const Partition& value) { SetPartition(value); return *this;}
87 inline Resource& WithPartition(Partition&& value) { SetPartition(std::move(value)); return *this;}
89
91
96 inline const Aws::String& GetRegion() const{ return m_region; }
97 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
98 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
99 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
100 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
101 inline Resource& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
102 inline Resource& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
103 inline Resource& WithRegion(const char* value) { SetRegion(value); return *this;}
105
107
111 inline const Aws::String& GetResourceRole() const{ return m_resourceRole; }
112 inline bool ResourceRoleHasBeenSet() const { return m_resourceRoleHasBeenSet; }
113 inline void SetResourceRole(const Aws::String& value) { m_resourceRoleHasBeenSet = true; m_resourceRole = value; }
114 inline void SetResourceRole(Aws::String&& value) { m_resourceRoleHasBeenSet = true; m_resourceRole = std::move(value); }
115 inline void SetResourceRole(const char* value) { m_resourceRoleHasBeenSet = true; m_resourceRole.assign(value); }
116 inline Resource& WithResourceRole(const Aws::String& value) { SetResourceRole(value); return *this;}
117 inline Resource& WithResourceRole(Aws::String&& value) { SetResourceRole(std::move(value)); return *this;}
118 inline Resource& WithResourceRole(const char* value) { SetResourceRole(value); return *this;}
120
122
128 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
131 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
132 inline Resource& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
133 inline Resource& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
134 inline Resource& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
135 inline Resource& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
136 inline Resource& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
137 inline Resource& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
138 inline Resource& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
139 inline Resource& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
140 inline Resource& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
142
144
148 inline const DataClassificationDetails& GetDataClassification() const{ return m_dataClassification; }
149 inline bool DataClassificationHasBeenSet() const { return m_dataClassificationHasBeenSet; }
150 inline void SetDataClassification(const DataClassificationDetails& value) { m_dataClassificationHasBeenSet = true; m_dataClassification = value; }
151 inline void SetDataClassification(DataClassificationDetails&& value) { m_dataClassificationHasBeenSet = true; m_dataClassification = std::move(value); }
153 inline Resource& WithDataClassification(DataClassificationDetails&& value) { SetDataClassification(std::move(value)); return *this;}
155
157
160 inline const ResourceDetails& GetDetails() const{ return m_details; }
161 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
162 inline void SetDetails(const ResourceDetails& value) { m_detailsHasBeenSet = true; m_details = value; }
163 inline void SetDetails(ResourceDetails&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
164 inline Resource& WithDetails(const ResourceDetails& value) { SetDetails(value); return *this;}
165 inline Resource& WithDetails(ResourceDetails&& value) { SetDetails(std::move(value)); return *this;}
167
169
172 inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
173 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
174 inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
175 inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
176 inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
177 inline Resource& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
178 inline Resource& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
179 inline Resource& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
181
183
187 inline const Aws::String& GetApplicationArn() const{ return m_applicationArn; }
188 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
189 inline void SetApplicationArn(const Aws::String& value) { m_applicationArnHasBeenSet = true; m_applicationArn = value; }
190 inline void SetApplicationArn(Aws::String&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::move(value); }
191 inline void SetApplicationArn(const char* value) { m_applicationArnHasBeenSet = true; m_applicationArn.assign(value); }
192 inline Resource& WithApplicationArn(const Aws::String& value) { SetApplicationArn(value); return *this;}
193 inline Resource& WithApplicationArn(Aws::String&& value) { SetApplicationArn(std::move(value)); return *this;}
194 inline Resource& WithApplicationArn(const char* value) { SetApplicationArn(value); return *this;}
196 private:
197
198 Aws::String m_type;
199 bool m_typeHasBeenSet = false;
200
201 Aws::String m_id;
202 bool m_idHasBeenSet = false;
203
204 Partition m_partition;
205 bool m_partitionHasBeenSet = false;
206
207 Aws::String m_region;
208 bool m_regionHasBeenSet = false;
209
210 Aws::String m_resourceRole;
211 bool m_resourceRoleHasBeenSet = false;
212
214 bool m_tagsHasBeenSet = false;
215
216 DataClassificationDetails m_dataClassification;
217 bool m_dataClassificationHasBeenSet = false;
218
219 ResourceDetails m_details;
220 bool m_detailsHasBeenSet = false;
221
222 Aws::String m_applicationName;
223 bool m_applicationNameHasBeenSet = false;
224
225 Aws::String m_applicationArn;
226 bool m_applicationArnHasBeenSet = false;
227 };
228
229} // namespace Model
230} // namespace SecurityHub
231} // namespace Aws
Resource & WithRegion(const char *value)
Definition Resource.h:103
Resource & WithDataClassification(const DataClassificationDetails &value)
Definition Resource.h:152
Resource & WithType(const Aws::String &value)
Definition Resource.h:58
const Aws::String & GetApplicationArn() const
Definition Resource.h:187
Resource & WithApplicationName(Aws::String &&value)
Definition Resource.h:178
Resource & WithRegion(Aws::String &&value)
Definition Resource.h:102
Resource & WithType(Aws::String &&value)
Definition Resource.h:59
Resource & WithDataClassification(DataClassificationDetails &&value)
Definition Resource.h:153
void SetDataClassification(const DataClassificationDetails &value)
Definition Resource.h:150
void SetResourceRole(const Aws::String &value)
Definition Resource.h:113
Resource & AddTags(const Aws::String &key, const Aws::String &value)
Definition Resource.h:134
const Partition & GetPartition() const
Definition Resource.h:82
void SetApplicationArn(Aws::String &&value)
Definition Resource.h:190
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Resource.h:128
void SetResourceRole(const char *value)
Definition Resource.h:115
Resource & WithApplicationArn(Aws::String &&value)
Definition Resource.h:193
Resource & WithResourceRole(const Aws::String &value)
Definition Resource.h:116
AWS_SECURITYHUB_API Resource()
void SetId(const Aws::String &value)
Definition Resource.h:69
void SetId(const char *value)
Definition Resource.h:71
Resource & WithRegion(const Aws::String &value)
Definition Resource.h:101
const DataClassificationDetails & GetDataClassification() const
Definition Resource.h:148
void SetApplicationArn(const char *value)
Definition Resource.h:191
void SetApplicationName(const Aws::String &value)
Definition Resource.h:174
Resource & WithResourceRole(Aws::String &&value)
Definition Resource.h:117
Resource & WithApplicationName(const char *value)
Definition Resource.h:179
void SetDetails(ResourceDetails &&value)
Definition Resource.h:163
void SetType(const char *value)
Definition Resource.h:57
void SetDataClassification(DataClassificationDetails &&value)
Definition Resource.h:151
Resource & WithDetails(ResourceDetails &&value)
Definition Resource.h:165
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Resource & WithId(Aws::String &&value)
Definition Resource.h:73
const Aws::String & GetResourceRole() const
Definition Resource.h:111
void SetRegion(const Aws::String &value)
Definition Resource.h:98
const Aws::String & GetId() const
Definition Resource.h:67
Resource & WithId(const char *value)
Definition Resource.h:74
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Resource.h:130
Resource & WithDetails(const ResourceDetails &value)
Definition Resource.h:164
Resource & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Resource.h:133
Resource & WithApplicationArn(const char *value)
Definition Resource.h:194
void SetPartition(const Partition &value)
Definition Resource.h:84
Resource & WithPartition(const Partition &value)
Definition Resource.h:86
void SetType(const Aws::String &value)
Definition Resource.h:55
void SetApplicationName(Aws::String &&value)
Definition Resource.h:175
void SetRegion(Aws::String &&value)
Definition Resource.h:99
Resource & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Resource.h:132
const Aws::String & GetApplicationName() const
Definition Resource.h:172
Resource & AddTags(Aws::String &&key, const char *value)
Definition Resource.h:139
Resource & WithType(const char *value)
Definition Resource.h:60
Resource & AddTags(Aws::String &&key, const Aws::String &value)
Definition Resource.h:135
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Resource.h:131
AWS_SECURITYHUB_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Resource & AddTags(const char *key, Aws::String &&value)
Definition Resource.h:138
void SetApplicationArn(const Aws::String &value)
Definition Resource.h:189
bool DataClassificationHasBeenSet() const
Definition Resource.h:149
void SetPartition(Partition &&value)
Definition Resource.h:85
Resource & WithPartition(Partition &&value)
Definition Resource.h:87
const Aws::String & GetType() const
Definition Resource.h:53
Resource & WithId(const Aws::String &value)
Definition Resource.h:72
AWS_SECURITYHUB_API Resource(Aws::Utils::Json::JsonView jsonValue)
Resource & WithResourceRole(const char *value)
Definition Resource.h:118
void SetApplicationName(const char *value)
Definition Resource.h:176
void SetId(Aws::String &&value)
Definition Resource.h:70
Resource & AddTags(const Aws::String &key, Aws::String &&value)
Definition Resource.h:136
const ResourceDetails & GetDetails() const
Definition Resource.h:160
void SetType(Aws::String &&value)
Definition Resource.h:56
void SetRegion(const char *value)
Definition Resource.h:100
void SetDetails(const ResourceDetails &value)
Definition Resource.h:162
const Aws::String & GetRegion() const
Definition Resource.h:96
Resource & WithApplicationName(const Aws::String &value)
Definition Resource.h:177
void SetResourceRole(Aws::String &&value)
Definition Resource.h:114
Resource & WithApplicationArn(const Aws::String &value)
Definition Resource.h:192
Resource & AddTags(Aws::String &&key, Aws::String &&value)
Definition Resource.h:137
Resource & AddTags(const char *key, const char *value)
Definition Resource.h:140
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