AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreatePreparedStatementRequest.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/athena/AthenaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Athena
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_ATHENA_API CreatePreparedStatementRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreatePreparedStatement"; }
31
32 AWS_ATHENA_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetStatementName() const { return m_statementName; }
42 inline bool StatementNameHasBeenSet() const { return m_statementNameHasBeenSet; }
43 template<typename StatementNameT = Aws::String>
44 void SetStatementName(StatementNameT&& value) { m_statementNameHasBeenSet = true; m_statementName = std::forward<StatementNameT>(value); }
45 template<typename StatementNameT = Aws::String>
46 CreatePreparedStatementRequest& WithStatementName(StatementNameT&& value) { SetStatementName(std::forward<StatementNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetWorkGroup() const { return m_workGroup; }
54 inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
55 template<typename WorkGroupT = Aws::String>
56 void SetWorkGroup(WorkGroupT&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::forward<WorkGroupT>(value); }
57 template<typename WorkGroupT = Aws::String>
58 CreatePreparedStatementRequest& WithWorkGroup(WorkGroupT&& value) { SetWorkGroup(std::forward<WorkGroupT>(value)); return *this;}
60
62
65 inline const Aws::String& GetQueryStatement() const { return m_queryStatement; }
66 inline bool QueryStatementHasBeenSet() const { return m_queryStatementHasBeenSet; }
67 template<typename QueryStatementT = Aws::String>
68 void SetQueryStatement(QueryStatementT&& value) { m_queryStatementHasBeenSet = true; m_queryStatement = std::forward<QueryStatementT>(value); }
69 template<typename QueryStatementT = Aws::String>
70 CreatePreparedStatementRequest& WithQueryStatement(QueryStatementT&& value) { SetQueryStatement(std::forward<QueryStatementT>(value)); return *this;}
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 CreatePreparedStatementRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
84 private:
85
86 Aws::String m_statementName;
87 bool m_statementNameHasBeenSet = false;
88
89 Aws::String m_workGroup;
90 bool m_workGroupHasBeenSet = false;
91
92 Aws::String m_queryStatement;
93 bool m_queryStatementHasBeenSet = false;
94
95 Aws::String m_description;
96 bool m_descriptionHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace Athena
101} // 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