AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetInstancesResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/Instance.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail {
25namespace Model {
27 public:
28 AWS_LIGHTSAIL_API GetInstancesResult() = default;
31
33
36 inline const Aws::Vector<Instance>& GetInstances() const { return m_instances; }
37 template <typename InstancesT = Aws::Vector<Instance>>
38 void SetInstances(InstancesT&& value) {
39 m_instancesHasBeenSet = true;
40 m_instances = std::forward<InstancesT>(value);
41 }
42 template <typename InstancesT = Aws::Vector<Instance>>
43 GetInstancesResult& WithInstances(InstancesT&& value) {
44 SetInstances(std::forward<InstancesT>(value));
45 return *this;
46 }
47 template <typename InstancesT = Instance>
48 GetInstancesResult& AddInstances(InstancesT&& value) {
49 m_instancesHasBeenSet = true;
50 m_instances.emplace_back(std::forward<InstancesT>(value));
51 return *this;
52 }
54
56
63 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
64 template <typename NextPageTokenT = Aws::String>
65 void SetNextPageToken(NextPageTokenT&& value) {
66 m_nextPageTokenHasBeenSet = true;
67 m_nextPageToken = std::forward<NextPageTokenT>(value);
68 }
69 template <typename NextPageTokenT = Aws::String>
70 GetInstancesResult& WithNextPageToken(NextPageTokenT&& value) {
71 SetNextPageToken(std::forward<NextPageTokenT>(value));
72 return *this;
73 }
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template <typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) {
81 m_requestIdHasBeenSet = true;
82 m_requestId = std::forward<RequestIdT>(value);
83 }
84 template <typename RequestIdT = Aws::String>
85 GetInstancesResult& WithRequestId(RequestIdT&& value) {
86 SetRequestId(std::forward<RequestIdT>(value));
87 return *this;
88 }
90 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
91
92 private:
93 Aws::Vector<Instance> m_instances;
94
95 Aws::String m_nextPageToken;
96
97 Aws::String m_requestId;
98 Aws::Http::HttpResponseCode m_HttpResponseCode;
99 bool m_instancesHasBeenSet = false;
100 bool m_nextPageTokenHasBeenSet = false;
101 bool m_requestIdHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace Lightsail
106} // namespace Aws
AWS_LIGHTSAIL_API GetInstancesResult()=default
void SetNextPageToken(NextPageTokenT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< Instance > & GetInstances() const
const Aws::String & GetNextPageToken() const
GetInstancesResult & WithNextPageToken(NextPageTokenT &&value)
GetInstancesResult & AddInstances(InstancesT &&value)
AWS_LIGHTSAIL_API GetInstancesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetInstancesResult & WithInstances(InstancesT &&value)
AWS_LIGHTSAIL_API GetInstancesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetInstancesResult & 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