AWS SDK for C++

AWS SDK for C++ Version 1.11.688

Loading...
Searching...
No Matches
ImportHostKeyRequest.h
1
6#pragma once
7#include <aws/awstransfer/TransferRequest.h>
8#include <aws/awstransfer/Transfer_EXPORTS.h>
9#include <aws/awstransfer/model/Tag.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Transfer {
17namespace Model {
18
22 public:
23 AWS_TRANSFER_API ImportHostKeyRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ImportHostKey"; }
30
31 AWS_TRANSFER_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetServerId() const { return m_serverId; }
41 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
42 template <typename ServerIdT = Aws::String>
43 void SetServerId(ServerIdT&& value) {
44 m_serverIdHasBeenSet = true;
45 m_serverId = std::forward<ServerIdT>(value);
46 }
47 template <typename ServerIdT = Aws::String>
48 ImportHostKeyRequest& WithServerId(ServerIdT&& value) {
49 SetServerId(std::forward<ServerIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetHostKeyBody() const { return m_hostKeyBody; }
60 inline bool HostKeyBodyHasBeenSet() const { return m_hostKeyBodyHasBeenSet; }
61 template <typename HostKeyBodyT = Aws::String>
62 void SetHostKeyBody(HostKeyBodyT&& value) {
63 m_hostKeyBodyHasBeenSet = true;
64 m_hostKeyBody = std::forward<HostKeyBodyT>(value);
65 }
66 template <typename HostKeyBodyT = Aws::String>
67 ImportHostKeyRequest& WithHostKeyBody(HostKeyBodyT&& value) {
68 SetHostKeyBody(std::forward<HostKeyBodyT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 ImportHostKeyRequest& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template <typename TagsT = Aws::Vector<Tag>>
98 void SetTags(TagsT&& value) {
99 m_tagsHasBeenSet = true;
100 m_tags = std::forward<TagsT>(value);
101 }
102 template <typename TagsT = Aws::Vector<Tag>>
104 SetTags(std::forward<TagsT>(value));
105 return *this;
106 }
107 template <typename TagsT = Tag>
109 m_tagsHasBeenSet = true;
110 m_tags.emplace_back(std::forward<TagsT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_serverId;
116 bool m_serverIdHasBeenSet = false;
117
118 Aws::String m_hostKeyBody;
119 bool m_hostKeyBodyHasBeenSet = false;
120
121 Aws::String m_description;
122 bool m_descriptionHasBeenSet = false;
123
124 Aws::Vector<Tag> m_tags;
125 bool m_tagsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace Transfer
130} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
ImportHostKeyRequest & WithTags(TagsT &&value)
ImportHostKeyRequest & AddTags(TagsT &&value)
ImportHostKeyRequest & WithHostKeyBody(HostKeyBodyT &&value)
ImportHostKeyRequest & WithDescription(DescriptionT &&value)
ImportHostKeyRequest & WithServerId(ServerIdT &&value)
AWS_TRANSFER_API ImportHostKeyRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_TRANSFER_API Aws::String SerializePayload() const override
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector