7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kms/model/GrantConstraints.h>
12#include <aws/kms/model/GrantOperation.h>
50 template<
typename KeyIdT = Aws::String>
51 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet =
true; m_keyId = std::forward<KeyIdT>(value); }
52 template<
typename KeyIdT = Aws::String>
62 template<
typename GrantIdT = Aws::String>
63 void SetGrantId(GrantIdT&& value) { m_grantIdHasBeenSet =
true; m_grantId = std::forward<GrantIdT>(value); }
64 template<
typename GrantIdT = Aws::String>
76 template<
typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
78 template<
typename NameT = Aws::String>
88 template<
typename CreationDateT = Aws::Utils::DateTime>
89 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet =
true; m_creationDate = std::forward<CreationDateT>(value); }
90 template<
typename CreationDateT = Aws::Utils::DateTime>
106 template<
typename GranteePrincipalT = Aws::String>
107 void SetGranteePrincipal(GranteePrincipalT&& value) { m_granteePrincipalHasBeenSet =
true; m_granteePrincipal = std::forward<GranteePrincipalT>(value); }
108 template<
typename GranteePrincipalT = Aws::String>
118 template<
typename RetiringPrincipalT = Aws::String>
119 void SetRetiringPrincipal(RetiringPrincipalT&& value) { m_retiringPrincipalHasBeenSet =
true; m_retiringPrincipal = std::forward<RetiringPrincipalT>(value); }
120 template<
typename RetiringPrincipalT = Aws::String>
130 template<
typename IssuingAccountT = Aws::String>
131 void SetIssuingAccount(IssuingAccountT&& value) { m_issuingAccountHasBeenSet =
true; m_issuingAccount = std::forward<IssuingAccountT>(value); }
132 template<
typename IssuingAccountT = Aws::String>
142 template<
typename OperationsT = Aws::Vector<GrantOperation>>
143 void SetOperations(OperationsT&& value) { m_operationsHasBeenSet =
true; m_operations = std::forward<OperationsT>(value); }
144 template<
typename OperationsT = Aws::Vector<GrantOperation>>
156 template<
typename Constra
intsT = GrantConstra
ints>
157 void SetConstraints(ConstraintsT&& value) { m_constraintsHasBeenSet =
true; m_constraints = std::forward<ConstraintsT>(value); }
158 template<
typename Constra
intsT = GrantConstra
ints>
164 bool m_keyIdHasBeenSet =
false;
167 bool m_grantIdHasBeenSet =
false;
170 bool m_nameHasBeenSet =
false;
173 bool m_creationDateHasBeenSet =
false;
176 bool m_granteePrincipalHasBeenSet =
false;
179 bool m_retiringPrincipalHasBeenSet =
false;
182 bool m_issuingAccountHasBeenSet =
false;
185 bool m_operationsHasBeenSet =
false;
187 GrantConstraints m_constraints;
188 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