AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 SecurityProfile& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetOrganizationResourceId() const { return m_organizationResourceId; }
60 inline bool OrganizationResourceIdHasBeenSet() const { return m_organizationResourceIdHasBeenSet; }
61 template<typename OrganizationResourceIdT = Aws::String>
62 void SetOrganizationResourceId(OrganizationResourceIdT&& value) { m_organizationResourceIdHasBeenSet = true; m_organizationResourceId = std::forward<OrganizationResourceIdT>(value); }
63 template<typename OrganizationResourceIdT = Aws::String>
64 SecurityProfile& WithOrganizationResourceId(OrganizationResourceIdT&& value) { SetOrganizationResourceId(std::forward<OrganizationResourceIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetArn() const { return m_arn; }
72 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
73 template<typename ArnT = Aws::String>
74 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
75 template<typename ArnT = Aws::String>
76 SecurityProfile& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
78
80
83 inline const Aws::String& GetSecurityProfileName() const { return m_securityProfileName; }
84 inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
85 template<typename SecurityProfileNameT = Aws::String>
86 void SetSecurityProfileName(SecurityProfileNameT&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::forward<SecurityProfileNameT>(value); }
87 template<typename SecurityProfileNameT = Aws::String>
88 SecurityProfile& WithSecurityProfileName(SecurityProfileNameT&& value) { SetSecurityProfileName(std::forward<SecurityProfileNameT>(value)); return *this;}
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template<typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
99 template<typename DescriptionT = Aws::String>
100 SecurityProfile& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
102
104
108 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
112 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 SecurityProfile& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
114 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
115 SecurityProfile& AddTags(TagsKeyT&& key, TagsValueT&& value) {
116 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
117 }
119
121
125 inline const Aws::Map<Aws::String, Aws::String>& GetAllowedAccessControlTags() const { return m_allowedAccessControlTags; }
126 inline bool AllowedAccessControlTagsHasBeenSet() const { return m_allowedAccessControlTagsHasBeenSet; }
127 template<typename AllowedAccessControlTagsT = Aws::Map<Aws::String, Aws::String>>
128 void SetAllowedAccessControlTags(AllowedAccessControlTagsT&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags = std::forward<AllowedAccessControlTagsT>(value); }
129 template<typename AllowedAccessControlTagsT = Aws::Map<Aws::String, Aws::String>>
130 SecurityProfile& WithAllowedAccessControlTags(AllowedAccessControlTagsT&& value) { SetAllowedAccessControlTags(std::forward<AllowedAccessControlTagsT>(value)); return *this;}
131 template<typename AllowedAccessControlTagsKeyT = Aws::String, typename AllowedAccessControlTagsValueT = Aws::String>
132 SecurityProfile& AddAllowedAccessControlTags(AllowedAccessControlTagsKeyT&& key, AllowedAccessControlTagsValueT&& value) {
133 m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(std::forward<AllowedAccessControlTagsKeyT>(key), std::forward<AllowedAccessControlTagsValueT>(value)); return *this;
134 }
136
138
142 inline const Aws::Vector<Aws::String>& GetTagRestrictedResources() const { return m_tagRestrictedResources; }
143 inline bool TagRestrictedResourcesHasBeenSet() const { return m_tagRestrictedResourcesHasBeenSet; }
144 template<typename TagRestrictedResourcesT = Aws::Vector<Aws::String>>
145 void SetTagRestrictedResources(TagRestrictedResourcesT&& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources = std::forward<TagRestrictedResourcesT>(value); }
146 template<typename TagRestrictedResourcesT = Aws::Vector<Aws::String>>
147 SecurityProfile& WithTagRestrictedResources(TagRestrictedResourcesT&& value) { SetTagRestrictedResources(std::forward<TagRestrictedResourcesT>(value)); return *this;}
148 template<typename TagRestrictedResourcesT = Aws::String>
149 SecurityProfile& AddTagRestrictedResources(TagRestrictedResourcesT&& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources.emplace_back(std::forward<TagRestrictedResourcesT>(value)); return *this; }
151
153
156 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
157 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
158 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
159 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
160 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
161 SecurityProfile& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
163
165
168 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
169 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
170 template<typename LastModifiedRegionT = Aws::String>
171 void SetLastModifiedRegion(LastModifiedRegionT&& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value); }
172 template<typename LastModifiedRegionT = Aws::String>
173 SecurityProfile& WithLastModifiedRegion(LastModifiedRegionT&& value) { SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value)); return *this;}
175
177
182 inline const Aws::Vector<Aws::String>& GetHierarchyRestrictedResources() const { return m_hierarchyRestrictedResources; }
183 inline bool HierarchyRestrictedResourcesHasBeenSet() const { return m_hierarchyRestrictedResourcesHasBeenSet; }
184 template<typename HierarchyRestrictedResourcesT = Aws::Vector<Aws::String>>
185 void SetHierarchyRestrictedResources(HierarchyRestrictedResourcesT&& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources = std::forward<HierarchyRestrictedResourcesT>(value); }
186 template<typename HierarchyRestrictedResourcesT = Aws::Vector<Aws::String>>
187 SecurityProfile& WithHierarchyRestrictedResources(HierarchyRestrictedResourcesT&& value) { SetHierarchyRestrictedResources(std::forward<HierarchyRestrictedResourcesT>(value)); return *this;}
188 template<typename HierarchyRestrictedResourcesT = Aws::String>
189 SecurityProfile& AddHierarchyRestrictedResources(HierarchyRestrictedResourcesT&& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources.emplace_back(std::forward<HierarchyRestrictedResourcesT>(value)); return *this; }
191
193
197 inline const Aws::String& GetAllowedAccessControlHierarchyGroupId() const { return m_allowedAccessControlHierarchyGroupId; }
198 inline bool AllowedAccessControlHierarchyGroupIdHasBeenSet() const { return m_allowedAccessControlHierarchyGroupIdHasBeenSet; }
199 template<typename AllowedAccessControlHierarchyGroupIdT = Aws::String>
200 void SetAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT&& value) { m_allowedAccessControlHierarchyGroupIdHasBeenSet = true; m_allowedAccessControlHierarchyGroupId = std::forward<AllowedAccessControlHierarchyGroupIdT>(value); }
201 template<typename AllowedAccessControlHierarchyGroupIdT = Aws::String>
202 SecurityProfile& WithAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT&& value) { SetAllowedAccessControlHierarchyGroupId(std::forward<AllowedAccessControlHierarchyGroupIdT>(value)); return *this;}
204 private:
205
206 Aws::String m_id;
207 bool m_idHasBeenSet = false;
208
209 Aws::String m_organizationResourceId;
210 bool m_organizationResourceIdHasBeenSet = false;
211
212 Aws::String m_arn;
213 bool m_arnHasBeenSet = false;
214
215 Aws::String m_securityProfileName;
216 bool m_securityProfileNameHasBeenSet = false;
217
218 Aws::String m_description;
219 bool m_descriptionHasBeenSet = false;
220
222 bool m_tagsHasBeenSet = false;
223
224 Aws::Map<Aws::String, Aws::String> m_allowedAccessControlTags;
225 bool m_allowedAccessControlTagsHasBeenSet = false;
226
227 Aws::Vector<Aws::String> m_tagRestrictedResources;
228 bool m_tagRestrictedResourcesHasBeenSet = false;
229
230 Aws::Utils::DateTime m_lastModifiedTime{};
231 bool m_lastModifiedTimeHasBeenSet = false;
232
233 Aws::String m_lastModifiedRegion;
234 bool m_lastModifiedRegionHasBeenSet = false;
235
236 Aws::Vector<Aws::String> m_hierarchyRestrictedResources;
237 bool m_hierarchyRestrictedResourcesHasBeenSet = false;
238
239 Aws::String m_allowedAccessControlHierarchyGroupId;
240 bool m_allowedAccessControlHierarchyGroupIdHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace Connect
245} // 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)
SecurityProfile & AddAllowedAccessControlTags(AllowedAccessControlTagsKeyT &&key, AllowedAccessControlTagsValueT &&value)
SecurityProfile & WithId(IdT &&value)
AWS_CONNECT_API SecurityProfile(Aws::Utils::Json::JsonView jsonValue)
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)
AWS_CONNECT_API SecurityProfile()=default
const Aws::String & GetArn() const
SecurityProfile & WithHierarchyRestrictedResources(HierarchyRestrictedResourcesT &&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)
void SetDescription(DescriptionT &&value)
SecurityProfile & AddTagRestrictedResources(TagRestrictedResourcesT &&value)
const Aws::String & GetDescription() const
SecurityProfile & WithTagRestrictedResources(TagRestrictedResourcesT &&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