AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ImportHostKeyRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/awstransfer/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Transfer
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_TRANSFER_API ImportHostKeyRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ImportHostKey"; }
33
34 AWS_TRANSFER_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetServerId() const { return m_serverId; }
45 inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
46 template<typename ServerIdT = Aws::String>
47 void SetServerId(ServerIdT&& value) { m_serverIdHasBeenSet = true; m_serverId = std::forward<ServerIdT>(value); }
48 template<typename ServerIdT = Aws::String>
49 ImportHostKeyRequest& WithServerId(ServerIdT&& value) { SetServerId(std::forward<ServerIdT>(value)); return *this;}
51
53
57 inline const Aws::String& GetHostKeyBody() const { return m_hostKeyBody; }
58 inline bool HostKeyBodyHasBeenSet() const { return m_hostKeyBodyHasBeenSet; }
59 template<typename HostKeyBodyT = Aws::String>
60 void SetHostKeyBody(HostKeyBodyT&& value) { m_hostKeyBodyHasBeenSet = true; m_hostKeyBody = std::forward<HostKeyBodyT>(value); }
61 template<typename HostKeyBodyT = Aws::String>
62 ImportHostKeyRequest& WithHostKeyBody(HostKeyBodyT&& value) { SetHostKeyBody(std::forward<HostKeyBodyT>(value)); return *this;}
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 template<typename DescriptionT = Aws::String>
72 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
73 template<typename DescriptionT = Aws::String>
74 ImportHostKeyRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
76
78
81 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
82 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
83 template<typename TagsT = Aws::Vector<Tag>>
84 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
85 template<typename TagsT = Aws::Vector<Tag>>
86 ImportHostKeyRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
87 template<typename TagsT = Tag>
88 ImportHostKeyRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
90 private:
91
92 Aws::String m_serverId;
93 bool m_serverIdHasBeenSet = false;
94
95 Aws::String m_hostKeyBody;
96 bool m_hostKeyBodyHasBeenSet = false;
97
98 Aws::String m_description;
99 bool m_descriptionHasBeenSet = false;
100
101 Aws::Vector<Tag> m_tags;
102 bool m_tagsHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Transfer
107} // 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