AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePolicyResult.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/core/utils/DateTime.h>
13#include <aws/verifiedpermissions/model/PolicyEffect.h>
14#include <aws/verifiedpermissions/model/ActionIdentifier.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace VerifiedPermissions
30{
31namespace Model
32{
34 {
35 public:
36 AWS_VERIFIEDPERMISSIONS_API CreatePolicyResult();
39
40
42
45 inline const Aws::String& GetPolicyStoreId() const{ return m_policyStoreId; }
46 inline void SetPolicyStoreId(const Aws::String& value) { m_policyStoreId = value; }
47 inline void SetPolicyStoreId(Aws::String&& value) { m_policyStoreId = std::move(value); }
48 inline void SetPolicyStoreId(const char* value) { m_policyStoreId.assign(value); }
49 inline CreatePolicyResult& WithPolicyStoreId(const Aws::String& value) { SetPolicyStoreId(value); return *this;}
50 inline CreatePolicyResult& WithPolicyStoreId(Aws::String&& value) { SetPolicyStoreId(std::move(value)); return *this;}
51 inline CreatePolicyResult& WithPolicyStoreId(const char* value) { SetPolicyStoreId(value); return *this;}
53
55
58 inline const Aws::String& GetPolicyId() const{ return m_policyId; }
59 inline void SetPolicyId(const Aws::String& value) { m_policyId = value; }
60 inline void SetPolicyId(Aws::String&& value) { m_policyId = std::move(value); }
61 inline void SetPolicyId(const char* value) { m_policyId.assign(value); }
62 inline CreatePolicyResult& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
63 inline CreatePolicyResult& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
64 inline CreatePolicyResult& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
66
68
71 inline const PolicyType& GetPolicyType() const{ return m_policyType; }
72 inline void SetPolicyType(const PolicyType& value) { m_policyType = value; }
73 inline void SetPolicyType(PolicyType&& value) { m_policyType = std::move(value); }
74 inline CreatePolicyResult& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;}
75 inline CreatePolicyResult& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
77
79
84 inline const EntityIdentifier& GetPrincipal() const{ return m_principal; }
85 inline void SetPrincipal(const EntityIdentifier& value) { m_principal = value; }
86 inline void SetPrincipal(EntityIdentifier&& value) { m_principal = std::move(value); }
87 inline CreatePolicyResult& WithPrincipal(const EntityIdentifier& value) { SetPrincipal(value); return *this;}
88 inline CreatePolicyResult& WithPrincipal(EntityIdentifier&& value) { SetPrincipal(std::move(value)); return *this;}
90
92
97 inline const EntityIdentifier& GetResource() const{ return m_resource; }
98 inline void SetResource(const EntityIdentifier& value) { m_resource = value; }
99 inline void SetResource(EntityIdentifier&& value) { m_resource = std::move(value); }
100 inline CreatePolicyResult& WithResource(const EntityIdentifier& value) { SetResource(value); return *this;}
101 inline CreatePolicyResult& WithResource(EntityIdentifier&& value) { SetResource(std::move(value)); return *this;}
103
105
110 inline const Aws::Vector<ActionIdentifier>& GetActions() const{ return m_actions; }
111 inline void SetActions(const Aws::Vector<ActionIdentifier>& value) { m_actions = value; }
112 inline void SetActions(Aws::Vector<ActionIdentifier>&& value) { m_actions = std::move(value); }
113 inline CreatePolicyResult& WithActions(const Aws::Vector<ActionIdentifier>& value) { SetActions(value); return *this;}
114 inline CreatePolicyResult& WithActions(Aws::Vector<ActionIdentifier>&& value) { SetActions(std::move(value)); return *this;}
115 inline CreatePolicyResult& AddActions(const ActionIdentifier& value) { m_actions.push_back(value); return *this; }
116 inline CreatePolicyResult& AddActions(ActionIdentifier&& value) { m_actions.push_back(std::move(value)); return *this; }
118
120
123 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
124 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
125 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); }
126 inline CreatePolicyResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
127 inline CreatePolicyResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
129
131
134 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; }
135 inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDate = value; }
136 inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDate = std::move(value); }
138 inline CreatePolicyResult& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;}
140
142
146 inline const PolicyEffect& GetEffect() const{ return m_effect; }
147 inline void SetEffect(const PolicyEffect& value) { m_effect = value; }
148 inline void SetEffect(PolicyEffect&& value) { m_effect = std::move(value); }
149 inline CreatePolicyResult& WithEffect(const PolicyEffect& value) { SetEffect(value); return *this;}
150 inline CreatePolicyResult& WithEffect(PolicyEffect&& value) { SetEffect(std::move(value)); return *this;}
152
154
155 inline const Aws::String& GetRequestId() const{ return m_requestId; }
156 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
157 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
158 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
159 inline CreatePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
160 inline CreatePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
161 inline CreatePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
163 private:
164
165 Aws::String m_policyStoreId;
166
167 Aws::String m_policyId;
168
169 PolicyType m_policyType;
170
171 EntityIdentifier m_principal;
172
173 EntityIdentifier m_resource;
174
176
177 Aws::Utils::DateTime m_createdDate;
178
179 Aws::Utils::DateTime m_lastUpdatedDate;
180
181 PolicyEffect m_effect;
182
183 Aws::String m_requestId;
184 };
185
186} // namespace Model
187} // namespace VerifiedPermissions
188} // namespace Aws
CreatePolicyResult & WithCreatedDate(Aws::Utils::DateTime &&value)
void SetPrincipal(const EntityIdentifier &value)
void SetLastUpdatedDate(Aws::Utils::DateTime &&value)
CreatePolicyResult & WithPrincipal(EntityIdentifier &&value)
CreatePolicyResult & WithPolicyStoreId(Aws::String &&value)
void SetActions(Aws::Vector< ActionIdentifier > &&value)
void SetResource(const EntityIdentifier &value)
CreatePolicyResult & WithPolicyType(PolicyType &&value)
CreatePolicyResult & WithLastUpdatedDate(Aws::Utils::DateTime &&value)
CreatePolicyResult & WithPolicyStoreId(const char *value)
const Aws::Vector< ActionIdentifier > & GetActions() const
CreatePolicyResult & WithResource(EntityIdentifier &&value)
CreatePolicyResult & AddActions(const ActionIdentifier &value)
CreatePolicyResult & WithEffect(PolicyEffect &&value)
CreatePolicyResult & WithPolicyId(const char *value)
CreatePolicyResult & WithPolicyId(const Aws::String &value)
CreatePolicyResult & WithRequestId(const Aws::String &value)
CreatePolicyResult & WithCreatedDate(const Aws::Utils::DateTime &value)
CreatePolicyResult & WithPrincipal(const EntityIdentifier &value)
AWS_VERIFIEDPERMISSIONS_API CreatePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePolicyResult & WithRequestId(const char *value)
CreatePolicyResult & WithPolicyType(const PolicyType &value)
CreatePolicyResult & WithResource(const EntityIdentifier &value)
CreatePolicyResult & WithRequestId(Aws::String &&value)
CreatePolicyResult & WithPolicyId(Aws::String &&value)
CreatePolicyResult & WithLastUpdatedDate(const Aws::Utils::DateTime &value)
void SetActions(const Aws::Vector< ActionIdentifier > &value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
CreatePolicyResult & WithPolicyStoreId(const Aws::String &value)
AWS_VERIFIEDPERMISSIONS_API CreatePolicyResult()
void SetLastUpdatedDate(const Aws::Utils::DateTime &value)
CreatePolicyResult & WithActions(Aws::Vector< ActionIdentifier > &&value)
AWS_VERIFIEDPERMISSIONS_API CreatePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedDate() const
const Aws::Utils::DateTime & GetLastUpdatedDate() const
CreatePolicyResult & AddActions(ActionIdentifier &&value)
CreatePolicyResult & WithEffect(const PolicyEffect &value)
CreatePolicyResult & WithActions(const Aws::Vector< ActionIdentifier > &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