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>
55 inline void SetKeyId(
const char* value) { m_keyIdHasBeenSet =
true; m_keyId.assign(value); }
75 inline void SetGranteePrincipal(
const char* value) { m_granteePrincipalHasBeenSet =
true; m_granteePrincipal.assign(value); }
102 inline void SetRetiringPrincipal(
const char* value) { m_retiringPrincipalHasBeenSet =
true; m_retiringPrincipal.assign(value); }
209 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
224 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
230 bool m_keyIdHasBeenSet =
false;
233 bool m_granteePrincipalHasBeenSet =
false;
236 bool m_retiringPrincipalHasBeenSet =
false;
239 bool m_operationsHasBeenSet =
false;
242 bool m_constraintsHasBeenSet =
false;
245 bool m_grantTokensHasBeenSet =
false;
248 bool m_nameHasBeenSet =
false;
251 bool m_dryRunHasBeenSet =
false;
CreateGrantRequest & WithRetiringPrincipal(const Aws::String &value)
const GrantConstraints & GetConstraints() const
AWS_KMS_API Aws::String SerializePayload() const override
CreateGrantRequest & WithName(const char *value)
const Aws::String & GetKeyId() const
CreateGrantRequest & WithGranteePrincipal(const Aws::String &value)
bool KeyIdHasBeenSet() const
CreateGrantRequest & AddGrantTokens(Aws::String &&value)
void SetKeyId(const Aws::String &value)
CreateGrantRequest & WithOperations(Aws::Vector< GrantOperation > &&value)
void SetName(const char *value)
void SetKeyId(Aws::String &&value)
const Aws::Vector< Aws::String > & GetGrantTokens() const
void SetGranteePrincipal(const char *value)
CreateGrantRequest & WithDryRun(bool value)
void SetOperations(Aws::Vector< GrantOperation > &&value)
CreateGrantRequest & WithGrantTokens(Aws::Vector< Aws::String > &&value)
void SetGranteePrincipal(Aws::String &&value)
void SetOperations(const Aws::Vector< GrantOperation > &value)
bool DryRunHasBeenSet() const
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetName(Aws::String &&value)
void SetConstraints(const GrantConstraints &value)
bool RetiringPrincipalHasBeenSet() const
CreateGrantRequest & AddOperations(const GrantOperation &value)
CreateGrantRequest & WithKeyId(const char *value)
CreateGrantRequest & WithGranteePrincipal(const char *value)
void SetRetiringPrincipal(const char *value)
const Aws::String & GetRetiringPrincipal() const
CreateGrantRequest & AddGrantTokens(const Aws::String &value)
bool NameHasBeenSet() const
void SetGrantTokens(const Aws::Vector< Aws::String > &value)
AWS_KMS_API CreateGrantRequest()
void SetRetiringPrincipal(const Aws::String &value)
const Aws::String & GetName() const
CreateGrantRequest & WithRetiringPrincipal(Aws::String &&value)
bool GranteePrincipalHasBeenSet() const
CreateGrantRequest & WithKeyId(Aws::String &&value)
void SetGranteePrincipal(const Aws::String &value)
bool GrantTokensHasBeenSet() const
CreateGrantRequest & WithConstraints(const GrantConstraints &value)
CreateGrantRequest & AddGrantTokens(const char *value)
CreateGrantRequest & WithName(const Aws::String &value)
void SetKeyId(const char *value)
const Aws::Vector< GrantOperation > & GetOperations() const
CreateGrantRequest & WithGrantTokens(const Aws::Vector< Aws::String > &value)
void SetDryRun(bool value)
void SetConstraints(GrantConstraints &&value)
virtual const char * GetServiceRequestName() const override
bool ConstraintsHasBeenSet() const
CreateGrantRequest & WithName(Aws::String &&value)
void SetGrantTokens(Aws::Vector< Aws::String > &&value)
CreateGrantRequest & WithKeyId(const Aws::String &value)
bool OperationsHasBeenSet() const
CreateGrantRequest & WithOperations(const Aws::Vector< GrantOperation > &value)
CreateGrantRequest & WithGranteePrincipal(Aws::String &&value)
void SetName(const Aws::String &value)
CreateGrantRequest & WithRetiringPrincipal(const char *value)
CreateGrantRequest & AddOperations(GrantOperation &&value)
CreateGrantRequest & WithConstraints(GrantConstraints &&value)
void SetRetiringPrincipal(Aws::String &&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