AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
39
40
42
45 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
46 template<typename PolicyStoreIdT = Aws::String>
47 void SetPolicyStoreId(PolicyStoreIdT&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::forward<PolicyStoreIdT>(value); }
48 template<typename PolicyStoreIdT = Aws::String>
49 CreatePolicyResult& WithPolicyStoreId(PolicyStoreIdT&& value) { SetPolicyStoreId(std::forward<PolicyStoreIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetPolicyId() const { return m_policyId; }
57 template<typename PolicyIdT = Aws::String>
58 void SetPolicyId(PolicyIdT&& value) { m_policyIdHasBeenSet = true; m_policyId = std::forward<PolicyIdT>(value); }
59 template<typename PolicyIdT = Aws::String>
60 CreatePolicyResult& WithPolicyId(PolicyIdT&& value) { SetPolicyId(std::forward<PolicyIdT>(value)); return *this;}
62
64
67 inline PolicyType GetPolicyType() const { return m_policyType; }
68 inline void SetPolicyType(PolicyType value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
69 inline CreatePolicyResult& WithPolicyType(PolicyType value) { SetPolicyType(value); return *this;}
71
73
78 inline const EntityIdentifier& GetPrincipal() const { return m_principal; }
79 template<typename PrincipalT = EntityIdentifier>
80 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
81 template<typename PrincipalT = EntityIdentifier>
82 CreatePolicyResult& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
84
86
91 inline const EntityIdentifier& GetResource() const { return m_resource; }
92 template<typename ResourceT = EntityIdentifier>
93 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
94 template<typename ResourceT = EntityIdentifier>
95 CreatePolicyResult& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
97
99
104 inline const Aws::Vector<ActionIdentifier>& GetActions() const { return m_actions; }
105 template<typename ActionsT = Aws::Vector<ActionIdentifier>>
106 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
107 template<typename ActionsT = Aws::Vector<ActionIdentifier>>
108 CreatePolicyResult& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
109 template<typename ActionsT = ActionIdentifier>
110 CreatePolicyResult& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
112
114
117 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
118 template<typename CreatedDateT = Aws::Utils::DateTime>
119 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
120 template<typename CreatedDateT = Aws::Utils::DateTime>
121 CreatePolicyResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
129 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
130 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
131 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
132 CreatePolicyResult& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
134
136
140 inline PolicyEffect GetEffect() const { return m_effect; }
141 inline void SetEffect(PolicyEffect value) { m_effectHasBeenSet = true; m_effect = value; }
142 inline CreatePolicyResult& WithEffect(PolicyEffect value) { SetEffect(value); return *this;}
144
146
147 inline const Aws::String& GetRequestId() const { return m_requestId; }
148 template<typename RequestIdT = Aws::String>
149 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
150 template<typename RequestIdT = Aws::String>
151 CreatePolicyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
153 private:
154
155 Aws::String m_policyStoreId;
156 bool m_policyStoreIdHasBeenSet = false;
157
158 Aws::String m_policyId;
159 bool m_policyIdHasBeenSet = false;
160
161 PolicyType m_policyType{PolicyType::NOT_SET};
162 bool m_policyTypeHasBeenSet = false;
163
164 EntityIdentifier m_principal;
165 bool m_principalHasBeenSet = false;
166
167 EntityIdentifier m_resource;
168 bool m_resourceHasBeenSet = false;
169
171 bool m_actionsHasBeenSet = false;
172
173 Aws::Utils::DateTime m_createdDate{};
174 bool m_createdDateHasBeenSet = false;
175
176 Aws::Utils::DateTime m_lastUpdatedDate{};
177 bool m_lastUpdatedDateHasBeenSet = false;
178
180 bool m_effectHasBeenSet = false;
181
182 Aws::String m_requestId;
183 bool m_requestIdHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace VerifiedPermissions
188} // namespace Aws
CreatePolicyResult & WithPolicyStoreId(PolicyStoreIdT &&value)
CreatePolicyResult & AddActions(ActionsT &&value)
CreatePolicyResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
const Aws::Vector< ActionIdentifier > & GetActions() const
AWS_VERIFIEDPERMISSIONS_API CreatePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_VERIFIEDPERMISSIONS_API CreatePolicyResult()=default
CreatePolicyResult & WithPrincipal(PrincipalT &&value)
CreatePolicyResult & WithResource(ResourceT &&value)
CreatePolicyResult & WithCreatedDate(CreatedDateT &&value)
CreatePolicyResult & WithPolicyId(PolicyIdT &&value)
AWS_VERIFIEDPERMISSIONS_API CreatePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePolicyResult & WithActions(ActionsT &&value)
CreatePolicyResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
const Aws::Utils::DateTime & GetLastUpdatedDate() const
CreatePolicyResult & WithPolicyType(PolicyType value)
CreatePolicyResult & WithEffect(PolicyEffect 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