AWS SDK for C++  1.9.107
AWS SDK for C++
ListPreparedStatementsResult.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<PreparedStatementSummary>& GetPreparedStatements() const{ return m_preparedStatements; }
41 
45  inline void SetPreparedStatements(const Aws::Vector<PreparedStatementSummary>& value) { m_preparedStatements = value; }
46 
50  inline void SetPreparedStatements(Aws::Vector<PreparedStatementSummary>&& value) { m_preparedStatements = std::move(value); }
51 
55  inline ListPreparedStatementsResult& WithPreparedStatements(const Aws::Vector<PreparedStatementSummary>& value) { SetPreparedStatements(value); return *this;}
56 
60  inline ListPreparedStatementsResult& WithPreparedStatements(Aws::Vector<PreparedStatementSummary>&& value) { SetPreparedStatements(std::move(value)); return *this;}
61 
65  inline ListPreparedStatementsResult& AddPreparedStatements(const PreparedStatementSummary& value) { m_preparedStatements.push_back(value); return *this; }
66 
70  inline ListPreparedStatementsResult& AddPreparedStatements(PreparedStatementSummary&& value) { m_preparedStatements.push_back(std::move(value)); return *this; }
71 
72 
79  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
80 
87  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
88 
95  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
96 
103  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
104 
111  inline ListPreparedStatementsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
112 
119  inline ListPreparedStatementsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
120 
127  inline ListPreparedStatementsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
128 
129  private:
130 
131  Aws::Vector<PreparedStatementSummary> m_preparedStatements;
132 
133  Aws::String m_nextToken;
134  };
135 
136 } // namespace Model
137 } // namespace Athena
138 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Athena::Model::ListPreparedStatementsResult::GetPreparedStatements
const Aws::Vector< PreparedStatementSummary > & GetPreparedStatements() const
Definition: ListPreparedStatementsResult.h:40
Aws::Athena::Model::ListPreparedStatementsResult::WithNextToken
ListPreparedStatementsResult & WithNextToken(Aws::String &&value)
Definition: ListPreparedStatementsResult.h:119
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Athena::Model::ListPreparedStatementsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListPreparedStatementsResult.h:103
AWSVector.h
Aws::Athena::Model::ListPreparedStatementsResult::ListPreparedStatementsResult
ListPreparedStatementsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Athena::Model::ListPreparedStatementsResult::WithPreparedStatements
ListPreparedStatementsResult & WithPreparedStatements(Aws::Vector< PreparedStatementSummary > &&value)
Definition: ListPreparedStatementsResult.h:60
Aws::Athena::Model::ListPreparedStatementsResult::AddPreparedStatements
ListPreparedStatementsResult & AddPreparedStatements(PreparedStatementSummary &&value)
Definition: ListPreparedStatementsResult.h:70
Aws::Athena::Model::ListPreparedStatementsResult::operator=
ListPreparedStatementsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Athena::Model::ListPreparedStatementsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPreparedStatementsResult.h:95
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::ListPreparedStatementsResult::WithNextToken
ListPreparedStatementsResult & WithNextToken(const Aws::String &value)
Definition: ListPreparedStatementsResult.h:111
Aws::Athena::Model::ListPreparedStatementsResult::SetPreparedStatements
void SetPreparedStatements(Aws::Vector< PreparedStatementSummary > &&value)
Definition: ListPreparedStatementsResult.h:50
Aws::Athena::Model::ListPreparedStatementsResult::WithPreparedStatements
ListPreparedStatementsResult & WithPreparedStatements(const Aws::Vector< PreparedStatementSummary > &value)
Definition: ListPreparedStatementsResult.h:55
Aws::Athena::Model::ListPreparedStatementsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPreparedStatementsResult.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::ListPreparedStatementsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPreparedStatementsResult.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::PreparedStatementSummary
Definition: PreparedStatementSummary.h:34
Aws::Athena::Model::ListPreparedStatementsResult::ListPreparedStatementsResult
ListPreparedStatementsResult()
PreparedStatementSummary.h
Aws::Athena::Model::ListPreparedStatementsResult::WithNextToken
ListPreparedStatementsResult & WithNextToken(const char *value)
Definition: ListPreparedStatementsResult.h:127
Aws::Athena::Model::ListPreparedStatementsResult::AddPreparedStatements
ListPreparedStatementsResult & AddPreparedStatements(const PreparedStatementSummary &value)
Definition: ListPreparedStatementsResult.h:65
Aws::Athena::Model::ListPreparedStatementsResult
Definition: ListPreparedStatementsResult.h:30
Aws::Athena::Model::ListPreparedStatementsResult::SetPreparedStatements
void SetPreparedStatements(const Aws::Vector< PreparedStatementSummary > &value)
Definition: ListPreparedStatementsResult.h:45