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
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:
27 AWS_CONNECT_API UpdateSecurityProfileRequest() = 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 "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 template<typename DescriptionT = Aws::String>
45 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
46 template<typename DescriptionT = Aws::String>
47 UpdateSecurityProfileRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
49
51
57 inline const Aws::Vector<Aws::String>& GetPermissions() const { return m_permissions; }
58 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
59 template<typename PermissionsT = Aws::Vector<Aws::String>>
60 void SetPermissions(PermissionsT&& value) { m_permissionsHasBeenSet = true; m_permissions = std::forward<PermissionsT>(value); }
61 template<typename PermissionsT = Aws::Vector<Aws::String>>
62 UpdateSecurityProfileRequest& WithPermissions(PermissionsT&& value) { SetPermissions(std::forward<PermissionsT>(value)); return *this;}
63 template<typename PermissionsT = Aws::String>
64 UpdateSecurityProfileRequest& AddPermissions(PermissionsT&& value) { m_permissionsHasBeenSet = true; m_permissions.emplace_back(std::forward<PermissionsT>(value)); return *this; }
66
68
71 inline const Aws::String& GetSecurityProfileId() const { return m_securityProfileId; }
72 inline bool SecurityProfileIdHasBeenSet() const { return m_securityProfileIdHasBeenSet; }
73 template<typename SecurityProfileIdT = Aws::String>
74 void SetSecurityProfileId(SecurityProfileIdT&& value) { m_securityProfileIdHasBeenSet = true; m_securityProfileId = std::forward<SecurityProfileIdT>(value); }
75 template<typename SecurityProfileIdT = Aws::String>
76 UpdateSecurityProfileRequest& WithSecurityProfileId(SecurityProfileIdT&& value) { SetSecurityProfileId(std::forward<SecurityProfileIdT>(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 UpdateSecurityProfileRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
92
94
98 inline const Aws::Map<Aws::String, Aws::String>& GetAllowedAccessControlTags() const { return m_allowedAccessControlTags; }
99 inline bool AllowedAccessControlTagsHasBeenSet() const { return m_allowedAccessControlTagsHasBeenSet; }
100 template<typename AllowedAccessControlTagsT = Aws::Map<Aws::String, Aws::String>>
101 void SetAllowedAccessControlTags(AllowedAccessControlTagsT&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags = std::forward<AllowedAccessControlTagsT>(value); }
102 template<typename AllowedAccessControlTagsT = Aws::Map<Aws::String, Aws::String>>
103 UpdateSecurityProfileRequest& WithAllowedAccessControlTags(AllowedAccessControlTagsT&& value) { SetAllowedAccessControlTags(std::forward<AllowedAccessControlTagsT>(value)); return *this;}
104 template<typename AllowedAccessControlTagsKeyT = Aws::String, typename AllowedAccessControlTagsValueT = Aws::String>
105 UpdateSecurityProfileRequest& AddAllowedAccessControlTags(AllowedAccessControlTagsKeyT&& key, AllowedAccessControlTagsValueT&& value) {
106 m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(std::forward<AllowedAccessControlTagsKeyT>(key), std::forward<AllowedAccessControlTagsValueT>(value)); return *this;
107 }
109
111
115 inline const Aws::Vector<Aws::String>& GetTagRestrictedResources() const { return m_tagRestrictedResources; }
116 inline bool TagRestrictedResourcesHasBeenSet() const { return m_tagRestrictedResourcesHasBeenSet; }
117 template<typename TagRestrictedResourcesT = Aws::Vector<Aws::String>>
118 void SetTagRestrictedResources(TagRestrictedResourcesT&& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources = std::forward<TagRestrictedResourcesT>(value); }
119 template<typename TagRestrictedResourcesT = Aws::Vector<Aws::String>>
120 UpdateSecurityProfileRequest& WithTagRestrictedResources(TagRestrictedResourcesT&& value) { SetTagRestrictedResources(std::forward<TagRestrictedResourcesT>(value)); return *this;}
121 template<typename TagRestrictedResourcesT = Aws::String>
122 UpdateSecurityProfileRequest& AddTagRestrictedResources(TagRestrictedResourcesT&& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources.emplace_back(std::forward<TagRestrictedResourcesT>(value)); return *this; }
124
126
129 inline const Aws::Vector<Application>& GetApplications() const { return m_applications; }
130 inline bool ApplicationsHasBeenSet() const { return m_applicationsHasBeenSet; }
131 template<typename ApplicationsT = Aws::Vector<Application>>
132 void SetApplications(ApplicationsT&& value) { m_applicationsHasBeenSet = true; m_applications = std::forward<ApplicationsT>(value); }
133 template<typename ApplicationsT = Aws::Vector<Application>>
134 UpdateSecurityProfileRequest& WithApplications(ApplicationsT&& value) { SetApplications(std::forward<ApplicationsT>(value)); return *this;}
135 template<typename ApplicationsT = Application>
136 UpdateSecurityProfileRequest& AddApplications(ApplicationsT&& value) { m_applicationsHasBeenSet = true; m_applications.emplace_back(std::forward<ApplicationsT>(value)); return *this; }
138
140
145 inline const Aws::Vector<Aws::String>& GetHierarchyRestrictedResources() const { return m_hierarchyRestrictedResources; }
146 inline bool HierarchyRestrictedResourcesHasBeenSet() const { return m_hierarchyRestrictedResourcesHasBeenSet; }
147 template<typename HierarchyRestrictedResourcesT = Aws::Vector<Aws::String>>
148 void SetHierarchyRestrictedResources(HierarchyRestrictedResourcesT&& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources = std::forward<HierarchyRestrictedResourcesT>(value); }
149 template<typename HierarchyRestrictedResourcesT = Aws::Vector<Aws::String>>
150 UpdateSecurityProfileRequest& WithHierarchyRestrictedResources(HierarchyRestrictedResourcesT&& value) { SetHierarchyRestrictedResources(std::forward<HierarchyRestrictedResourcesT>(value)); return *this;}
151 template<typename HierarchyRestrictedResourcesT = Aws::String>
152 UpdateSecurityProfileRequest& AddHierarchyRestrictedResources(HierarchyRestrictedResourcesT&& value) { m_hierarchyRestrictedResourcesHasBeenSet = true; m_hierarchyRestrictedResources.emplace_back(std::forward<HierarchyRestrictedResourcesT>(value)); return *this; }
154
156
160 inline const Aws::String& GetAllowedAccessControlHierarchyGroupId() const { return m_allowedAccessControlHierarchyGroupId; }
161 inline bool AllowedAccessControlHierarchyGroupIdHasBeenSet() const { return m_allowedAccessControlHierarchyGroupIdHasBeenSet; }
162 template<typename AllowedAccessControlHierarchyGroupIdT = Aws::String>
163 void SetAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT&& value) { m_allowedAccessControlHierarchyGroupIdHasBeenSet = true; m_allowedAccessControlHierarchyGroupId = std::forward<AllowedAccessControlHierarchyGroupIdT>(value); }
164 template<typename AllowedAccessControlHierarchyGroupIdT = Aws::String>
165 UpdateSecurityProfileRequest& WithAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT&& value) { SetAllowedAccessControlHierarchyGroupId(std::forward<AllowedAccessControlHierarchyGroupIdT>(value)); return *this;}
167 private:
168
169 Aws::String m_description;
170 bool m_descriptionHasBeenSet = false;
171
172 Aws::Vector<Aws::String> m_permissions;
173 bool m_permissionsHasBeenSet = false;
174
175 Aws::String m_securityProfileId;
176 bool m_securityProfileIdHasBeenSet = false;
177
178 Aws::String m_instanceId;
179 bool m_instanceIdHasBeenSet = false;
180
181 Aws::Map<Aws::String, Aws::String> m_allowedAccessControlTags;
182 bool m_allowedAccessControlTagsHasBeenSet = false;
183
184 Aws::Vector<Aws::String> m_tagRestrictedResources;
185 bool m_tagRestrictedResourcesHasBeenSet = false;
186
187 Aws::Vector<Application> m_applications;
188 bool m_applicationsHasBeenSet = false;
189
190 Aws::Vector<Aws::String> m_hierarchyRestrictedResources;
191 bool m_hierarchyRestrictedResourcesHasBeenSet = false;
192
193 Aws::String m_allowedAccessControlHierarchyGroupId;
194 bool m_allowedAccessControlHierarchyGroupIdHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace Connect
199} // namespace Aws
UpdateSecurityProfileRequest & WithPermissions(PermissionsT &&value)
UpdateSecurityProfileRequest & WithTagRestrictedResources(TagRestrictedResourcesT &&value)
AWS_CONNECT_API UpdateSecurityProfileRequest()=default
void SetAllowedAccessControlTags(AllowedAccessControlTagsT &&value)
UpdateSecurityProfileRequest & AddApplications(ApplicationsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAllowedAccessControlTags() const
UpdateSecurityProfileRequest & WithApplications(ApplicationsT &&value)
UpdateSecurityProfileRequest & AddTagRestrictedResources(TagRestrictedResourcesT &&value)
void SetHierarchyRestrictedResources(HierarchyRestrictedResourcesT &&value)
UpdateSecurityProfileRequest & WithHierarchyRestrictedResources(HierarchyRestrictedResourcesT &&value)
UpdateSecurityProfileRequest & WithAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT &&value)
const Aws::Vector< Application > & GetApplications() const
UpdateSecurityProfileRequest & WithDescription(DescriptionT &&value)
UpdateSecurityProfileRequest & AddPermissions(PermissionsT &&value)
const Aws::Vector< Aws::String > & GetHierarchyRestrictedResources() const
virtual const char * GetServiceRequestName() const override
AWS_CONNECT_API Aws::String SerializePayload() const override
UpdateSecurityProfileRequest & WithSecurityProfileId(SecurityProfileIdT &&value)
const Aws::Vector< Aws::String > & GetPermissions() const
void SetTagRestrictedResources(TagRestrictedResourcesT &&value)
const Aws::Vector< Aws::String > & GetTagRestrictedResources() const
void SetAllowedAccessControlHierarchyGroupId(AllowedAccessControlHierarchyGroupIdT &&value)
UpdateSecurityProfileRequest & AddAllowedAccessControlTags(AllowedAccessControlTagsKeyT &&key, AllowedAccessControlTagsValueT &&value)
UpdateSecurityProfileRequest & WithInstanceId(InstanceIdT &&value)
UpdateSecurityProfileRequest & WithAllowedAccessControlTags(AllowedAccessControlTagsT &&value)
UpdateSecurityProfileRequest & AddHierarchyRestrictedResources(HierarchyRestrictedResourcesT &&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