AWS SDK for C++

AWS SDK for C++ Version 1.11.688

Loading...
Searching...
No Matches
UpdateHostKeyRequest.h
1
6#pragma once
7#include <aws/awstransfer/TransferRequest.h>
8#include <aws/awstransfer/Transfer_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Transfer {
15namespace Model {
16
20 public:
21 AWS_TRANSFER_API UpdateHostKeyRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateHostKey"; }
28
29 AWS_TRANSFER_API Aws::String SerializePayload() const override;
30
32
34
38 inline const Aws::String& GetServerId() const { return m_serverId; }
39 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
40 template <typename ServerIdT = Aws::String>
41 void SetServerId(ServerIdT&& value) {
42 m_serverIdHasBeenSet = true;
43 m_serverId = std::forward<ServerIdT>(value);
44 }
45 template <typename ServerIdT = Aws::String>
46 UpdateHostKeyRequest& WithServerId(ServerIdT&& value) {
47 SetServerId(std::forward<ServerIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetHostKeyId() const { return m_hostKeyId; }
57 inline bool HostKeyIdHasBeenSet() const { return m_hostKeyIdHasBeenSet; }
58 template <typename HostKeyIdT = Aws::String>
59 void SetHostKeyId(HostKeyIdT&& value) {
60 m_hostKeyIdHasBeenSet = true;
61 m_hostKeyId = std::forward<HostKeyIdT>(value);
62 }
63 template <typename HostKeyIdT = Aws::String>
64 UpdateHostKeyRequest& WithHostKeyId(HostKeyIdT&& value) {
65 SetHostKeyId(std::forward<HostKeyIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
82 UpdateHostKeyRequest& WithDescription(DescriptionT&& value) {
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_serverId;
89 bool m_serverIdHasBeenSet = false;
90
91 Aws::String m_hostKeyId;
92 bool m_hostKeyIdHasBeenSet = false;
93
94 Aws::String m_description;
95 bool m_descriptionHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Transfer
100} // namespace Aws
UpdateHostKeyRequest & WithHostKeyId(HostKeyIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateHostKeyRequest & WithDescription(DescriptionT &&value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
AWS_TRANSFER_API UpdateHostKeyRequest()=default
UpdateHostKeyRequest & WithServerId(ServerIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String