AWS SDK for C++  1.9.15
AWS SDK for C++
ListDatabasesResult.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 Athena
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Database>& GetDatabaseList() const{ return m_databaseList; }
41 
45  inline void SetDatabaseList(const Aws::Vector<Database>& value) { m_databaseList = value; }
46 
50  inline void SetDatabaseList(Aws::Vector<Database>&& value) { m_databaseList = std::move(value); }
51 
55  inline ListDatabasesResult& WithDatabaseList(const Aws::Vector<Database>& value) { SetDatabaseList(value); return *this;}
56 
60  inline ListDatabasesResult& WithDatabaseList(Aws::Vector<Database>&& value) { SetDatabaseList(std::move(value)); return *this;}
61 
65  inline ListDatabasesResult& AddDatabaseList(const Database& value) { m_databaseList.push_back(value); return *this; }
66 
70  inline ListDatabasesResult& AddDatabaseList(Database&& value) { m_databaseList.push_back(std::move(value)); return *this; }
71 
72 
78  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
79 
85  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
86 
92  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
93 
99  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
100 
106  inline ListDatabasesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 
113  inline ListDatabasesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
120  inline ListDatabasesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<Database> m_databaseList;
125 
126  Aws::String m_nextToken;
127  };
128 
129 } // namespace Model
130 } // namespace Athena
131 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Athena::Model::ListDatabasesResult::GetDatabaseList
const Aws::Vector< Database > & GetDatabaseList() const
Definition: ListDatabasesResult.h:40
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::ListDatabasesResult::SetDatabaseList
void SetDatabaseList(const Aws::Vector< Database > &value)
Definition: ListDatabasesResult.h:45
Aws::Athena::Model::ListDatabasesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListDatabasesResult.h:85
Aws::Athena::Model::ListDatabasesResult::WithNextToken
ListDatabasesResult & WithNextToken(const char *value)
Definition: ListDatabasesResult.h:120
Aws::Athena::Model::ListDatabasesResult::AddDatabaseList
ListDatabasesResult & AddDatabaseList(const Database &value)
Definition: ListDatabasesResult.h:65
Aws::Athena::Model::ListDatabasesResult::WithDatabaseList
ListDatabasesResult & WithDatabaseList(Aws::Vector< Database > &&value)
Definition: ListDatabasesResult.h:60
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Athena::Model::ListDatabasesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListDatabasesResult.h:92
AWSVector.h
Aws::Athena::Model::ListDatabasesResult::SetDatabaseList
void SetDatabaseList(Aws::Vector< Database > &&value)
Definition: ListDatabasesResult.h:50
Aws::Athena::Model::ListDatabasesResult::WithDatabaseList
ListDatabasesResult & WithDatabaseList(const Aws::Vector< Database > &value)
Definition: ListDatabasesResult.h:55
Aws::Athena::Model::ListDatabasesResult::operator=
ListDatabasesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Athena::Model::ListDatabasesResult::ListDatabasesResult
ListDatabasesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::Athena::Model::ListDatabasesResult::ListDatabasesResult
ListDatabasesResult()
Athena_EXPORTS.h
Database.h
Aws::Athena::Model::ListDatabasesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListDatabasesResult.h:78
Aws::Athena::Model::ListDatabasesResult
Definition: ListDatabasesResult.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::ListDatabasesResult::WithNextToken
ListDatabasesResult & WithNextToken(Aws::String &&value)
Definition: ListDatabasesResult.h:113
Aws::Athena::Model::ListDatabasesResult::AddDatabaseList
ListDatabasesResult & AddDatabaseList(Database &&value)
Definition: ListDatabasesResult.h:70
Aws::Athena::Model::ListDatabasesResult::WithNextToken
ListDatabasesResult & WithNextToken(const Aws::String &value)
Definition: ListDatabasesResult.h:106
Aws::Athena::Model::Database
Definition: Database.h:34
Aws::Athena::Model::ListDatabasesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListDatabasesResult.h:99