AWS SDK for C++  1.9.102
AWS SDK for C++
GetRelationalDatabasesResult.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 Lightsail
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<RelationalDatabase>& GetRelationalDatabases() const{ return m_relationalDatabases; }
41 
45  inline void SetRelationalDatabases(const Aws::Vector<RelationalDatabase>& value) { m_relationalDatabases = value; }
46 
50  inline void SetRelationalDatabases(Aws::Vector<RelationalDatabase>&& value) { m_relationalDatabases = std::move(value); }
51 
55  inline GetRelationalDatabasesResult& WithRelationalDatabases(const Aws::Vector<RelationalDatabase>& value) { SetRelationalDatabases(value); return *this;}
56 
60  inline GetRelationalDatabasesResult& WithRelationalDatabases(Aws::Vector<RelationalDatabase>&& value) { SetRelationalDatabases(std::move(value)); return *this;}
61 
65  inline GetRelationalDatabasesResult& AddRelationalDatabases(const RelationalDatabase& value) { m_relationalDatabases.push_back(value); return *this; }
66 
70  inline GetRelationalDatabasesResult& AddRelationalDatabases(RelationalDatabase&& value) { m_relationalDatabases.push_back(std::move(value)); return *this; }
71 
72 
80  inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; }
81 
89  inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; }
90 
98  inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); }
99 
107  inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); }
108 
116  inline GetRelationalDatabasesResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;}
117 
125  inline GetRelationalDatabasesResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;}
126 
134  inline GetRelationalDatabasesResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;}
135 
136  private:
137 
138  Aws::Vector<RelationalDatabase> m_relationalDatabases;
139 
140  Aws::String m_nextPageToken;
141  };
142 
143 } // namespace Model
144 } // namespace Lightsail
145 } // namespace Aws
Aws::Lightsail::Model::GetRelationalDatabasesResult::AddRelationalDatabases
GetRelationalDatabasesResult & AddRelationalDatabases(RelationalDatabase &&value)
Definition: GetRelationalDatabasesResult.h:70
Aws::Lightsail::Model::GetRelationalDatabasesResult
Definition: GetRelationalDatabasesResult.h:30
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Lightsail::Model::GetRelationalDatabasesResult::SetRelationalDatabases
void SetRelationalDatabases(Aws::Vector< RelationalDatabase > &&value)
Definition: GetRelationalDatabasesResult.h:50
Aws::Lightsail::Model::GetRelationalDatabasesResult::GetRelationalDatabasesResult
GetRelationalDatabasesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::GetRelationalDatabasesResult::SetNextPageToken
void SetNextPageToken(Aws::String &&value)
Definition: GetRelationalDatabasesResult.h:98
Aws::Lightsail::Model::GetRelationalDatabasesResult::GetRelationalDatabases
const Aws::Vector< RelationalDatabase > & GetRelationalDatabases() const
Definition: GetRelationalDatabasesResult.h:40
Aws::Lightsail::Model::GetRelationalDatabasesResult::WithRelationalDatabases
GetRelationalDatabasesResult & WithRelationalDatabases(Aws::Vector< RelationalDatabase > &&value)
Definition: GetRelationalDatabasesResult.h:60
Aws::Lightsail::Model::GetRelationalDatabasesResult::SetNextPageToken
void SetNextPageToken(const char *value)
Definition: GetRelationalDatabasesResult.h:107
AWSString.h
Aws::Lightsail::Model::GetRelationalDatabasesResult::WithRelationalDatabases
GetRelationalDatabasesResult & WithRelationalDatabases(const Aws::Vector< RelationalDatabase > &value)
Definition: GetRelationalDatabasesResult.h:55
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetRelationalDatabasesResult::GetRelationalDatabasesResult
GetRelationalDatabasesResult()
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetRelationalDatabasesResult::GetNextPageToken
const Aws::String & GetNextPageToken() const
Definition: GetRelationalDatabasesResult.h:80
RelationalDatabase.h
Aws::Lightsail::Model::GetRelationalDatabasesResult::SetNextPageToken
void SetNextPageToken(const Aws::String &value)
Definition: GetRelationalDatabasesResult.h:89
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::GetRelationalDatabasesResult::operator=
GetRelationalDatabasesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::GetRelationalDatabasesResult::WithNextPageToken
GetRelationalDatabasesResult & WithNextPageToken(const Aws::String &value)
Definition: GetRelationalDatabasesResult.h:116
Aws::Lightsail::Model::GetRelationalDatabasesResult::SetRelationalDatabases
void SetRelationalDatabases(const Aws::Vector< RelationalDatabase > &value)
Definition: GetRelationalDatabasesResult.h:45
Aws::Lightsail::Model::RelationalDatabase
Definition: RelationalDatabase.h:41
Aws::Lightsail::Model::GetRelationalDatabasesResult::WithNextPageToken
GetRelationalDatabasesResult & WithNextPageToken(const char *value)
Definition: GetRelationalDatabasesResult.h:134
Aws::Lightsail::Model::GetRelationalDatabasesResult::AddRelationalDatabases
GetRelationalDatabasesResult & AddRelationalDatabases(const RelationalDatabase &value)
Definition: GetRelationalDatabasesResult.h:65
Aws::Lightsail::Model::GetRelationalDatabasesResult::WithNextPageToken
GetRelationalDatabasesResult & WithNextPageToken(Aws::String &&value)
Definition: GetRelationalDatabasesResult.h:125