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));
75 template <
typename GranteePrincipalT = Aws::String>
77 m_granteePrincipalHasBeenSet =
true;
78 m_granteePrincipal = std::forward<GranteePrincipalT>(value);
80 template <
typename GranteePrincipalT = Aws::String>
107 template <
typename RetiringPrincipalT = Aws::String>
109 m_retiringPrincipalHasBeenSet =
true;
110 m_retiringPrincipal = std::forward<RetiringPrincipalT>(value);
112 template <
typename RetiringPrincipalT = Aws::String>
132 template <
typename OperationsT = Aws::Vector<GrantOperation>>
134 m_operationsHasBeenSet =
true;
135 m_operations = std::forward<OperationsT>(value);
137 template <
typename OperationsT = Aws::Vector<GrantOperation>>
143 m_operationsHasBeenSet =
true;
144 m_operations.push_back(value);
193 template <
typename Constra
intsT = GrantConstra
ints>
195 m_constraintsHasBeenSet =
true;
196 m_constraints = std::forward<ConstraintsT>(value);
198 template <
typename Constra
intsT = GrantConstra
ints>
217 template <
typename GrantTokensT = Aws::Vector<Aws::String>>
219 m_grantTokensHasBeenSet =
true;
220 m_grantTokens = std::forward<GrantTokensT>(value);
222 template <
typename GrantTokensT = Aws::Vector<Aws::String>>
227 template <
typename GrantTokensT = Aws::String>
229 m_grantTokensHasBeenSet =
true;
230 m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
254 template <
typename NameT = Aws::String>
256 m_nameHasBeenSet =
true;
257 m_name = std::forward<NameT>(value);
259 template <
typename NameT = Aws::String>
261 SetName(std::forward<NameT>(value));
276 m_dryRunHasBeenSet =
true;
298 template <
typename GranteeServicePrincipalT = Aws::String>
300 m_granteeServicePrincipalHasBeenSet =
true;
301 m_granteeServicePrincipal = std::forward<GranteeServicePrincipalT>(value);
303 template <
typename GranteeServicePrincipalT = Aws::String>
320 template <
typename RetiringServicePrincipalT = Aws::String>
322 m_retiringServicePrincipalHasBeenSet =
true;
323 m_retiringServicePrincipal = std::forward<RetiringServicePrincipalT>(value);
325 template <
typename RetiringServicePrincipalT = Aws::String>
346 bool m_dryRun{
false};
351 bool m_keyIdHasBeenSet =
false;
352 bool m_granteePrincipalHasBeenSet =
false;
353 bool m_retiringPrincipalHasBeenSet =
false;
354 bool m_operationsHasBeenSet =
false;
355 bool m_constraintsHasBeenSet =
false;
356 bool m_grantTokensHasBeenSet =
false;
357 bool m_nameHasBeenSet =
false;
358 bool m_dryRunHasBeenSet =
false;
359 bool m_granteeServicePrincipalHasBeenSet =
false;
360 bool m_retiringServicePrincipalHasBeenSet =
false;
bool GranteeServicePrincipalHasBeenSet() const
CreateGrantRequest & WithGranteeServicePrincipal(GranteeServicePrincipalT &&value)
void SetGranteeServicePrincipal(GranteeServicePrincipalT &&value)
const GrantConstraints & GetConstraints() const
AWS_KMS_API Aws::String SerializePayload() const override
void SetRetiringServicePrincipal(RetiringServicePrincipalT &&value)
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
CreateGrantRequest & WithRetiringServicePrincipal(RetiringServicePrincipalT &&value)
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
const Aws::String & GetGranteeServicePrincipal() const
void SetName(NameT &&value)
CreateGrantRequest & WithName(NameT &&value)
const Aws::Vector< GrantOperation > & GetOperations() const
bool RetiringServicePrincipalHasBeenSet() 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
const Aws::String & GetRetiringServicePrincipal() 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