AWS SDK for C++  1.9.40
AWS SDK for C++
DeleteSSHPublicKeyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iam/IAM_EXPORTS.h>
8 #include <aws/iam/IAMRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IAM
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 "DeleteSSHPublicKey"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
46  inline const Aws::String& GetUserName() const{ return m_userName; }
47 
55  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
56 
64  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
65 
73  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
74 
82  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
83 
91  inline DeleteSSHPublicKeyRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
92 
100  inline DeleteSSHPublicKeyRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
101 
109  inline DeleteSSHPublicKeyRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
110 
111 
118  inline const Aws::String& GetSSHPublicKeyId() const{ return m_sSHPublicKeyId; }
119 
126  inline bool SSHPublicKeyIdHasBeenSet() const { return m_sSHPublicKeyIdHasBeenSet; }
127 
134  inline void SetSSHPublicKeyId(const Aws::String& value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId = value; }
135 
142  inline void SetSSHPublicKeyId(Aws::String&& value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId = std::move(value); }
143 
150  inline void SetSSHPublicKeyId(const char* value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId.assign(value); }
151 
158  inline DeleteSSHPublicKeyRequest& WithSSHPublicKeyId(const Aws::String& value) { SetSSHPublicKeyId(value); return *this;}
159 
166  inline DeleteSSHPublicKeyRequest& WithSSHPublicKeyId(Aws::String&& value) { SetSSHPublicKeyId(std::move(value)); return *this;}
167 
174  inline DeleteSSHPublicKeyRequest& WithSSHPublicKeyId(const char* value) { SetSSHPublicKeyId(value); return *this;}
175 
176  private:
177 
178  Aws::String m_userName;
179  bool m_userNameHasBeenSet;
180 
181  Aws::String m_sSHPublicKeyId;
182  bool m_sSHPublicKeyIdHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace IAM
187 } // namespace Aws
Aws::IAM::Model::DeleteSSHPublicKeyRequest::DeleteSSHPublicKeyRequest
DeleteSSHPublicKeyRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::DeleteSSHPublicKeyRequest::SetSSHPublicKeyId
void SetSSHPublicKeyId(const char *value)
Definition: DeleteSSHPublicKeyRequest.h:150
Aws::IAM::Model::DeleteSSHPublicKeyRequest::SetSSHPublicKeyId
void SetSSHPublicKeyId(const Aws::String &value)
Definition: DeleteSSHPublicKeyRequest.h:134
Aws::IAM::Model::DeleteSSHPublicKeyRequest::WithUserName
DeleteSSHPublicKeyRequest & WithUserName(const Aws::String &value)
Definition: DeleteSSHPublicKeyRequest.h:91
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::DeleteSSHPublicKeyRequest::WithUserName
DeleteSSHPublicKeyRequest & WithUserName(const char *value)
Definition: DeleteSSHPublicKeyRequest.h:109
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::DeleteSSHPublicKeyRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::Model::DeleteSSHPublicKeyRequest::SetUserName
void SetUserName(const Aws::String &value)
Definition: DeleteSSHPublicKeyRequest.h:64
Aws::IAM::Model::DeleteSSHPublicKeyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IAM::Model::DeleteSSHPublicKeyRequest::SetUserName
void SetUserName(const char *value)
Definition: DeleteSSHPublicKeyRequest.h:82
Aws::IAM::Model::DeleteSSHPublicKeyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteSSHPublicKeyRequest.h:30
Aws::IAM::Model::DeleteSSHPublicKeyRequest::WithSSHPublicKeyId
DeleteSSHPublicKeyRequest & WithSSHPublicKeyId(Aws::String &&value)
Definition: DeleteSSHPublicKeyRequest.h:166
AWSString.h
Aws::IAM::Model::DeleteSSHPublicKeyRequest::SetSSHPublicKeyId
void SetSSHPublicKeyId(Aws::String &&value)
Definition: DeleteSSHPublicKeyRequest.h:142
Aws::IAM::Model::DeleteSSHPublicKeyRequest::SetUserName
void SetUserName(Aws::String &&value)
Definition: DeleteSSHPublicKeyRequest.h:73
Aws::IAM::Model::DeleteSSHPublicKeyRequest::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: DeleteSSHPublicKeyRequest.h:55
Aws::IAM::Model::DeleteSSHPublicKeyRequest::WithUserName
DeleteSSHPublicKeyRequest & WithUserName(Aws::String &&value)
Definition: DeleteSSHPublicKeyRequest.h:100
Aws::IAM::Model::DeleteSSHPublicKeyRequest::SSHPublicKeyIdHasBeenSet
bool SSHPublicKeyIdHasBeenSet() const
Definition: DeleteSSHPublicKeyRequest.h:126
IAM_EXPORTS.h
Aws::IAM::Model::DeleteSSHPublicKeyRequest::GetSSHPublicKeyId
const Aws::String & GetSSHPublicKeyId() const
Definition: DeleteSSHPublicKeyRequest.h:118
IAMRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::IAM::Model::DeleteSSHPublicKeyRequest
Definition: DeleteSSHPublicKeyRequest.h:22
Aws::IAM::Model::DeleteSSHPublicKeyRequest::GetUserName
const Aws::String & GetUserName() const
Definition: DeleteSSHPublicKeyRequest.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::DeleteSSHPublicKeyRequest::WithSSHPublicKeyId
DeleteSSHPublicKeyRequest & WithSSHPublicKeyId(const char *value)
Definition: DeleteSSHPublicKeyRequest.h:174
Aws::IAM::Model::DeleteSSHPublicKeyRequest::WithSSHPublicKeyId
DeleteSSHPublicKeyRequest & WithSSHPublicKeyId(const Aws::String &value)
Definition: DeleteSSHPublicKeyRequest.h:158