AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
GrantListEntry.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kms/KMS_EXPORTS.h>
11#include <aws/kms/model/GrantConstraints.h>
12#include <aws/kms/model/GrantOperation.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace KMS {
24namespace Model {
25
32 public:
33 AWS_KMS_API GrantListEntry() = default;
37
39
42 inline const Aws::String& GetKeyId() const { return m_keyId; }
43 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
44 template <typename KeyIdT = Aws::String>
45 void SetKeyId(KeyIdT&& value) {
46 m_keyIdHasBeenSet = true;
47 m_keyId = std::forward<KeyIdT>(value);
48 }
49 template <typename KeyIdT = Aws::String>
50 GrantListEntry& WithKeyId(KeyIdT&& value) {
51 SetKeyId(std::forward<KeyIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetGrantId() const { return m_grantId; }
61 inline bool GrantIdHasBeenSet() const { return m_grantIdHasBeenSet; }
62 template <typename GrantIdT = Aws::String>
63 void SetGrantId(GrantIdT&& value) {
64 m_grantIdHasBeenSet = true;
65 m_grantId = std::forward<GrantIdT>(value);
66 }
67 template <typename GrantIdT = Aws::String>
68 GrantListEntry& WithGrantId(GrantIdT&& value) {
69 SetGrantId(std::forward<GrantIdT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
88 GrantListEntry& WithName(NameT&& value) {
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
99 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
100 template <typename CreationDateT = Aws::Utils::DateTime>
101 void SetCreationDate(CreationDateT&& value) {
102 m_creationDateHasBeenSet = true;
103 m_creationDate = std::forward<CreationDateT>(value);
104 }
105 template <typename CreationDateT = Aws::Utils::DateTime>
106 GrantListEntry& WithCreationDate(CreationDateT&& value) {
107 SetCreationDate(std::forward<CreationDateT>(value));
108 return *this;
109 }
111
113
124 inline const Aws::String& GetGranteePrincipal() const { return m_granteePrincipal; }
125 inline bool GranteePrincipalHasBeenSet() const { return m_granteePrincipalHasBeenSet; }
126 template <typename GranteePrincipalT = Aws::String>
127 void SetGranteePrincipal(GranteePrincipalT&& value) {
128 m_granteePrincipalHasBeenSet = true;
129 m_granteePrincipal = std::forward<GranteePrincipalT>(value);
130 }
131 template <typename GranteePrincipalT = Aws::String>
132 GrantListEntry& WithGranteePrincipal(GranteePrincipalT&& value) {
133 SetGranteePrincipal(std::forward<GranteePrincipalT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetRetiringPrincipal() const { return m_retiringPrincipal; }
143 inline bool RetiringPrincipalHasBeenSet() const { return m_retiringPrincipalHasBeenSet; }
144 template <typename RetiringPrincipalT = Aws::String>
145 void SetRetiringPrincipal(RetiringPrincipalT&& value) {
146 m_retiringPrincipalHasBeenSet = true;
147 m_retiringPrincipal = std::forward<RetiringPrincipalT>(value);
148 }
149 template <typename RetiringPrincipalT = Aws::String>
150 GrantListEntry& WithRetiringPrincipal(RetiringPrincipalT&& value) {
151 SetRetiringPrincipal(std::forward<RetiringPrincipalT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetIssuingAccount() const { return m_issuingAccount; }
161 inline bool IssuingAccountHasBeenSet() const { return m_issuingAccountHasBeenSet; }
162 template <typename IssuingAccountT = Aws::String>
163 void SetIssuingAccount(IssuingAccountT&& value) {
164 m_issuingAccountHasBeenSet = true;
165 m_issuingAccount = std::forward<IssuingAccountT>(value);
166 }
167 template <typename IssuingAccountT = Aws::String>
168 GrantListEntry& WithIssuingAccount(IssuingAccountT&& value) {
169 SetIssuingAccount(std::forward<IssuingAccountT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Vector<GrantOperation>& GetOperations() const { return m_operations; }
179 inline bool OperationsHasBeenSet() const { return m_operationsHasBeenSet; }
180 template <typename OperationsT = Aws::Vector<GrantOperation>>
181 void SetOperations(OperationsT&& value) {
182 m_operationsHasBeenSet = true;
183 m_operations = std::forward<OperationsT>(value);
184 }
185 template <typename OperationsT = Aws::Vector<GrantOperation>>
186 GrantListEntry& WithOperations(OperationsT&& value) {
187 SetOperations(std::forward<OperationsT>(value));
188 return *this;
189 }
191 m_operationsHasBeenSet = true;
192 m_operations.push_back(value);
193 return *this;
194 }
196
198
202 inline const GrantConstraints& GetConstraints() const { return m_constraints; }
203 inline bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; }
204 template <typename ConstraintsT = GrantConstraints>
205 void SetConstraints(ConstraintsT&& value) {
206 m_constraintsHasBeenSet = true;
207 m_constraints = std::forward<ConstraintsT>(value);
208 }
209 template <typename ConstraintsT = GrantConstraints>
210 GrantListEntry& WithConstraints(ConstraintsT&& value) {
211 SetConstraints(std::forward<ConstraintsT>(value));
212 return *this;
213 }
215
217
222 inline const Aws::String& GetGranteeServicePrincipal() const { return m_granteeServicePrincipal; }
223 inline bool GranteeServicePrincipalHasBeenSet() const { return m_granteeServicePrincipalHasBeenSet; }
224 template <typename GranteeServicePrincipalT = Aws::String>
225 void SetGranteeServicePrincipal(GranteeServicePrincipalT&& value) {
226 m_granteeServicePrincipalHasBeenSet = true;
227 m_granteeServicePrincipal = std::forward<GranteeServicePrincipalT>(value);
228 }
229 template <typename GranteeServicePrincipalT = Aws::String>
230 GrantListEntry& WithGranteeServicePrincipal(GranteeServicePrincipalT&& value) {
231 SetGranteeServicePrincipal(std::forward<GranteeServicePrincipalT>(value));
232 return *this;
233 }
235
237
242 inline const Aws::String& GetRetiringServicePrincipal() const { return m_retiringServicePrincipal; }
243 inline bool RetiringServicePrincipalHasBeenSet() const { return m_retiringServicePrincipalHasBeenSet; }
244 template <typename RetiringServicePrincipalT = Aws::String>
245 void SetRetiringServicePrincipal(RetiringServicePrincipalT&& value) {
246 m_retiringServicePrincipalHasBeenSet = true;
247 m_retiringServicePrincipal = std::forward<RetiringServicePrincipalT>(value);
248 }
249 template <typename RetiringServicePrincipalT = Aws::String>
250 GrantListEntry& WithRetiringServicePrincipal(RetiringServicePrincipalT&& value) {
251 SetRetiringServicePrincipal(std::forward<RetiringServicePrincipalT>(value));
252 return *this;
253 }
255 private:
256 Aws::String m_keyId;
257
258 Aws::String m_grantId;
259
260 Aws::String m_name;
261
262 Aws::Utils::DateTime m_creationDate{};
263
264 Aws::String m_granteePrincipal;
265
266 Aws::String m_retiringPrincipal;
267
268 Aws::String m_issuingAccount;
269
270 Aws::Vector<GrantOperation> m_operations;
271
272 GrantConstraints m_constraints;
273
274 Aws::String m_granteeServicePrincipal;
275
276 Aws::String m_retiringServicePrincipal;
277 bool m_keyIdHasBeenSet = false;
278 bool m_grantIdHasBeenSet = false;
279 bool m_nameHasBeenSet = false;
280 bool m_creationDateHasBeenSet = false;
281 bool m_granteePrincipalHasBeenSet = false;
282 bool m_retiringPrincipalHasBeenSet = false;
283 bool m_issuingAccountHasBeenSet = false;
284 bool m_operationsHasBeenSet = false;
285 bool m_constraintsHasBeenSet = false;
286 bool m_granteeServicePrincipalHasBeenSet = false;
287 bool m_retiringServicePrincipalHasBeenSet = false;
288};
289
290} // namespace Model
291} // namespace KMS
292} // namespace Aws
GrantListEntry & WithGrantId(GrantIdT &&value)
bool OperationsHasBeenSet() const
const Aws::Utils::DateTime & GetCreationDate() const
bool ConstraintsHasBeenSet() const
void SetIssuingAccount(IssuingAccountT &&value)
bool IssuingAccountHasBeenSet() const
void SetGranteeServicePrincipal(GranteeServicePrincipalT &&value)
GrantListEntry & WithGranteePrincipal(GranteePrincipalT &&value)
bool RetiringPrincipalHasBeenSet() const
AWS_KMS_API GrantListEntry(Aws::Utils::Json::JsonView jsonValue)
bool NameHasBeenSet() const
AWS_KMS_API GrantListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIssuingAccount() const
GrantListEntry & WithIssuingAccount(IssuingAccountT &&value)
bool KeyIdHasBeenSet() const
const Aws::String & GetGranteeServicePrincipal() const
void SetRetiringPrincipal(RetiringPrincipalT &&value)
void SetKeyId(KeyIdT &&value)
bool RetiringServicePrincipalHasBeenSet() const
void SetGranteePrincipal(GranteePrincipalT &&value)
bool CreationDateHasBeenSet() const
void SetGrantId(GrantIdT &&value)
bool GranteeServicePrincipalHasBeenSet() const
bool GranteePrincipalHasBeenSet() const
GrantListEntry & WithName(NameT &&value)
GrantListEntry & WithGranteeServicePrincipal(GranteeServicePrincipalT &&value)
GrantListEntry & WithRetiringPrincipal(RetiringPrincipalT &&value)
GrantListEntry & WithKeyId(KeyIdT &&value)
GrantListEntry & WithOperations(OperationsT &&value)
void SetConstraints(ConstraintsT &&value)
GrantListEntry & WithConstraints(ConstraintsT &&value)
void SetOperations(OperationsT &&value)
void SetName(NameT &&value)
AWS_KMS_API Aws::Utils::Json::JsonValue Jsonize() const
const GrantConstraints & GetConstraints() const
const Aws::String & GetGranteePrincipal() const
const Aws::String & GetName() const
GrantListEntry & WithRetiringServicePrincipal(RetiringServicePrincipalT &&value)
const Aws::String & GetGrantId() const
AWS_KMS_API GrantListEntry()=default
void SetRetiringServicePrincipal(RetiringServicePrincipalT &&value)
const Aws::Vector< GrantOperation > & GetOperations() const
GrantListEntry & WithCreationDate(CreationDateT &&value)
bool GrantIdHasBeenSet() const
const Aws::String & GetRetiringServicePrincipal() const
const Aws::String & GetRetiringPrincipal() const
const Aws::String & GetKeyId() const
void SetCreationDate(CreationDateT &&value)
GrantListEntry & AddOperations(GrantOperation 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