AWS SDK for C++  1.9.129
AWS SDK for C++
DeleteKeyPairRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
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 "DeleteKeyPair"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetKeyName() const{ return m_keyName; }
43 
47  inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
48 
52  inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; }
53 
57  inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); }
58 
62  inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); }
63 
67  inline DeleteKeyPairRequest& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;}
68 
72  inline DeleteKeyPairRequest& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;}
73 
77  inline DeleteKeyPairRequest& WithKeyName(const char* value) { SetKeyName(value); return *this;}
78 
79 
83  inline const Aws::String& GetKeyPairId() const{ return m_keyPairId; }
84 
88  inline bool KeyPairIdHasBeenSet() const { return m_keyPairIdHasBeenSet; }
89 
93  inline void SetKeyPairId(const Aws::String& value) { m_keyPairIdHasBeenSet = true; m_keyPairId = value; }
94 
98  inline void SetKeyPairId(Aws::String&& value) { m_keyPairIdHasBeenSet = true; m_keyPairId = std::move(value); }
99 
103  inline void SetKeyPairId(const char* value) { m_keyPairIdHasBeenSet = true; m_keyPairId.assign(value); }
104 
108  inline DeleteKeyPairRequest& WithKeyPairId(const Aws::String& value) { SetKeyPairId(value); return *this;}
109 
113  inline DeleteKeyPairRequest& WithKeyPairId(Aws::String&& value) { SetKeyPairId(std::move(value)); return *this;}
114 
118  inline DeleteKeyPairRequest& WithKeyPairId(const char* value) { SetKeyPairId(value); return *this;}
119 
120 
127  inline bool GetDryRun() const{ return m_dryRun; }
128 
135  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
136 
143  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
144 
151  inline DeleteKeyPairRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
152 
153  private:
154 
155  Aws::String m_keyName;
156  bool m_keyNameHasBeenSet;
157 
158  Aws::String m_keyPairId;
159  bool m_keyPairIdHasBeenSet;
160 
161  bool m_dryRun;
162  bool m_dryRunHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace EC2
167 } // namespace Aws
Aws::EC2::Model::DeleteKeyPairRequest::SetKeyName
void SetKeyName(const Aws::String &value)
Definition: DeleteKeyPairRequest.h:52
Aws::EC2::Model::DeleteKeyPairRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DeleteKeyPairRequest::GetKeyPairId
const Aws::String & GetKeyPairId() const
Definition: DeleteKeyPairRequest.h:83
Aws::EC2::Model::DeleteKeyPairRequest::WithKeyPairId
DeleteKeyPairRequest & WithKeyPairId(Aws::String &&value)
Definition: DeleteKeyPairRequest.h:113
Aws::EC2::Model::DeleteKeyPairRequest
Definition: DeleteKeyPairRequest.h:22
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteKeyPairRequest::WithDryRun
DeleteKeyPairRequest & WithDryRun(bool value)
Definition: DeleteKeyPairRequest.h:151
Aws::EC2::Model::DeleteKeyPairRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteKeyPairRequest.h:30
Aws::EC2::Model::DeleteKeyPairRequest::SetKeyName
void SetKeyName(const char *value)
Definition: DeleteKeyPairRequest.h:62
Aws::EC2::Model::DeleteKeyPairRequest::SetKeyPairId
void SetKeyPairId(const Aws::String &value)
Definition: DeleteKeyPairRequest.h:93
Aws::EC2::Model::DeleteKeyPairRequest::WithKeyName
DeleteKeyPairRequest & WithKeyName(const char *value)
Definition: DeleteKeyPairRequest.h:77
Aws::EC2::Model::DeleteKeyPairRequest::WithKeyName
DeleteKeyPairRequest & WithKeyName(Aws::String &&value)
Definition: DeleteKeyPairRequest.h:72
Aws::EC2::Model::DeleteKeyPairRequest::WithKeyName
DeleteKeyPairRequest & WithKeyName(const Aws::String &value)
Definition: DeleteKeyPairRequest.h:67
Aws::EC2::Model::DeleteKeyPairRequest::SetDryRun
void SetDryRun(bool value)
Definition: DeleteKeyPairRequest.h:143
Aws::EC2::Model::DeleteKeyPairRequest::KeyPairIdHasBeenSet
bool KeyPairIdHasBeenSet() const
Definition: DeleteKeyPairRequest.h:88
EC2Request.h
Aws::EC2::Model::DeleteKeyPairRequest::KeyNameHasBeenSet
bool KeyNameHasBeenSet() const
Definition: DeleteKeyPairRequest.h:47
Aws::EC2::Model::DeleteKeyPairRequest::SetKeyName
void SetKeyName(Aws::String &&value)
Definition: DeleteKeyPairRequest.h:57
Aws::EC2::Model::DeleteKeyPairRequest::WithKeyPairId
DeleteKeyPairRequest & WithKeyPairId(const char *value)
Definition: DeleteKeyPairRequest.h:118
AWSString.h
Aws::EC2::Model::DeleteKeyPairRequest::GetDryRun
bool GetDryRun() const
Definition: DeleteKeyPairRequest.h:127
Aws::EC2::Model::DeleteKeyPairRequest::DeleteKeyPairRequest
DeleteKeyPairRequest()
Aws::EC2::Model::DeleteKeyPairRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DeleteKeyPairRequest::WithKeyPairId
DeleteKeyPairRequest & WithKeyPairId(const Aws::String &value)
Definition: DeleteKeyPairRequest.h:108
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteKeyPairRequest::SetKeyPairId
void SetKeyPairId(Aws::String &&value)
Definition: DeleteKeyPairRequest.h:98
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DeleteKeyPairRequest::SetKeyPairId
void SetKeyPairId(const char *value)
Definition: DeleteKeyPairRequest.h:103
EC2_EXPORTS.h
Aws::EC2::Model::DeleteKeyPairRequest::GetKeyName
const Aws::String & GetKeyName() const
Definition: DeleteKeyPairRequest.h:42
Aws::EC2::Model::DeleteKeyPairRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DeleteKeyPairRequest.h:135