AWS SDK for C++  1.9.108
AWS SDK for C++
ImportKeyPairRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Lightsail
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ImportKeyPair"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetKeyPairName() const{ return m_keyPairName; }
41 
45  inline bool KeyPairNameHasBeenSet() const { return m_keyPairNameHasBeenSet; }
46 
50  inline void SetKeyPairName(const Aws::String& value) { m_keyPairNameHasBeenSet = true; m_keyPairName = value; }
51 
55  inline void SetKeyPairName(Aws::String&& value) { m_keyPairNameHasBeenSet = true; m_keyPairName = std::move(value); }
56 
60  inline void SetKeyPairName(const char* value) { m_keyPairNameHasBeenSet = true; m_keyPairName.assign(value); }
61 
65  inline ImportKeyPairRequest& WithKeyPairName(const Aws::String& value) { SetKeyPairName(value); return *this;}
66 
70  inline ImportKeyPairRequest& WithKeyPairName(Aws::String&& value) { SetKeyPairName(std::move(value)); return *this;}
71 
75  inline ImportKeyPairRequest& WithKeyPairName(const char* value) { SetKeyPairName(value); return *this;}
76 
77 
81  inline const Aws::String& GetPublicKeyBase64() const{ return m_publicKeyBase64; }
82 
86  inline bool PublicKeyBase64HasBeenSet() const { return m_publicKeyBase64HasBeenSet; }
87 
91  inline void SetPublicKeyBase64(const Aws::String& value) { m_publicKeyBase64HasBeenSet = true; m_publicKeyBase64 = value; }
92 
96  inline void SetPublicKeyBase64(Aws::String&& value) { m_publicKeyBase64HasBeenSet = true; m_publicKeyBase64 = std::move(value); }
97 
101  inline void SetPublicKeyBase64(const char* value) { m_publicKeyBase64HasBeenSet = true; m_publicKeyBase64.assign(value); }
102 
106  inline ImportKeyPairRequest& WithPublicKeyBase64(const Aws::String& value) { SetPublicKeyBase64(value); return *this;}
107 
111  inline ImportKeyPairRequest& WithPublicKeyBase64(Aws::String&& value) { SetPublicKeyBase64(std::move(value)); return *this;}
112 
116  inline ImportKeyPairRequest& WithPublicKeyBase64(const char* value) { SetPublicKeyBase64(value); return *this;}
117 
118  private:
119 
120  Aws::String m_keyPairName;
121  bool m_keyPairNameHasBeenSet;
122 
123  Aws::String m_publicKeyBase64;
124  bool m_publicKeyBase64HasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace Lightsail
129 } // namespace Aws
Aws::Lightsail::Model::ImportKeyPairRequest::WithKeyPairName
ImportKeyPairRequest & WithKeyPairName(Aws::String &&value)
Definition: ImportKeyPairRequest.h:70
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::ImportKeyPairRequest::SetPublicKeyBase64
void SetPublicKeyBase64(Aws::String &&value)
Definition: ImportKeyPairRequest.h:96
Aws::Lightsail::Model::ImportKeyPairRequest::WithKeyPairName
ImportKeyPairRequest & WithKeyPairName(const Aws::String &value)
Definition: ImportKeyPairRequest.h:65
Aws::Lightsail::Model::ImportKeyPairRequest::WithPublicKeyBase64
ImportKeyPairRequest & WithPublicKeyBase64(const Aws::String &value)
Definition: ImportKeyPairRequest.h:106
Aws::Lightsail::Model::ImportKeyPairRequest::WithPublicKeyBase64
ImportKeyPairRequest & WithPublicKeyBase64(Aws::String &&value)
Definition: ImportKeyPairRequest.h:111
Aws::Lightsail::Model::ImportKeyPairRequest::GetPublicKeyBase64
const Aws::String & GetPublicKeyBase64() const
Definition: ImportKeyPairRequest.h:81
Aws::Lightsail::Model::ImportKeyPairRequest::PublicKeyBase64HasBeenSet
bool PublicKeyBase64HasBeenSet() const
Definition: ImportKeyPairRequest.h:86
Aws::Lightsail::Model::ImportKeyPairRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::ImportKeyPairRequest::ImportKeyPairRequest
ImportKeyPairRequest()
Aws::Lightsail::Model::ImportKeyPairRequest::KeyPairNameHasBeenSet
bool KeyPairNameHasBeenSet() const
Definition: ImportKeyPairRequest.h:45
LightsailRequest.h
Aws::Lightsail::Model::ImportKeyPairRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ImportKeyPairRequest.h:30
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::ImportKeyPairRequest::SetKeyPairName
void SetKeyPairName(Aws::String &&value)
Definition: ImportKeyPairRequest.h:55
AWSString.h
Aws::Lightsail::Model::ImportKeyPairRequest::SetPublicKeyBase64
void SetPublicKeyBase64(const Aws::String &value)
Definition: ImportKeyPairRequest.h:91
Aws::Lightsail::Model::ImportKeyPairRequest::GetKeyPairName
const Aws::String & GetKeyPairName() const
Definition: ImportKeyPairRequest.h:40
Lightsail_EXPORTS.h
Aws::Lightsail::Model::ImportKeyPairRequest::SetPublicKeyBase64
void SetPublicKeyBase64(const char *value)
Definition: ImportKeyPairRequest.h:101
Aws::Lightsail::Model::ImportKeyPairRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::ImportKeyPairRequest
Definition: ImportKeyPairRequest.h:22
Aws::Lightsail::Model::ImportKeyPairRequest::SetKeyPairName
void SetKeyPairName(const char *value)
Definition: ImportKeyPairRequest.h:60
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::ImportKeyPairRequest::WithPublicKeyBase64
ImportKeyPairRequest & WithPublicKeyBase64(const char *value)
Definition: ImportKeyPairRequest.h:116
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::ImportKeyPairRequest::WithKeyPairName
ImportKeyPairRequest & WithKeyPairName(const char *value)
Definition: ImportKeyPairRequest.h:75
Aws::Lightsail::Model::ImportKeyPairRequest::SetKeyPairName
void SetKeyPairName(const Aws::String &value)
Definition: ImportKeyPairRequest.h:50