AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 UpdatePolicyResult& WithPolicyStoreId(const Aws::String& value) { SetPolicyStoreId(value); return *this;}
50 inline UpdatePolicyResult& WithPolicyStoreId(Aws::String&& value) { SetPolicyStoreId(std::move(value)); return *this;}
51 inline UpdatePolicyResult& 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 UpdatePolicyResult& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
63 inline UpdatePolicyResult& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
64 inline UpdatePolicyResult& 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 UpdatePolicyResult& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;}
75 inline UpdatePolicyResult& 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 UpdatePolicyResult& WithPrincipal(const EntityIdentifier& value) { SetPrincipal(value); return *this;}
88 inline UpdatePolicyResult& WithPrincipal(EntityIdentifier&& value) { SetPrincipal(std::move(value)); return *this;}
90
92
96 inline const EntityIdentifier& GetResource() const{ return m_resource; }
97 inline void SetResource(const EntityIdentifier& value) { m_resource = value; }
98 inline void SetResource(EntityIdentifier&& value) { m_resource = std::move(value); }
99 inline UpdatePolicyResult& WithResource(const EntityIdentifier& value) { SetResource(value); return *this;}
100 inline UpdatePolicyResult& WithResource(EntityIdentifier&& value) { SetResource(std::move(value)); return *this;}
102
104
109 inline const Aws::Vector<ActionIdentifier>& GetActions() const{ return m_actions; }
110 inline void SetActions(const Aws::Vector<ActionIdentifier>& value) { m_actions = value; }
111 inline void SetActions(Aws::Vector<ActionIdentifier>&& value) { m_actions = std::move(value); }
112 inline UpdatePolicyResult& WithActions(const Aws::Vector<ActionIdentifier>& value) { SetActions(value); return *this;}
113 inline UpdatePolicyResult& WithActions(Aws::Vector<ActionIdentifier>&& value) { SetActions(std::move(value)); return *this;}
114 inline UpdatePolicyResult& AddActions(const ActionIdentifier& value) { m_actions.push_back(value); return *this; }
115 inline UpdatePolicyResult& AddActions(ActionIdentifier&& value) { m_actions.push_back(std::move(value)); return *this; }
117
119
122 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
123 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
124 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); }
125 inline UpdatePolicyResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
126 inline UpdatePolicyResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
128
130
133 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; }
134 inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDate = value; }
135 inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDate = std::move(value); }
137 inline UpdatePolicyResult& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;}
139
141
145 inline const PolicyEffect& GetEffect() const{ return m_effect; }
146 inline void SetEffect(const PolicyEffect& value) { m_effect = value; }
147 inline void SetEffect(PolicyEffect&& value) { m_effect = std::move(value); }
148 inline UpdatePolicyResult& WithEffect(const PolicyEffect& value) { SetEffect(value); return *this;}
149 inline UpdatePolicyResult& WithEffect(PolicyEffect&& value) { SetEffect(std::move(value)); return *this;}
151
153
154 inline const Aws::String& GetRequestId() const{ return m_requestId; }
155 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
156 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
157 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
158 inline UpdatePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
159 inline UpdatePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
160 inline UpdatePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
162 private:
163
164 Aws::String m_policyStoreId;
165
166 Aws::String m_policyId;
167
168 PolicyType m_policyType;
169
170 EntityIdentifier m_principal;
171
172 EntityIdentifier m_resource;
173
175
176 Aws::Utils::DateTime m_createdDate;
177
178 Aws::Utils::DateTime m_lastUpdatedDate;
179
180 PolicyEffect m_effect;
181
182 Aws::String m_requestId;
183 };
184
185} // namespace Model
186} // namespace VerifiedPermissions
187} // namespace Aws
UpdatePolicyResult & WithRequestId(const char *value)
AWS_VERIFIEDPERMISSIONS_API UpdatePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_VERIFIEDPERMISSIONS_API UpdatePolicyResult()
UpdatePolicyResult & AddActions(const ActionIdentifier &value)
UpdatePolicyResult & WithPolicyId(const char *value)
UpdatePolicyResult & WithRequestId(Aws::String &&value)
void SetActions(Aws::Vector< ActionIdentifier > &&value)
void SetLastUpdatedDate(const Aws::Utils::DateTime &value)
UpdatePolicyResult & WithPrincipal(const EntityIdentifier &value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
UpdatePolicyResult & WithPolicyId(Aws::String &&value)
UpdatePolicyResult & WithPolicyStoreId(const Aws::String &value)
AWS_VERIFIEDPERMISSIONS_API UpdatePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdatePolicyResult & WithActions(const Aws::Vector< ActionIdentifier > &value)
void SetActions(const Aws::Vector< ActionIdentifier > &value)
UpdatePolicyResult & AddActions(ActionIdentifier &&value)
const Aws::Vector< ActionIdentifier > & GetActions() const
UpdatePolicyResult & WithPolicyStoreId(const char *value)
UpdatePolicyResult & WithPolicyType(PolicyType &&value)
UpdatePolicyResult & WithEffect(const PolicyEffect &value)
UpdatePolicyResult & WithPolicyType(const PolicyType &value)
UpdatePolicyResult & WithActions(Aws::Vector< ActionIdentifier > &&value)
UpdatePolicyResult & WithLastUpdatedDate(Aws::Utils::DateTime &&value)
UpdatePolicyResult & WithResource(const EntityIdentifier &value)
void SetLastUpdatedDate(Aws::Utils::DateTime &&value)
void SetPrincipal(const EntityIdentifier &value)
void SetResource(const EntityIdentifier &value)
UpdatePolicyResult & WithPrincipal(EntityIdentifier &&value)
UpdatePolicyResult & WithResource(EntityIdentifier &&value)
UpdatePolicyResult & WithPolicyStoreId(Aws::String &&value)
UpdatePolicyResult & WithLastUpdatedDate(const Aws::Utils::DateTime &value)
UpdatePolicyResult & WithEffect(PolicyEffect &&value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
UpdatePolicyResult & WithCreatedDate(const Aws::Utils::DateTime &value)
UpdatePolicyResult & WithRequestId(const Aws::String &value)
UpdatePolicyResult & WithPolicyId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedDate() const
UpdatePolicyResult & WithCreatedDate(Aws::Utils::DateTime &&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