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>
124 template <
typename GranteePrincipalT = Aws::String>
126 m_granteePrincipalHasBeenSet =
true;
127 m_granteePrincipal = std::forward<GranteePrincipalT>(value);
129 template <
typename GranteePrincipalT = Aws::String>
142 template <
typename RetiringPrincipalT = Aws::String>
144 m_retiringPrincipalHasBeenSet =
true;
145 m_retiringPrincipal = std::forward<RetiringPrincipalT>(value);
147 template <
typename RetiringPrincipalT = Aws::String>
160 template <
typename IssuingAccountT = Aws::String>
162 m_issuingAccountHasBeenSet =
true;
163 m_issuingAccount = std::forward<IssuingAccountT>(value);
165 template <
typename IssuingAccountT = Aws::String>
178 template <
typename OperationsT = Aws::Vector<GrantOperation>>
180 m_operationsHasBeenSet =
true;
181 m_operations = std::forward<OperationsT>(value);
183 template <
typename OperationsT = Aws::Vector<GrantOperation>>
189 m_operationsHasBeenSet =
true;
190 m_operations.push_back(value);
202 template <
typename Constra
intsT = GrantConstra
ints>
204 m_constraintsHasBeenSet =
true;
205 m_constraints = std::forward<ConstraintsT>(value);
207 template <
typename Constra
intsT = GrantConstra
ints>
230 GrantConstraints m_constraints;
231 bool m_keyIdHasBeenSet =
false;
232 bool m_grantIdHasBeenSet =
false;
233 bool m_nameHasBeenSet =
false;
234 bool m_creationDateHasBeenSet =
false;
235 bool m_granteePrincipalHasBeenSet =
false;
236 bool m_retiringPrincipalHasBeenSet =
false;
237 bool m_issuingAccountHasBeenSet =
false;
238 bool m_operationsHasBeenSet =
false;
239 bool m_constraintsHasBeenSet =
false;
GrantListEntry & WithGrantId(GrantIdT &&value)
bool OperationsHasBeenSet() const
const Aws::Utils::DateTime & GetCreationDate() const
bool ConstraintsHasBeenSet() const
void SetIssuingAccount(IssuingAccountT &&value)
bool IssuingAccountHasBeenSet() const
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
void SetRetiringPrincipal(RetiringPrincipalT &&value)
void SetKeyId(KeyIdT &&value)
void SetGranteePrincipal(GranteePrincipalT &&value)
bool CreationDateHasBeenSet() const
void SetGrantId(GrantIdT &&value)
bool GranteePrincipalHasBeenSet() const
GrantListEntry & WithName(NameT &&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
const Aws::String & GetGrantId() const
AWS_KMS_API GrantListEntry()=default
const Aws::Vector< GrantOperation > & GetOperations() const
GrantListEntry & WithCreationDate(CreationDateT &&value)
bool GrantIdHasBeenSet() 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