7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kms/model/GrantConstraints.h>
12#include <aws/kms/model/GrantOperation.h>
53 template<
typename KeyIdT = Aws::String>
54 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet =
true; m_keyId = std::forward<KeyIdT>(value); }
55 template<
typename KeyIdT = Aws::String>
71 template<
typename GranteePrincipalT = Aws::String>
72 void SetGranteePrincipal(GranteePrincipalT&& value) { m_granteePrincipalHasBeenSet =
true; m_granteePrincipal = std::forward<GranteePrincipalT>(value); }
73 template<
typename GranteePrincipalT = Aws::String>
96 template<
typename RetiringPrincipalT = Aws::String>
97 void SetRetiringPrincipal(RetiringPrincipalT&& value) { m_retiringPrincipalHasBeenSet =
true; m_retiringPrincipal = std::forward<RetiringPrincipalT>(value); }
98 template<
typename RetiringPrincipalT = Aws::String>
115 template<
typename OperationsT = Aws::Vector<GrantOperation>>
116 void SetOperations(OperationsT&& value) { m_operationsHasBeenSet =
true; m_operations = std::forward<OperationsT>(value); }
117 template<
typename OperationsT = Aws::Vector<GrantOperation>>
154 template<
typename Constra
intsT = GrantConstra
ints>
155 void SetConstraints(ConstraintsT&& value) { m_constraintsHasBeenSet =
true; m_constraints = std::forward<ConstraintsT>(value); }
156 template<
typename Constra
intsT = GrantConstra
ints>
172 template<
typename GrantTokensT = Aws::Vector<Aws::String>>
173 void SetGrantTokens(GrantTokensT&& value) { m_grantTokensHasBeenSet =
true; m_grantTokens = std::forward<GrantTokensT>(value); }
174 template<
typename GrantTokensT = Aws::Vector<Aws::String>>
176 template<
typename GrantTokensT = Aws::String>
199 template<
typename NameT = Aws::String>
200 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
201 template<
typename NameT = Aws::String>
214 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
220 bool m_keyIdHasBeenSet =
false;
223 bool m_granteePrincipalHasBeenSet =
false;
226 bool m_retiringPrincipalHasBeenSet =
false;
229 bool m_operationsHasBeenSet =
false;
232 bool m_constraintsHasBeenSet =
false;
235 bool m_grantTokensHasBeenSet =
false;
238 bool m_nameHasBeenSet =
false;
240 bool m_dryRun{
false};
241 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