AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
CreateSecurityProfileRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/Application.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Connect {
18namespace Model {
19
23 public:
24 AWS_CONNECT_API CreateSecurityProfileRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateSecurityProfile"; }
31
32 AWS_CONNECT_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetSecurityProfileName() const { return m_securityProfileName; }
39 inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
40 template <typename SecurityProfileNameT = Aws::String>
41 void SetSecurityProfileName(SecurityProfileNameT&& value) {
42 m_securityProfileNameHasBeenSet = true;
43 m_securityProfileName = std::forward<SecurityProfileNameT>(value);
44 }
45 template <typename SecurityProfileNameT = Aws::String>
47 SetSecurityProfileName(std::forward<SecurityProfileNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
77 inline const Aws::Vector<Aws::String>& GetPermissions() const { return m_permissions; }
78 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
79 template <typename PermissionsT = Aws::Vector<Aws::String>>
80 void SetPermissions(PermissionsT&& value) {
81 m_permissionsHasBeenSet = true;
82 m_permissions = std::forward<PermissionsT>(value);
83 }
84 template <typename PermissionsT = Aws::Vector<Aws::String>>
86 SetPermissions(std::forward<PermissionsT>(value));
87 return *this;
88 }
89 template <typename PermissionsT = Aws::String>
91 m_permissionsHasBeenSet = true;
92 m_permissions.emplace_back(std::forward<PermissionsT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
104 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
105 template <typename InstanceIdT = Aws::String>
106 void SetInstanceId(InstanceIdT&& value) {
107 m_instanceIdHasBeenSet = true;
108 m_instanceId = std::forward<InstanceIdT>(value);
109 }
110 template <typename InstanceIdT = Aws::String>
112 SetInstanceId(std::forward<InstanceIdT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
125 void SetTags(TagsT&& value) {
126 m_tagsHasBeenSet = true;
127 m_tags = std::forward<TagsT>(value);
128 }
129 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 SetTags(std::forward<TagsT>(value));
132 return *this;
133 }
134 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
135 CreateSecurityProfileRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
138 return *this;
139 }
141
143
147 inline const Aws::Map<Aws::String, Aws::String>& GetAllowedAccessControlTags() const { return m_allowedAccessControlTags; }
148 inline bool AllowedAccessControlTagsHasBeenSet() const { return m_allowedAccessControlTagsHasBeenSet; }
149 template <typename AllowedAccessControlTagsT = Aws::Map<Aws::String, Aws::String>>
150 void SetAllowedAccessControlTags(AllowedAccessControlTagsT&& value) {
151 m_allowedAccessControlTagsHasBeenSet = true;
152 m_allowedAccessControlTags = std::forward<AllowedAccessControlTagsT>(value);
153 }
154 template <typename AllowedAccessControlTagsT = Aws::Map<Aws::String, Aws::String>>
155 CreateSecurityProfileRequest& WithAllowedAccessControlTags(AllowedAccessControlTagsT&& value) {
156 SetAllowedAccessControlTags(std::forward<AllowedAccessControlTagsT>(value));
157 return *this;
158 }
159 template <typename AllowedAccessControlTagsKeyT = Aws::String, typename AllowedAccessControlTagsValueT = Aws::String>
160 CreateSecurityProfileRequest& AddAllowedAccessControlTags(AllowedAccessControlTagsKeyT&& key, AllowedAccessControlTagsValueT&& value) {
161 m_allowedAccessControlTagsHasBeenSet = true;
162 m_allowedAccessControlTags.emplace(std::forward<AllowedAccessControlTagsKeyT>(key),
163 std::forward<AllowedAccessControlTagsValueT>(value));
164 return *this;
165 }
167
169
176 inline const Aws::Vector<Aws::String>& GetTagRestrictedResources() const { return m_tagRestrictedResources; }
177 inline bool TagRestrictedResourcesHasBeenSet() const { return m_tagRestrictedResourcesHasBeenSet; }
178 template <typename TagRestrictedResourcesT = Aws::Vector<Aws::String>>
179 void SetTagRestrictedResources(TagRestrictedResourcesT&& value) {
180 m_tagRestrictedResourcesHasBeenSet = true;
181 m_tagRestrictedResources = std::forward<TagRestrictedResourcesT>(value);
182 }
183 template <typename TagRestrictedResourcesT = Aws::Vector<Aws::String>>
185 SetTagRestrictedResources(std::forward<TagRestrictedResourcesT>(value));
186 return *this;
187 }
188 template <typename TagRestrictedResourcesT = Aws::String>
189 CreateSecurityProfileRequest& AddTagRestrictedResources(TagRestrictedResourcesT&& value) {
190 m_tagRestrictedResourcesHasBeenSet = true;
191 m_tagRestrictedResources.emplace_back(std::forward<TagRestrictedResourcesT>(value));
192 return *this;
193 }
195
197
201 inline const Aws::Vector<Application>& GetApplications() const { return m_applications; }
202 inline bool ApplicationsHasBeenSet() const { return m_applicationsHasBeenSet; }
203 template <typename ApplicationsT = Aws::Vector<Application>>
204 void SetApplications(ApplicationsT&& value) {
205 m_applicationsHasBeenSet = true;
206 m_applications = std::forward<ApplicationsT>(value);
207 }
208 template <typename ApplicationsT = Aws::Vector<Application>>
210 SetApplications(std::forward<ApplicationsT>(value));
211 return *this;
212 }
213 template <typename ApplicationsT = Application>
215 m_applicationsHasBeenSet = true;
216 m_applications.emplace_back(std::forward<ApplicationsT>(value));
217 return *this;
218 }
220
222
227 inline const Aws::Vector<Aws::String>& GetHierarchyRestrictedResources() const { return m_hierarchyRestrictedResources; }
228 inline bool HierarchyRestrictedResourcesHasBeenSet() const { return m_hierarchyRestrictedResourcesHasBeenSet; }
229 template <typename HierarchyRestrictedResourcesT = Aws::Vector<Aws::String>>
230 void SetHierarchyRestrictedResources(HierarchyRestrictedResourcesT&& value) {
231 m_hierarchyRestrictedResourcesHasBeenSet = true;
232 m_hierarchyRestrictedResources = std::forward<HierarchyRestrictedResourcesT>(value);
233 }
234 template <typename HierarchyRestrictedResourcesT = Aws::Vector<Aws::String>>
235 CreateSecurityProfileRequest& WithHierarchyRestrictedResources(HierarchyRestrictedResourcesT&& value) {
236 SetHierarchyRestrictedResources(std::forward<HierarchyRestrictedResourcesT>(value));
237 return *this;
238 }
239 template <typename HierarchyRestrictedResourcesT = Aws::String>
240 CreateSecurityProfileRequest& AddHierarchyRestrictedResources(HierarchyRestrictedResourcesT&& value) {
241 m_hierarchyRestrictedResourcesHasBeenSet = true;
242 m_hierarchyRestrictedResources.emplace_back(std::forward<HierarchyRestrictedResourcesT>(value));
243 return *this;
244 }
246
248
252 inline const Aws::String& GetAllowedAccessControlHierarchyGroupId() const { return m_allowedAccessControlHierarchyGroupId; }
253 inline bool AllowedAccessControlHierarchyGroupIdHasBeenSet() const { return m_allowedAccessControlHierarchyGroupIdHasBeenSet; }
254 template <typename AllowedAccessControlHierarchyGroupIdT = Aws::String>
255 void SetAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT&& value) {
256 m_allowedAccessControlHierarchyGroupIdHasBeenSet = true;
257 m_allowedAccessControlHierarchyGroupId = std::forward<AllowedAccessControlHierarchyGroupIdT>(value);
258 }
259 template <typename AllowedAccessControlHierarchyGroupIdT = Aws::String>
260 CreateSecurityProfileRequest& WithAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT&& value) {
261 SetAllowedAccessControlHierarchyGroupId(std::forward<AllowedAccessControlHierarchyGroupIdT>(value));
262 return *this;
263 }
265 private:
266 Aws::String m_securityProfileName;
267 bool m_securityProfileNameHasBeenSet = false;
268
269 Aws::String m_description;
270 bool m_descriptionHasBeenSet = false;
271
272 Aws::Vector<Aws::String> m_permissions;
273 bool m_permissionsHasBeenSet = false;
274
275 Aws::String m_instanceId;
276 bool m_instanceIdHasBeenSet = false;
277
279 bool m_tagsHasBeenSet = false;
280
281 Aws::Map<Aws::String, Aws::String> m_allowedAccessControlTags;
282 bool m_allowedAccessControlTagsHasBeenSet = false;
283
284 Aws::Vector<Aws::String> m_tagRestrictedResources;
285 bool m_tagRestrictedResourcesHasBeenSet = false;
286
287 Aws::Vector<Application> m_applications;
288 bool m_applicationsHasBeenSet = false;
289
290 Aws::Vector<Aws::String> m_hierarchyRestrictedResources;
291 bool m_hierarchyRestrictedResourcesHasBeenSet = false;
292
293 Aws::String m_allowedAccessControlHierarchyGroupId;
294 bool m_allowedAccessControlHierarchyGroupIdHasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace Connect
299} // namespace Aws
CreateSecurityProfileRequest & AddAllowedAccessControlTags(AllowedAccessControlTagsKeyT &&key, AllowedAccessControlTagsValueT &&value)
void SetAllowedAccessControlTags(AllowedAccessControlTagsT &&value)
CreateSecurityProfileRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetHierarchyRestrictedResources() const
CreateSecurityProfileRequest & AddHierarchyRestrictedResources(HierarchyRestrictedResourcesT &&value)
CreateSecurityProfileRequest & WithPermissions(PermissionsT &&value)
CreateSecurityProfileRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateSecurityProfileRequest & AddPermissions(PermissionsT &&value)
CreateSecurityProfileRequest & WithSecurityProfileName(SecurityProfileNameT &&value)
CreateSecurityProfileRequest & WithTagRestrictedResources(TagRestrictedResourcesT &&value)
CreateSecurityProfileRequest & WithAllowedAccessControlTags(AllowedAccessControlTagsT &&value)
CreateSecurityProfileRequest & AddTagRestrictedResources(TagRestrictedResourcesT &&value)
AWS_CONNECT_API CreateSecurityProfileRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetAllowedAccessControlTags() const
void SetTagRestrictedResources(TagRestrictedResourcesT &&value)
CreateSecurityProfileRequest & WithApplications(ApplicationsT &&value)
CreateSecurityProfileRequest & AddApplications(ApplicationsT &&value)
void SetAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateSecurityProfileRequest & WithHierarchyRestrictedResources(HierarchyRestrictedResourcesT &&value)
const Aws::Vector< Aws::String > & GetPermissions() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSecurityProfileRequest & WithInstanceId(InstanceIdT &&value)
void SetHierarchyRestrictedResources(HierarchyRestrictedResourcesT &&value)
const Aws::Vector< Application > & GetApplications() const
CreateSecurityProfileRequest & WithAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT &&value)
const Aws::Vector< Aws::String > & GetTagRestrictedResources() const
CreateSecurityProfileRequest & WithDescription(DescriptionT &&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