7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2Request.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/TagSpecification.h>
44 template <
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
46 m_tagSpecificationsHasBeenSet =
true;
47 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
49 template <
typename TagSpecificationsT = Aws::Vector<TagSpecification>>
54 template <
typename TagSpecificationsT = TagSpecification>
56 m_tagSpecificationsHasBeenSet =
true;
57 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
72 m_dryRunHasBeenSet =
true;
87 template <
typename KeyNameT = Aws::String>
89 m_keyNameHasBeenSet =
true;
90 m_keyName = std::forward<KeyNameT>(value);
92 template <
typename KeyNameT = Aws::String>
105 template <
typename PublicKeyMaterialT = Aws::Utils::ByteBuffer>
107 m_publicKeyMaterialHasBeenSet =
true;
108 m_publicKeyMaterial = std::forward<PublicKeyMaterialT>(value);
110 template <
typename PublicKeyMaterialT = Aws::Utils::ByteBuffer>
119 bool m_dryRun{
false};
124 bool m_tagSpecificationsHasBeenSet =
false;
125 bool m_dryRunHasBeenSet =
false;
126 bool m_keyNameHasBeenSet =
false;
127 bool m_publicKeyMaterialHasBeenSet =
false;
bool KeyNameHasBeenSet() const
bool PublicKeyMaterialHasBeenSet() const
void SetTagSpecifications(TagSpecificationsT &&value)
const Aws::Utils::ByteBuffer & GetPublicKeyMaterial() const
void SetPublicKeyMaterial(PublicKeyMaterialT &&value)
bool TagSpecificationsHasBeenSet() const
void SetDryRun(bool value)
ImportKeyPairRequest & WithPublicKeyMaterial(PublicKeyMaterialT &&value)
AWS_EC2_API ImportKeyPairRequest()=default
bool DryRunHasBeenSet() const
ImportKeyPairRequest & WithDryRun(bool value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
virtual const char * GetServiceRequestName() const override
ImportKeyPairRequest & AddTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
void SetKeyName(KeyNameT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ImportKeyPairRequest & WithKeyName(KeyNameT &&value)
ImportKeyPairRequest & WithTagSpecifications(TagSpecificationsT &&value)
const Aws::String & GetKeyName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector