AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListHostsResult.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/codestar-connections/model/Host.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CodeStarconnections {
24namespace Model {
26 public:
27 AWS_CODESTARCONNECTIONS_API ListHostsResult() = default;
30
32
36 inline const Aws::Vector<Host>& GetHosts() const { return m_hosts; }
37 template <typename HostsT = Aws::Vector<Host>>
38 void SetHosts(HostsT&& value) {
39 m_hostsHasBeenSet = true;
40 m_hosts = std::forward<HostsT>(value);
41 }
42 template <typename HostsT = Aws::Vector<Host>>
43 ListHostsResult& WithHosts(HostsT&& value) {
44 SetHosts(std::forward<HostsT>(value));
45 return *this;
46 }
47 template <typename HostsT = Host>
48 ListHostsResult& AddHosts(HostsT&& value) {
49 m_hostsHasBeenSet = true;
50 m_hosts.emplace_back(std::forward<HostsT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetNextToken() const { return m_nextToken; }
62 template <typename NextTokenT = Aws::String>
63 void SetNextToken(NextTokenT&& value) {
64 m_nextTokenHasBeenSet = true;
65 m_nextToken = std::forward<NextTokenT>(value);
66 }
67 template <typename NextTokenT = Aws::String>
68 ListHostsResult& WithNextToken(NextTokenT&& value) {
69 SetNextToken(std::forward<NextTokenT>(value));
70 return *this;
71 }
73
75
76 inline const Aws::String& GetRequestId() const { return m_requestId; }
77 template <typename RequestIdT = Aws::String>
78 void SetRequestId(RequestIdT&& value) {
79 m_requestIdHasBeenSet = true;
80 m_requestId = std::forward<RequestIdT>(value);
81 }
82 template <typename RequestIdT = Aws::String>
83 ListHostsResult& WithRequestId(RequestIdT&& value) {
84 SetRequestId(std::forward<RequestIdT>(value));
85 return *this;
86 }
88 private:
89 Aws::Vector<Host> m_hosts;
90
91 Aws::String m_nextToken;
92
93 Aws::String m_requestId;
94 bool m_hostsHasBeenSet = false;
95 bool m_nextTokenHasBeenSet = false;
96 bool m_requestIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CodeStarconnections
101} // namespace Aws
AWS_CODESTARCONNECTIONS_API ListHostsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListHostsResult & WithHosts(HostsT &&value)
const Aws::Vector< Host > & GetHosts() const
AWS_CODESTARCONNECTIONS_API ListHostsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListHostsResult & AddHosts(HostsT &&value)
ListHostsResult & WithNextToken(NextTokenT &&value)
AWS_CODESTARCONNECTIONS_API ListHostsResult()=default
ListHostsResult & WithRequestId(RequestIdT &&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