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>
50 template<
typename KeyNameT = Aws::String>
51 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet =
true; m_keyName = std::forward<KeyNameT>(value); }
52 template<
typename KeyNameT = Aws::String>
73 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
74 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet =
true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
75 template<
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
77 template<
typename TagSpecificationsT = TagSpecification>
100 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
106 bool m_keyNameHasBeenSet =
false;
109 bool m_keyTypeHasBeenSet =
false;
112 bool m_tagSpecificationsHasBeenSet =
false;
115 bool m_keyFormatHasBeenSet =
false;
117 bool m_dryRun{
false};
118 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