AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
ImportHostKeyResult.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Transfer {
23namespace Model {
25 public:
26 AWS_TRANSFER_API ImportHostKeyResult() = default;
29
31
34 inline const Aws::String& GetServerId() const { return m_serverId; }
35 template <typename ServerIdT = Aws::String>
36 void SetServerId(ServerIdT&& value) {
37 m_serverIdHasBeenSet = true;
38 m_serverId = std::forward<ServerIdT>(value);
39 }
40 template <typename ServerIdT = Aws::String>
41 ImportHostKeyResult& WithServerId(ServerIdT&& value) {
42 SetServerId(std::forward<ServerIdT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetHostKeyId() const { return m_hostKeyId; }
52 template <typename HostKeyIdT = Aws::String>
53 void SetHostKeyId(HostKeyIdT&& value) {
54 m_hostKeyIdHasBeenSet = true;
55 m_hostKeyId = std::forward<HostKeyIdT>(value);
56 }
57 template <typename HostKeyIdT = Aws::String>
58 ImportHostKeyResult& WithHostKeyId(HostKeyIdT&& value) {
59 SetHostKeyId(std::forward<HostKeyIdT>(value));
60 return *this;
61 }
63
65
66 inline const Aws::String& GetRequestId() const { return m_requestId; }
67 template <typename RequestIdT = Aws::String>
68 void SetRequestId(RequestIdT&& value) {
69 m_requestIdHasBeenSet = true;
70 m_requestId = std::forward<RequestIdT>(value);
71 }
72 template <typename RequestIdT = Aws::String>
73 ImportHostKeyResult& WithRequestId(RequestIdT&& value) {
74 SetRequestId(std::forward<RequestIdT>(value));
75 return *this;
76 }
78 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
79
80 private:
81 Aws::String m_serverId;
82
83 Aws::String m_hostKeyId;
84
85 Aws::String m_requestId;
86 Aws::Http::HttpResponseCode m_HttpResponseCode;
87 bool m_serverIdHasBeenSet = false;
88 bool m_hostKeyIdHasBeenSet = false;
89 bool m_requestIdHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace Transfer
94} // namespace Aws
ImportHostKeyResult & WithRequestId(RequestIdT &&value)
AWS_TRANSFER_API ImportHostKeyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_TRANSFER_API ImportHostKeyResult()=default
ImportHostKeyResult & WithHostKeyId(HostKeyIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_TRANSFER_API ImportHostKeyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ImportHostKeyResult & WithServerId(ServerIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue