AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PreparedStatement.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Athena
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_ATHENA_API PreparedStatement() = default;
38 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetStatementName() const { return m_statementName; }
46 inline bool StatementNameHasBeenSet() const { return m_statementNameHasBeenSet; }
47 template<typename StatementNameT = Aws::String>
48 void SetStatementName(StatementNameT&& value) { m_statementNameHasBeenSet = true; m_statementName = std::forward<StatementNameT>(value); }
49 template<typename StatementNameT = Aws::String>
50 PreparedStatement& WithStatementName(StatementNameT&& value) { SetStatementName(std::forward<StatementNameT>(value)); return *this;}
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) { m_queryStatementHasBeenSet = true; m_queryStatement = std::forward<QueryStatementT>(value); }
61 template<typename QueryStatementT = Aws::String>
62 PreparedStatement& WithQueryStatement(QueryStatementT&& value) { SetQueryStatement(std::forward<QueryStatementT>(value)); return *this;}
64
66
69 inline const Aws::String& GetWorkGroupName() const { return m_workGroupName; }
70 inline bool WorkGroupNameHasBeenSet() const { return m_workGroupNameHasBeenSet; }
71 template<typename WorkGroupNameT = Aws::String>
72 void SetWorkGroupName(WorkGroupNameT&& value) { m_workGroupNameHasBeenSet = true; m_workGroupName = std::forward<WorkGroupNameT>(value); }
73 template<typename WorkGroupNameT = Aws::String>
74 PreparedStatement& WithWorkGroupName(WorkGroupNameT&& value) { SetWorkGroupName(std::forward<WorkGroupNameT>(value)); return *this;}
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template<typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
85 template<typename DescriptionT = Aws::String>
86 PreparedStatement& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
94 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
95 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
96 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
97 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
98 PreparedStatement& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
100 private:
101
102 Aws::String m_statementName;
103 bool m_statementNameHasBeenSet = false;
104
105 Aws::String m_queryStatement;
106 bool m_queryStatementHasBeenSet = false;
107
108 Aws::String m_workGroupName;
109 bool m_workGroupNameHasBeenSet = false;
110
111 Aws::String m_description;
112 bool m_descriptionHasBeenSet = false;
113
114 Aws::Utils::DateTime m_lastModifiedTime{};
115 bool m_lastModifiedTimeHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Athena
120} // 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