AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateNamedQueryRequest.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#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace Athena
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ATHENA_API CreateNamedQueryRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateNamedQuery"; }
32
33 AWS_ATHENA_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetName() const{ return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
46 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
47 inline CreateNamedQueryRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline CreateNamedQueryRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline CreateNamedQueryRequest& WithName(const char* value) { SetName(value); return *this;}
51
53
56 inline const Aws::String& GetDescription() const{ return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
59 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
60 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
61 inline CreateNamedQueryRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
62 inline CreateNamedQueryRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
63 inline CreateNamedQueryRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
65
67
70 inline const Aws::String& GetDatabase() const{ return m_database; }
71 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
72 inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; }
73 inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
74 inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); }
75 inline CreateNamedQueryRequest& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
76 inline CreateNamedQueryRequest& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
77 inline CreateNamedQueryRequest& WithDatabase(const char* value) { SetDatabase(value); return *this;}
79
81
84 inline const Aws::String& GetQueryString() const{ return m_queryString; }
85 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
86 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
87 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
88 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
89 inline CreateNamedQueryRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
90 inline CreateNamedQueryRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
91 inline CreateNamedQueryRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
93
95
106 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
107 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
108 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
109 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
110 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
112 inline CreateNamedQueryRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
113 inline CreateNamedQueryRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
115
117
120 inline const Aws::String& GetWorkGroup() const{ return m_workGroup; }
121 inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
122 inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; }
123 inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); }
124 inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); }
125 inline CreateNamedQueryRequest& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;}
126 inline CreateNamedQueryRequest& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;}
127 inline CreateNamedQueryRequest& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;}
129 private:
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 Aws::String m_description;
135 bool m_descriptionHasBeenSet = false;
136
137 Aws::String m_database;
138 bool m_databaseHasBeenSet = false;
139
140 Aws::String m_queryString;
141 bool m_queryStringHasBeenSet = false;
142
143 Aws::String m_clientRequestToken;
144 bool m_clientRequestTokenHasBeenSet = false;
145
146 Aws::String m_workGroup;
147 bool m_workGroupHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Athena
152} // namespace Aws
CreateNamedQueryRequest & WithDatabase(Aws::String &&value)
CreateNamedQueryRequest & WithDescription(const Aws::String &value)
CreateNamedQueryRequest & WithQueryString(const char *value)
CreateNamedQueryRequest & WithDescription(const char *value)
CreateNamedQueryRequest & WithClientRequestToken(const char *value)
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateNamedQueryRequest & WithDescription(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateNamedQueryRequest & WithQueryString(Aws::String &&value)
CreateNamedQueryRequest & WithWorkGroup(const char *value)
CreateNamedQueryRequest & WithWorkGroup(Aws::String &&value)
CreateNamedQueryRequest & WithClientRequestToken(const Aws::String &value)
CreateNamedQueryRequest & WithDatabase(const Aws::String &value)
CreateNamedQueryRequest & WithName(Aws::String &&value)
AWS_ATHENA_API Aws::String SerializePayload() const override
CreateNamedQueryRequest & WithQueryString(const Aws::String &value)
CreateNamedQueryRequest & WithDatabase(const char *value)
CreateNamedQueryRequest & WithName(const Aws::String &value)
CreateNamedQueryRequest & WithClientRequestToken(Aws::String &&value)
CreateNamedQueryRequest & WithWorkGroup(const Aws::String &value)
CreateNamedQueryRequest & WithName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String