AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
SecurityProfile.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/GranularAccessControlConfiguration.h>
9#include <aws/connect/model/SecurityProfileType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Connect {
25namespace Model {
26
33 public:
34 AWS_CONNECT_API SecurityProfile() = default;
35 AWS_CONNECT_API SecurityProfile(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 SecurityProfile& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetOrganizationResourceId() const { return m_organizationResourceId; }
62 inline bool OrganizationResourceIdHasBeenSet() const { return m_organizationResourceIdHasBeenSet; }
63 template <typename OrganizationResourceIdT = Aws::String>
64 void SetOrganizationResourceId(OrganizationResourceIdT&& value) {
65 m_organizationResourceIdHasBeenSet = true;
66 m_organizationResourceId = std::forward<OrganizationResourceIdT>(value);
67 }
68 template <typename OrganizationResourceIdT = Aws::String>
69 SecurityProfile& WithOrganizationResourceId(OrganizationResourceIdT&& value) {
70 SetOrganizationResourceId(std::forward<OrganizationResourceIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetArn() const { return m_arn; }
80 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
81 template <typename ArnT = Aws::String>
82 void SetArn(ArnT&& value) {
83 m_arnHasBeenSet = true;
84 m_arn = std::forward<ArnT>(value);
85 }
86 template <typename ArnT = Aws::String>
87 SecurityProfile& WithArn(ArnT&& value) {
88 SetArn(std::forward<ArnT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetSecurityProfileName() const { return m_securityProfileName; }
98 inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
99 template <typename SecurityProfileNameT = Aws::String>
100 void SetSecurityProfileName(SecurityProfileNameT&& value) {
101 m_securityProfileNameHasBeenSet = true;
102 m_securityProfileName = std::forward<SecurityProfileNameT>(value);
103 }
104 template <typename SecurityProfileNameT = Aws::String>
105 SecurityProfile& WithSecurityProfileName(SecurityProfileNameT&& value) {
106 SetSecurityProfileName(std::forward<SecurityProfileNameT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetDescription() const { return m_description; }
116 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
117 template <typename DescriptionT = Aws::String>
118 void SetDescription(DescriptionT&& value) {
119 m_descriptionHasBeenSet = true;
120 m_description = std::forward<DescriptionT>(value);
121 }
122 template <typename DescriptionT = Aws::String>
123 SecurityProfile& WithDescription(DescriptionT&& value) {
124 SetDescription(std::forward<DescriptionT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
137 void SetTags(TagsT&& value) {
138 m_tagsHasBeenSet = true;
139 m_tags = std::forward<TagsT>(value);
140 }
141 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 SecurityProfile& WithTags(TagsT&& value) {
143 SetTags(std::forward<TagsT>(value));
144 return *this;
145 }
146 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
147 SecurityProfile& AddTags(TagsKeyT&& key, TagsValueT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
150 return *this;
151 }
153
155
159 inline const Aws::Map<Aws::String, Aws::String>& GetAllowedAccessControlTags() const { return m_allowedAccessControlTags; }
160 inline bool AllowedAccessControlTagsHasBeenSet() const { return m_allowedAccessControlTagsHasBeenSet; }
161 template <typename AllowedAccessControlTagsT = Aws::Map<Aws::String, Aws::String>>
162 void SetAllowedAccessControlTags(AllowedAccessControlTagsT&& value) {
163 m_allowedAccessControlTagsHasBeenSet = true;
164 m_allowedAccessControlTags = std::forward<AllowedAccessControlTagsT>(value);
165 }
166 template <typename AllowedAccessControlTagsT = Aws::Map<Aws::String, Aws::String>>
167 SecurityProfile& WithAllowedAccessControlTags(AllowedAccessControlTagsT&& value) {
168 SetAllowedAccessControlTags(std::forward<AllowedAccessControlTagsT>(value));
169 return *this;
170 }
171 template <typename AllowedAccessControlTagsKeyT = Aws::String, typename AllowedAccessControlTagsValueT = Aws::String>
172 SecurityProfile& AddAllowedAccessControlTags(AllowedAccessControlTagsKeyT&& key, AllowedAccessControlTagsValueT&& value) {
173 m_allowedAccessControlTagsHasBeenSet = true;
174 m_allowedAccessControlTags.emplace(std::forward<AllowedAccessControlTagsKeyT>(key),
175 std::forward<AllowedAccessControlTagsValueT>(value));
176 return *this;
177 }
179
181
185 inline const Aws::Vector<Aws::String>& GetTagRestrictedResources() const { return m_tagRestrictedResources; }
186 inline bool TagRestrictedResourcesHasBeenSet() const { return m_tagRestrictedResourcesHasBeenSet; }
187 template <typename TagRestrictedResourcesT = Aws::Vector<Aws::String>>
188 void SetTagRestrictedResources(TagRestrictedResourcesT&& value) {
189 m_tagRestrictedResourcesHasBeenSet = true;
190 m_tagRestrictedResources = std::forward<TagRestrictedResourcesT>(value);
191 }
192 template <typename TagRestrictedResourcesT = Aws::Vector<Aws::String>>
193 SecurityProfile& WithTagRestrictedResources(TagRestrictedResourcesT&& value) {
194 SetTagRestrictedResources(std::forward<TagRestrictedResourcesT>(value));
195 return *this;
196 }
197 template <typename TagRestrictedResourcesT = Aws::String>
198 SecurityProfile& AddTagRestrictedResources(TagRestrictedResourcesT&& value) {
199 m_tagRestrictedResourcesHasBeenSet = true;
200 m_tagRestrictedResources.emplace_back(std::forward<TagRestrictedResourcesT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
210 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
211 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
212 void SetLastModifiedTime(LastModifiedTimeT&& value) {
213 m_lastModifiedTimeHasBeenSet = true;
214 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
215 }
216 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
217 SecurityProfile& WithLastModifiedTime(LastModifiedTimeT&& value) {
218 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
219 return *this;
220 }
222
224
227 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
228 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
229 template <typename LastModifiedRegionT = Aws::String>
230 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
231 m_lastModifiedRegionHasBeenSet = true;
232 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
233 }
234 template <typename LastModifiedRegionT = Aws::String>
235 SecurityProfile& WithLastModifiedRegion(LastModifiedRegionT&& value) {
236 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
237 return *this;
238 }
240
242
247 inline const Aws::Vector<Aws::String>& GetHierarchyRestrictedResources() const { return m_hierarchyRestrictedResources; }
248 inline bool HierarchyRestrictedResourcesHasBeenSet() const { return m_hierarchyRestrictedResourcesHasBeenSet; }
249 template <typename HierarchyRestrictedResourcesT = Aws::Vector<Aws::String>>
250 void SetHierarchyRestrictedResources(HierarchyRestrictedResourcesT&& value) {
251 m_hierarchyRestrictedResourcesHasBeenSet = true;
252 m_hierarchyRestrictedResources = std::forward<HierarchyRestrictedResourcesT>(value);
253 }
254 template <typename HierarchyRestrictedResourcesT = Aws::Vector<Aws::String>>
255 SecurityProfile& WithHierarchyRestrictedResources(HierarchyRestrictedResourcesT&& value) {
256 SetHierarchyRestrictedResources(std::forward<HierarchyRestrictedResourcesT>(value));
257 return *this;
258 }
259 template <typename HierarchyRestrictedResourcesT = Aws::String>
260 SecurityProfile& AddHierarchyRestrictedResources(HierarchyRestrictedResourcesT&& value) {
261 m_hierarchyRestrictedResourcesHasBeenSet = true;
262 m_hierarchyRestrictedResources.emplace_back(std::forward<HierarchyRestrictedResourcesT>(value));
263 return *this;
264 }
266
268
272 inline const Aws::String& GetAllowedAccessControlHierarchyGroupId() const { return m_allowedAccessControlHierarchyGroupId; }
273 inline bool AllowedAccessControlHierarchyGroupIdHasBeenSet() const { return m_allowedAccessControlHierarchyGroupIdHasBeenSet; }
274 template <typename AllowedAccessControlHierarchyGroupIdT = Aws::String>
275 void SetAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT&& value) {
276 m_allowedAccessControlHierarchyGroupIdHasBeenSet = true;
277 m_allowedAccessControlHierarchyGroupId = std::forward<AllowedAccessControlHierarchyGroupIdT>(value);
278 }
279 template <typename AllowedAccessControlHierarchyGroupIdT = Aws::String>
280 SecurityProfile& WithAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT&& value) {
281 SetAllowedAccessControlHierarchyGroupId(std::forward<AllowedAccessControlHierarchyGroupIdT>(value));
282 return *this;
283 }
285
287
292 return m_granularAccessControlConfiguration;
293 }
294 inline bool GranularAccessControlConfigurationHasBeenSet() const { return m_granularAccessControlConfigurationHasBeenSet; }
295 template <typename GranularAccessControlConfigurationT = GranularAccessControlConfiguration>
296 void SetGranularAccessControlConfiguration(GranularAccessControlConfigurationT&& value) {
297 m_granularAccessControlConfigurationHasBeenSet = true;
298 m_granularAccessControlConfiguration = std::forward<GranularAccessControlConfigurationT>(value);
299 }
300 template <typename GranularAccessControlConfigurationT = GranularAccessControlConfiguration>
301 SecurityProfile& WithGranularAccessControlConfiguration(GranularAccessControlConfigurationT&& value) {
302 SetGranularAccessControlConfiguration(std::forward<GranularAccessControlConfigurationT>(value));
303 return *this;
304 }
306
308
312 inline SecurityProfileType GetType() const { return m_type; }
313 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
314 inline void SetType(SecurityProfileType value) {
315 m_typeHasBeenSet = true;
316 m_type = value;
317 }
319 SetType(value);
320 return *this;
321 }
323 private:
324 Aws::String m_id;
325
326 Aws::String m_organizationResourceId;
327
328 Aws::String m_arn;
329
330 Aws::String m_securityProfileName;
331
332 Aws::String m_description;
333
335
336 Aws::Map<Aws::String, Aws::String> m_allowedAccessControlTags;
337
338 Aws::Vector<Aws::String> m_tagRestrictedResources;
339
340 Aws::Utils::DateTime m_lastModifiedTime{};
341
342 Aws::String m_lastModifiedRegion;
343
344 Aws::Vector<Aws::String> m_hierarchyRestrictedResources;
345
346 Aws::String m_allowedAccessControlHierarchyGroupId;
347
348 GranularAccessControlConfiguration m_granularAccessControlConfiguration;
349
351 bool m_idHasBeenSet = false;
352 bool m_organizationResourceIdHasBeenSet = false;
353 bool m_arnHasBeenSet = false;
354 bool m_securityProfileNameHasBeenSet = false;
355 bool m_descriptionHasBeenSet = false;
356 bool m_tagsHasBeenSet = false;
357 bool m_allowedAccessControlTagsHasBeenSet = false;
358 bool m_tagRestrictedResourcesHasBeenSet = false;
359 bool m_lastModifiedTimeHasBeenSet = false;
360 bool m_lastModifiedRegionHasBeenSet = false;
361 bool m_hierarchyRestrictedResourcesHasBeenSet = false;
362 bool m_allowedAccessControlHierarchyGroupIdHasBeenSet = false;
363 bool m_granularAccessControlConfigurationHasBeenSet = false;
364 bool m_typeHasBeenSet = false;
365};
366
367} // namespace Model
368} // namespace Connect
369} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetOrganizationResourceId() const
const Aws::String & GetId() const
SecurityProfile & WithOrganizationResourceId(OrganizationResourceIdT &&value)
void SetAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT &&value)
const Aws::String & GetLastModifiedRegion() const
void SetSecurityProfileName(SecurityProfileNameT &&value)
SecurityProfile & WithAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT &&value)
bool AllowedAccessControlHierarchyGroupIdHasBeenSet() const
SecurityProfile & AddTags(TagsKeyT &&key, TagsValueT &&value)
const GranularAccessControlConfiguration & GetGranularAccessControlConfiguration() const
SecurityProfile & AddAllowedAccessControlTags(AllowedAccessControlTagsKeyT &&key, AllowedAccessControlTagsValueT &&value)
SecurityProfile & WithId(IdT &&value)
AWS_CONNECT_API SecurityProfile(Aws::Utils::Json::JsonView jsonValue)
void SetGranularAccessControlConfiguration(GranularAccessControlConfigurationT &&value)
const Aws::String & GetAllowedAccessControlHierarchyGroupId() const
const Aws::Map< Aws::String, Aws::String > & GetAllowedAccessControlTags() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
SecurityProfile & WithSecurityProfileName(SecurityProfileNameT &&value)
void SetOrganizationResourceId(OrganizationResourceIdT &&value)
void SetLastModifiedRegion(LastModifiedRegionT &&value)
SecurityProfile & WithLastModifiedRegion(LastModifiedRegionT &&value)
SecurityProfile & WithLastModifiedTime(LastModifiedTimeT &&value)
SecurityProfile & WithTags(TagsT &&value)
void SetTagRestrictedResources(TagRestrictedResourcesT &&value)
SecurityProfile & WithGranularAccessControlConfiguration(GranularAccessControlConfigurationT &&value)
AWS_CONNECT_API SecurityProfile()=default
const Aws::String & GetArn() const
SecurityProfile & WithHierarchyRestrictedResources(HierarchyRestrictedResourcesT &&value)
SecurityProfile & WithType(SecurityProfileType value)
const Aws::String & GetSecurityProfileName() const
SecurityProfile & WithArn(ArnT &&value)
const Aws::Vector< Aws::String > & GetHierarchyRestrictedResources() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
SecurityProfile & WithAllowedAccessControlTags(AllowedAccessControlTagsT &&value)
AWS_CONNECT_API SecurityProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetHierarchyRestrictedResources(HierarchyRestrictedResourcesT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
SecurityProfile & AddHierarchyRestrictedResources(HierarchyRestrictedResourcesT &&value)
const Aws::Vector< Aws::String > & GetTagRestrictedResources() const
SecurityProfile & WithDescription(DescriptionT &&value)
SecurityProfileType GetType() const
void SetDescription(DescriptionT &&value)
SecurityProfile & AddTagRestrictedResources(TagRestrictedResourcesT &&value)
const Aws::String & GetDescription() const
SecurityProfile & WithTagRestrictedResources(TagRestrictedResourcesT &&value)
void SetType(SecurityProfileType value)
void SetAllowedAccessControlTags(AllowedAccessControlTagsT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue