AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Athena {
26namespace Model {
28 public:
29 AWS_ATHENA_API BatchGetPreparedStatementResult() = default;
32
34
37 inline const Aws::Vector<PreparedStatement>& GetPreparedStatements() const { return m_preparedStatements; }
38 template <typename PreparedStatementsT = Aws::Vector<PreparedStatement>>
39 void SetPreparedStatements(PreparedStatementsT&& value) {
40 m_preparedStatementsHasBeenSet = true;
41 m_preparedStatements = std::forward<PreparedStatementsT>(value);
42 }
43 template <typename PreparedStatementsT = Aws::Vector<PreparedStatement>>
45 SetPreparedStatements(std::forward<PreparedStatementsT>(value));
46 return *this;
47 }
48 template <typename PreparedStatementsT = PreparedStatement>
50 m_preparedStatementsHasBeenSet = true;
51 m_preparedStatements.emplace_back(std::forward<PreparedStatementsT>(value));
52 return *this;
53 }
55
57
62 return m_unprocessedPreparedStatementNames;
63 }
64 template <typename UnprocessedPreparedStatementNamesT = Aws::Vector<UnprocessedPreparedStatementName>>
65 void SetUnprocessedPreparedStatementNames(UnprocessedPreparedStatementNamesT&& value) {
66 m_unprocessedPreparedStatementNamesHasBeenSet = true;
67 m_unprocessedPreparedStatementNames = std::forward<UnprocessedPreparedStatementNamesT>(value);
68 }
69 template <typename UnprocessedPreparedStatementNamesT = Aws::Vector<UnprocessedPreparedStatementName>>
70 BatchGetPreparedStatementResult& WithUnprocessedPreparedStatementNames(UnprocessedPreparedStatementNamesT&& value) {
71 SetUnprocessedPreparedStatementNames(std::forward<UnprocessedPreparedStatementNamesT>(value));
72 return *this;
73 }
74 template <typename UnprocessedPreparedStatementNamesT = UnprocessedPreparedStatementName>
75 BatchGetPreparedStatementResult& AddUnprocessedPreparedStatementNames(UnprocessedPreparedStatementNamesT&& value) {
76 m_unprocessedPreparedStatementNamesHasBeenSet = true;
77 m_unprocessedPreparedStatementNames.emplace_back(std::forward<UnprocessedPreparedStatementNamesT>(value));
78 return *this;
79 }
81
83
84 inline const Aws::String& GetRequestId() const { return m_requestId; }
85 template <typename RequestIdT = Aws::String>
86 void SetRequestId(RequestIdT&& value) {
87 m_requestIdHasBeenSet = true;
88 m_requestId = std::forward<RequestIdT>(value);
89 }
90 template <typename RequestIdT = Aws::String>
92 SetRequestId(std::forward<RequestIdT>(value));
93 return *this;
94 }
96 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
97
98 private:
99 Aws::Vector<PreparedStatement> m_preparedStatements;
100
101 Aws::Vector<UnprocessedPreparedStatementName> m_unprocessedPreparedStatementNames;
102
103 Aws::String m_requestId;
104 Aws::Http::HttpResponseCode m_HttpResponseCode;
105 bool m_preparedStatementsHasBeenSet = false;
106 bool m_unprocessedPreparedStatementNamesHasBeenSet = false;
107 bool m_requestIdHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace Athena
112} // 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