AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStatementName(const Aws::String& value) { m_statementNameHasBeenSet = true; m_statementName = value; }
48 inline void SetStatementName(Aws::String&& value) { m_statementNameHasBeenSet = true; m_statementName = std::move(value); }
49 inline void SetStatementName(const char* value) { m_statementNameHasBeenSet = true; m_statementName.assign(value); }
50 inline PreparedStatement& WithStatementName(const Aws::String& value) { SetStatementName(value); return *this;}
51 inline PreparedStatement& WithStatementName(Aws::String&& value) { SetStatementName(std::move(value)); return *this;}
52 inline PreparedStatement& WithStatementName(const char* value) { SetStatementName(value); return *this;}
54
56
59 inline const Aws::String& GetQueryStatement() const{ return m_queryStatement; }
60 inline bool QueryStatementHasBeenSet() const { return m_queryStatementHasBeenSet; }
61 inline void SetQueryStatement(const Aws::String& value) { m_queryStatementHasBeenSet = true; m_queryStatement = value; }
62 inline void SetQueryStatement(Aws::String&& value) { m_queryStatementHasBeenSet = true; m_queryStatement = std::move(value); }
63 inline void SetQueryStatement(const char* value) { m_queryStatementHasBeenSet = true; m_queryStatement.assign(value); }
64 inline PreparedStatement& WithQueryStatement(const Aws::String& value) { SetQueryStatement(value); return *this;}
65 inline PreparedStatement& WithQueryStatement(Aws::String&& value) { SetQueryStatement(std::move(value)); return *this;}
66 inline PreparedStatement& WithQueryStatement(const char* value) { SetQueryStatement(value); return *this;}
68
70
73 inline const Aws::String& GetWorkGroupName() const{ return m_workGroupName; }
74 inline bool WorkGroupNameHasBeenSet() const { return m_workGroupNameHasBeenSet; }
75 inline void SetWorkGroupName(const Aws::String& value) { m_workGroupNameHasBeenSet = true; m_workGroupName = value; }
76 inline void SetWorkGroupName(Aws::String&& value) { m_workGroupNameHasBeenSet = true; m_workGroupName = std::move(value); }
77 inline void SetWorkGroupName(const char* value) { m_workGroupNameHasBeenSet = true; m_workGroupName.assign(value); }
78 inline PreparedStatement& WithWorkGroupName(const Aws::String& value) { SetWorkGroupName(value); return *this;}
79 inline PreparedStatement& WithWorkGroupName(Aws::String&& value) { SetWorkGroupName(std::move(value)); return *this;}
80 inline PreparedStatement& WithWorkGroupName(const char* value) { SetWorkGroupName(value); return *this;}
82
84
87 inline const Aws::String& GetDescription() const{ return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
90 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
91 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
92 inline PreparedStatement& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
93 inline PreparedStatement& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
94 inline PreparedStatement& WithDescription(const char* value) { SetDescription(value); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
102 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
103 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
104 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
106 inline PreparedStatement& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
108 private:
109
110 Aws::String m_statementName;
111 bool m_statementNameHasBeenSet = false;
112
113 Aws::String m_queryStatement;
114 bool m_queryStatementHasBeenSet = false;
115
116 Aws::String m_workGroupName;
117 bool m_workGroupNameHasBeenSet = false;
118
119 Aws::String m_description;
120 bool m_descriptionHasBeenSet = false;
121
122 Aws::Utils::DateTime m_lastModifiedTime;
123 bool m_lastModifiedTimeHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace Athena
128} // namespace Aws
AWS_ATHENA_API PreparedStatement(Aws::Utils::Json::JsonView jsonValue)
PreparedStatement & WithDescription(const Aws::String &value)
const Aws::String & GetWorkGroupName() const
void SetWorkGroupName(Aws::String &&value)
PreparedStatement & WithDescription(Aws::String &&value)
PreparedStatement & WithStatementName(const Aws::String &value)
PreparedStatement & WithStatementName(Aws::String &&value)
void SetStatementName(Aws::String &&value)
PreparedStatement & WithLastModifiedTime(const Aws::Utils::DateTime &value)
PreparedStatement & WithStatementName(const char *value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
PreparedStatement & WithWorkGroupName(const char *value)
PreparedStatement & WithWorkGroupName(const Aws::String &value)
PreparedStatement & WithDescription(const char *value)
const Aws::String & GetQueryStatement() const
PreparedStatement & WithLastModifiedTime(Aws::Utils::DateTime &&value)
PreparedStatement & WithWorkGroupName(Aws::String &&value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
void SetQueryStatement(const char *value)
const Aws::String & GetStatementName() const
const Aws::String & GetDescription() const
void SetQueryStatement(const Aws::String &value)
void SetStatementName(const Aws::String &value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
void SetDescription(Aws::String &&value)
void SetWorkGroupName(const Aws::String &value)
PreparedStatement & WithQueryStatement(const char *value)
void SetQueryStatement(Aws::String &&value)
PreparedStatement & WithQueryStatement(const Aws::String &value)
void SetDescription(const Aws::String &value)
AWS_ATHENA_API PreparedStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
PreparedStatement & WithQueryStatement(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue