AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SecurityProfile.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Connect
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CONNECT_API SecurityProfile();
38 AWS_CONNECT_API SecurityProfile(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline SecurityProfile& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline SecurityProfile& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline SecurityProfile& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const Aws::String& GetOrganizationResourceId() const{ return m_organizationResourceId; }
62 inline bool OrganizationResourceIdHasBeenSet() const { return m_organizationResourceIdHasBeenSet; }
63 inline void SetOrganizationResourceId(const Aws::String& value) { m_organizationResourceIdHasBeenSet = true; m_organizationResourceId = value; }
64 inline void SetOrganizationResourceId(Aws::String&& value) { m_organizationResourceIdHasBeenSet = true; m_organizationResourceId = std::move(value); }
65 inline void SetOrganizationResourceId(const char* value) { m_organizationResourceIdHasBeenSet = true; m_organizationResourceId.assign(value); }
67 inline SecurityProfile& WithOrganizationResourceId(Aws::String&& value) { SetOrganizationResourceId(std::move(value)); return *this;}
68 inline SecurityProfile& WithOrganizationResourceId(const char* value) { SetOrganizationResourceId(value); return *this;}
70
72
75 inline const Aws::String& GetArn() const{ return m_arn; }
76 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
77 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
78 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
79 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
80 inline SecurityProfile& WithArn(const Aws::String& value) { SetArn(value); return *this;}
81 inline SecurityProfile& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
82 inline SecurityProfile& WithArn(const char* value) { SetArn(value); return *this;}
84
86
89 inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; }
90 inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
91 inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; }
92 inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); }
93 inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); }
94 inline SecurityProfile& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;}
95 inline SecurityProfile& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;}
96 inline SecurityProfile& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;}
98
100
103 inline const Aws::String& GetDescription() const{ return m_description; }
104 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
105 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
106 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
107 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
108 inline SecurityProfile& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
109 inline SecurityProfile& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
110 inline SecurityProfile& WithDescription(const char* value) { SetDescription(value); return *this;}
112
114
118 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
121 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
122 inline SecurityProfile& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
123 inline SecurityProfile& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
124 inline SecurityProfile& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
125 inline SecurityProfile& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
126 inline SecurityProfile& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
127 inline SecurityProfile& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
128 inline SecurityProfile& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
129 inline SecurityProfile& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
130 inline SecurityProfile& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
132
134
138 inline const Aws::Map<Aws::String, Aws::String>& GetAllowedAccessControlTags() const{ return m_allowedAccessControlTags; }
139 inline bool AllowedAccessControlTagsHasBeenSet() const { return m_allowedAccessControlTagsHasBeenSet; }
140 inline void SetAllowedAccessControlTags(const Aws::Map<Aws::String, Aws::String>& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags = value; }
141 inline void SetAllowedAccessControlTags(Aws::Map<Aws::String, Aws::String>&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags = std::move(value); }
144 inline SecurityProfile& AddAllowedAccessControlTags(const Aws::String& key, const Aws::String& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, value); return *this; }
145 inline SecurityProfile& AddAllowedAccessControlTags(Aws::String&& key, const Aws::String& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(std::move(key), value); return *this; }
146 inline SecurityProfile& AddAllowedAccessControlTags(const Aws::String& key, Aws::String&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, std::move(value)); return *this; }
147 inline SecurityProfile& AddAllowedAccessControlTags(Aws::String&& key, Aws::String&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(std::move(key), std::move(value)); return *this; }
148 inline SecurityProfile& AddAllowedAccessControlTags(const char* key, Aws::String&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, std::move(value)); return *this; }
149 inline SecurityProfile& AddAllowedAccessControlTags(Aws::String&& key, const char* value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(std::move(key), value); return *this; }
150 inline SecurityProfile& AddAllowedAccessControlTags(const char* key, const char* value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, value); return *this; }
152
154
158 inline const Aws::Vector<Aws::String>& GetTagRestrictedResources() const{ return m_tagRestrictedResources; }
159 inline bool TagRestrictedResourcesHasBeenSet() const { return m_tagRestrictedResourcesHasBeenSet; }
160 inline void SetTagRestrictedResources(const Aws::Vector<Aws::String>& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources = value; }
161 inline void SetTagRestrictedResources(Aws::Vector<Aws::String>&& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources = std::move(value); }
164 inline SecurityProfile& AddTagRestrictedResources(const Aws::String& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources.push_back(value); return *this; }
165 inline SecurityProfile& AddTagRestrictedResources(Aws::String&& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources.push_back(std::move(value)); return *this; }
166 inline SecurityProfile& AddTagRestrictedResources(const char* value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources.push_back(value); return *this; }
168
170
173 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
174 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
175 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
176 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
178 inline SecurityProfile& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
180
182
185 inline const Aws::String& GetLastModifiedRegion() const{ return m_lastModifiedRegion; }
186 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
187 inline void SetLastModifiedRegion(const Aws::String& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = value; }
188 inline void SetLastModifiedRegion(Aws::String&& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = std::move(value); }
189 inline void SetLastModifiedRegion(const char* value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion.assign(value); }
190 inline SecurityProfile& WithLastModifiedRegion(const Aws::String& value) { SetLastModifiedRegion(value); return *this;}
191 inline SecurityProfile& WithLastModifiedRegion(Aws::String&& value) { SetLastModifiedRegion(std::move(value)); return *this;}
192 inline SecurityProfile& WithLastModifiedRegion(const char* value) { SetLastModifiedRegion(value); return *this;}
194
196
201 inline const Aws::Vector<Aws::String>& GetHierarchyRestrictedResources() const{ return m_hierarchyRestrictedResources; }
202 inline bool HierarchyRestrictedResourcesHasBeenSet() const { return m_hierarchyRestrictedResourcesHasBeenSet; }
203 inline void SetHierarchyRestrictedResources(const Aws::Vector<Aws::String>& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources = value; }
204 inline void SetHierarchyRestrictedResources(Aws::Vector<Aws::String>&& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources = std::move(value); }
207 inline SecurityProfile& AddHierarchyRestrictedResources(const Aws::String& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources.push_back(value); return *this; }
208 inline SecurityProfile& AddHierarchyRestrictedResources(Aws::String&& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources.push_back(std::move(value)); return *this; }
209 inline SecurityProfile& AddHierarchyRestrictedResources(const char* value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources.push_back(value); return *this; }
211
213
217 inline const Aws::String& GetAllowedAccessControlHierarchyGroupId() const{ return m_allowedAccessControlHierarchyGroupId; }
218 inline bool AllowedAccessControlHierarchyGroupIdHasBeenSet() const { return m_allowedAccessControlHierarchyGroupIdHasBeenSet; }
219 inline void SetAllowedAccessControlHierarchyGroupId(const Aws::String& value) { m_allowedAccessControlHierarchyGroupIdHasBeenSet = true; m_allowedAccessControlHierarchyGroupId = value; }
220 inline void SetAllowedAccessControlHierarchyGroupId(Aws::String&& value) { m_allowedAccessControlHierarchyGroupIdHasBeenSet = true; m_allowedAccessControlHierarchyGroupId = std::move(value); }
221 inline void SetAllowedAccessControlHierarchyGroupId(const char* value) { m_allowedAccessControlHierarchyGroupIdHasBeenSet = true; m_allowedAccessControlHierarchyGroupId.assign(value); }
226 private:
227
228 Aws::String m_id;
229 bool m_idHasBeenSet = false;
230
231 Aws::String m_organizationResourceId;
232 bool m_organizationResourceIdHasBeenSet = false;
233
234 Aws::String m_arn;
235 bool m_arnHasBeenSet = false;
236
237 Aws::String m_securityProfileName;
238 bool m_securityProfileNameHasBeenSet = false;
239
240 Aws::String m_description;
241 bool m_descriptionHasBeenSet = false;
242
244 bool m_tagsHasBeenSet = false;
245
246 Aws::Map<Aws::String, Aws::String> m_allowedAccessControlTags;
247 bool m_allowedAccessControlTagsHasBeenSet = false;
248
249 Aws::Vector<Aws::String> m_tagRestrictedResources;
250 bool m_tagRestrictedResourcesHasBeenSet = false;
251
252 Aws::Utils::DateTime m_lastModifiedTime;
253 bool m_lastModifiedTimeHasBeenSet = false;
254
255 Aws::String m_lastModifiedRegion;
256 bool m_lastModifiedRegionHasBeenSet = false;
257
258 Aws::Vector<Aws::String> m_hierarchyRestrictedResources;
259 bool m_hierarchyRestrictedResourcesHasBeenSet = false;
260
261 Aws::String m_allowedAccessControlHierarchyGroupId;
262 bool m_allowedAccessControlHierarchyGroupIdHasBeenSet = false;
263 };
264
265} // namespace Model
266} // namespace Connect
267} // namespace Aws
void SetOrganizationResourceId(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetOrganizationResourceId() const
const Aws::String & GetId() const
SecurityProfile & AddTags(Aws::String &&key, const Aws::String &value)
void SetSecurityProfileName(Aws::String &&value)
SecurityProfile & AddAllowedAccessControlTags(Aws::String &&key, Aws::String &&value)
const Aws::String & GetLastModifiedRegion() const
SecurityProfile & WithOrganizationResourceId(Aws::String &&value)
SecurityProfile & WithId(const Aws::String &value)
SecurityProfile & WithLastModifiedRegion(const Aws::String &value)
void SetLastModifiedRegion(Aws::String &&value)
SecurityProfile & AddTags(Aws::String &&key, const char *value)
SecurityProfile & AddHierarchyRestrictedResources(Aws::String &&value)
bool AllowedAccessControlHierarchyGroupIdHasBeenSet() const
SecurityProfile & WithArn(const char *value)
void SetArn(const Aws::String &value)
void SetTagRestrictedResources(const Aws::Vector< Aws::String > &value)
SecurityProfile & WithLastModifiedRegion(Aws::String &&value)
SecurityProfile & WithDescription(const char *value)
AWS_CONNECT_API SecurityProfile(Aws::Utils::Json::JsonView jsonValue)
SecurityProfile & AddAllowedAccessControlTags(Aws::String &&key, const Aws::String &value)
const Aws::String & GetAllowedAccessControlHierarchyGroupId() const
const Aws::Map< Aws::String, Aws::String > & GetAllowedAccessControlTags() const
SecurityProfile & WithSecurityProfileName(const Aws::String &value)
SecurityProfile & AddAllowedAccessControlTags(const Aws::String &key, Aws::String &&value)
SecurityProfile & AddHierarchyRestrictedResources(const Aws::String &value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetSecurityProfileName(const char *value)
SecurityProfile & AddAllowedAccessControlTags(const char *key, const char *value)
SecurityProfile & WithTagRestrictedResources(Aws::Vector< Aws::String > &&value)
void SetTagRestrictedResources(Aws::Vector< Aws::String > &&value)
void SetHierarchyRestrictedResources(Aws::Vector< Aws::String > &&value)
void SetOrganizationResourceId(Aws::String &&value)
SecurityProfile & AddTags(const char *key, Aws::String &&value)
void SetArn(Aws::String &&value)
SecurityProfile & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
SecurityProfile & WithLastModifiedRegion(const char *value)
SecurityProfile & AddAllowedAccessControlTags(const char *key, Aws::String &&value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
SecurityProfile & WithArn(const Aws::String &value)
void SetAllowedAccessControlHierarchyGroupId(Aws::String &&value)
SecurityProfile & AddTags(const char *key, const char *value)
SecurityProfile & AddHierarchyRestrictedResources(const char *value)
SecurityProfile & WithTagRestrictedResources(const Aws::Vector< Aws::String > &value)
SecurityProfile & AddAllowedAccessControlTags(const Aws::String &key, const Aws::String &value)
SecurityProfile & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetAllowedAccessControlHierarchyGroupId(const Aws::String &value)
void SetOrganizationResourceId(const char *value)
const Aws::String & GetArn() const
SecurityProfile & AddTags(const Aws::String &key, const Aws::String &value)
SecurityProfile & AddTags(const Aws::String &key, Aws::String &&value)
void SetDescription(Aws::String &&value)
SecurityProfile & WithDescription(Aws::String &&value)
void SetDescription(const Aws::String &value)
const Aws::String & GetSecurityProfileName() const
const Aws::Vector< Aws::String > & GetHierarchyRestrictedResources() const
SecurityProfile & WithId(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
SecurityProfile & WithAllowedAccessControlHierarchyGroupId(const Aws::String &value)
void SetId(const Aws::String &value)
SecurityProfile & AddTagRestrictedResources(Aws::String &&value)
SecurityProfile & WithOrganizationResourceId(const char *value)
SecurityProfile & AddTags(Aws::String &&key, Aws::String &&value)
SecurityProfile & AddTagRestrictedResources(const Aws::String &value)
SecurityProfile & WithHierarchyRestrictedResources(const Aws::Vector< Aws::String > &value)
SecurityProfile & WithSecurityProfileName(Aws::String &&value)
SecurityProfile & WithHierarchyRestrictedResources(Aws::Vector< Aws::String > &&value)
AWS_CONNECT_API SecurityProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
SecurityProfile & WithSecurityProfileName(const char *value)
void SetAllowedAccessControlTags(const Aws::Map< Aws::String, Aws::String > &value)
SecurityProfile & WithAllowedAccessControlTags(Aws::Map< Aws::String, Aws::String > &&value)
SecurityProfile & WithLastModifiedTime(Aws::Utils::DateTime &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSecurityProfileName(const Aws::String &value)
void SetAllowedAccessControlHierarchyGroupId(const char *value)
void SetAllowedAccessControlTags(Aws::Map< Aws::String, Aws::String > &&value)
SecurityProfile & WithLastModifiedTime(const Aws::Utils::DateTime &value)
SecurityProfile & AddTagRestrictedResources(const char *value)
SecurityProfile & WithDescription(const Aws::String &value)
SecurityProfile & AddAllowedAccessControlTags(Aws::String &&key, const char *value)
const Aws::Vector< Aws::String > & GetTagRestrictedResources() const
SecurityProfile & WithAllowedAccessControlHierarchyGroupId(Aws::String &&value)
void SetId(Aws::String &&value)
SecurityProfile & WithAllowedAccessControlHierarchyGroupId(const char *value)
void SetLastModifiedRegion(const char *value)
void SetLastModifiedRegion(const Aws::String &value)
const Aws::String & GetDescription() const
SecurityProfile & WithId(Aws::String &&value)
SecurityProfile & WithOrganizationResourceId(const Aws::String &value)
void SetDescription(const char *value)
void SetHierarchyRestrictedResources(const Aws::Vector< Aws::String > &value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
SecurityProfile & WithAllowedAccessControlTags(const Aws::Map< Aws::String, Aws::String > &value)
SecurityProfile & WithArn(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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue