AWS SDK for C++  1.9.156
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 SSOAdmin
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<InstanceMetadata>& GetInstances() const{ return m_instances; }
41 
45  inline void SetInstances(const Aws::Vector<InstanceMetadata>& value) { m_instances = value; }
46 
50  inline void SetInstances(Aws::Vector<InstanceMetadata>&& value) { m_instances = std::move(value); }
51 
55  inline ListInstancesResult& WithInstances(const Aws::Vector<InstanceMetadata>& value) { SetInstances(value); return *this;}
56 
60  inline ListInstancesResult& WithInstances(Aws::Vector<InstanceMetadata>&& value) { SetInstances(std::move(value)); return *this;}
61 
65  inline ListInstancesResult& AddInstances(const InstanceMetadata& value) { m_instances.push_back(value); return *this; }
66 
70  inline ListInstancesResult& AddInstances(InstanceMetadata&& value) { m_instances.push_back(std::move(value)); return *this; }
71 
72 
77  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
78 
83  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
84 
89  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
90 
95  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
96 
101  inline ListInstancesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
107  inline ListInstancesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 
113  inline ListInstancesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<InstanceMetadata> m_instances;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace SSOAdmin
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SSOAdmin::Model::ListInstancesResult::GetInstances
const Aws::Vector< InstanceMetadata > & GetInstances() const
Definition: ListInstancesResult.h:40
Aws::SSOAdmin::Model::ListInstancesResult::AddInstances
ListInstancesResult & AddInstances(const InstanceMetadata &value)
Definition: ListInstancesResult.h:65
Aws::SSOAdmin::Model::ListInstancesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListInstancesResult.h:89
Aws::SSOAdmin::Model::ListInstancesResult::WithInstances
ListInstancesResult & WithInstances(const Aws::Vector< InstanceMetadata > &value)
Definition: ListInstancesResult.h:55
Aws::SSOAdmin::Model::ListInstancesResult::WithInstances
ListInstancesResult & WithInstances(Aws::Vector< InstanceMetadata > &&value)
Definition: ListInstancesResult.h:60
Aws::SSOAdmin::Model::ListInstancesResult::WithNextToken
ListInstancesResult & WithNextToken(const char *value)
Definition: ListInstancesResult.h:113
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SSOAdmin::Model::ListInstancesResult
Definition: ListInstancesResult.h:30
AWS_SSOADMIN_API
#define AWS_SSOADMIN_API
Definition: SSOAdmin_EXPORTS.h:28
AWSVector.h
Aws::SSOAdmin::Model::ListInstancesResult::ListInstancesResult
ListInstancesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::SSOAdmin::Model::ListInstancesResult::WithNextToken
ListInstancesResult & WithNextToken(const Aws::String &value)
Definition: ListInstancesResult.h:101
SSOAdmin_EXPORTS.h
Aws::SSOAdmin::Model::ListInstancesResult::WithNextToken
ListInstancesResult & WithNextToken(Aws::String &&value)
Definition: ListInstancesResult.h:107
Aws::SSOAdmin::Model::ListInstancesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListInstancesResult.h:77
InstanceMetadata.h
AWSString.h
Aws::SSOAdmin::Model::ListInstancesResult::AddInstances
ListInstancesResult & AddInstances(InstanceMetadata &&value)
Definition: ListInstancesResult.h:70
Aws::SSOAdmin::Model::ListInstancesResult::operator=
ListInstancesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SSOAdmin::Model::InstanceMetadata
Definition: InstanceMetadata.h:32
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSOAdmin::Model::ListInstancesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListInstancesResult.h:83
Aws::SSOAdmin::Model::ListInstancesResult::SetInstances
void SetInstances(Aws::Vector< InstanceMetadata > &&value)
Definition: ListInstancesResult.h:50
Aws::SSOAdmin::Model::ListInstancesResult::SetInstances
void SetInstances(const Aws::Vector< InstanceMetadata > &value)
Definition: ListInstancesResult.h:45
Aws::SSOAdmin::Model::ListInstancesResult::ListInstancesResult
ListInstancesResult()
Aws::SSOAdmin::Model::ListInstancesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListInstancesResult.h:95