AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchGetPreparedStatementRequest.h
1
6#pragma once
7#include <aws/athena/AthenaRequest.h>
8#include <aws/athena/Athena_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Athena {
16namespace Model {
17
21 public:
22 AWS_ATHENA_API BatchGetPreparedStatementRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "BatchGetPreparedStatement"; }
29
30 AWS_ATHENA_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::Vector<Aws::String>& GetPreparedStatementNames() const { return m_preparedStatementNames; }
39 inline bool PreparedStatementNamesHasBeenSet() const { return m_preparedStatementNamesHasBeenSet; }
40 template <typename PreparedStatementNamesT = Aws::Vector<Aws::String>>
41 void SetPreparedStatementNames(PreparedStatementNamesT&& value) {
42 m_preparedStatementNamesHasBeenSet = true;
43 m_preparedStatementNames = std::forward<PreparedStatementNamesT>(value);
44 }
45 template <typename PreparedStatementNamesT = Aws::Vector<Aws::String>>
47 SetPreparedStatementNames(std::forward<PreparedStatementNamesT>(value));
48 return *this;
49 }
50 template <typename PreparedStatementNamesT = Aws::String>
52 m_preparedStatementNamesHasBeenSet = true;
53 m_preparedStatementNames.emplace_back(std::forward<PreparedStatementNamesT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetWorkGroup() const { return m_workGroup; }
63 inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
64 template <typename WorkGroupT = Aws::String>
65 void SetWorkGroup(WorkGroupT&& value) {
66 m_workGroupHasBeenSet = true;
67 m_workGroup = std::forward<WorkGroupT>(value);
68 }
69 template <typename WorkGroupT = Aws::String>
71 SetWorkGroup(std::forward<WorkGroupT>(value));
72 return *this;
73 }
75 private:
76 Aws::Vector<Aws::String> m_preparedStatementNames;
77
78 Aws::String m_workGroup;
79 bool m_preparedStatementNamesHasBeenSet = false;
80 bool m_workGroupHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace Athena
85} // namespace Aws
BatchGetPreparedStatementRequest & WithPreparedStatementNames(PreparedStatementNamesT &&value)
BatchGetPreparedStatementRequest & AddPreparedStatementNames(PreparedStatementNamesT &&value)
const Aws::Vector< Aws::String > & GetPreparedStatementNames() const
AWS_ATHENA_API Aws::String SerializePayload() const override
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchGetPreparedStatementRequest & WithWorkGroup(WorkGroupT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector