AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreatePolicyStoreRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/verifiedpermissions/VerifiedPermissionsRequest.h>
11#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
12#include <aws/verifiedpermissions/model/DeletionProtection.h>
13#include <aws/verifiedpermissions/model/EncryptionSettings.h>
14#include <aws/verifiedpermissions/model/ValidationSettings.h>
15
16#include <utility>
17
18namespace Aws {
19namespace VerifiedPermissions {
20namespace Model {
21
25 public:
26 AWS_VERIFIEDPERMISSIONS_API CreatePolicyStoreRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreatePolicyStore"; }
33
34 AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override;
35
36 AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
54 inline const Aws::String& GetClientToken() const { return m_clientToken; }
55 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
56 template <typename ClientTokenT = Aws::String>
57 void SetClientToken(ClientTokenT&& value) {
58 m_clientTokenHasBeenSet = true;
59 m_clientToken = std::forward<ClientTokenT>(value);
60 }
61 template <typename ClientTokenT = Aws::String>
63 SetClientToken(std::forward<ClientTokenT>(value));
64 return *this;
65 }
67
69
81 inline const ValidationSettings& GetValidationSettings() const { return m_validationSettings; }
82 inline bool ValidationSettingsHasBeenSet() const { return m_validationSettingsHasBeenSet; }
83 template <typename ValidationSettingsT = ValidationSettings>
84 void SetValidationSettings(ValidationSettingsT&& value) {
85 m_validationSettingsHasBeenSet = true;
86 m_validationSettings = std::forward<ValidationSettingsT>(value);
87 }
88 template <typename ValidationSettingsT = ValidationSettings>
89 CreatePolicyStoreRequest& WithValidationSettings(ValidationSettingsT&& value) {
90 SetValidationSettings(std::forward<ValidationSettingsT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template <typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) {
104 m_descriptionHasBeenSet = true;
105 m_description = std::forward<DescriptionT>(value);
106 }
107 template <typename DescriptionT = Aws::String>
109 SetDescription(std::forward<DescriptionT>(value));
110 return *this;
111 }
113
115
119 inline DeletionProtection GetDeletionProtection() const { return m_deletionProtection; }
120 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
122 m_deletionProtectionHasBeenSet = true;
123 m_deletionProtection = value;
124 }
127 return *this;
128 }
130
132
138 inline const EncryptionSettings& GetEncryptionSettings() const { return m_encryptionSettings; }
139 inline bool EncryptionSettingsHasBeenSet() const { return m_encryptionSettingsHasBeenSet; }
140 template <typename EncryptionSettingsT = EncryptionSettings>
141 void SetEncryptionSettings(EncryptionSettingsT&& value) {
142 m_encryptionSettingsHasBeenSet = true;
143 m_encryptionSettings = std::forward<EncryptionSettingsT>(value);
144 }
145 template <typename EncryptionSettingsT = EncryptionSettings>
146 CreatePolicyStoreRequest& WithEncryptionSettings(EncryptionSettingsT&& value) {
147 SetEncryptionSettings(std::forward<EncryptionSettingsT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
159 void SetTags(TagsT&& value) {
160 m_tagsHasBeenSet = true;
161 m_tags = std::forward<TagsT>(value);
162 }
163 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
165 SetTags(std::forward<TagsT>(value));
166 return *this;
167 }
168 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
169 CreatePolicyStoreRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
170 m_tagsHasBeenSet = true;
171 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
172 return *this;
173 }
175 private:
177
178 ValidationSettings m_validationSettings;
179
180 Aws::String m_description;
181
183
184 EncryptionSettings m_encryptionSettings;
185
187 bool m_clientTokenHasBeenSet = true;
188 bool m_validationSettingsHasBeenSet = false;
189 bool m_descriptionHasBeenSet = false;
190 bool m_deletionProtectionHasBeenSet = false;
191 bool m_encryptionSettingsHasBeenSet = false;
192 bool m_tagsHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace VerifiedPermissions
197} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreatePolicyStoreRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreatePolicyStoreRequest & WithEncryptionSettings(EncryptionSettingsT &&value)
CreatePolicyStoreRequest & WithClientToken(ClientTokenT &&value)
CreatePolicyStoreRequest & WithValidationSettings(ValidationSettingsT &&value)
AWS_VERIFIEDPERMISSIONS_API CreatePolicyStoreRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override
CreatePolicyStoreRequest & WithDescription(DescriptionT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePolicyStoreRequest & WithDeletionProtection(DeletionProtection value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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