AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreatePreparedStatementRequest.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
11#include <utility>
12
13namespace Aws {
14namespace Athena {
15namespace Model {
16
20 public:
21 AWS_ATHENA_API CreatePreparedStatementRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreatePreparedStatement"; }
28
29 AWS_ATHENA_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetStatementName() const { return m_statementName; }
38 inline bool StatementNameHasBeenSet() const { return m_statementNameHasBeenSet; }
39 template <typename StatementNameT = Aws::String>
40 void SetStatementName(StatementNameT&& value) {
41 m_statementNameHasBeenSet = true;
42 m_statementName = std::forward<StatementNameT>(value);
43 }
44 template <typename StatementNameT = Aws::String>
46 SetStatementName(std::forward<StatementNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetWorkGroup() const { return m_workGroup; }
56 inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
57 template <typename WorkGroupT = Aws::String>
58 void SetWorkGroup(WorkGroupT&& value) {
59 m_workGroupHasBeenSet = true;
60 m_workGroup = std::forward<WorkGroupT>(value);
61 }
62 template <typename WorkGroupT = Aws::String>
64 SetWorkGroup(std::forward<WorkGroupT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetQueryStatement() const { return m_queryStatement; }
74 inline bool QueryStatementHasBeenSet() const { return m_queryStatementHasBeenSet; }
75 template <typename QueryStatementT = Aws::String>
76 void SetQueryStatement(QueryStatementT&& value) {
77 m_queryStatementHasBeenSet = true;
78 m_queryStatement = std::forward<QueryStatementT>(value);
79 }
80 template <typename QueryStatementT = Aws::String>
82 SetQueryStatement(std::forward<QueryStatementT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_statementName;
106
107 Aws::String m_workGroup;
108
109 Aws::String m_queryStatement;
110
111 Aws::String m_description;
112 bool m_statementNameHasBeenSet = false;
113 bool m_workGroupHasBeenSet = false;
114 bool m_queryStatementHasBeenSet = false;
115 bool m_descriptionHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Athena
120} // namespace Aws
AWS_ATHENA_API Aws::String SerializePayload() const override
CreatePreparedStatementRequest & WithQueryStatement(QueryStatementT &&value)
CreatePreparedStatementRequest & WithDescription(DescriptionT &&value)
CreatePreparedStatementRequest & WithStatementName(StatementNameT &&value)
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ATHENA_API CreatePreparedStatementRequest()=default
CreatePreparedStatementRequest & WithWorkGroup(WorkGroupT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String