AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PolicyItem.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/PolicyDefinitionItem.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{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace VerifiedPermissions
29{
30namespace Model
31{
32
42 {
43 public:
44 AWS_VERIFIEDPERMISSIONS_API PolicyItem();
45 AWS_VERIFIEDPERMISSIONS_API PolicyItem(Aws::Utils::Json::JsonView jsonValue);
46 AWS_VERIFIEDPERMISSIONS_API PolicyItem& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const Aws::String& GetPolicyStoreId() const{ return m_policyStoreId; }
56 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
57 inline void SetPolicyStoreId(const Aws::String& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = value; }
58 inline void SetPolicyStoreId(Aws::String&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::move(value); }
59 inline void SetPolicyStoreId(const char* value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId.assign(value); }
60 inline PolicyItem& WithPolicyStoreId(const Aws::String& value) { SetPolicyStoreId(value); return *this;}
61 inline PolicyItem& WithPolicyStoreId(Aws::String&& value) { SetPolicyStoreId(std::move(value)); return *this;}
62 inline PolicyItem& WithPolicyStoreId(const char* value) { SetPolicyStoreId(value); return *this;}
64
66
69 inline const Aws::String& GetPolicyId() const{ return m_policyId; }
70 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
71 inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
72 inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
73 inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
74 inline PolicyItem& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
75 inline PolicyItem& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
76 inline PolicyItem& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
78
80
85 inline const PolicyType& GetPolicyType() const{ return m_policyType; }
86 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
87 inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
88 inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
89 inline PolicyItem& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;}
90 inline PolicyItem& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
92
94
97 inline const EntityIdentifier& GetPrincipal() const{ return m_principal; }
98 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
99 inline void SetPrincipal(const EntityIdentifier& value) { m_principalHasBeenSet = true; m_principal = value; }
100 inline void SetPrincipal(EntityIdentifier&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
101 inline PolicyItem& WithPrincipal(const EntityIdentifier& value) { SetPrincipal(value); return *this;}
102 inline PolicyItem& WithPrincipal(EntityIdentifier&& value) { SetPrincipal(std::move(value)); return *this;}
104
106
109 inline const EntityIdentifier& GetResource() const{ return m_resource; }
110 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
111 inline void SetResource(const EntityIdentifier& value) { m_resourceHasBeenSet = true; m_resource = value; }
112 inline void SetResource(EntityIdentifier&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
113 inline PolicyItem& WithResource(const EntityIdentifier& value) { SetResource(value); return *this;}
114 inline PolicyItem& WithResource(EntityIdentifier&& value) { SetResource(std::move(value)); return *this;}
116
118
123 inline const Aws::Vector<ActionIdentifier>& GetActions() const{ return m_actions; }
124 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
125 inline void SetActions(const Aws::Vector<ActionIdentifier>& value) { m_actionsHasBeenSet = true; m_actions = value; }
126 inline void SetActions(Aws::Vector<ActionIdentifier>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
127 inline PolicyItem& WithActions(const Aws::Vector<ActionIdentifier>& value) { SetActions(value); return *this;}
128 inline PolicyItem& WithActions(Aws::Vector<ActionIdentifier>&& value) { SetActions(std::move(value)); return *this;}
129 inline PolicyItem& AddActions(const ActionIdentifier& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
130 inline PolicyItem& AddActions(ActionIdentifier&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
132
134
137 inline const PolicyDefinitionItem& GetDefinition() const{ return m_definition; }
138 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
139 inline void SetDefinition(const PolicyDefinitionItem& value) { m_definitionHasBeenSet = true; m_definition = value; }
140 inline void SetDefinition(PolicyDefinitionItem&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
141 inline PolicyItem& WithDefinition(const PolicyDefinitionItem& value) { SetDefinition(value); return *this;}
142 inline PolicyItem& WithDefinition(PolicyDefinitionItem&& value) { SetDefinition(std::move(value)); return *this;}
144
146
149 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
150 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
151 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
152 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
153 inline PolicyItem& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
154 inline PolicyItem& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
156
158
161 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; }
162 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
163 inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = value; }
164 inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::move(value); }
165 inline PolicyItem& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;}
166 inline PolicyItem& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;}
168
170
174 inline const PolicyEffect& GetEffect() const{ return m_effect; }
175 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
176 inline void SetEffect(const PolicyEffect& value) { m_effectHasBeenSet = true; m_effect = value; }
177 inline void SetEffect(PolicyEffect&& value) { m_effectHasBeenSet = true; m_effect = std::move(value); }
178 inline PolicyItem& WithEffect(const PolicyEffect& value) { SetEffect(value); return *this;}
179 inline PolicyItem& WithEffect(PolicyEffect&& value) { SetEffect(std::move(value)); return *this;}
181 private:
182
183 Aws::String m_policyStoreId;
184 bool m_policyStoreIdHasBeenSet = false;
185
186 Aws::String m_policyId;
187 bool m_policyIdHasBeenSet = false;
188
189 PolicyType m_policyType;
190 bool m_policyTypeHasBeenSet = false;
191
192 EntityIdentifier m_principal;
193 bool m_principalHasBeenSet = false;
194
195 EntityIdentifier m_resource;
196 bool m_resourceHasBeenSet = false;
197
199 bool m_actionsHasBeenSet = false;
200
201 PolicyDefinitionItem m_definition;
202 bool m_definitionHasBeenSet = false;
203
204 Aws::Utils::DateTime m_createdDate;
205 bool m_createdDateHasBeenSet = false;
206
207 Aws::Utils::DateTime m_lastUpdatedDate;
208 bool m_lastUpdatedDateHasBeenSet = false;
209
210 PolicyEffect m_effect;
211 bool m_effectHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace VerifiedPermissions
216} // namespace Aws
void SetCreatedDate(const Aws::Utils::DateTime &value)
Definition PolicyItem.h:151
AWS_VERIFIEDPERMISSIONS_API PolicyItem(Aws::Utils::Json::JsonView jsonValue)
PolicyItem & WithPolicyType(const PolicyType &value)
Definition PolicyItem.h:89
void SetPrincipal(const EntityIdentifier &value)
Definition PolicyItem.h:99
void SetPolicyStoreId(Aws::String &&value)
Definition PolicyItem.h:58
const Aws::String & GetPolicyStoreId() const
Definition PolicyItem.h:55
const Aws::String & GetPolicyId() const
Definition PolicyItem.h:69
PolicyItem & WithPolicyStoreId(const char *value)
Definition PolicyItem.h:62
void SetCreatedDate(Aws::Utils::DateTime &&value)
Definition PolicyItem.h:152
PolicyItem & WithResource(EntityIdentifier &&value)
Definition PolicyItem.h:114
void SetPrincipal(EntityIdentifier &&value)
Definition PolicyItem.h:100
PolicyItem & AddActions(ActionIdentifier &&value)
Definition PolicyItem.h:130
PolicyItem & WithPolicyStoreId(Aws::String &&value)
Definition PolicyItem.h:61
void SetResource(EntityIdentifier &&value)
Definition PolicyItem.h:112
const PolicyType & GetPolicyType() const
Definition PolicyItem.h:85
void SetEffect(PolicyEffect &&value)
Definition PolicyItem.h:177
void SetLastUpdatedDate(const Aws::Utils::DateTime &value)
Definition PolicyItem.h:163
PolicyItem & WithDefinition(const PolicyDefinitionItem &value)
Definition PolicyItem.h:141
PolicyItem & WithActions(const Aws::Vector< ActionIdentifier > &value)
Definition PolicyItem.h:127
PolicyItem & WithCreatedDate(const Aws::Utils::DateTime &value)
Definition PolicyItem.h:153
const EntityIdentifier & GetPrincipal() const
Definition PolicyItem.h:97
void SetPolicyId(const Aws::String &value)
Definition PolicyItem.h:71
AWS_VERIFIEDPERMISSIONS_API PolicyItem()
PolicyItem & WithPrincipal(EntityIdentifier &&value)
Definition PolicyItem.h:102
PolicyItem & WithPolicyId(const Aws::String &value)
Definition PolicyItem.h:74
const Aws::Utils::DateTime & GetCreatedDate() const
Definition PolicyItem.h:149
PolicyItem & AddActions(const ActionIdentifier &value)
Definition PolicyItem.h:129
void SetDefinition(const PolicyDefinitionItem &value)
Definition PolicyItem.h:139
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPolicyType(const PolicyType &value)
Definition PolicyItem.h:87
void SetLastUpdatedDate(Aws::Utils::DateTime &&value)
Definition PolicyItem.h:164
void SetPolicyType(PolicyType &&value)
Definition PolicyItem.h:88
void SetEffect(const PolicyEffect &value)
Definition PolicyItem.h:176
void SetActions(Aws::Vector< ActionIdentifier > &&value)
Definition PolicyItem.h:126
PolicyItem & WithActions(Aws::Vector< ActionIdentifier > &&value)
Definition PolicyItem.h:128
PolicyItem & WithPrincipal(const EntityIdentifier &value)
Definition PolicyItem.h:101
PolicyItem & WithPolicyId(Aws::String &&value)
Definition PolicyItem.h:75
PolicyItem & WithLastUpdatedDate(const Aws::Utils::DateTime &value)
Definition PolicyItem.h:165
const EntityIdentifier & GetResource() const
Definition PolicyItem.h:109
PolicyItem & WithCreatedDate(Aws::Utils::DateTime &&value)
Definition PolicyItem.h:154
const PolicyDefinitionItem & GetDefinition() const
Definition PolicyItem.h:137
AWS_VERIFIEDPERMISSIONS_API PolicyItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const PolicyEffect & GetEffect() const
Definition PolicyItem.h:174
PolicyItem & WithResource(const EntityIdentifier &value)
Definition PolicyItem.h:113
void SetActions(const Aws::Vector< ActionIdentifier > &value)
Definition PolicyItem.h:125
const Aws::Vector< ActionIdentifier > & GetActions() const
Definition PolicyItem.h:123
PolicyItem & WithPolicyId(const char *value)
Definition PolicyItem.h:76
PolicyItem & WithDefinition(PolicyDefinitionItem &&value)
Definition PolicyItem.h:142
void SetPolicyStoreId(const char *value)
Definition PolicyItem.h:59
void SetPolicyId(Aws::String &&value)
Definition PolicyItem.h:72
void SetDefinition(PolicyDefinitionItem &&value)
Definition PolicyItem.h:140
void SetPolicyStoreId(const Aws::String &value)
Definition PolicyItem.h:57
PolicyItem & WithEffect(PolicyEffect &&value)
Definition PolicyItem.h:179
PolicyItem & WithPolicyType(PolicyType &&value)
Definition PolicyItem.h:90
PolicyItem & WithEffect(const PolicyEffect &value)
Definition PolicyItem.h:178
const Aws::Utils::DateTime & GetLastUpdatedDate() const
Definition PolicyItem.h:161
void SetResource(const EntityIdentifier &value)
Definition PolicyItem.h:111
PolicyItem & WithLastUpdatedDate(Aws::Utils::DateTime &&value)
Definition PolicyItem.h:166
PolicyItem & WithPolicyStoreId(const Aws::String &value)
Definition PolicyItem.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue