AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; }
45 inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); }
46 inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); }
49 inline CreateSecurityProfileRequest& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;}
51
53
56 inline const Aws::String& GetDescription() const{ return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
59 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
60 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
61 inline CreateSecurityProfileRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
62 inline CreateSecurityProfileRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
63 inline CreateSecurityProfileRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
65
67
73 inline const Aws::Vector<Aws::String>& GetPermissions() const{ return m_permissions; }
74 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
75 inline void SetPermissions(const Aws::Vector<Aws::String>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
76 inline void SetPermissions(Aws::Vector<Aws::String>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
78 inline CreateSecurityProfileRequest& WithPermissions(Aws::Vector<Aws::String>&& value) { SetPermissions(std::move(value)); return *this;}
79 inline CreateSecurityProfileRequest& AddPermissions(const Aws::String& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
80 inline CreateSecurityProfileRequest& AddPermissions(Aws::String&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
81 inline CreateSecurityProfileRequest& AddPermissions(const char* value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
83
85
90 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
91 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
92 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
93 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
94 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
95 inline CreateSecurityProfileRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
96 inline CreateSecurityProfileRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
97 inline CreateSecurityProfileRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
99
101
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
108 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
110 inline CreateSecurityProfileRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
111 inline CreateSecurityProfileRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
112 inline CreateSecurityProfileRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
113 inline CreateSecurityProfileRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
114 inline CreateSecurityProfileRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
115 inline CreateSecurityProfileRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
116 inline CreateSecurityProfileRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
117 inline CreateSecurityProfileRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
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 inline void SetAllowedAccessControlTags(const Aws::Map<Aws::String, Aws::String>& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags = value; }
128 inline void SetAllowedAccessControlTags(Aws::Map<Aws::String, Aws::String>&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags = std::move(value); }
131 inline CreateSecurityProfileRequest& AddAllowedAccessControlTags(const Aws::String& key, const Aws::String& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, value); return *this; }
132 inline CreateSecurityProfileRequest& AddAllowedAccessControlTags(Aws::String&& key, const Aws::String& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(std::move(key), value); return *this; }
133 inline CreateSecurityProfileRequest& AddAllowedAccessControlTags(const Aws::String& key, Aws::String&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, std::move(value)); return *this; }
134 inline CreateSecurityProfileRequest& AddAllowedAccessControlTags(Aws::String&& key, Aws::String&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(std::move(key), std::move(value)); return *this; }
135 inline CreateSecurityProfileRequest& AddAllowedAccessControlTags(const char* key, Aws::String&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, std::move(value)); return *this; }
136 inline CreateSecurityProfileRequest& AddAllowedAccessControlTags(Aws::String&& key, const char* value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(std::move(key), value); return *this; }
137 inline CreateSecurityProfileRequest& AddAllowedAccessControlTags(const char* key, const char* value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, value); return *this; }
139
141
147 inline const Aws::Vector<Aws::String>& GetTagRestrictedResources() const{ return m_tagRestrictedResources; }
148 inline bool TagRestrictedResourcesHasBeenSet() const { return m_tagRestrictedResourcesHasBeenSet; }
149 inline void SetTagRestrictedResources(const Aws::Vector<Aws::String>& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources = value; }
150 inline void SetTagRestrictedResources(Aws::Vector<Aws::String>&& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources = std::move(value); }
153 inline CreateSecurityProfileRequest& AddTagRestrictedResources(const Aws::String& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources.push_back(value); return *this; }
154 inline CreateSecurityProfileRequest& AddTagRestrictedResources(Aws::String&& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources.push_back(std::move(value)); return *this; }
155 inline CreateSecurityProfileRequest& AddTagRestrictedResources(const char* value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources.push_back(value); return *this; }
157
159
163 inline const Aws::Vector<Application>& GetApplications() const{ return m_applications; }
164 inline bool ApplicationsHasBeenSet() const { return m_applicationsHasBeenSet; }
165 inline void SetApplications(const Aws::Vector<Application>& value) { m_applicationsHasBeenSet = true; m_applications = value; }
166 inline void SetApplications(Aws::Vector<Application>&& value) { m_applicationsHasBeenSet = true; m_applications = std::move(value); }
169 inline CreateSecurityProfileRequest& AddApplications(const Application& value) { m_applicationsHasBeenSet = true; m_applications.push_back(value); return *this; }
170 inline CreateSecurityProfileRequest& AddApplications(Application&& value) { m_applicationsHasBeenSet = true; m_applications.push_back(std::move(value)); return *this; }
172
174
179 inline const Aws::Vector<Aws::String>& GetHierarchyRestrictedResources() const{ return m_hierarchyRestrictedResources; }
180 inline bool HierarchyRestrictedResourcesHasBeenSet() const { return m_hierarchyRestrictedResourcesHasBeenSet; }
181 inline void SetHierarchyRestrictedResources(const Aws::Vector<Aws::String>& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources = value; }
182 inline void SetHierarchyRestrictedResources(Aws::Vector<Aws::String>&& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources = std::move(value); }
185 inline CreateSecurityProfileRequest& AddHierarchyRestrictedResources(const Aws::String& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources.push_back(value); return *this; }
186 inline CreateSecurityProfileRequest& AddHierarchyRestrictedResources(Aws::String&& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources.push_back(std::move(value)); return *this; }
187 inline CreateSecurityProfileRequest& AddHierarchyRestrictedResources(const char* value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources.push_back(value); return *this; }
189
191
195 inline const Aws::String& GetAllowedAccessControlHierarchyGroupId() const{ return m_allowedAccessControlHierarchyGroupId; }
196 inline bool AllowedAccessControlHierarchyGroupIdHasBeenSet() const { return m_allowedAccessControlHierarchyGroupIdHasBeenSet; }
197 inline void SetAllowedAccessControlHierarchyGroupId(const Aws::String& value) { m_allowedAccessControlHierarchyGroupIdHasBeenSet = true; m_allowedAccessControlHierarchyGroupId = value; }
198 inline void SetAllowedAccessControlHierarchyGroupId(Aws::String&& value) { m_allowedAccessControlHierarchyGroupIdHasBeenSet = true; m_allowedAccessControlHierarchyGroupId = std::move(value); }
199 inline void SetAllowedAccessControlHierarchyGroupId(const char* value) { m_allowedAccessControlHierarchyGroupIdHasBeenSet = true; m_allowedAccessControlHierarchyGroupId.assign(value); }
204 private:
205
206 Aws::String m_securityProfileName;
207 bool m_securityProfileNameHasBeenSet = false;
208
209 Aws::String m_description;
210 bool m_descriptionHasBeenSet = false;
211
212 Aws::Vector<Aws::String> m_permissions;
213 bool m_permissionsHasBeenSet = false;
214
215 Aws::String m_instanceId;
216 bool m_instanceIdHasBeenSet = false;
217
219 bool m_tagsHasBeenSet = false;
220
221 Aws::Map<Aws::String, Aws::String> m_allowedAccessControlTags;
222 bool m_allowedAccessControlTagsHasBeenSet = false;
223
224 Aws::Vector<Aws::String> m_tagRestrictedResources;
225 bool m_tagRestrictedResourcesHasBeenSet = false;
226
227 Aws::Vector<Application> m_applications;
228 bool m_applicationsHasBeenSet = false;
229
230 Aws::Vector<Aws::String> m_hierarchyRestrictedResources;
231 bool m_hierarchyRestrictedResourcesHasBeenSet = false;
232
233 Aws::String m_allowedAccessControlHierarchyGroupId;
234 bool m_allowedAccessControlHierarchyGroupIdHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace Connect
239} // namespace Aws
void SetTagRestrictedResources(Aws::Vector< Aws::String > &&value)
CreateSecurityProfileRequest & AddAllowedAccessControlTags(Aws::String &&key, const Aws::String &value)
CreateSecurityProfileRequest & AddAllowedAccessControlTags(const Aws::String &key, Aws::String &&value)
CreateSecurityProfileRequest & AddPermissions(const Aws::String &value)
CreateSecurityProfileRequest & WithTagRestrictedResources(Aws::Vector< Aws::String > &&value)
void SetAllowedAccessControlTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSecurityProfileRequest & AddTags(Aws::String &&key, const char *value)
CreateSecurityProfileRequest & WithAllowedAccessControlHierarchyGroupId(const char *value)
void SetPermissions(const Aws::Vector< Aws::String > &value)
CreateSecurityProfileRequest & AddTags(const char *key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateSecurityProfileRequest & WithApplications(const Aws::Vector< Application > &value)
const Aws::Vector< Aws::String > & GetHierarchyRestrictedResources() const
void SetApplications(Aws::Vector< Application > &&value)
CreateSecurityProfileRequest & WithSecurityProfileName(const Aws::String &value)
CreateSecurityProfileRequest & WithSecurityProfileName(const char *value)
CreateSecurityProfileRequest & AddHierarchyRestrictedResources(const char *value)
CreateSecurityProfileRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetHierarchyRestrictedResources(const Aws::Vector< Aws::String > &value)
CreateSecurityProfileRequest & WithDescription(const char *value)
CreateSecurityProfileRequest & AddTagRestrictedResources(const Aws::String &value)
void SetTagRestrictedResources(const Aws::Vector< Aws::String > &value)
void SetPermissions(Aws::Vector< Aws::String > &&value)
CreateSecurityProfileRequest & WithInstanceId(Aws::String &&value)
void SetApplications(const Aws::Vector< Application > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSecurityProfileRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSecurityProfileRequest & WithDescription(Aws::String &&value)
CreateSecurityProfileRequest & WithAllowedAccessControlTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSecurityProfileRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateSecurityProfileRequest & WithHierarchyRestrictedResources(Aws::Vector< Aws::String > &&value)
CreateSecurityProfileRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSecurityProfileRequest & AddAllowedAccessControlTags(const char *key, const char *value)
CreateSecurityProfileRequest & AddHierarchyRestrictedResources(const Aws::String &value)
CreateSecurityProfileRequest & AddTags(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetAllowedAccessControlTags() const
CreateSecurityProfileRequest & WithPermissions(const Aws::Vector< Aws::String > &value)
CreateSecurityProfileRequest & AddPermissions(Aws::String &&value)
CreateSecurityProfileRequest & AddTagRestrictedResources(const char *value)
CreateSecurityProfileRequest & AddAllowedAccessControlTags(Aws::String &&key, Aws::String &&value)
CreateSecurityProfileRequest & WithInstanceId(const char *value)
CreateSecurityProfileRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateSecurityProfileRequest & WithAllowedAccessControlHierarchyGroupId(Aws::String &&value)
CreateSecurityProfileRequest & AddPermissions(const char *value)
CreateSecurityProfileRequest & AddApplications(Application &&value)
CreateSecurityProfileRequest & AddAllowedAccessControlTags(Aws::String &&key, const char *value)
CreateSecurityProfileRequest & WithDescription(const Aws::String &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetPermissions() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSecurityProfileRequest & WithPermissions(Aws::Vector< Aws::String > &&value)
CreateSecurityProfileRequest & WithHierarchyRestrictedResources(const Aws::Vector< Aws::String > &value)
CreateSecurityProfileRequest & AddTagRestrictedResources(Aws::String &&value)
void SetAllowedAccessControlTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSecurityProfileRequest & WithAllowedAccessControlHierarchyGroupId(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< Application > & GetApplications() const
CreateSecurityProfileRequest & WithTagRestrictedResources(const Aws::Vector< Aws::String > &value)
CreateSecurityProfileRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateSecurityProfileRequest & WithApplications(Aws::Vector< Application > &&value)
CreateSecurityProfileRequest & WithAllowedAccessControlTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSecurityProfileRequest & WithInstanceId(const Aws::String &value)
CreateSecurityProfileRequest & AddAllowedAccessControlTags(const char *key, Aws::String &&value)
CreateSecurityProfileRequest & AddApplications(const Application &value)
CreateSecurityProfileRequest & WithSecurityProfileName(Aws::String &&value)
CreateSecurityProfileRequest & AddAllowedAccessControlTags(const Aws::String &key, const Aws::String &value)
void SetHierarchyRestrictedResources(Aws::Vector< Aws::String > &&value)
CreateSecurityProfileRequest & AddHierarchyRestrictedResources(Aws::String &&value)
const Aws::Vector< Aws::String > & GetTagRestrictedResources() const
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