AWS SDK for C++  1.9.105
AWS SDK for C++
ListInstancesResult.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 ServiceDiscovery
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<InstanceSummary>& GetInstances() const{ return m_instances; }
42 
47  inline void SetInstances(const Aws::Vector<InstanceSummary>& value) { m_instances = value; }
48 
53  inline void SetInstances(Aws::Vector<InstanceSummary>&& value) { m_instances = std::move(value); }
54 
59  inline ListInstancesResult& WithInstances(const Aws::Vector<InstanceSummary>& value) { SetInstances(value); return *this;}
60 
65  inline ListInstancesResult& WithInstances(Aws::Vector<InstanceSummary>&& value) { SetInstances(std::move(value)); return *this;}
66 
71  inline ListInstancesResult& AddInstances(const InstanceSummary& value) { m_instances.push_back(value); return *this; }
72 
77  inline ListInstancesResult& AddInstances(InstanceSummary&& value) { m_instances.push_back(std::move(value)); return *this; }
78 
79 
86  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
87 
94  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
95 
102  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
103 
110  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
111 
118  inline ListInstancesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
119 
126  inline ListInstancesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
127 
134  inline ListInstancesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
135 
136  private:
137 
138  Aws::Vector<InstanceSummary> m_instances;
139 
140  Aws::String m_nextToken;
141  };
142 
143 } // namespace Model
144 } // namespace ServiceDiscovery
145 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ServiceDiscovery::Model::ListInstancesResult::WithInstances
ListInstancesResult & WithInstances(const Aws::Vector< InstanceSummary > &value)
Definition: ListInstancesResult.h:59
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::ListInstancesResult::operator=
ListInstancesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceDiscovery::Model::ListInstancesResult
Definition: ListInstancesResult.h:30
Aws::ServiceDiscovery::Model::ListInstancesResult::GetInstances
const Aws::Vector< InstanceSummary > & GetInstances() const
Definition: ListInstancesResult.h:41
Aws::ServiceDiscovery::Model::ListInstancesResult::WithNextToken
ListInstancesResult & WithNextToken(const Aws::String &value)
Definition: ListInstancesResult.h:118
Aws::ServiceDiscovery::Model::ListInstancesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListInstancesResult.h:86
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::ListInstancesResult::WithNextToken
ListInstancesResult & WithNextToken(const char *value)
Definition: ListInstancesResult.h:134
Aws::ServiceDiscovery::Model::ListInstancesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListInstancesResult.h:110
Aws::ServiceDiscovery::Model::ListInstancesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListInstancesResult.h:94
Aws::ServiceDiscovery::Model::ListInstancesResult::WithInstances
ListInstancesResult & WithInstances(Aws::Vector< InstanceSummary > &&value)
Definition: ListInstancesResult.h:65
Aws::ServiceDiscovery::Model::ListInstancesResult::SetInstances
void SetInstances(const Aws::Vector< InstanceSummary > &value)
Definition: ListInstancesResult.h:47
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::ServiceDiscovery::Model::ListInstancesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListInstancesResult.h:102
AWSString.h
Aws::ServiceDiscovery::Model::ListInstancesResult::AddInstances
ListInstancesResult & AddInstances(InstanceSummary &&value)
Definition: ListInstancesResult.h:77
Aws::ServiceDiscovery::Model::ListInstancesResult::SetInstances
void SetInstances(Aws::Vector< InstanceSummary > &&value)
Definition: ListInstancesResult.h:53
Aws::ServiceDiscovery::Model::ListInstancesResult::WithNextToken
ListInstancesResult & WithNextToken(Aws::String &&value)
Definition: ListInstancesResult.h:126
Aws::ServiceDiscovery::Model::InstanceSummary
Definition: InstanceSummary.h:34
Aws::ServiceDiscovery::Model::ListInstancesResult::ListInstancesResult
ListInstancesResult()
InstanceSummary.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::ListInstancesResult::AddInstances
ListInstancesResult & AddInstances(const InstanceSummary &value)
Definition: ListInstancesResult.h:71
Aws::ServiceDiscovery::Model::ListInstancesResult::ListInstancesResult
ListInstancesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)