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>
44 template <
typename KeyIdT = Aws::String>
46 m_keyIdHasBeenSet =
true;
47 m_keyId = std::forward<KeyIdT>(value);
49 template <
typename KeyIdT = Aws::String>
51 SetKeyId(std::forward<KeyIdT>(value));
62 template <
typename GrantIdT = Aws::String>
64 m_grantIdHasBeenSet =
true;
65 m_grantId = std::forward<GrantIdT>(value);
67 template <
typename GrantIdT = Aws::String>
82 template <
typename NameT = Aws::String>
84 m_nameHasBeenSet =
true;
85 m_name = std::forward<NameT>(value);
87 template <
typename NameT = Aws::String>
89 SetName(std::forward<NameT>(value));
100 template <
typename CreationDateT = Aws::Utils::DateTime>
102 m_creationDateHasBeenSet =
true;
103 m_creationDate = std::forward<CreationDateT>(value);
105 template <
typename CreationDateT = Aws::Utils::DateTime>
126 template <
typename GranteePrincipalT = Aws::String>
128 m_granteePrincipalHasBeenSet =
true;
129 m_granteePrincipal = std::forward<GranteePrincipalT>(value);
131 template <
typename GranteePrincipalT = Aws::String>
144 template <
typename RetiringPrincipalT = Aws::String>
146 m_retiringPrincipalHasBeenSet =
true;
147 m_retiringPrincipal = std::forward<RetiringPrincipalT>(value);
149 template <
typename RetiringPrincipalT = Aws::String>
162 template <
typename IssuingAccountT = Aws::String>
164 m_issuingAccountHasBeenSet =
true;
165 m_issuingAccount = std::forward<IssuingAccountT>(value);
167 template <
typename IssuingAccountT = Aws::String>
180 template <
typename OperationsT = Aws::Vector<GrantOperation>>
182 m_operationsHasBeenSet =
true;
183 m_operations = std::forward<OperationsT>(value);
185 template <
typename OperationsT = Aws::Vector<GrantOperation>>
191 m_operationsHasBeenSet =
true;
192 m_operations.push_back(value);
204 template <
typename Constra
intsT = GrantConstra
ints>
206 m_constraintsHasBeenSet =
true;
207 m_constraints = std::forward<ConstraintsT>(value);
209 template <
typename Constra
intsT = GrantConstra
ints>
224 template <
typename GranteeServicePrincipalT = Aws::String>
226 m_granteeServicePrincipalHasBeenSet =
true;
227 m_granteeServicePrincipal = std::forward<GranteeServicePrincipalT>(value);
229 template <
typename GranteeServicePrincipalT = Aws::String>
244 template <
typename RetiringServicePrincipalT = Aws::String>
246 m_retiringServicePrincipalHasBeenSet =
true;
247 m_retiringServicePrincipal = std::forward<RetiringServicePrincipalT>(value);
249 template <
typename RetiringServicePrincipalT = Aws::String>
272 GrantConstraints m_constraints;
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;
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