AWS SDK for C++  1.9.109
AWS SDK for C++
GetInstancesResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Lightsail
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Instance>& GetInstances() const{ return m_instances; }
41 
45  inline void SetInstances(const Aws::Vector<Instance>& value) { m_instances = value; }
46 
50  inline void SetInstances(Aws::Vector<Instance>&& value) { m_instances = std::move(value); }
51 
55  inline GetInstancesResult& WithInstances(const Aws::Vector<Instance>& value) { SetInstances(value); return *this;}
56 
60  inline GetInstancesResult& WithInstances(Aws::Vector<Instance>&& value) { SetInstances(std::move(value)); return *this;}
61 
65  inline GetInstancesResult& AddInstances(const Instance& value) { m_instances.push_back(value); return *this; }
66 
70  inline GetInstancesResult& AddInstances(Instance&& value) { m_instances.push_back(std::move(value)); return *this; }
71 
72 
80  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
81 
89  inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; }
90 
98  inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); }
99 
107  inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); }
108 
116  inline GetInstancesResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
117 
125  inline GetInstancesResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
126 
134  inline GetInstancesResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
135 
136  private:
137 
138  Aws::Vector<Instance> m_instances;
139 
140  Aws::String m_nextPageToken;
141  };
142 
143 } // namespace Model
144 } // namespace Lightsail
145 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::GetInstancesResult::GetInstancesResult
GetInstancesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Lightsail::Model::GetInstancesResult::AddInstances
GetInstancesResult & AddInstances(Instance &&value)
Definition: GetInstancesResult.h:70
Aws::Lightsail::Model::GetInstancesResult::WithNextPageToken
GetInstancesResult & WithNextPageToken(const Aws::String &value)
Definition: GetInstancesResult.h:116
Aws::Lightsail::Model::GetInstancesResult::operator=
GetInstancesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::GetInstancesResult::WithNextPageToken
GetInstancesResult & WithNextPageToken(const char *value)
Definition: GetInstancesResult.h:134
Aws::Lightsail::Model::Instance
Definition: Instance.h:43
Aws::Lightsail::Model::GetInstancesResult
Definition: GetInstancesResult.h:30
Aws::Lightsail::Model::GetInstancesResult::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetInstancesResult.h:98
Aws::Lightsail::Model::GetInstancesResult::WithNextPageToken
GetInstancesResult & WithNextPageToken(Aws::String &&value)
Definition: GetInstancesResult.h:125
Aws::Lightsail::Model::GetInstancesResult::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetInstancesResult.h:80
Aws::Lightsail::Model::GetInstancesResult::GetInstancesResult
GetInstancesResult()
Aws::Lightsail::Model::GetInstancesResult::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetInstancesResult.h:89
AWSString.h
Aws::Lightsail::Model::GetInstancesResult::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetInstancesResult.h:107
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetInstancesResult::SetInstances
void SetInstances(Aws::Vector< Instance > &&value)
Definition: GetInstancesResult.h:50
Instance.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetInstancesResult::WithInstances
GetInstancesResult & WithInstances(const Aws::Vector< Instance > &value)
Definition: GetInstancesResult.h:55
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetInstancesResult::GetInstances
const Aws::Vector< Instance > & GetInstances() const
Definition: GetInstancesResult.h:40
Aws::Lightsail::Model::GetInstancesResult::WithInstances
GetInstancesResult & WithInstances(Aws::Vector< Instance > &&value)
Definition: GetInstancesResult.h:60
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetInstancesResult::SetInstances
void SetInstances(const Aws::Vector< Instance > &value)
Definition: GetInstancesResult.h:45
Aws::Lightsail::Model::GetInstancesResult::AddInstances
GetInstancesResult & AddInstances(const Instance &value)
Definition: GetInstancesResult.h:65