AWS SDK for C++

AWS SDK for C++ Version 1.11.554

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
CreateSecurityProfileRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/connect/model/Application.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Connect
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONNECT_API CreateSecurityProfileRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateSecurityProfile"; }
34
35 AWS_CONNECT_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetSecurityProfileName() const { return m_securityProfileName; }
43 inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; }
44 template<typename SecurityProfileNameT = Aws::String>
45 void SetSecurityProfileName(SecurityProfileNameT&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::forward<SecurityProfileNameT>(value); }
46 template<typename SecurityProfileNameT = Aws::String>
47 CreateSecurityProfileRequest& WithSecurityProfileName(SecurityProfileNameT&& value) { SetSecurityProfileName(std::forward<SecurityProfileNameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template<typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
58 template<typename DescriptionT = Aws::String>
59 CreateSecurityProfileRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
61
63
69 inline const Aws::Vector<Aws::String>& GetPermissions() const { return m_permissions; }
70 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
71 template<typename PermissionsT = Aws::Vector<Aws::String>>
72 void SetPermissions(PermissionsT&& value) { m_permissionsHasBeenSet = true; m_permissions = std::forward<PermissionsT>(value); }
73 template<typename PermissionsT = Aws::Vector<Aws::String>>
74 CreateSecurityProfileRequest& WithPermissions(PermissionsT&& value) { SetPermissions(std::forward<PermissionsT>(value)); return *this;}
75 template<typename PermissionsT = Aws::String>
76 CreateSecurityProfileRequest& AddPermissions(PermissionsT&& value) { m_permissionsHasBeenSet = true; m_permissions.emplace_back(std::forward<PermissionsT>(value)); return *this; }
78
80
85 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
86 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
87 template<typename InstanceIdT = Aws::String>
88 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
89 template<typename InstanceIdT = Aws::String>
90 CreateSecurityProfileRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
92
94
98 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
102 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
103 CreateSecurityProfileRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
104 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
105 CreateSecurityProfileRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
106 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
107 }
109
111
115 inline const Aws::Map<Aws::String, Aws::String>& GetAllowedAccessControlTags() const { return m_allowedAccessControlTags; }
116 inline bool AllowedAccessControlTagsHasBeenSet() const { return m_allowedAccessControlTagsHasBeenSet; }
117 template<typename AllowedAccessControlTagsT = Aws::Map<Aws::String, Aws::String>>
118 void SetAllowedAccessControlTags(AllowedAccessControlTagsT&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags = std::forward<AllowedAccessControlTagsT>(value); }
119 template<typename AllowedAccessControlTagsT = Aws::Map<Aws::String, Aws::String>>
120 CreateSecurityProfileRequest& WithAllowedAccessControlTags(AllowedAccessControlTagsT&& value) { SetAllowedAccessControlTags(std::forward<AllowedAccessControlTagsT>(value)); return *this;}
121 template<typename AllowedAccessControlTagsKeyT = Aws::String, typename AllowedAccessControlTagsValueT = Aws::String>
122 CreateSecurityProfileRequest& AddAllowedAccessControlTags(AllowedAccessControlTagsKeyT&& key, AllowedAccessControlTagsValueT&& value) {
123 m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(std::forward<AllowedAccessControlTagsKeyT>(key), std::forward<AllowedAccessControlTagsValueT>(value)); return *this;
124 }
126
128
135 inline const Aws::Vector<Aws::String>& GetTagRestrictedResources() const { return m_tagRestrictedResources; }
136 inline bool TagRestrictedResourcesHasBeenSet() const { return m_tagRestrictedResourcesHasBeenSet; }
137 template<typename TagRestrictedResourcesT = Aws::Vector<Aws::String>>
138 void SetTagRestrictedResources(TagRestrictedResourcesT&& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources = std::forward<TagRestrictedResourcesT>(value); }
139 template<typename TagRestrictedResourcesT = Aws::Vector<Aws::String>>
140 CreateSecurityProfileRequest& WithTagRestrictedResources(TagRestrictedResourcesT&& value) { SetTagRestrictedResources(std::forward<TagRestrictedResourcesT>(value)); return *this;}
141 template<typename TagRestrictedResourcesT = Aws::String>
142 CreateSecurityProfileRequest& AddTagRestrictedResources(TagRestrictedResourcesT&& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources.emplace_back(std::forward<TagRestrictedResourcesT>(value)); return *this; }
144
146
150 inline const Aws::Vector<Application>& GetApplications() const { return m_applications; }
151 inline bool ApplicationsHasBeenSet() const { return m_applicationsHasBeenSet; }
152 template<typename ApplicationsT = Aws::Vector<Application>>
153 void SetApplications(ApplicationsT&& value) { m_applicationsHasBeenSet = true; m_applications = std::forward<ApplicationsT>(value); }
154 template<typename ApplicationsT = Aws::Vector<Application>>
155 CreateSecurityProfileRequest& WithApplications(ApplicationsT&& value) { SetApplications(std::forward<ApplicationsT>(value)); return *this;}
156 template<typename ApplicationsT = Application>
157 CreateSecurityProfileRequest& AddApplications(ApplicationsT&& value) { m_applicationsHasBeenSet = true; m_applications.emplace_back(std::forward<ApplicationsT>(value)); return *this; }
159
161
166 inline const Aws::Vector<Aws::String>& GetHierarchyRestrictedResources() const { return m_hierarchyRestrictedResources; }
167 inline bool HierarchyRestrictedResourcesHasBeenSet() const { return m_hierarchyRestrictedResourcesHasBeenSet; }
168 template<typename HierarchyRestrictedResourcesT = Aws::Vector<Aws::String>>
169 void SetHierarchyRestrictedResources(HierarchyRestrictedResourcesT&& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources = std::forward<HierarchyRestrictedResourcesT>(value); }
170 template<typename HierarchyRestrictedResourcesT = Aws::Vector<Aws::String>>
171 CreateSecurityProfileRequest& WithHierarchyRestrictedResources(HierarchyRestrictedResourcesT&& value) { SetHierarchyRestrictedResources(std::forward<HierarchyRestrictedResourcesT>(value)); return *this;}
172 template<typename HierarchyRestrictedResourcesT = Aws::String>
173 CreateSecurityProfileRequest& AddHierarchyRestrictedResources(HierarchyRestrictedResourcesT&& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources.emplace_back(std::forward<HierarchyRestrictedResourcesT>(value)); return *this; }
175
177
181 inline const Aws::String& GetAllowedAccessControlHierarchyGroupId() const { return m_allowedAccessControlHierarchyGroupId; }
182 inline bool AllowedAccessControlHierarchyGroupIdHasBeenSet() const { return m_allowedAccessControlHierarchyGroupIdHasBeenSet; }
183 template<typename AllowedAccessControlHierarchyGroupIdT = Aws::String>
184 void SetAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT&& value) { m_allowedAccessControlHierarchyGroupIdHasBeenSet = true; m_allowedAccessControlHierarchyGroupId = std::forward<AllowedAccessControlHierarchyGroupIdT>(value); }
185 template<typename AllowedAccessControlHierarchyGroupIdT = Aws::String>
186 CreateSecurityProfileRequest& WithAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT&& value) { SetAllowedAccessControlHierarchyGroupId(std::forward<AllowedAccessControlHierarchyGroupIdT>(value)); return *this;}
188 private:
189
190 Aws::String m_securityProfileName;
191 bool m_securityProfileNameHasBeenSet = false;
192
193 Aws::String m_description;
194 bool m_descriptionHasBeenSet = false;
195
196 Aws::Vector<Aws::String> m_permissions;
197 bool m_permissionsHasBeenSet = false;
198
199 Aws::String m_instanceId;
200 bool m_instanceIdHasBeenSet = false;
201
203 bool m_tagsHasBeenSet = false;
204
205 Aws::Map<Aws::String, Aws::String> m_allowedAccessControlTags;
206 bool m_allowedAccessControlTagsHasBeenSet = false;
207
208 Aws::Vector<Aws::String> m_tagRestrictedResources;
209 bool m_tagRestrictedResourcesHasBeenSet = false;
210
211 Aws::Vector<Application> m_applications;
212 bool m_applicationsHasBeenSet = false;
213
214 Aws::Vector<Aws::String> m_hierarchyRestrictedResources;
215 bool m_hierarchyRestrictedResourcesHasBeenSet = false;
216
217 Aws::String m_allowedAccessControlHierarchyGroupId;
218 bool m_allowedAccessControlHierarchyGroupIdHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace Connect
223} // 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