7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/KeyFormat.h>
12#include <aws/ec2/model/KeyType.h>
13#include <aws/ec2/model/TagSpecification.h>
46 template <
typename KeyNameT = Aws::String>
48 m_keyNameHasBeenSet =
true;
49 m_keyName = std::forward<KeyNameT>(value);
51 template <
typename KeyNameT = Aws::String>
66 m_keyTypeHasBeenSet =
true;
81 template <
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
83 m_tagSpecificationsHasBeenSet =
true;
84 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
86 template <
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
91 template <
typename TagSpecificationsT = TagSpecification>
93 m_tagSpecificationsHasBeenSet =
true;
94 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
106 m_keyFormatHasBeenSet =
true;
125 m_dryRunHasBeenSet =
true;
142 bool m_dryRun{
false};
143 bool m_keyNameHasBeenSet =
false;
144 bool m_keyTypeHasBeenSet =
false;
145 bool m_tagSpecificationsHasBeenSet =
false;
146 bool m_keyFormatHasBeenSet =
false;
147 bool m_dryRunHasBeenSet =
false;
CreateKeyPairRequest & WithKeyType(KeyType value)
bool KeyNameHasBeenSet() const
bool DryRunHasBeenSet() const
CreateKeyPairRequest & WithKeyFormat(KeyFormat value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateKeyPairRequest & AddTagSpecifications(TagSpecificationsT &&value)
virtual const char * GetServiceRequestName() const override
void SetDryRun(bool value)
bool KeyTypeHasBeenSet() const
void SetTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
KeyFormat GetKeyFormat() const
CreateKeyPairRequest & WithTagSpecifications(TagSpecificationsT &&value)
void SetKeyFormat(KeyFormat value)
const Aws::String & GetKeyName() const
bool KeyFormatHasBeenSet() const
void SetKeyName(KeyNameT &&value)
CreateKeyPairRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateKeyPairRequest & WithKeyName(KeyNameT &&value)
bool TagSpecificationsHasBeenSet() const
KeyType GetKeyType() const
void SetKeyType(KeyType value)
AWS_EC2_API CreateKeyPairRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector