AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PreparedStatement.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Athena {
21namespace Model {
22
29 public:
30 AWS_ATHENA_API PreparedStatement() = default;
33 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetStatementName() const { return m_statementName; }
40 inline bool StatementNameHasBeenSet() const { return m_statementNameHasBeenSet; }
41 template <typename StatementNameT = Aws::String>
42 void SetStatementName(StatementNameT&& value) {
43 m_statementNameHasBeenSet = true;
44 m_statementName = std::forward<StatementNameT>(value);
45 }
46 template <typename StatementNameT = Aws::String>
47 PreparedStatement& WithStatementName(StatementNameT&& value) {
48 SetStatementName(std::forward<StatementNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetQueryStatement() const { return m_queryStatement; }
58 inline bool QueryStatementHasBeenSet() const { return m_queryStatementHasBeenSet; }
59 template <typename QueryStatementT = Aws::String>
60 void SetQueryStatement(QueryStatementT&& value) {
61 m_queryStatementHasBeenSet = true;
62 m_queryStatement = std::forward<QueryStatementT>(value);
63 }
64 template <typename QueryStatementT = Aws::String>
65 PreparedStatement& WithQueryStatement(QueryStatementT&& value) {
66 SetQueryStatement(std::forward<QueryStatementT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetWorkGroupName() const { return m_workGroupName; }
76 inline bool WorkGroupNameHasBeenSet() const { return m_workGroupNameHasBeenSet; }
77 template <typename WorkGroupNameT = Aws::String>
78 void SetWorkGroupName(WorkGroupNameT&& value) {
79 m_workGroupNameHasBeenSet = true;
80 m_workGroupName = std::forward<WorkGroupNameT>(value);
81 }
82 template <typename WorkGroupNameT = Aws::String>
83 PreparedStatement& WithWorkGroupName(WorkGroupNameT&& value) {
84 SetWorkGroupName(std::forward<WorkGroupNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
101 PreparedStatement& WithDescription(DescriptionT&& value) {
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
112 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
113 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
114 void SetLastModifiedTime(LastModifiedTimeT&& value) {
115 m_lastModifiedTimeHasBeenSet = true;
116 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
117 }
118 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
119 PreparedStatement& WithLastModifiedTime(LastModifiedTimeT&& value) {
120 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_statementName;
126
127 Aws::String m_queryStatement;
128
129 Aws::String m_workGroupName;
130
131 Aws::String m_description;
132
133 Aws::Utils::DateTime m_lastModifiedTime{};
134 bool m_statementNameHasBeenSet = false;
135 bool m_queryStatementHasBeenSet = false;
136 bool m_workGroupNameHasBeenSet = false;
137 bool m_descriptionHasBeenSet = false;
138 bool m_lastModifiedTimeHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace Athena
143} // namespace Aws
AWS_ATHENA_API PreparedStatement()=default
AWS_ATHENA_API PreparedStatement(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetWorkGroupName() const
PreparedStatement & WithWorkGroupName(WorkGroupNameT &&value)
void SetStatementName(StatementNameT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetQueryStatement(QueryStatementT &&value)
PreparedStatement & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetQueryStatement() const
void SetWorkGroupName(WorkGroupNameT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
void SetDescription(DescriptionT &&value)
PreparedStatement & WithQueryStatement(QueryStatementT &&value)
PreparedStatement & WithStatementName(StatementNameT &&value)
const Aws::String & GetStatementName() const
const Aws::String & GetDescription() const
PreparedStatement & WithDescription(DescriptionT &&value)
AWS_ATHENA_API PreparedStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue