AWS SDK for C++  1.9.97
AWS SDK for C++
GetUpgradeHistoryResult.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 {
36  {
37  public:
41 
42 
48  inline const Aws::Vector<UpgradeHistory>& GetUpgradeHistories() const{ return m_upgradeHistories; }
49 
55  inline void SetUpgradeHistories(const Aws::Vector<UpgradeHistory>& value) { m_upgradeHistories = value; }
56 
62  inline void SetUpgradeHistories(Aws::Vector<UpgradeHistory>&& value) { m_upgradeHistories = std::move(value); }
63 
69  inline GetUpgradeHistoryResult& WithUpgradeHistories(const Aws::Vector<UpgradeHistory>& value) { SetUpgradeHistories(value); return *this;}
70 
76  inline GetUpgradeHistoryResult& WithUpgradeHistories(Aws::Vector<UpgradeHistory>&& value) { SetUpgradeHistories(std::move(value)); return *this;}
77 
83  inline GetUpgradeHistoryResult& AddUpgradeHistories(const UpgradeHistory& value) { m_upgradeHistories.push_back(value); return *this; }
84 
90  inline GetUpgradeHistoryResult& AddUpgradeHistories(UpgradeHistory&& value) { m_upgradeHistories.push_back(std::move(value)); return *this; }
91 
92 
97  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
98 
103  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
104 
109  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
110 
115  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
116 
121  inline GetUpgradeHistoryResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
122 
127  inline GetUpgradeHistoryResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
128 
133  inline GetUpgradeHistoryResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
134 
135  private:
136 
137  Aws::Vector<UpgradeHistory> m_upgradeHistories;
138 
139  Aws::String m_nextToken;
140  };
141 
142 } // namespace Model
143 } // namespace ElasticsearchService
144 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::AddUpgradeHistories
GetUpgradeHistoryResult & AddUpgradeHistories(UpgradeHistory &&value)
Definition: GetUpgradeHistoryResult.h:90
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetUpgradeHistoryResult.h:97
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetUpgradeHistoryResult.h:109
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::GetUpgradeHistoryResult
GetUpgradeHistoryResult()
Aws::ElasticsearchService::Model::UpgradeHistory
Definition: UpgradeHistory.h:37
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::SetNextToken
void SetNextToken(const char *value)
Definition: GetUpgradeHistoryResult.h:115
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::WithUpgradeHistories
GetUpgradeHistoryResult & WithUpgradeHistories(const Aws::Vector< UpgradeHistory > &value)
Definition: GetUpgradeHistoryResult.h:69
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::WithNextToken
GetUpgradeHistoryResult & WithNextToken(Aws::String &&value)
Definition: GetUpgradeHistoryResult.h:127
AWSVector.h
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult
Definition: GetUpgradeHistoryResult.h:36
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::operator=
GetUpgradeHistoryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::GetUpgradeHistoryResult
GetUpgradeHistoryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::AddUpgradeHistories
GetUpgradeHistoryResult & AddUpgradeHistories(const UpgradeHistory &value)
Definition: GetUpgradeHistoryResult.h:83
AWSString.h
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::WithNextToken
GetUpgradeHistoryResult & WithNextToken(const char *value)
Definition: GetUpgradeHistoryResult.h:133
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::SetUpgradeHistories
void SetUpgradeHistories(const Aws::Vector< UpgradeHistory > &value)
Definition: GetUpgradeHistoryResult.h:55
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::WithUpgradeHistories
GetUpgradeHistoryResult & WithUpgradeHistories(Aws::Vector< UpgradeHistory > &&value)
Definition: GetUpgradeHistoryResult.h:76
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetUpgradeHistoryResult.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::WithNextToken
GetUpgradeHistoryResult & WithNextToken(const Aws::String &value)
Definition: GetUpgradeHistoryResult.h:121
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::SetUpgradeHistories
void SetUpgradeHistories(Aws::Vector< UpgradeHistory > &&value)
Definition: GetUpgradeHistoryResult.h:62
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::GetUpgradeHistoryResult::GetUpgradeHistories
const Aws::Vector< UpgradeHistory > & GetUpgradeHistories() const
Definition: GetUpgradeHistoryResult.h:48
UpgradeHistory.h