7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kms/KMSRequest.h>
10#include <aws/kms/KMS_EXPORTS.h>
11#include <aws/kms/model/GrantConstraints.h>
12#include <aws/kms/model/GrantOperation.h>
49 template <
typename KeyIdT = Aws::String>
51 m_keyIdHasBeenSet =
true;
52 m_keyId = std::forward<KeyIdT>(value);
54 template <
typename KeyIdT = Aws::String>
56 SetKeyId(std::forward<KeyIdT>(value));
73 template <
typename GranteePrincipalT = Aws::String>
75 m_granteePrincipalHasBeenSet =
true;
76 m_granteePrincipal = std::forward<GranteePrincipalT>(value);
78 template <
typename GranteePrincipalT = Aws::String>
104 template <
typename RetiringPrincipalT = Aws::String>
106 m_retiringPrincipalHasBeenSet =
true;
107 m_retiringPrincipal = std::forward<RetiringPrincipalT>(value);
109 template <
typename RetiringPrincipalT = Aws::String>
129 template <
typename OperationsT = Aws::Vector<GrantOperation>>
131 m_operationsHasBeenSet =
true;
132 m_operations = std::forward<OperationsT>(value);
134 template <
typename OperationsT = Aws::Vector<GrantOperation>>
140 m_operationsHasBeenSet =
true;
141 m_operations.push_back(value);
178 template <
typename Constra
intsT = GrantConstra
ints>
180 m_constraintsHasBeenSet =
true;
181 m_constraints = std::forward<ConstraintsT>(value);
183 template <
typename Constra
intsT = GrantConstra
ints>
202 template <
typename GrantTokensT = Aws::Vector<Aws::String>>
204 m_grantTokensHasBeenSet =
true;
205 m_grantTokens = std::forward<GrantTokensT>(value);
207 template <
typename GrantTokensT = Aws::Vector<Aws::String>>
212 template <
typename GrantTokensT = Aws::String>
214 m_grantTokensHasBeenSet =
true;
215 m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
239 template <
typename NameT = Aws::String>
241 m_nameHasBeenSet =
true;
242 m_name = std::forward<NameT>(value);
244 template <
typename NameT = Aws::String>
246 SetName(std::forward<NameT>(value));
261 m_dryRunHasBeenSet =
true;
284 bool m_dryRun{
false};
285 bool m_keyIdHasBeenSet =
false;
286 bool m_granteePrincipalHasBeenSet =
false;
287 bool m_retiringPrincipalHasBeenSet =
false;
288 bool m_operationsHasBeenSet =
false;
289 bool m_constraintsHasBeenSet =
false;
290 bool m_grantTokensHasBeenSet =
false;
291 bool m_nameHasBeenSet =
false;
292 bool m_dryRunHasBeenSet =
false;
const GrantConstraints & GetConstraints() const
AWS_KMS_API Aws::String SerializePayload() const override
CreateGrantRequest & AddOperations(GrantOperation value)
const Aws::String & GetKeyId() const
CreateGrantRequest & AddGrantTokens(GrantTokensT &&value)
bool KeyIdHasBeenSet() const
CreateGrantRequest & WithKeyId(KeyIdT &&value)
CreateGrantRequest & WithOperations(OperationsT &&value)
const Aws::Vector< Aws::String > & GetGrantTokens() const
AWS_KMS_API CreateGrantRequest()=default
CreateGrantRequest & WithDryRun(bool value)
CreateGrantRequest & WithRetiringPrincipal(RetiringPrincipalT &&value)
bool DryRunHasBeenSet() const
CreateGrantRequest & WithConstraints(ConstraintsT &&value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetRetiringPrincipal(RetiringPrincipalT &&value)
void SetConstraints(ConstraintsT &&value)
bool RetiringPrincipalHasBeenSet() const
const Aws::String & GetRetiringPrincipal() const
bool NameHasBeenSet() const
CreateGrantRequest & WithGrantTokens(GrantTokensT &&value)
const Aws::String & GetName() const
bool GranteePrincipalHasBeenSet() const
void SetGrantTokens(GrantTokensT &&value)
CreateGrantRequest & WithGranteePrincipal(GranteePrincipalT &&value)
bool GrantTokensHasBeenSet() const
void SetName(NameT &&value)
CreateGrantRequest & WithName(NameT &&value)
const Aws::Vector< GrantOperation > & GetOperations() const
void SetDryRun(bool value)
void SetOperations(OperationsT &&value)
void SetGranteePrincipal(GranteePrincipalT &&value)
virtual const char * GetServiceRequestName() const override
bool ConstraintsHasBeenSet() const
bool OperationsHasBeenSet() const
void SetKeyId(KeyIdT &&value)
const Aws::String & GetGranteePrincipal() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector