AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetPolicyStoreResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
12#include <aws/verifiedpermissions/model/CedarVersion.h>
13#include <aws/verifiedpermissions/model/DeletionProtection.h>
14#include <aws/verifiedpermissions/model/EncryptionState.h>
15#include <aws/verifiedpermissions/model/ValidationSettings.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace VerifiedPermissions {
29namespace Model {
31 public:
32 AWS_VERIFIEDPERMISSIONS_API GetPolicyStoreResult() = default;
35
37
40 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
41 template <typename PolicyStoreIdT = Aws::String>
42 void SetPolicyStoreId(PolicyStoreIdT&& value) {
43 m_policyStoreIdHasBeenSet = true;
44 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
45 }
46 template <typename PolicyStoreIdT = Aws::String>
47 GetPolicyStoreResult& WithPolicyStoreId(PolicyStoreIdT&& value) {
48 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetArn() const { return m_arn; }
58 template <typename ArnT = Aws::String>
59 void SetArn(ArnT&& value) {
60 m_arnHasBeenSet = true;
61 m_arn = std::forward<ArnT>(value);
62 }
63 template <typename ArnT = Aws::String>
65 SetArn(std::forward<ArnT>(value));
66 return *this;
67 }
69
71
74 inline const ValidationSettings& GetValidationSettings() const { return m_validationSettings; }
75 template <typename ValidationSettingsT = ValidationSettings>
76 void SetValidationSettings(ValidationSettingsT&& value) {
77 m_validationSettingsHasBeenSet = true;
78 m_validationSettings = std::forward<ValidationSettingsT>(value);
79 }
80 template <typename ValidationSettingsT = ValidationSettings>
81 GetPolicyStoreResult& WithValidationSettings(ValidationSettingsT&& value) {
82 SetValidationSettings(std::forward<ValidationSettingsT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
92 template <typename CreatedDateT = Aws::Utils::DateTime>
93 void SetCreatedDate(CreatedDateT&& value) {
94 m_createdDateHasBeenSet = true;
95 m_createdDate = std::forward<CreatedDateT>(value);
96 }
97 template <typename CreatedDateT = Aws::Utils::DateTime>
98 GetPolicyStoreResult& WithCreatedDate(CreatedDateT&& value) {
99 SetCreatedDate(std::forward<CreatedDateT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
109 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
110 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
111 m_lastUpdatedDateHasBeenSet = true;
112 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
113 }
114 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
115 GetPolicyStoreResult& WithLastUpdatedDate(LastUpdatedDateT&& value) {
116 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::String& GetDescription() const { return m_description; }
127 template <typename DescriptionT = Aws::String>
128 void SetDescription(DescriptionT&& value) {
129 m_descriptionHasBeenSet = true;
130 m_description = std::forward<DescriptionT>(value);
131 }
132 template <typename DescriptionT = Aws::String>
133 GetPolicyStoreResult& WithDescription(DescriptionT&& value) {
134 SetDescription(std::forward<DescriptionT>(value));
135 return *this;
136 }
138
140
144 inline DeletionProtection GetDeletionProtection() const { return m_deletionProtection; }
146 m_deletionProtectionHasBeenSet = true;
147 m_deletionProtection = value;
148 }
151 return *this;
152 }
154
156
160 inline const EncryptionState& GetEncryptionState() const { return m_encryptionState; }
161 template <typename EncryptionStateT = EncryptionState>
162 void SetEncryptionState(EncryptionStateT&& value) {
163 m_encryptionStateHasBeenSet = true;
164 m_encryptionState = std::forward<EncryptionStateT>(value);
165 }
166 template <typename EncryptionStateT = EncryptionState>
167 GetPolicyStoreResult& WithEncryptionState(EncryptionStateT&& value) {
168 SetEncryptionState(std::forward<EncryptionStateT>(value));
169 return *this;
170 }
172
174
180 inline CedarVersion GetCedarVersion() const { return m_cedarVersion; }
181 inline void SetCedarVersion(CedarVersion value) {
182 m_cedarVersionHasBeenSet = true;
183 m_cedarVersion = value;
184 }
186 SetCedarVersion(value);
187 return *this;
188 }
190
192
195 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
196 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
197 void SetTags(TagsT&& value) {
198 m_tagsHasBeenSet = true;
199 m_tags = std::forward<TagsT>(value);
200 }
201 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
203 SetTags(std::forward<TagsT>(value));
204 return *this;
205 }
206 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
207 GetPolicyStoreResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
208 m_tagsHasBeenSet = true;
209 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
210 return *this;
211 }
213
215
216 inline const Aws::String& GetRequestId() const { return m_requestId; }
217 template <typename RequestIdT = Aws::String>
218 void SetRequestId(RequestIdT&& value) {
219 m_requestIdHasBeenSet = true;
220 m_requestId = std::forward<RequestIdT>(value);
221 }
222 template <typename RequestIdT = Aws::String>
223 GetPolicyStoreResult& WithRequestId(RequestIdT&& value) {
224 SetRequestId(std::forward<RequestIdT>(value));
225 return *this;
226 }
228 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
229
230 private:
231 Aws::String m_policyStoreId;
232
233 Aws::String m_arn;
234
235 ValidationSettings m_validationSettings;
236
237 Aws::Utils::DateTime m_createdDate{};
238
239 Aws::Utils::DateTime m_lastUpdatedDate{};
240
241 Aws::String m_description;
242
244
245 EncryptionState m_encryptionState;
246
247 CedarVersion m_cedarVersion{CedarVersion::NOT_SET};
248
250
251 Aws::String m_requestId;
252 Aws::Http::HttpResponseCode m_HttpResponseCode;
253 bool m_policyStoreIdHasBeenSet = false;
254 bool m_arnHasBeenSet = false;
255 bool m_validationSettingsHasBeenSet = false;
256 bool m_createdDateHasBeenSet = false;
257 bool m_lastUpdatedDateHasBeenSet = false;
258 bool m_descriptionHasBeenSet = false;
259 bool m_deletionProtectionHasBeenSet = false;
260 bool m_encryptionStateHasBeenSet = false;
261 bool m_cedarVersionHasBeenSet = false;
262 bool m_tagsHasBeenSet = false;
263 bool m_requestIdHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace VerifiedPermissions
268} // namespace Aws
GetPolicyStoreResult & WithPolicyStoreId(PolicyStoreIdT &&value)
GetPolicyStoreResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_VERIFIEDPERMISSIONS_API GetPolicyStoreResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPolicyStoreResult & WithDeletionProtection(DeletionProtection value)
GetPolicyStoreResult & WithRequestId(RequestIdT &&value)
GetPolicyStoreResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
GetPolicyStoreResult & WithCedarVersion(CedarVersion value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
AWS_VERIFIEDPERMISSIONS_API GetPolicyStoreResult()=default
GetPolicyStoreResult & WithEncryptionState(EncryptionStateT &&value)
GetPolicyStoreResult & WithValidationSettings(ValidationSettingsT &&value)
AWS_VERIFIEDPERMISSIONS_API GetPolicyStoreResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetPolicyStoreResult & WithDescription(DescriptionT &&value)
GetPolicyStoreResult & WithCreatedDate(CreatedDateT &&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
Aws::Utils::Json::JsonValue JsonValue