AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchGetPreparedStatementResult.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/athena/model/PreparedStatement.h>
9#include <aws/athena/model/UnprocessedPreparedStatementName.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Athena {
25namespace Model {
27 public:
28 AWS_ATHENA_API BatchGetPreparedStatementResult() = default;
31
33
36 inline const Aws::Vector<PreparedStatement>& GetPreparedStatements() const { return m_preparedStatements; }
37 template <typename PreparedStatementsT = Aws::Vector<PreparedStatement>>
38 void SetPreparedStatements(PreparedStatementsT&& value) {
39 m_preparedStatementsHasBeenSet = true;
40 m_preparedStatements = std::forward<PreparedStatementsT>(value);
41 }
42 template <typename PreparedStatementsT = Aws::Vector<PreparedStatement>>
44 SetPreparedStatements(std::forward<PreparedStatementsT>(value));
45 return *this;
46 }
47 template <typename PreparedStatementsT = PreparedStatement>
49 m_preparedStatementsHasBeenSet = true;
50 m_preparedStatements.emplace_back(std::forward<PreparedStatementsT>(value));
51 return *this;
52 }
54
56
61 return m_unprocessedPreparedStatementNames;
62 }
63 template <typename UnprocessedPreparedStatementNamesT = Aws::Vector<UnprocessedPreparedStatementName>>
64 void SetUnprocessedPreparedStatementNames(UnprocessedPreparedStatementNamesT&& value) {
65 m_unprocessedPreparedStatementNamesHasBeenSet = true;
66 m_unprocessedPreparedStatementNames = std::forward<UnprocessedPreparedStatementNamesT>(value);
67 }
68 template <typename UnprocessedPreparedStatementNamesT = Aws::Vector<UnprocessedPreparedStatementName>>
69 BatchGetPreparedStatementResult& WithUnprocessedPreparedStatementNames(UnprocessedPreparedStatementNamesT&& value) {
70 SetUnprocessedPreparedStatementNames(std::forward<UnprocessedPreparedStatementNamesT>(value));
71 return *this;
72 }
73 template <typename UnprocessedPreparedStatementNamesT = UnprocessedPreparedStatementName>
74 BatchGetPreparedStatementResult& AddUnprocessedPreparedStatementNames(UnprocessedPreparedStatementNamesT&& value) {
75 m_unprocessedPreparedStatementNamesHasBeenSet = true;
76 m_unprocessedPreparedStatementNames.emplace_back(std::forward<UnprocessedPreparedStatementNamesT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 private:
96 Aws::Vector<PreparedStatement> m_preparedStatements;
97
98 Aws::Vector<UnprocessedPreparedStatementName> m_unprocessedPreparedStatementNames;
99
100 Aws::String m_requestId;
101 bool m_preparedStatementsHasBeenSet = false;
102 bool m_unprocessedPreparedStatementNamesHasBeenSet = false;
103 bool m_requestIdHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Athena
108} // 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