AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetPolicyResult.h
1
6#pragma once
7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/verifiedpermissions/model/PolicyType.h>
10#include <aws/verifiedpermissions/model/EntityIdentifier.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/verifiedpermissions/model/PolicyDefinitionDetail.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/verifiedpermissions/model/PolicyEffect.h>
15#include <aws/verifiedpermissions/model/ActionIdentifier.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace VerifiedPermissions
31{
32namespace Model
33{
35 {
36 public:
37 AWS_VERIFIEDPERMISSIONS_API GetPolicyResult() = default;
40
41
43
47 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
48 template<typename PolicyStoreIdT = Aws::String>
49 void SetPolicyStoreId(PolicyStoreIdT&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::forward<PolicyStoreIdT>(value); }
50 template<typename PolicyStoreIdT = Aws::String>
51 GetPolicyResult& WithPolicyStoreId(PolicyStoreIdT&& value) { SetPolicyStoreId(std::forward<PolicyStoreIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetPolicyId() const { return m_policyId; }
59 template<typename PolicyIdT = Aws::String>
60 void SetPolicyId(PolicyIdT&& value) { m_policyIdHasBeenSet = true; m_policyId = std::forward<PolicyIdT>(value); }
61 template<typename PolicyIdT = Aws::String>
62 GetPolicyResult& WithPolicyId(PolicyIdT&& value) { SetPolicyId(std::forward<PolicyIdT>(value)); return *this;}
64
66
69 inline PolicyType GetPolicyType() const { return m_policyType; }
70 inline void SetPolicyType(PolicyType value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
71 inline GetPolicyResult& WithPolicyType(PolicyType value) { SetPolicyType(value); return *this;}
73
75
80 inline const EntityIdentifier& GetPrincipal() const { return m_principal; }
81 template<typename PrincipalT = EntityIdentifier>
82 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
83 template<typename PrincipalT = EntityIdentifier>
84 GetPolicyResult& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
86
88
92 inline const EntityIdentifier& GetResource() const { return m_resource; }
93 template<typename ResourceT = EntityIdentifier>
94 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
95 template<typename ResourceT = EntityIdentifier>
96 GetPolicyResult& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
98
100
105 inline const Aws::Vector<ActionIdentifier>& GetActions() const { return m_actions; }
106 template<typename ActionsT = Aws::Vector<ActionIdentifier>>
107 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
108 template<typename ActionsT = Aws::Vector<ActionIdentifier>>
109 GetPolicyResult& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
110 template<typename ActionsT = ActionIdentifier>
111 GetPolicyResult& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
113
115
118 inline const PolicyDefinitionDetail& GetDefinition() const { return m_definition; }
119 template<typename DefinitionT = PolicyDefinitionDetail>
120 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
121 template<typename DefinitionT = PolicyDefinitionDetail>
122 GetPolicyResult& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
130 template<typename CreatedDateT = Aws::Utils::DateTime>
131 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
132 template<typename CreatedDateT = Aws::Utils::DateTime>
133 GetPolicyResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
135
137
140 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
141 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
142 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
143 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
144 GetPolicyResult& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
146
148
152 inline PolicyEffect GetEffect() const { return m_effect; }
153 inline void SetEffect(PolicyEffect value) { m_effectHasBeenSet = true; m_effect = value; }
154 inline GetPolicyResult& WithEffect(PolicyEffect value) { SetEffect(value); return *this;}
156
158
159 inline const Aws::String& GetRequestId() const { return m_requestId; }
160 template<typename RequestIdT = Aws::String>
161 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
162 template<typename RequestIdT = Aws::String>
163 GetPolicyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
165 private:
166
167 Aws::String m_policyStoreId;
168 bool m_policyStoreIdHasBeenSet = false;
169
170 Aws::String m_policyId;
171 bool m_policyIdHasBeenSet = false;
172
173 PolicyType m_policyType{PolicyType::NOT_SET};
174 bool m_policyTypeHasBeenSet = false;
175
176 EntityIdentifier m_principal;
177 bool m_principalHasBeenSet = false;
178
179 EntityIdentifier m_resource;
180 bool m_resourceHasBeenSet = false;
181
183 bool m_actionsHasBeenSet = false;
184
185 PolicyDefinitionDetail m_definition;
186 bool m_definitionHasBeenSet = false;
187
188 Aws::Utils::DateTime m_createdDate{};
189 bool m_createdDateHasBeenSet = false;
190
191 Aws::Utils::DateTime m_lastUpdatedDate{};
192 bool m_lastUpdatedDateHasBeenSet = false;
193
195 bool m_effectHasBeenSet = false;
196
197 Aws::String m_requestId;
198 bool m_requestIdHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace VerifiedPermissions
203} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API GetPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPolicyResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
const Aws::Vector< ActionIdentifier > & GetActions() const
AWS_VERIFIEDPERMISSIONS_API GetPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLastUpdatedDate(LastUpdatedDateT &&value)
GetPolicyResult & WithPolicyType(PolicyType value)
AWS_VERIFIEDPERMISSIONS_API GetPolicyResult()=default
const EntityIdentifier & GetPrincipal() const
GetPolicyResult & WithDefinition(DefinitionT &&value)
GetPolicyResult & WithActions(ActionsT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
GetPolicyResult & WithPolicyStoreId(PolicyStoreIdT &&value)
GetPolicyResult & WithPrincipal(PrincipalT &&value)
GetPolicyResult & WithEffect(PolicyEffect value)
const EntityIdentifier & GetResource() const
GetPolicyResult & AddActions(ActionsT &&value)
GetPolicyResult & WithResource(ResourceT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
GetPolicyResult & WithPolicyId(PolicyIdT &&value)
const PolicyDefinitionDetail & GetDefinition() const
GetPolicyResult & WithRequestId(RequestIdT &&value)
GetPolicyResult & WithCreatedDate(CreatedDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue