AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportKeyPairRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/Array.h>
12#include <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EC2_API ImportKeyPairRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ImportKeyPair"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
47 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
48 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
49 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
52 inline ImportKeyPairRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
53 inline ImportKeyPairRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
55
57
63 inline bool GetDryRun() const{ return m_dryRun; }
64 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
65 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
66 inline ImportKeyPairRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
68
70
73 inline const Aws::String& GetKeyName() const{ return m_keyName; }
74 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
75 inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; }
76 inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); }
77 inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); }
78 inline ImportKeyPairRequest& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
79 inline ImportKeyPairRequest& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
80 inline ImportKeyPairRequest& WithKeyName(const char* value) { SetKeyName(value); return *this;}
82
84
88 inline const Aws::Utils::ByteBuffer& GetPublicKeyMaterial() const{ return m_publicKeyMaterial; }
89 inline bool PublicKeyMaterialHasBeenSet() const { return m_publicKeyMaterialHasBeenSet; }
90 inline void SetPublicKeyMaterial(const Aws::Utils::ByteBuffer& value) { m_publicKeyMaterialHasBeenSet = true; m_publicKeyMaterial = value; }
91 inline void SetPublicKeyMaterial(Aws::Utils::ByteBuffer&& value) { m_publicKeyMaterialHasBeenSet = true; m_publicKeyMaterial = std::move(value); }
95 private:
96
97 Aws::Vector<TagSpecification> m_tagSpecifications;
98 bool m_tagSpecificationsHasBeenSet = false;
99
100 bool m_dryRun;
101 bool m_dryRunHasBeenSet = false;
102
103 Aws::String m_keyName;
104 bool m_keyNameHasBeenSet = false;
105
106 Aws::Utils::ByteBuffer m_publicKeyMaterial;
107 bool m_publicKeyMaterialHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace EC2
112} // namespace Aws
ImportKeyPairRequest & WithPublicKeyMaterial(Aws::Utils::ByteBuffer &&value)
ImportKeyPairRequest & AddTagSpecifications(const TagSpecification &value)
const Aws::Utils::ByteBuffer & GetPublicKeyMaterial() const
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
ImportKeyPairRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetPublicKeyMaterial(const Aws::Utils::ByteBuffer &value)
ImportKeyPairRequest & WithDryRun(bool value)
ImportKeyPairRequest & AddTagSpecifications(TagSpecification &&value)
ImportKeyPairRequest & WithPublicKeyMaterial(const Aws::Utils::ByteBuffer &value)
ImportKeyPairRequest & WithKeyName(const Aws::String &value)
ImportKeyPairRequest & WithKeyName(Aws::String &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
virtual const char * GetServiceRequestName() const override
ImportKeyPairRequest & WithKeyName(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetKeyName(const Aws::String &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
ImportKeyPairRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
void SetPublicKeyMaterial(Aws::Utils::ByteBuffer &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector