AWS SDK for C++  1.9.17
AWS SDK for C++
UpdatePreparedStatementRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Athena
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdatePreparedStatement"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetStatementName() const{ return m_statementName; }
41 
45  inline bool StatementNameHasBeenSet() const { return m_statementNameHasBeenSet; }
46 
50  inline void SetStatementName(const Aws::String& value) { m_statementNameHasBeenSet = true; m_statementName = value; }
51 
55  inline void SetStatementName(Aws::String&& value) { m_statementNameHasBeenSet = true; m_statementName = std::move(value); }
56 
60  inline void SetStatementName(const char* value) { m_statementNameHasBeenSet = true; m_statementName.assign(value); }
61 
65  inline UpdatePreparedStatementRequest& WithStatementName(const Aws::String& value) { SetStatementName(value); return *this;}
66 
70  inline UpdatePreparedStatementRequest& WithStatementName(Aws::String&& value) { SetStatementName(std::move(value)); return *this;}
71 
75  inline UpdatePreparedStatementRequest& WithStatementName(const char* value) { SetStatementName(value); return *this;}
76 
77 
81  inline const Aws::String& GetWorkGroup() const{ return m_workGroup; }
82 
86  inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; }
87 
91  inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; }
92 
96  inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); }
97 
101  inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); }
102 
106  inline UpdatePreparedStatementRequest& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;}
107 
111  inline UpdatePreparedStatementRequest& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;}
112 
116  inline UpdatePreparedStatementRequest& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;}
117 
118 
122  inline const Aws::String& GetQueryStatement() const{ return m_queryStatement; }
123 
127  inline bool QueryStatementHasBeenSet() const { return m_queryStatementHasBeenSet; }
128 
132  inline void SetQueryStatement(const Aws::String& value) { m_queryStatementHasBeenSet = true; m_queryStatement = value; }
133 
137  inline void SetQueryStatement(Aws::String&& value) { m_queryStatementHasBeenSet = true; m_queryStatement = std::move(value); }
138 
142  inline void SetQueryStatement(const char* value) { m_queryStatementHasBeenSet = true; m_queryStatement.assign(value); }
143 
147  inline UpdatePreparedStatementRequest& WithQueryStatement(const Aws::String& value) { SetQueryStatement(value); return *this;}
148 
152  inline UpdatePreparedStatementRequest& WithQueryStatement(Aws::String&& value) { SetQueryStatement(std::move(value)); return *this;}
153 
157  inline UpdatePreparedStatementRequest& WithQueryStatement(const char* value) { SetQueryStatement(value); return *this;}
158 
159 
163  inline const Aws::String& GetDescription() const{ return m_description; }
164 
168  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
169 
173  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
174 
178  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
179 
183  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
184 
188  inline UpdatePreparedStatementRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
189 
193  inline UpdatePreparedStatementRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
194 
198  inline UpdatePreparedStatementRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
199 
200  private:
201 
202  Aws::String m_statementName;
203  bool m_statementNameHasBeenSet;
204 
205  Aws::String m_workGroup;
206  bool m_workGroupHasBeenSet;
207 
208  Aws::String m_queryStatement;
209  bool m_queryStatementHasBeenSet;
210 
211  Aws::String m_description;
212  bool m_descriptionHasBeenSet;
213  };
214 
215 } // namespace Model
216 } // namespace Athena
217 } // namespace Aws
Aws::Athena::Model::UpdatePreparedStatementRequest::StatementNameHasBeenSet
bool StatementNameHasBeenSet() const
Definition: UpdatePreparedStatementRequest.h:45
Aws::Athena::Model::UpdatePreparedStatementRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Athena::Model::UpdatePreparedStatementRequest::WithDescription
UpdatePreparedStatementRequest & WithDescription(const Aws::String &value)
Definition: UpdatePreparedStatementRequest.h:188
Aws::Athena::Model::UpdatePreparedStatementRequest::GetWorkGroup
const Aws::String & GetWorkGroup() const
Definition: UpdatePreparedStatementRequest.h:81
Aws::Athena::Model::UpdatePreparedStatementRequest::SetQueryStatement
void SetQueryStatement(Aws::String &&value)
Definition: UpdatePreparedStatementRequest.h:137
Aws::Athena::Model::UpdatePreparedStatementRequest::SetWorkGroup
void SetWorkGroup(const Aws::String &value)
Definition: UpdatePreparedStatementRequest.h:91
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Athena::Model::UpdatePreparedStatementRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdatePreparedStatementRequest.h:178
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::UpdatePreparedStatementRequest
Definition: UpdatePreparedStatementRequest.h:22
Aws::Athena::AthenaRequest
Definition: AthenaRequest.h:17
Aws::Athena::Model::UpdatePreparedStatementRequest::WithQueryStatement
UpdatePreparedStatementRequest & WithQueryStatement(const Aws::String &value)
Definition: UpdatePreparedStatementRequest.h:147
Aws::Athena::Model::UpdatePreparedStatementRequest::SetStatementName
void SetStatementName(const char *value)
Definition: UpdatePreparedStatementRequest.h:60
Aws::Athena::Model::UpdatePreparedStatementRequest::WithStatementName
UpdatePreparedStatementRequest & WithStatementName(Aws::String &&value)
Definition: UpdatePreparedStatementRequest.h:70
Aws::Athena::Model::UpdatePreparedStatementRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdatePreparedStatementRequest.h:173
Aws::Athena::Model::UpdatePreparedStatementRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdatePreparedStatementRequest.h:168
Aws::Athena::Model::UpdatePreparedStatementRequest::GetStatementName
const Aws::String & GetStatementName() const
Definition: UpdatePreparedStatementRequest.h:40
Aws::Athena::Model::UpdatePreparedStatementRequest::SetQueryStatement
void SetQueryStatement(const char *value)
Definition: UpdatePreparedStatementRequest.h:142
Aws::Athena::Model::UpdatePreparedStatementRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdatePreparedStatementRequest.h:30
Aws::Athena::Model::UpdatePreparedStatementRequest::SetQueryStatement
void SetQueryStatement(const Aws::String &value)
Definition: UpdatePreparedStatementRequest.h:132
Aws::Athena::Model::UpdatePreparedStatementRequest::QueryStatementHasBeenSet
bool QueryStatementHasBeenSet() const
Definition: UpdatePreparedStatementRequest.h:127
Aws::Athena::Model::UpdatePreparedStatementRequest::WorkGroupHasBeenSet
bool WorkGroupHasBeenSet() const
Definition: UpdatePreparedStatementRequest.h:86
Aws::Athena::Model::UpdatePreparedStatementRequest::SetStatementName
void SetStatementName(Aws::String &&value)
Definition: UpdatePreparedStatementRequest.h:55
Aws::Athena::Model::UpdatePreparedStatementRequest::WithQueryStatement
UpdatePreparedStatementRequest & WithQueryStatement(Aws::String &&value)
Definition: UpdatePreparedStatementRequest.h:152
Aws::Athena::Model::UpdatePreparedStatementRequest::UpdatePreparedStatementRequest
UpdatePreparedStatementRequest()
AWSString.h
Aws::Athena::Model::UpdatePreparedStatementRequest::WithWorkGroup
UpdatePreparedStatementRequest & WithWorkGroup(Aws::String &&value)
Definition: UpdatePreparedStatementRequest.h:111
Aws::Athena::Model::UpdatePreparedStatementRequest::WithDescription
UpdatePreparedStatementRequest & WithDescription(const char *value)
Definition: UpdatePreparedStatementRequest.h:198
Athena_EXPORTS.h
Aws::Athena::Model::UpdatePreparedStatementRequest::WithWorkGroup
UpdatePreparedStatementRequest & WithWorkGroup(const Aws::String &value)
Definition: UpdatePreparedStatementRequest.h:106
Aws::Athena::Model::UpdatePreparedStatementRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdatePreparedStatementRequest.h:183
Aws::Athena::Model::UpdatePreparedStatementRequest::WithWorkGroup
UpdatePreparedStatementRequest & WithWorkGroup(const char *value)
Definition: UpdatePreparedStatementRequest.h:116
Aws::Athena::Model::UpdatePreparedStatementRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Athena::Model::UpdatePreparedStatementRequest::SetWorkGroup
void SetWorkGroup(Aws::String &&value)
Definition: UpdatePreparedStatementRequest.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::UpdatePreparedStatementRequest::SetWorkGroup
void SetWorkGroup(const char *value)
Definition: UpdatePreparedStatementRequest.h:101
Aws::Athena::Model::UpdatePreparedStatementRequest::WithDescription
UpdatePreparedStatementRequest & WithDescription(Aws::String &&value)
Definition: UpdatePreparedStatementRequest.h:193
Aws::Athena::Model::UpdatePreparedStatementRequest::WithQueryStatement
UpdatePreparedStatementRequest & WithQueryStatement(const char *value)
Definition: UpdatePreparedStatementRequest.h:157
AthenaRequest.h
Aws::Athena::Model::UpdatePreparedStatementRequest::GetQueryStatement
const Aws::String & GetQueryStatement() const
Definition: UpdatePreparedStatementRequest.h:122
Aws::Athena::Model::UpdatePreparedStatementRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdatePreparedStatementRequest.h:163
Aws::Athena::Model::UpdatePreparedStatementRequest::SetStatementName
void SetStatementName(const Aws::String &value)
Definition: UpdatePreparedStatementRequest.h:50
Aws::Athena::Model::UpdatePreparedStatementRequest::WithStatementName
UpdatePreparedStatementRequest & WithStatementName(const char *value)
Definition: UpdatePreparedStatementRequest.h:75
Aws::Athena::Model::UpdatePreparedStatementRequest::WithStatementName
UpdatePreparedStatementRequest & WithStatementName(const Aws::String &value)
Definition: UpdatePreparedStatementRequest.h:65