AWS SDK for C++  1.9.104
AWS SDK for C++
DescribeReservedElasticsearchInstancesResult.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 ElasticsearchService
26 {
27 namespace Model
28 {
37  {
38  public:
42 
43 
47  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
48 
52  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
53 
57  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
58 
62  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
63 
67  inline DescribeReservedElasticsearchInstancesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
68 
72  inline DescribeReservedElasticsearchInstancesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
73 
77  inline DescribeReservedElasticsearchInstancesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
78 
79 
83  inline const Aws::Vector<ReservedElasticsearchInstance>& GetReservedElasticsearchInstances() const{ return m_reservedElasticsearchInstances; }
84 
88  inline void SetReservedElasticsearchInstances(const Aws::Vector<ReservedElasticsearchInstance>& value) { m_reservedElasticsearchInstances = value; }
89 
93  inline void SetReservedElasticsearchInstances(Aws::Vector<ReservedElasticsearchInstance>&& value) { m_reservedElasticsearchInstances = std::move(value); }
94 
98  inline DescribeReservedElasticsearchInstancesResult& WithReservedElasticsearchInstances(const Aws::Vector<ReservedElasticsearchInstance>& value) { SetReservedElasticsearchInstances(value); return *this;}
99 
103  inline DescribeReservedElasticsearchInstancesResult& WithReservedElasticsearchInstances(Aws::Vector<ReservedElasticsearchInstance>&& value) { SetReservedElasticsearchInstances(std::move(value)); return *this;}
104 
108  inline DescribeReservedElasticsearchInstancesResult& AddReservedElasticsearchInstances(const ReservedElasticsearchInstance& value) { m_reservedElasticsearchInstances.push_back(value); return *this; }
109 
113  inline DescribeReservedElasticsearchInstancesResult& AddReservedElasticsearchInstances(ReservedElasticsearchInstance&& value) { m_reservedElasticsearchInstances.push_back(std::move(value)); return *this; }
114 
115  private:
116 
117  Aws::String m_nextToken;
118 
119  Aws::Vector<ReservedElasticsearchInstance> m_reservedElasticsearchInstances;
120  };
121 
122 } // namespace Model
123 } // namespace ElasticsearchService
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::WithNextToken
DescribeReservedElasticsearchInstancesResult & WithNextToken(const Aws::String &value)
Definition: DescribeReservedElasticsearchInstancesResult.h:67
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::WithNextToken
DescribeReservedElasticsearchInstancesResult & WithNextToken(const char *value)
Definition: DescribeReservedElasticsearchInstancesResult.h:77
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::GetReservedElasticsearchInstances
const Aws::Vector< ReservedElasticsearchInstance > & GetReservedElasticsearchInstances() const
Definition: DescribeReservedElasticsearchInstancesResult.h:83
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::SetReservedElasticsearchInstances
void SetReservedElasticsearchInstances(const Aws::Vector< ReservedElasticsearchInstance > &value)
Definition: DescribeReservedElasticsearchInstancesResult.h:88
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeReservedElasticsearchInstancesResult.h:57
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::AddReservedElasticsearchInstances
DescribeReservedElasticsearchInstancesResult & AddReservedElasticsearchInstances(const ReservedElasticsearchInstance &value)
Definition: DescribeReservedElasticsearchInstancesResult.h:108
AWSVector.h
ReservedElasticsearchInstance.h
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult
Definition: DescribeReservedElasticsearchInstancesResult.h:37
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::AddReservedElasticsearchInstances
DescribeReservedElasticsearchInstancesResult & AddReservedElasticsearchInstances(ReservedElasticsearchInstance &&value)
Definition: DescribeReservedElasticsearchInstancesResult.h:113
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::operator=
DescribeReservedElasticsearchInstancesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::WithNextToken
DescribeReservedElasticsearchInstancesResult & WithNextToken(Aws::String &&value)
Definition: DescribeReservedElasticsearchInstancesResult.h:72
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeReservedElasticsearchInstancesResult.h:52
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::DescribeReservedElasticsearchInstancesResult
DescribeReservedElasticsearchInstancesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::ElasticsearchService::Model::ReservedElasticsearchInstance
Definition: ReservedElasticsearchInstance.h:37
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::SetReservedElasticsearchInstances
void SetReservedElasticsearchInstances(Aws::Vector< ReservedElasticsearchInstance > &&value)
Definition: DescribeReservedElasticsearchInstancesResult.h:93
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::WithReservedElasticsearchInstances
DescribeReservedElasticsearchInstancesResult & WithReservedElasticsearchInstances(const Aws::Vector< ReservedElasticsearchInstance > &value)
Definition: DescribeReservedElasticsearchInstancesResult.h:98
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeReservedElasticsearchInstancesResult.h:62
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeReservedElasticsearchInstancesResult.h:47
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::WithReservedElasticsearchInstances
DescribeReservedElasticsearchInstancesResult & WithReservedElasticsearchInstances(Aws::Vector< ReservedElasticsearchInstance > &&value)
Definition: DescribeReservedElasticsearchInstancesResult.h:103
Aws::ElasticsearchService::Model::DescribeReservedElasticsearchInstancesResult::DescribeReservedElasticsearchInstancesResult
DescribeReservedElasticsearchInstancesResult()