AWS SDK for C++  1.9.104
AWS SDK for C++
DescribeInstancesResult.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 GameLift
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
46  inline const Aws::Vector<Instance>& GetInstances() const{ return m_instances; }
47 
51  inline void SetInstances(const Aws::Vector<Instance>& value) { m_instances = value; }
52 
56  inline void SetInstances(Aws::Vector<Instance>&& value) { m_instances = std::move(value); }
57 
61  inline DescribeInstancesResult& WithInstances(const Aws::Vector<Instance>& value) { SetInstances(value); return *this;}
62 
66  inline DescribeInstancesResult& WithInstances(Aws::Vector<Instance>&& value) { SetInstances(std::move(value)); return *this;}
67 
71  inline DescribeInstancesResult& AddInstances(const Instance& value) { m_instances.push_back(value); return *this; }
72 
76  inline DescribeInstancesResult& AddInstances(Instance&& value) { m_instances.push_back(std::move(value)); return *this; }
77 
78 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
91  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
92 
98  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
99 
105  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
106 
112  inline DescribeInstancesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
113 
119  inline DescribeInstancesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
120 
126  inline DescribeInstancesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
127 
128  private:
129 
130  Aws::Vector<Instance> m_instances;
131 
132  Aws::String m_nextToken;
133  };
134 
135 } // namespace Model
136 } // namespace GameLift
137 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GameLift::Model::DescribeInstancesResult::AddInstances
DescribeInstancesResult & AddInstances(Instance &&value)
Definition: DescribeInstancesResult.h:76
Aws::GameLift::Model::DescribeInstancesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeInstancesResult.h:84
Aws::GameLift::Model::DescribeInstancesResult::AddInstances
DescribeInstancesResult & AddInstances(const Instance &value)
Definition: DescribeInstancesResult.h:71
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::DescribeInstancesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeInstancesResult.h:98
Aws::GameLift::Model::DescribeInstancesResult::WithNextToken
DescribeInstancesResult & WithNextToken(Aws::String &&value)
Definition: DescribeInstancesResult.h:119
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::GameLift::Model::DescribeInstancesResult::SetInstances
void SetInstances(Aws::Vector< Instance > &&value)
Definition: DescribeInstancesResult.h:56
Aws::GameLift::Model::DescribeInstancesResult::DescribeInstancesResult
DescribeInstancesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GameLift_EXPORTS.h
Aws::GameLift::Model::DescribeInstancesResult::WithInstances
DescribeInstancesResult & WithInstances(Aws::Vector< Instance > &&value)
Definition: DescribeInstancesResult.h:66
Aws::GameLift::Model::DescribeInstancesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeInstancesResult.h:91
Aws::GameLift::Model::DescribeInstancesResult::WithNextToken
DescribeInstancesResult & WithNextToken(const char *value)
Definition: DescribeInstancesResult.h:126
AWSString.h
Aws::GameLift::Model::DescribeInstancesResult::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeInstancesResult.h:105
Aws::GameLift::Model::DescribeInstancesResult
Definition: DescribeInstancesResult.h:36
Aws::GameLift::Model::DescribeInstancesResult::WithNextToken
DescribeInstancesResult & WithNextToken(const Aws::String &value)
Definition: DescribeInstancesResult.h:112
Instance.h
Aws::GameLift::Model::Instance
Definition: Instance.h:39
Aws::GameLift::Model::DescribeInstancesResult::DescribeInstancesResult
DescribeInstancesResult()
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::DescribeInstancesResult::operator=
DescribeInstancesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GameLift::Model::DescribeInstancesResult::WithInstances
DescribeInstancesResult & WithInstances(const Aws::Vector< Instance > &value)
Definition: DescribeInstancesResult.h:61
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::DescribeInstancesResult::SetInstances
void SetInstances(const Aws::Vector< Instance > &value)
Definition: DescribeInstancesResult.h:51
Aws::GameLift::Model::DescribeInstancesResult::GetInstances
const Aws::Vector< Instance > & GetInstances() const
Definition: DescribeInstancesResult.h:46