AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetStatementName(const Aws::String& value) { m_statementNameHasBeenSet = true; m_statementName = value; }
44 inline void SetStatementName(Aws::String&& value) { m_statementNameHasBeenSet = true; m_statementName = std::move(value); }
45 inline void SetStatementName(const char* value) { m_statementNameHasBeenSet = true; m_statementName.assign(value); }
47 inline CreatePreparedStatementRequest& WithStatementName(Aws::String&& value) { SetStatementName(std::move(value)); return *this;}
48 inline CreatePreparedStatementRequest& WithStatementName(const char* value) { SetStatementName(value); return *this;}
50
52
55 inline const Aws::String& GetWorkGroup() const{ return m_workGroup; }
56 inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
57 inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; }
58 inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); }
59 inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); }
60 inline CreatePreparedStatementRequest& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;}
61 inline CreatePreparedStatementRequest& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;}
62 inline CreatePreparedStatementRequest& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;}
64
66
69 inline const Aws::String& GetQueryStatement() const{ return m_queryStatement; }
70 inline bool QueryStatementHasBeenSet() const { return m_queryStatementHasBeenSet; }
71 inline void SetQueryStatement(const Aws::String& value) { m_queryStatementHasBeenSet = true; m_queryStatement = value; }
72 inline void SetQueryStatement(Aws::String&& value) { m_queryStatementHasBeenSet = true; m_queryStatement = std::move(value); }
73 inline void SetQueryStatement(const char* value) { m_queryStatementHasBeenSet = true; m_queryStatement.assign(value); }
75 inline CreatePreparedStatementRequest& WithQueryStatement(Aws::String&& value) { SetQueryStatement(std::move(value)); return *this;}
76 inline CreatePreparedStatementRequest& WithQueryStatement(const char* value) { SetQueryStatement(value); return *this;}
78
80
83 inline const Aws::String& GetDescription() const{ return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
86 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
87 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
88 inline CreatePreparedStatementRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
89 inline CreatePreparedStatementRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
90 inline CreatePreparedStatementRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
92 private:
93
94 Aws::String m_statementName;
95 bool m_statementNameHasBeenSet = false;
96
97 Aws::String m_workGroup;
98 bool m_workGroupHasBeenSet = false;
99
100 Aws::String m_queryStatement;
101 bool m_queryStatementHasBeenSet = false;
102
103 Aws::String m_description;
104 bool m_descriptionHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Athena
109} // namespace Aws
AWS_ATHENA_API Aws::String SerializePayload() const override
CreatePreparedStatementRequest & WithStatementName(const char *value)
CreatePreparedStatementRequest & WithStatementName(const Aws::String &value)
CreatePreparedStatementRequest & WithWorkGroup(Aws::String &&value)
CreatePreparedStatementRequest & WithQueryStatement(Aws::String &&value)
CreatePreparedStatementRequest & WithWorkGroup(const char *value)
CreatePreparedStatementRequest & WithWorkGroup(const Aws::String &value)
CreatePreparedStatementRequest & WithDescription(const Aws::String &value)
CreatePreparedStatementRequest & WithDescription(Aws::String &&value)
CreatePreparedStatementRequest & WithQueryStatement(const Aws::String &value)
CreatePreparedStatementRequest & WithDescription(const char *value)
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePreparedStatementRequest & WithQueryStatement(const char *value)
CreatePreparedStatementRequest & WithStatementName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String