AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListHostKeysResult.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/awstransfer/model/ListedHostKey.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Transfer
26{
27namespace Model
28{
30 {
31 public:
32 AWS_TRANSFER_API ListHostKeysResult() = default;
35
36
38
42 inline const Aws::String& GetNextToken() const { return m_nextToken; }
43 template<typename NextTokenT = Aws::String>
44 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
45 template<typename NextTokenT = Aws::String>
46 ListHostKeysResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
48
50
53 inline const Aws::String& GetServerId() const { return m_serverId; }
54 template<typename ServerIdT = Aws::String>
55 void SetServerId(ServerIdT&& value) { m_serverIdHasBeenSet = true; m_serverId = std::forward<ServerIdT>(value); }
56 template<typename ServerIdT = Aws::String>
57 ListHostKeysResult& WithServerId(ServerIdT&& value) { SetServerId(std::forward<ServerIdT>(value)); return *this;}
59
61
64 inline const Aws::Vector<ListedHostKey>& GetHostKeys() const { return m_hostKeys; }
65 template<typename HostKeysT = Aws::Vector<ListedHostKey>>
66 void SetHostKeys(HostKeysT&& value) { m_hostKeysHasBeenSet = true; m_hostKeys = std::forward<HostKeysT>(value); }
67 template<typename HostKeysT = Aws::Vector<ListedHostKey>>
68 ListHostKeysResult& WithHostKeys(HostKeysT&& value) { SetHostKeys(std::forward<HostKeysT>(value)); return *this;}
69 template<typename HostKeysT = ListedHostKey>
70 ListHostKeysResult& AddHostKeys(HostKeysT&& value) { m_hostKeysHasBeenSet = true; m_hostKeys.emplace_back(std::forward<HostKeysT>(value)); return *this; }
72
74
75 inline const Aws::String& GetRequestId() const { return m_requestId; }
76 template<typename RequestIdT = Aws::String>
77 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
78 template<typename RequestIdT = Aws::String>
79 ListHostKeysResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
81 private:
82
83 Aws::String m_nextToken;
84 bool m_nextTokenHasBeenSet = false;
85
86 Aws::String m_serverId;
87 bool m_serverIdHasBeenSet = false;
88
90 bool m_hostKeysHasBeenSet = false;
91
92 Aws::String m_requestId;
93 bool m_requestIdHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Transfer
98} // namespace Aws
ListHostKeysResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< ListedHostKey > & GetHostKeys() const
ListHostKeysResult & AddHostKeys(HostKeysT &&value)
AWS_TRANSFER_API ListHostKeysResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListHostKeysResult & WithServerId(ServerIdT &&value)
ListHostKeysResult & WithNextToken(NextTokenT &&value)
AWS_TRANSFER_API ListHostKeysResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_TRANSFER_API ListHostKeysResult()=default
ListHostKeysResult & WithHostKeys(HostKeysT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue