AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateSecurityProfileRequest.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 "UpdateSecurityProfile"; }
34
35 AWS_CONNECT_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetDescription() const{ return m_description; }
43 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
44 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
45 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
46 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
47 inline UpdateSecurityProfileRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
48 inline UpdateSecurityProfileRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
49 inline UpdateSecurityProfileRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
51
53
59 inline const Aws::Vector<Aws::String>& GetPermissions() const{ return m_permissions; }
60 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
61 inline void SetPermissions(const Aws::Vector<Aws::String>& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
62 inline void SetPermissions(Aws::Vector<Aws::String>&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
64 inline UpdateSecurityProfileRequest& WithPermissions(Aws::Vector<Aws::String>&& value) { SetPermissions(std::move(value)); return *this;}
65 inline UpdateSecurityProfileRequest& AddPermissions(const Aws::String& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
66 inline UpdateSecurityProfileRequest& AddPermissions(Aws::String&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; }
67 inline UpdateSecurityProfileRequest& AddPermissions(const char* value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; }
69
71
74 inline const Aws::String& GetSecurityProfileId() const{ return m_securityProfileId; }
75 inline bool SecurityProfileIdHasBeenSet() const { return m_securityProfileIdHasBeenSet; }
76 inline void SetSecurityProfileId(const Aws::String& value) { m_securityProfileIdHasBeenSet = true; m_securityProfileId = value; }
77 inline void SetSecurityProfileId(Aws::String&& value) { m_securityProfileIdHasBeenSet = true; m_securityProfileId = std::move(value); }
78 inline void SetSecurityProfileId(const char* value) { m_securityProfileIdHasBeenSet = true; m_securityProfileId.assign(value); }
80 inline UpdateSecurityProfileRequest& WithSecurityProfileId(Aws::String&& value) { SetSecurityProfileId(std::move(value)); return *this;}
81 inline UpdateSecurityProfileRequest& WithSecurityProfileId(const char* value) { SetSecurityProfileId(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 UpdateSecurityProfileRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
96 inline UpdateSecurityProfileRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
97 inline UpdateSecurityProfileRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
99
101
105 inline const Aws::Map<Aws::String, Aws::String>& GetAllowedAccessControlTags() const{ return m_allowedAccessControlTags; }
106 inline bool AllowedAccessControlTagsHasBeenSet() const { return m_allowedAccessControlTagsHasBeenSet; }
107 inline void SetAllowedAccessControlTags(const Aws::Map<Aws::String, Aws::String>& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags = value; }
108 inline void SetAllowedAccessControlTags(Aws::Map<Aws::String, Aws::String>&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags = std::move(value); }
111 inline UpdateSecurityProfileRequest& AddAllowedAccessControlTags(const Aws::String& key, const Aws::String& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, value); return *this; }
112 inline UpdateSecurityProfileRequest& AddAllowedAccessControlTags(Aws::String&& key, const Aws::String& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(std::move(key), value); return *this; }
113 inline UpdateSecurityProfileRequest& AddAllowedAccessControlTags(const Aws::String& key, Aws::String&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, std::move(value)); return *this; }
114 inline UpdateSecurityProfileRequest& AddAllowedAccessControlTags(Aws::String&& key, Aws::String&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(std::move(key), std::move(value)); return *this; }
115 inline UpdateSecurityProfileRequest& AddAllowedAccessControlTags(const char* key, Aws::String&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, std::move(value)); return *this; }
116 inline UpdateSecurityProfileRequest& AddAllowedAccessControlTags(Aws::String&& key, const char* value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(std::move(key), value); return *this; }
117 inline UpdateSecurityProfileRequest& AddAllowedAccessControlTags(const char* key, const char* value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, value); return *this; }
119
121
125 inline const Aws::Vector<Aws::String>& GetTagRestrictedResources() const{ return m_tagRestrictedResources; }
126 inline bool TagRestrictedResourcesHasBeenSet() const { return m_tagRestrictedResourcesHasBeenSet; }
127 inline void SetTagRestrictedResources(const Aws::Vector<Aws::String>& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources = value; }
128 inline void SetTagRestrictedResources(Aws::Vector<Aws::String>&& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources = std::move(value); }
131 inline UpdateSecurityProfileRequest& AddTagRestrictedResources(const Aws::String& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources.push_back(value); return *this; }
132 inline UpdateSecurityProfileRequest& AddTagRestrictedResources(Aws::String&& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources.push_back(std::move(value)); return *this; }
133 inline UpdateSecurityProfileRequest& AddTagRestrictedResources(const char* value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources.push_back(value); return *this; }
135
137
140 inline const Aws::Vector<Application>& GetApplications() const{ return m_applications; }
141 inline bool ApplicationsHasBeenSet() const { return m_applicationsHasBeenSet; }
142 inline void SetApplications(const Aws::Vector<Application>& value) { m_applicationsHasBeenSet = true; m_applications = value; }
143 inline void SetApplications(Aws::Vector<Application>&& value) { m_applicationsHasBeenSet = true; m_applications = std::move(value); }
146 inline UpdateSecurityProfileRequest& AddApplications(const Application& value) { m_applicationsHasBeenSet = true; m_applications.push_back(value); return *this; }
147 inline UpdateSecurityProfileRequest& AddApplications(Application&& value) { m_applicationsHasBeenSet = true; m_applications.push_back(std::move(value)); return *this; }
149
151
156 inline const Aws::Vector<Aws::String>& GetHierarchyRestrictedResources() const{ return m_hierarchyRestrictedResources; }
157 inline bool HierarchyRestrictedResourcesHasBeenSet() const { return m_hierarchyRestrictedResourcesHasBeenSet; }
158 inline void SetHierarchyRestrictedResources(const Aws::Vector<Aws::String>& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources = value; }
159 inline void SetHierarchyRestrictedResources(Aws::Vector<Aws::String>&& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources = std::move(value); }
162 inline UpdateSecurityProfileRequest& AddHierarchyRestrictedResources(const Aws::String& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources.push_back(value); return *this; }
163 inline UpdateSecurityProfileRequest& AddHierarchyRestrictedResources(Aws::String&& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources.push_back(std::move(value)); return *this; }
164 inline UpdateSecurityProfileRequest& AddHierarchyRestrictedResources(const char* value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources.push_back(value); return *this; }
166
168
172 inline const Aws::String& GetAllowedAccessControlHierarchyGroupId() const{ return m_allowedAccessControlHierarchyGroupId; }
173 inline bool AllowedAccessControlHierarchyGroupIdHasBeenSet() const { return m_allowedAccessControlHierarchyGroupIdHasBeenSet; }
174 inline void SetAllowedAccessControlHierarchyGroupId(const Aws::String& value) { m_allowedAccessControlHierarchyGroupIdHasBeenSet = true; m_allowedAccessControlHierarchyGroupId = value; }
175 inline void SetAllowedAccessControlHierarchyGroupId(Aws::String&& value) { m_allowedAccessControlHierarchyGroupIdHasBeenSet = true; m_allowedAccessControlHierarchyGroupId = std::move(value); }
176 inline void SetAllowedAccessControlHierarchyGroupId(const char* value) { m_allowedAccessControlHierarchyGroupIdHasBeenSet = true; m_allowedAccessControlHierarchyGroupId.assign(value); }
181 private:
182
183 Aws::String m_description;
184 bool m_descriptionHasBeenSet = false;
185
186 Aws::Vector<Aws::String> m_permissions;
187 bool m_permissionsHasBeenSet = false;
188
189 Aws::String m_securityProfileId;
190 bool m_securityProfileIdHasBeenSet = false;
191
192 Aws::String m_instanceId;
193 bool m_instanceIdHasBeenSet = false;
194
195 Aws::Map<Aws::String, Aws::String> m_allowedAccessControlTags;
196 bool m_allowedAccessControlTagsHasBeenSet = false;
197
198 Aws::Vector<Aws::String> m_tagRestrictedResources;
199 bool m_tagRestrictedResourcesHasBeenSet = false;
200
201 Aws::Vector<Application> m_applications;
202 bool m_applicationsHasBeenSet = false;
203
204 Aws::Vector<Aws::String> m_hierarchyRestrictedResources;
205 bool m_hierarchyRestrictedResourcesHasBeenSet = false;
206
207 Aws::String m_allowedAccessControlHierarchyGroupId;
208 bool m_allowedAccessControlHierarchyGroupIdHasBeenSet = false;
209 };
210
211} // namespace Model
212} // namespace Connect
213} // namespace Aws
UpdateSecurityProfileRequest & WithAllowedAccessControlHierarchyGroupId(const Aws::String &value)
UpdateSecurityProfileRequest & AddHierarchyRestrictedResources(const char *value)
UpdateSecurityProfileRequest & WithHierarchyRestrictedResources(const Aws::Vector< Aws::String > &value)
UpdateSecurityProfileRequest & WithSecurityProfileId(Aws::String &&value)
void SetApplications(Aws::Vector< Application > &&value)
UpdateSecurityProfileRequest & WithAllowedAccessControlHierarchyGroupId(const char *value)
UpdateSecurityProfileRequest & WithDescription(Aws::String &&value)
UpdateSecurityProfileRequest & WithAllowedAccessControlTags(const Aws::Map< Aws::String, Aws::String > &value)
UpdateSecurityProfileRequest & AddTagRestrictedResources(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetAllowedAccessControlTags() const
void SetPermissions(Aws::Vector< Aws::String > &&value)
UpdateSecurityProfileRequest & WithDescription(const Aws::String &value)
UpdateSecurityProfileRequest & AddApplications(Application &&value)
UpdateSecurityProfileRequest & AddAllowedAccessControlTags(const char *key, Aws::String &&value)
UpdateSecurityProfileRequest & AddAllowedAccessControlTags(const Aws::String &key, const Aws::String &value)
UpdateSecurityProfileRequest & AddApplications(const Application &value)
void SetTagRestrictedResources(Aws::Vector< Aws::String > &&value)
void SetHierarchyRestrictedResources(Aws::Vector< Aws::String > &&value)
UpdateSecurityProfileRequest & WithPermissions(Aws::Vector< Aws::String > &&value)
void SetAllowedAccessControlTags(const Aws::Map< Aws::String, Aws::String > &value)
UpdateSecurityProfileRequest & WithInstanceId(const Aws::String &value)
const Aws::Vector< Application > & GetApplications() const
UpdateSecurityProfileRequest & WithInstanceId(Aws::String &&value)
UpdateSecurityProfileRequest & AddPermissions(const Aws::String &value)
UpdateSecurityProfileRequest & AddAllowedAccessControlTags(Aws::String &&key, Aws::String &&value)
UpdateSecurityProfileRequest & WithDescription(const char *value)
UpdateSecurityProfileRequest & AddHierarchyRestrictedResources(Aws::String &&value)
UpdateSecurityProfileRequest & WithSecurityProfileId(const Aws::String &value)
UpdateSecurityProfileRequest & AddPermissions(Aws::String &&value)
UpdateSecurityProfileRequest & AddTagRestrictedResources(const Aws::String &value)
UpdateSecurityProfileRequest & WithApplications(Aws::Vector< Application > &&value)
UpdateSecurityProfileRequest & WithInstanceId(const char *value)
UpdateSecurityProfileRequest & WithAllowedAccessControlTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Vector< Aws::String > & GetHierarchyRestrictedResources() const
UpdateSecurityProfileRequest & AddAllowedAccessControlTags(const char *key, const char *value)
virtual const char * GetServiceRequestName() const override
void SetPermissions(const Aws::Vector< Aws::String > &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
UpdateSecurityProfileRequest & WithAllowedAccessControlHierarchyGroupId(Aws::String &&value)
UpdateSecurityProfileRequest & WithSecurityProfileId(const char *value)
const Aws::Vector< Aws::String > & GetPermissions() const
UpdateSecurityProfileRequest & WithTagRestrictedResources(const Aws::Vector< Aws::String > &value)
void SetHierarchyRestrictedResources(const Aws::Vector< Aws::String > &value)
void SetApplications(const Aws::Vector< Application > &value)
UpdateSecurityProfileRequest & WithTagRestrictedResources(Aws::Vector< Aws::String > &&value)
UpdateSecurityProfileRequest & AddAllowedAccessControlTags(const Aws::String &key, Aws::String &&value)
UpdateSecurityProfileRequest & WithApplications(const Aws::Vector< Application > &value)
const Aws::Vector< Aws::String > & GetTagRestrictedResources() const
UpdateSecurityProfileRequest & AddPermissions(const char *value)
UpdateSecurityProfileRequest & WithHierarchyRestrictedResources(Aws::Vector< Aws::String > &&value)
UpdateSecurityProfileRequest & AddAllowedAccessControlTags(Aws::String &&key, const Aws::String &value)
UpdateSecurityProfileRequest & AddAllowedAccessControlTags(Aws::String &&key, const char *value)
void SetTagRestrictedResources(const Aws::Vector< Aws::String > &value)
UpdateSecurityProfileRequest & AddHierarchyRestrictedResources(const Aws::String &value)
UpdateSecurityProfileRequest & AddTagRestrictedResources(Aws::String &&value)
UpdateSecurityProfileRequest & WithPermissions(const Aws::Vector< Aws::String > &value)
void SetAllowedAccessControlTags(Aws::Map< Aws::String, 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