AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
47 inline const Aws::String& GetPolicyStoreId() const{ return m_policyStoreId; }
48 inline void SetPolicyStoreId(const Aws::String& value) { m_policyStoreId = value; }
49 inline void SetPolicyStoreId(Aws::String&& value) { m_policyStoreId = std::move(value); }
50 inline void SetPolicyStoreId(const char* value) { m_policyStoreId.assign(value); }
51 inline GetPolicyResult& WithPolicyStoreId(const Aws::String& value) { SetPolicyStoreId(value); return *this;}
52 inline GetPolicyResult& WithPolicyStoreId(Aws::String&& value) { SetPolicyStoreId(std::move(value)); return *this;}
53 inline GetPolicyResult& WithPolicyStoreId(const char* value) { SetPolicyStoreId(value); return *this;}
55
57
60 inline const Aws::String& GetPolicyId() const{ return m_policyId; }
61 inline void SetPolicyId(const Aws::String& value) { m_policyId = value; }
62 inline void SetPolicyId(Aws::String&& value) { m_policyId = std::move(value); }
63 inline void SetPolicyId(const char* value) { m_policyId.assign(value); }
64 inline GetPolicyResult& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
65 inline GetPolicyResult& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
66 inline GetPolicyResult& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
68
70
73 inline const PolicyType& GetPolicyType() const{ return m_policyType; }
74 inline void SetPolicyType(const PolicyType& value) { m_policyType = value; }
75 inline void SetPolicyType(PolicyType&& value) { m_policyType = std::move(value); }
76 inline GetPolicyResult& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;}
77 inline GetPolicyResult& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
79
81
86 inline const EntityIdentifier& GetPrincipal() const{ return m_principal; }
87 inline void SetPrincipal(const EntityIdentifier& value) { m_principal = value; }
88 inline void SetPrincipal(EntityIdentifier&& value) { m_principal = std::move(value); }
89 inline GetPolicyResult& WithPrincipal(const EntityIdentifier& value) { SetPrincipal(value); return *this;}
90 inline GetPolicyResult& WithPrincipal(EntityIdentifier&& value) { SetPrincipal(std::move(value)); return *this;}
92
94
98 inline const EntityIdentifier& GetResource() const{ return m_resource; }
99 inline void SetResource(const EntityIdentifier& value) { m_resource = value; }
100 inline void SetResource(EntityIdentifier&& value) { m_resource = std::move(value); }
101 inline GetPolicyResult& WithResource(const EntityIdentifier& value) { SetResource(value); return *this;}
102 inline GetPolicyResult& WithResource(EntityIdentifier&& value) { SetResource(std::move(value)); return *this;}
104
106
111 inline const Aws::Vector<ActionIdentifier>& GetActions() const{ return m_actions; }
112 inline void SetActions(const Aws::Vector<ActionIdentifier>& value) { m_actions = value; }
113 inline void SetActions(Aws::Vector<ActionIdentifier>&& value) { m_actions = std::move(value); }
114 inline GetPolicyResult& WithActions(const Aws::Vector<ActionIdentifier>& value) { SetActions(value); return *this;}
115 inline GetPolicyResult& WithActions(Aws::Vector<ActionIdentifier>&& value) { SetActions(std::move(value)); return *this;}
116 inline GetPolicyResult& AddActions(const ActionIdentifier& value) { m_actions.push_back(value); return *this; }
117 inline GetPolicyResult& AddActions(ActionIdentifier&& value) { m_actions.push_back(std::move(value)); return *this; }
119
121
124 inline const PolicyDefinitionDetail& GetDefinition() const{ return m_definition; }
125 inline void SetDefinition(const PolicyDefinitionDetail& value) { m_definition = value; }
126 inline void SetDefinition(PolicyDefinitionDetail&& value) { m_definition = std::move(value); }
127 inline GetPolicyResult& WithDefinition(const PolicyDefinitionDetail& value) { SetDefinition(value); return *this;}
128 inline GetPolicyResult& WithDefinition(PolicyDefinitionDetail&& value) { SetDefinition(std::move(value)); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
136 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
137 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); }
138 inline GetPolicyResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
139 inline GetPolicyResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
141
143
146 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; }
147 inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDate = value; }
148 inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDate = std::move(value); }
149 inline GetPolicyResult& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;}
150 inline GetPolicyResult& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;}
152
154
158 inline const PolicyEffect& GetEffect() const{ return m_effect; }
159 inline void SetEffect(const PolicyEffect& value) { m_effect = value; }
160 inline void SetEffect(PolicyEffect&& value) { m_effect = std::move(value); }
161 inline GetPolicyResult& WithEffect(const PolicyEffect& value) { SetEffect(value); return *this;}
162 inline GetPolicyResult& WithEffect(PolicyEffect&& value) { SetEffect(std::move(value)); return *this;}
164
166
167 inline const Aws::String& GetRequestId() const{ return m_requestId; }
168 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
169 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
170 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
171 inline GetPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
172 inline GetPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
173 inline GetPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
175 private:
176
177 Aws::String m_policyStoreId;
178
179 Aws::String m_policyId;
180
181 PolicyType m_policyType;
182
183 EntityIdentifier m_principal;
184
185 EntityIdentifier m_resource;
186
188
189 PolicyDefinitionDetail m_definition;
190
191 Aws::Utils::DateTime m_createdDate;
192
193 Aws::Utils::DateTime m_lastUpdatedDate;
194
195 PolicyEffect m_effect;
196
197 Aws::String m_requestId;
198 };
199
200} // namespace Model
201} // namespace VerifiedPermissions
202} // namespace Aws
GetPolicyResult & WithResource(const EntityIdentifier &value)
void SetLastUpdatedDate(Aws::Utils::DateTime &&value)
AWS_VERIFIEDPERMISSIONS_API GetPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetResource(const EntityIdentifier &value)
GetPolicyResult & WithPrincipal(EntityIdentifier &&value)
const Aws::Vector< ActionIdentifier > & GetActions() const
GetPolicyResult & WithDefinition(PolicyDefinitionDetail &&value)
AWS_VERIFIEDPERMISSIONS_API GetPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPolicyResult & AddActions(ActionIdentifier &&value)
void SetActions(const Aws::Vector< ActionIdentifier > &value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
void SetDefinition(const PolicyDefinitionDetail &value)
GetPolicyResult & WithPolicyStoreId(const Aws::String &value)
GetPolicyResult & WithActions(const Aws::Vector< ActionIdentifier > &value)
GetPolicyResult & WithResource(EntityIdentifier &&value)
GetPolicyResult & WithDefinition(const PolicyDefinitionDetail &value)
const EntityIdentifier & GetPrincipal() const
GetPolicyResult & WithRequestId(Aws::String &&value)
GetPolicyResult & WithActions(Aws::Vector< ActionIdentifier > &&value)
GetPolicyResult & WithCreatedDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
void SetDefinition(PolicyDefinitionDetail &&value)
GetPolicyResult & WithPolicyId(Aws::String &&value)
GetPolicyResult & WithRequestId(const Aws::String &value)
GetPolicyResult & AddActions(const ActionIdentifier &value)
GetPolicyResult & WithPolicyId(const Aws::String &value)
GetPolicyResult & WithLastUpdatedDate(Aws::Utils::DateTime &&value)
void SetCreatedDate(Aws::Utils::DateTime &&value)
const EntityIdentifier & GetResource() const
void SetPrincipal(const EntityIdentifier &value)
GetPolicyResult & WithPolicyType(PolicyType &&value)
GetPolicyResult & WithEffect(const PolicyEffect &value)
GetPolicyResult & WithCreatedDate(Aws::Utils::DateTime &&value)
GetPolicyResult & WithLastUpdatedDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreatedDate() const
void SetActions(Aws::Vector< ActionIdentifier > &&value)
AWS_VERIFIEDPERMISSIONS_API GetPolicyResult()
GetPolicyResult & WithPrincipal(const EntityIdentifier &value)
GetPolicyResult & WithPolicyStoreId(const char *value)
GetPolicyResult & WithEffect(PolicyEffect &&value)
void SetPolicyStoreId(const Aws::String &value)
GetPolicyResult & WithPolicyStoreId(Aws::String &&value)
const PolicyDefinitionDetail & GetDefinition() const
void SetLastUpdatedDate(const Aws::Utils::DateTime &value)
GetPolicyResult & WithPolicyType(const PolicyType &value)
GetPolicyResult & WithPolicyId(const char *value)
GetPolicyResult & WithRequestId(const char *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