AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
47 inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
48 inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
49 inline ImportHostKeyRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
50 inline ImportHostKeyRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
51 inline ImportHostKeyRequest& WithServerId(const char* value) { SetServerId(value); return *this;}
53
55
59 inline const Aws::String& GetHostKeyBody() const{ return m_hostKeyBody; }
60 inline bool HostKeyBodyHasBeenSet() const { return m_hostKeyBodyHasBeenSet; }
61 inline void SetHostKeyBody(const Aws::String& value) { m_hostKeyBodyHasBeenSet = true; m_hostKeyBody = value; }
62 inline void SetHostKeyBody(Aws::String&& value) { m_hostKeyBodyHasBeenSet = true; m_hostKeyBody = std::move(value); }
63 inline void SetHostKeyBody(const char* value) { m_hostKeyBodyHasBeenSet = true; m_hostKeyBody.assign(value); }
64 inline ImportHostKeyRequest& WithHostKeyBody(const Aws::String& value) { SetHostKeyBody(value); return *this;}
65 inline ImportHostKeyRequest& WithHostKeyBody(Aws::String&& value) { SetHostKeyBody(std::move(value)); return *this;}
66 inline ImportHostKeyRequest& WithHostKeyBody(const char* value) { SetHostKeyBody(value); return *this;}
68
70
73 inline const Aws::String& GetDescription() const{ return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
76 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
77 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
78 inline ImportHostKeyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
79 inline ImportHostKeyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
80 inline ImportHostKeyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
82
84
87 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
90 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
91 inline ImportHostKeyRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
92 inline ImportHostKeyRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
93 inline ImportHostKeyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
94 inline ImportHostKeyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
96 private:
97
98 Aws::String m_serverId;
99 bool m_serverIdHasBeenSet = false;
100
101 Aws::String m_hostKeyBody;
102 bool m_hostKeyBodyHasBeenSet = false;
103
104 Aws::String m_description;
105 bool m_descriptionHasBeenSet = false;
106
107 Aws::Vector<Tag> m_tags;
108 bool m_tagsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Transfer
113} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
ImportHostKeyRequest & WithTags(const Aws::Vector< Tag > &value)
ImportHostKeyRequest & WithHostKeyBody(Aws::String &&value)
ImportHostKeyRequest & AddTags(const Tag &value)
ImportHostKeyRequest & WithServerId(const Aws::String &value)
ImportHostKeyRequest & WithDescription(const Aws::String &value)
ImportHostKeyRequest & WithTags(Aws::Vector< Tag > &&value)
ImportHostKeyRequest & AddTags(Tag &&value)
ImportHostKeyRequest & WithServerId(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
void SetTags(const Aws::Vector< Tag > &value)
ImportHostKeyRequest & WithServerId(const char *value)
void SetDescription(const Aws::String &value)
ImportHostKeyRequest & WithDescription(const char *value)
virtual const char * GetServiceRequestName() const override
ImportHostKeyRequest & WithHostKeyBody(const char *value)
ImportHostKeyRequest & WithHostKeyBody(const Aws::String &value)
ImportHostKeyRequest & WithDescription(Aws::String &&value)
void SetHostKeyBody(const Aws::String &value)
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