7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/KeyType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/KeyFormat.h>
13#include <aws/ec2/model/TagSpecification.h>
52 inline void SetKeyName(
const char* value) { m_keyNameHasBeenSet =
true; m_keyName.assign(value); }
65 inline void SetKeyType(
const KeyType& value) { m_keyTypeHasBeenSet =
true; m_keyType = value; }
66 inline void SetKeyType(
KeyType&& value) { m_keyTypeHasBeenSet =
true; m_keyType = std::move(value); }
106 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
112 bool m_keyNameHasBeenSet =
false;
115 bool m_keyTypeHasBeenSet =
false;
118 bool m_tagSpecificationsHasBeenSet =
false;
121 bool m_keyFormatHasBeenSet =
false;
124 bool m_dryRunHasBeenSet =
false;
AWS_EC2_API CreateKeyPairRequest()
void SetKeyName(const char *value)
bool KeyNameHasBeenSet() const
void SetKeyType(KeyType &&value)
bool DryRunHasBeenSet() const
void SetKeyFormat(KeyFormat &&value)
CreateKeyPairRequest & AddTagSpecifications(TagSpecification &&value)
void SetKeyFormat(const KeyFormat &value)
CreateKeyPairRequest & WithKeyType(KeyType &&value)
CreateKeyPairRequest & WithKeyName(const Aws::String &value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
virtual const char * GetServiceRequestName() const override
void SetDryRun(bool value)
bool KeyTypeHasBeenSet() const
void SetKeyType(const KeyType &value)
const KeyFormat & GetKeyFormat() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateKeyPairRequest & WithKeyFormat(KeyFormat &&value)
const KeyType & GetKeyType() const
CreateKeyPairRequest & WithKeyName(Aws::String &&value)
void SetKeyName(const Aws::String &value)
CreateKeyPairRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
const Aws::String & GetKeyName() const
bool KeyFormatHasBeenSet() const
CreateKeyPairRequest & AddTagSpecifications(const TagSpecification &value)
CreateKeyPairRequest & WithKeyType(const KeyType &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateKeyPairRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateKeyPairRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateKeyPairRequest & WithKeyName(const char *value)
bool TagSpecificationsHasBeenSet() const
CreateKeyPairRequest & WithKeyFormat(const KeyFormat &value)
void SetKeyName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector