AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NamedQuery.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Athena
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ATHENA_API NamedQuery();
36 AWS_ATHENA_API NamedQuery(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline NamedQuery& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline NamedQuery& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline NamedQuery& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline NamedQuery& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline NamedQuery& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline NamedQuery& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
73 inline const Aws::String& GetDatabase() const{ return m_database; }
74 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
75 inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; }
76 inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
77 inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); }
78 inline NamedQuery& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
79 inline NamedQuery& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
80 inline NamedQuery& WithDatabase(const char* value) { SetDatabase(value); return *this;}
82
84
87 inline const Aws::String& GetQueryString() const{ return m_queryString; }
88 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
89 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
90 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
91 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
92 inline NamedQuery& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
93 inline NamedQuery& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
94 inline NamedQuery& WithQueryString(const char* value) { SetQueryString(value); return *this;}
96
98
101 inline const Aws::String& GetNamedQueryId() const{ return m_namedQueryId; }
102 inline bool NamedQueryIdHasBeenSet() const { return m_namedQueryIdHasBeenSet; }
103 inline void SetNamedQueryId(const Aws::String& value) { m_namedQueryIdHasBeenSet = true; m_namedQueryId = value; }
104 inline void SetNamedQueryId(Aws::String&& value) { m_namedQueryIdHasBeenSet = true; m_namedQueryId = std::move(value); }
105 inline void SetNamedQueryId(const char* value) { m_namedQueryIdHasBeenSet = true; m_namedQueryId.assign(value); }
106 inline NamedQuery& WithNamedQueryId(const Aws::String& value) { SetNamedQueryId(value); return *this;}
107 inline NamedQuery& WithNamedQueryId(Aws::String&& value) { SetNamedQueryId(std::move(value)); return *this;}
108 inline NamedQuery& WithNamedQueryId(const char* value) { SetNamedQueryId(value); return *this;}
110
112
115 inline const Aws::String& GetWorkGroup() const{ return m_workGroup; }
116 inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
117 inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; }
118 inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); }
119 inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); }
120 inline NamedQuery& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;}
121 inline NamedQuery& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;}
122 inline NamedQuery& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;}
124 private:
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
129 Aws::String m_description;
130 bool m_descriptionHasBeenSet = false;
131
132 Aws::String m_database;
133 bool m_databaseHasBeenSet = false;
134
135 Aws::String m_queryString;
136 bool m_queryStringHasBeenSet = false;
137
138 Aws::String m_namedQueryId;
139 bool m_namedQueryIdHasBeenSet = false;
140
141 Aws::String m_workGroup;
142 bool m_workGroupHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace Athena
147} // namespace Aws
const Aws::String & GetName() const
Definition NamedQuery.h:45
NamedQuery & WithNamedQueryId(Aws::String &&value)
Definition NamedQuery.h:107
void SetWorkGroup(const Aws::String &value)
Definition NamedQuery.h:117
void SetDatabase(const char *value)
Definition NamedQuery.h:77
NamedQuery & WithQueryString(Aws::String &&value)
Definition NamedQuery.h:93
void SetDescription(Aws::String &&value)
Definition NamedQuery.h:62
NamedQuery & WithNamedQueryId(const Aws::String &value)
Definition NamedQuery.h:106
NamedQuery & WithDescription(Aws::String &&value)
Definition NamedQuery.h:65
void SetWorkGroup(Aws::String &&value)
Definition NamedQuery.h:118
void SetDescription(const char *value)
Definition NamedQuery.h:63
void SetDatabase(const Aws::String &value)
Definition NamedQuery.h:75
NamedQuery & WithWorkGroup(const Aws::String &value)
Definition NamedQuery.h:120
const Aws::String & GetWorkGroup() const
Definition NamedQuery.h:115
const Aws::String & GetDatabase() const
Definition NamedQuery.h:73
NamedQuery & WithDescription(const char *value)
Definition NamedQuery.h:66
void SetNamedQueryId(const Aws::String &value)
Definition NamedQuery.h:103
AWS_ATHENA_API NamedQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
NamedQuery & WithDatabase(Aws::String &&value)
Definition NamedQuery.h:79
void SetDatabase(Aws::String &&value)
Definition NamedQuery.h:76
void SetDescription(const Aws::String &value)
Definition NamedQuery.h:61
AWS_ATHENA_API NamedQuery(Aws::Utils::Json::JsonView jsonValue)
NamedQuery & WithName(const char *value)
Definition NamedQuery.h:52
NamedQuery & WithDatabase(const Aws::String &value)
Definition NamedQuery.h:78
NamedQuery & WithQueryString(const char *value)
Definition NamedQuery.h:94
void SetName(const Aws::String &value)
Definition NamedQuery.h:47
NamedQuery & WithWorkGroup(Aws::String &&value)
Definition NamedQuery.h:121
NamedQuery & WithWorkGroup(const char *value)
Definition NamedQuery.h:122
void SetName(const char *value)
Definition NamedQuery.h:49
const Aws::String & GetDescription() const
Definition NamedQuery.h:59
NamedQuery & WithDescription(const Aws::String &value)
Definition NamedQuery.h:64
void SetNamedQueryId(Aws::String &&value)
Definition NamedQuery.h:104
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetWorkGroup(const char *value)
Definition NamedQuery.h:119
void SetQueryString(const Aws::String &value)
Definition NamedQuery.h:89
NamedQuery & WithName(Aws::String &&value)
Definition NamedQuery.h:51
NamedQuery & WithName(const Aws::String &value)
Definition NamedQuery.h:50
void SetNamedQueryId(const char *value)
Definition NamedQuery.h:105
NamedQuery & WithNamedQueryId(const char *value)
Definition NamedQuery.h:108
void SetQueryString(Aws::String &&value)
Definition NamedQuery.h:90
void SetName(Aws::String &&value)
Definition NamedQuery.h:48
const Aws::String & GetNamedQueryId() const
Definition NamedQuery.h:101
NamedQuery & WithQueryString(const Aws::String &value)
Definition NamedQuery.h:92
const Aws::String & GetQueryString() const
Definition NamedQuery.h:87
void SetQueryString(const char *value)
Definition NamedQuery.h:91
NamedQuery & WithDatabase(const char *value)
Definition NamedQuery.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue