AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdatePolicyResult.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 UpdatePolicyResult() = 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 UpdatePolicyResult& 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 UpdatePolicyResult& 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 UpdatePolicyResult& 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 UpdatePolicyResult& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
84
86
90 inline const EntityIdentifier& GetResource() const { return m_resource; }
91 template<typename ResourceT = EntityIdentifier>
92 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
93 template<typename ResourceT = EntityIdentifier>
94 UpdatePolicyResult& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
96
98
103 inline const Aws::Vector<ActionIdentifier>& GetActions() const { return m_actions; }
104 template<typename ActionsT = Aws::Vector<ActionIdentifier>>
105 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
106 template<typename ActionsT = Aws::Vector<ActionIdentifier>>
107 UpdatePolicyResult& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
108 template<typename ActionsT = ActionIdentifier>
109 UpdatePolicyResult& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
111
113
116 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
117 template<typename CreatedDateT = Aws::Utils::DateTime>
118 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
119 template<typename CreatedDateT = Aws::Utils::DateTime>
120 UpdatePolicyResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
122
124
127 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
128 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
129 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
130 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
131 UpdatePolicyResult& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
133
135
139 inline PolicyEffect GetEffect() const { return m_effect; }
140 inline void SetEffect(PolicyEffect value) { m_effectHasBeenSet = true; m_effect = value; }
141 inline UpdatePolicyResult& WithEffect(PolicyEffect value) { SetEffect(value); return *this;}
143
145
146 inline const Aws::String& GetRequestId() const { return m_requestId; }
147 template<typename RequestIdT = Aws::String>
148 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
149 template<typename RequestIdT = Aws::String>
150 UpdatePolicyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
152 private:
153
154 Aws::String m_policyStoreId;
155 bool m_policyStoreIdHasBeenSet = false;
156
157 Aws::String m_policyId;
158 bool m_policyIdHasBeenSet = false;
159
160 PolicyType m_policyType{PolicyType::NOT_SET};
161 bool m_policyTypeHasBeenSet = false;
162
163 EntityIdentifier m_principal;
164 bool m_principalHasBeenSet = false;
165
166 EntityIdentifier m_resource;
167 bool m_resourceHasBeenSet = false;
168
170 bool m_actionsHasBeenSet = false;
171
172 Aws::Utils::DateTime m_createdDate{};
173 bool m_createdDateHasBeenSet = false;
174
175 Aws::Utils::DateTime m_lastUpdatedDate{};
176 bool m_lastUpdatedDateHasBeenSet = false;
177
179 bool m_effectHasBeenSet = false;
180
181 Aws::String m_requestId;
182 bool m_requestIdHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace VerifiedPermissions
187} // namespace Aws
UpdatePolicyResult & WithPolicyStoreId(PolicyStoreIdT &&value)
AWS_VERIFIEDPERMISSIONS_API UpdatePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdatePolicyResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
UpdatePolicyResult & WithPrincipal(PrincipalT &&value)
UpdatePolicyResult & WithRequestId(RequestIdT &&value)
UpdatePolicyResult & WithEffect(PolicyEffect value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
AWS_VERIFIEDPERMISSIONS_API UpdatePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdatePolicyResult & WithCreatedDate(CreatedDateT &&value)
UpdatePolicyResult & WithResource(ResourceT &&value)
const Aws::Vector< ActionIdentifier > & GetActions() const
AWS_VERIFIEDPERMISSIONS_API UpdatePolicyResult()=default
UpdatePolicyResult & WithActions(ActionsT &&value)
UpdatePolicyResult & WithPolicyId(PolicyIdT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
UpdatePolicyResult & AddActions(ActionsT &&value)
UpdatePolicyResult & WithPolicyType(PolicyType 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