AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BatchGetPreparedStatementResult.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/athena/model/PreparedStatement.h>
11#include <aws/athena/model/UnprocessedPreparedStatementName.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Athena
27{
28namespace Model
29{
31 {
32 public:
33 AWS_ATHENA_API BatchGetPreparedStatementResult() = default;
36
37
39
42 inline const Aws::Vector<PreparedStatement>& GetPreparedStatements() const { return m_preparedStatements; }
43 template<typename PreparedStatementsT = Aws::Vector<PreparedStatement>>
44 void SetPreparedStatements(PreparedStatementsT&& value) { m_preparedStatementsHasBeenSet = true; m_preparedStatements = std::forward<PreparedStatementsT>(value); }
45 template<typename PreparedStatementsT = Aws::Vector<PreparedStatement>>
46 BatchGetPreparedStatementResult& WithPreparedStatements(PreparedStatementsT&& value) { SetPreparedStatements(std::forward<PreparedStatementsT>(value)); return *this;}
47 template<typename PreparedStatementsT = PreparedStatement>
48 BatchGetPreparedStatementResult& AddPreparedStatements(PreparedStatementsT&& value) { m_preparedStatementsHasBeenSet = true; m_preparedStatements.emplace_back(std::forward<PreparedStatementsT>(value)); return *this; }
50
52
56 inline const Aws::Vector<UnprocessedPreparedStatementName>& GetUnprocessedPreparedStatementNames() const { return m_unprocessedPreparedStatementNames; }
57 template<typename UnprocessedPreparedStatementNamesT = Aws::Vector<UnprocessedPreparedStatementName>>
58 void SetUnprocessedPreparedStatementNames(UnprocessedPreparedStatementNamesT&& value) { m_unprocessedPreparedStatementNamesHasBeenSet = true; m_unprocessedPreparedStatementNames = std::forward<UnprocessedPreparedStatementNamesT>(value); }
59 template<typename UnprocessedPreparedStatementNamesT = Aws::Vector<UnprocessedPreparedStatementName>>
60 BatchGetPreparedStatementResult& WithUnprocessedPreparedStatementNames(UnprocessedPreparedStatementNamesT&& value) { SetUnprocessedPreparedStatementNames(std::forward<UnprocessedPreparedStatementNamesT>(value)); return *this;}
61 template<typename UnprocessedPreparedStatementNamesT = UnprocessedPreparedStatementName>
62 BatchGetPreparedStatementResult& AddUnprocessedPreparedStatementNames(UnprocessedPreparedStatementNamesT&& value) { m_unprocessedPreparedStatementNamesHasBeenSet = true; m_unprocessedPreparedStatementNames.emplace_back(std::forward<UnprocessedPreparedStatementNamesT>(value)); return *this; }
64
66
67 inline const Aws::String& GetRequestId() const { return m_requestId; }
68 template<typename RequestIdT = Aws::String>
69 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
70 template<typename RequestIdT = Aws::String>
71 BatchGetPreparedStatementResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
73 private:
74
75 Aws::Vector<PreparedStatement> m_preparedStatements;
76 bool m_preparedStatementsHasBeenSet = false;
77
78 Aws::Vector<UnprocessedPreparedStatementName> m_unprocessedPreparedStatementNames;
79 bool m_unprocessedPreparedStatementNamesHasBeenSet = false;
80
81 Aws::String m_requestId;
82 bool m_requestIdHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace Athena
87} // namespace Aws
BatchGetPreparedStatementResult & AddPreparedStatements(PreparedStatementsT &&value)
void SetUnprocessedPreparedStatementNames(UnprocessedPreparedStatementNamesT &&value)
BatchGetPreparedStatementResult & WithRequestId(RequestIdT &&value)
AWS_ATHENA_API BatchGetPreparedStatementResult()=default
BatchGetPreparedStatementResult & AddUnprocessedPreparedStatementNames(UnprocessedPreparedStatementNamesT &&value)
AWS_ATHENA_API BatchGetPreparedStatementResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< UnprocessedPreparedStatementName > & GetUnprocessedPreparedStatementNames() const
AWS_ATHENA_API BatchGetPreparedStatementResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< PreparedStatement > & GetPreparedStatements() const
BatchGetPreparedStatementResult & WithPreparedStatements(PreparedStatementsT &&value)
BatchGetPreparedStatementResult & WithUnprocessedPreparedStatementNames(UnprocessedPreparedStatementNamesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue