AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportSshPublicKeyRequest.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/TransferRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Transfer
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_TRANSFER_API ImportSshPublicKeyRequest() = default;
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 "ImportSshPublicKey"; }
31
32 AWS_TRANSFER_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetServerId() const { return m_serverId; }
42 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
43 template<typename ServerIdT = Aws::String>
44 void SetServerId(ServerIdT&& value) { m_serverIdHasBeenSet = true; m_serverId = std::forward<ServerIdT>(value); }
45 template<typename ServerIdT = Aws::String>
46 ImportSshPublicKeyRequest& WithServerId(ServerIdT&& value) { SetServerId(std::forward<ServerIdT>(value)); return *this;}
48
50
54 inline const Aws::String& GetSshPublicKeyBody() const { return m_sshPublicKeyBody; }
55 inline bool SshPublicKeyBodyHasBeenSet() const { return m_sshPublicKeyBodyHasBeenSet; }
56 template<typename SshPublicKeyBodyT = Aws::String>
57 void SetSshPublicKeyBody(SshPublicKeyBodyT&& value) { m_sshPublicKeyBodyHasBeenSet = true; m_sshPublicKeyBody = std::forward<SshPublicKeyBodyT>(value); }
58 template<typename SshPublicKeyBodyT = Aws::String>
59 ImportSshPublicKeyRequest& WithSshPublicKeyBody(SshPublicKeyBodyT&& value) { SetSshPublicKeyBody(std::forward<SshPublicKeyBodyT>(value)); return *this;}
61
63
67 inline const Aws::String& GetUserName() const { return m_userName; }
68 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
69 template<typename UserNameT = Aws::String>
70 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
71 template<typename UserNameT = Aws::String>
72 ImportSshPublicKeyRequest& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
74 private:
75
76 Aws::String m_serverId;
77 bool m_serverIdHasBeenSet = false;
78
79 Aws::String m_sshPublicKeyBody;
80 bool m_sshPublicKeyBodyHasBeenSet = false;
81
82 Aws::String m_userName;
83 bool m_userNameHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Transfer
88} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportSshPublicKeyRequest & WithUserName(UserNameT &&value)
ImportSshPublicKeyRequest & WithSshPublicKeyBody(SshPublicKeyBodyT &&value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
AWS_TRANSFER_API ImportSshPublicKeyRequest()=default
ImportSshPublicKeyRequest & WithServerId(ServerIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String