AWS SDK for C++  1.9.108
AWS SDK for C++
ListElasticsearchVersionsResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace ElasticsearchService
25 {
26 namespace Model
27 {
36  {
37  public:
41 
42 
43 
44  inline const Aws::Vector<Aws::String>& GetElasticsearchVersions() const{ return m_elasticsearchVersions; }
45 
46 
47  inline void SetElasticsearchVersions(const Aws::Vector<Aws::String>& value) { m_elasticsearchVersions = value; }
48 
49 
50  inline void SetElasticsearchVersions(Aws::Vector<Aws::String>&& value) { m_elasticsearchVersions = std::move(value); }
51 
52 
53  inline ListElasticsearchVersionsResult& WithElasticsearchVersions(const Aws::Vector<Aws::String>& value) { SetElasticsearchVersions(value); return *this;}
54 
55 
56  inline ListElasticsearchVersionsResult& WithElasticsearchVersions(Aws::Vector<Aws::String>&& value) { SetElasticsearchVersions(std::move(value)); return *this;}
57 
58 
59  inline ListElasticsearchVersionsResult& AddElasticsearchVersions(const Aws::String& value) { m_elasticsearchVersions.push_back(value); return *this; }
60 
61 
62  inline ListElasticsearchVersionsResult& AddElasticsearchVersions(Aws::String&& value) { m_elasticsearchVersions.push_back(std::move(value)); return *this; }
63 
64 
65  inline ListElasticsearchVersionsResult& AddElasticsearchVersions(const char* value) { m_elasticsearchVersions.push_back(value); return *this; }
66 
67 
68 
69  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
70 
71 
72  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
73 
74 
75  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
76 
77 
78  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
79 
80 
81  inline ListElasticsearchVersionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
82 
83 
84  inline ListElasticsearchVersionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
85 
86 
87  inline ListElasticsearchVersionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
88 
89  private:
90 
91  Aws::Vector<Aws::String> m_elasticsearchVersions;
92 
93  Aws::String m_nextToken;
94  };
95 
96 } // namespace Model
97 } // namespace ElasticsearchService
98 } // namespace Aws
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::AddElasticsearchVersions
ListElasticsearchVersionsResult & AddElasticsearchVersions(const Aws::String &value)
Definition: ListElasticsearchVersionsResult.h:59
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::ListElasticsearchVersionsResult
ListElasticsearchVersionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::operator=
ListElasticsearchVersionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListElasticsearchVersionsResult.h:78
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::WithNextToken
ListElasticsearchVersionsResult & WithNextToken(Aws::String &&value)
Definition: ListElasticsearchVersionsResult.h:84
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListElasticsearchVersionsResult.h:69
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult
Definition: ListElasticsearchVersionsResult.h:36
AWSVector.h
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::WithNextToken
ListElasticsearchVersionsResult & WithNextToken(const char *value)
Definition: ListElasticsearchVersionsResult.h:87
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::AddElasticsearchVersions
ListElasticsearchVersionsResult & AddElasticsearchVersions(const char *value)
Definition: ListElasticsearchVersionsResult.h:65
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::WithNextToken
ListElasticsearchVersionsResult & WithNextToken(const Aws::String &value)
Definition: ListElasticsearchVersionsResult.h:81
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::ListElasticsearchVersionsResult
ListElasticsearchVersionsResult()
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::WithElasticsearchVersions
ListElasticsearchVersionsResult & WithElasticsearchVersions(Aws::Vector< Aws::String > &&value)
Definition: ListElasticsearchVersionsResult.h:56
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::SetElasticsearchVersions
void SetElasticsearchVersions(Aws::Vector< Aws::String > &&value)
Definition: ListElasticsearchVersionsResult.h:50
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::SetElasticsearchVersions
void SetElasticsearchVersions(const Aws::Vector< Aws::String > &value)
Definition: ListElasticsearchVersionsResult.h:47
AWSString.h
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListElasticsearchVersionsResult.h:75
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::WithElasticsearchVersions
ListElasticsearchVersionsResult & WithElasticsearchVersions(const Aws::Vector< Aws::String > &value)
Definition: ListElasticsearchVersionsResult.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::AddElasticsearchVersions
ListElasticsearchVersionsResult & AddElasticsearchVersions(Aws::String &&value)
Definition: ListElasticsearchVersionsResult.h:62
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::GetElasticsearchVersions
const Aws::Vector< Aws::String > & GetElasticsearchVersions() const
Definition: ListElasticsearchVersionsResult.h:44
Aws::ElasticsearchService::Model::ListElasticsearchVersionsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListElasticsearchVersionsResult.h:72