AWS SDK for C++  1.9.40
AWS SDK for C++
UploadSSHPublicKeyRequest.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 "UploadSSHPublicKey"; }
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 UploadSSHPublicKeyRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
92 
100  inline UploadSSHPublicKeyRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
101 
109  inline UploadSSHPublicKeyRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
110 
111 
125  inline const Aws::String& GetSSHPublicKeyBody() const{ return m_sSHPublicKeyBody; }
126 
140  inline bool SSHPublicKeyBodyHasBeenSet() const { return m_sSHPublicKeyBodyHasBeenSet; }
141 
155  inline void SetSSHPublicKeyBody(const Aws::String& value) { m_sSHPublicKeyBodyHasBeenSet = true; m_sSHPublicKeyBody = value; }
156 
170  inline void SetSSHPublicKeyBody(Aws::String&& value) { m_sSHPublicKeyBodyHasBeenSet = true; m_sSHPublicKeyBody = std::move(value); }
171 
185  inline void SetSSHPublicKeyBody(const char* value) { m_sSHPublicKeyBodyHasBeenSet = true; m_sSHPublicKeyBody.assign(value); }
186 
200  inline UploadSSHPublicKeyRequest& WithSSHPublicKeyBody(const Aws::String& value) { SetSSHPublicKeyBody(value); return *this;}
201 
215  inline UploadSSHPublicKeyRequest& WithSSHPublicKeyBody(Aws::String&& value) { SetSSHPublicKeyBody(std::move(value)); return *this;}
216 
230  inline UploadSSHPublicKeyRequest& WithSSHPublicKeyBody(const char* value) { SetSSHPublicKeyBody(value); return *this;}
231 
232  private:
233 
234  Aws::String m_userName;
235  bool m_userNameHasBeenSet;
236 
237  Aws::String m_sSHPublicKeyBody;
238  bool m_sSHPublicKeyBodyHasBeenSet;
239  };
240 
241 } // namespace Model
242 } // namespace IAM
243 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::UploadSSHPublicKeyRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::Model::UploadSSHPublicKeyRequest::WithUserName
UploadSSHPublicKeyRequest & WithUserName(const char *value)
Definition: UploadSSHPublicKeyRequest.h:109
Aws::IAM::Model::UploadSSHPublicKeyRequest::UploadSSHPublicKeyRequest
UploadSSHPublicKeyRequest()
Aws::IAM::Model::UploadSSHPublicKeyRequest::WithUserName
UploadSSHPublicKeyRequest & WithUserName(Aws::String &&value)
Definition: UploadSSHPublicKeyRequest.h:100
Aws::IAM::Model::UploadSSHPublicKeyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UploadSSHPublicKeyRequest.h:30
Aws::IAM::Model::UploadSSHPublicKeyRequest::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: UploadSSHPublicKeyRequest.h:55
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::IAM::Model::UploadSSHPublicKeyRequest::WithUserName
UploadSSHPublicKeyRequest & WithUserName(const Aws::String &value)
Definition: UploadSSHPublicKeyRequest.h:91
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::UploadSSHPublicKeyRequest::SetUserName
void SetUserName(const char *value)
Definition: UploadSSHPublicKeyRequest.h:82
Aws::IAM::Model::UploadSSHPublicKeyRequest
Definition: UploadSSHPublicKeyRequest.h:22
Aws::IAM::Model::UploadSSHPublicKeyRequest::WithSSHPublicKeyBody
UploadSSHPublicKeyRequest & WithSSHPublicKeyBody(Aws::String &&value)
Definition: UploadSSHPublicKeyRequest.h:215
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::UploadSSHPublicKeyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IAM::Model::UploadSSHPublicKeyRequest::SetSSHPublicKeyBody
void SetSSHPublicKeyBody(const char *value)
Definition: UploadSSHPublicKeyRequest.h:185
Aws::IAM::Model::UploadSSHPublicKeyRequest::GetUserName
const Aws::String & GetUserName() const
Definition: UploadSSHPublicKeyRequest.h:46
AWSString.h
Aws::IAM::Model::UploadSSHPublicKeyRequest::GetSSHPublicKeyBody
const Aws::String & GetSSHPublicKeyBody() const
Definition: UploadSSHPublicKeyRequest.h:125
Aws::IAM::Model::UploadSSHPublicKeyRequest::SetUserName
void SetUserName(Aws::String &&value)
Definition: UploadSSHPublicKeyRequest.h:73
Aws::IAM::Model::UploadSSHPublicKeyRequest::SetUserName
void SetUserName(const Aws::String &value)
Definition: UploadSSHPublicKeyRequest.h:64
Aws::IAM::Model::UploadSSHPublicKeyRequest::SetSSHPublicKeyBody
void SetSSHPublicKeyBody(const Aws::String &value)
Definition: UploadSSHPublicKeyRequest.h:155
IAM_EXPORTS.h
Aws::IAM::Model::UploadSSHPublicKeyRequest::WithSSHPublicKeyBody
UploadSSHPublicKeyRequest & WithSSHPublicKeyBody(const char *value)
Definition: UploadSSHPublicKeyRequest.h:230
IAMRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::UploadSSHPublicKeyRequest::WithSSHPublicKeyBody
UploadSSHPublicKeyRequest & WithSSHPublicKeyBody(const Aws::String &value)
Definition: UploadSSHPublicKeyRequest.h:200
Aws::IAM::Model::UploadSSHPublicKeyRequest::SSHPublicKeyBodyHasBeenSet
bool SSHPublicKeyBodyHasBeenSet() const
Definition: UploadSSHPublicKeyRequest.h:140
Aws::IAM::Model::UploadSSHPublicKeyRequest::SetSSHPublicKeyBody
void SetSSHPublicKeyBody(Aws::String &&value)
Definition: UploadSSHPublicKeyRequest.h:170