AWS SDK for C++  1.9.17
AWS SDK for C++
GetPreparedStatementRequest.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 "GetPreparedStatement"; }
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 GetPreparedStatementRequest& WithStatementName(const Aws::String& value) { SetStatementName(value); return *this;}
66 
70  inline GetPreparedStatementRequest& WithStatementName(Aws::String&& value) { SetStatementName(std::move(value)); return *this;}
71 
75  inline GetPreparedStatementRequest& 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 GetPreparedStatementRequest& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;}
107 
111  inline GetPreparedStatementRequest& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;}
112 
116  inline GetPreparedStatementRequest& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;}
117 
118  private:
119 
120  Aws::String m_statementName;
121  bool m_statementNameHasBeenSet;
122 
123  Aws::String m_workGroup;
124  bool m_workGroupHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace Athena
129 } // namespace Aws
Aws::Athena::Model::GetPreparedStatementRequest::WithStatementName
GetPreparedStatementRequest & WithStatementName(const Aws::String &value)
Definition: GetPreparedStatementRequest.h:65
Aws::Athena::Model::GetPreparedStatementRequest::WithStatementName
GetPreparedStatementRequest & WithStatementName(const char *value)
Definition: GetPreparedStatementRequest.h:75
Aws::Athena::Model::GetPreparedStatementRequest::GetStatementName
const Aws::String & GetStatementName() const
Definition: GetPreparedStatementRequest.h:40
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::GetPreparedStatementRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetPreparedStatementRequest.h:30
Aws::Athena::AthenaRequest
Definition: AthenaRequest.h:17
Aws::Athena::Model::GetPreparedStatementRequest::SetWorkGroup
void SetWorkGroup(const char *value)
Definition: GetPreparedStatementRequest.h:101
Aws::Athena::Model::GetPreparedStatementRequest::WorkGroupHasBeenSet
bool WorkGroupHasBeenSet() const
Definition: GetPreparedStatementRequest.h:86
Aws::Athena::Model::GetPreparedStatementRequest::SetWorkGroup
void SetWorkGroup(Aws::String &&value)
Definition: GetPreparedStatementRequest.h:96
Aws::Athena::Model::GetPreparedStatementRequest::SetWorkGroup
void SetWorkGroup(const Aws::String &value)
Definition: GetPreparedStatementRequest.h:91
Aws::Athena::Model::GetPreparedStatementRequest::GetPreparedStatementRequest
GetPreparedStatementRequest()
Aws::Athena::Model::GetPreparedStatementRequest::SetStatementName
void SetStatementName(Aws::String &&value)
Definition: GetPreparedStatementRequest.h:55
Aws::Athena::Model::GetPreparedStatementRequest
Definition: GetPreparedStatementRequest.h:22
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::GetPreparedStatementRequest::StatementNameHasBeenSet
bool StatementNameHasBeenSet() const
Definition: GetPreparedStatementRequest.h:45
Aws::Athena::Model::GetPreparedStatementRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Athena::Model::GetPreparedStatementRequest::WithWorkGroup
GetPreparedStatementRequest & WithWorkGroup(const char *value)
Definition: GetPreparedStatementRequest.h:116
Aws::Athena::Model::GetPreparedStatementRequest::GetWorkGroup
const Aws::String & GetWorkGroup() const
Definition: GetPreparedStatementRequest.h:81
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::GetPreparedStatementRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Athena::Model::GetPreparedStatementRequest::WithWorkGroup
GetPreparedStatementRequest & WithWorkGroup(Aws::String &&value)
Definition: GetPreparedStatementRequest.h:111
AthenaRequest.h
Aws::Athena::Model::GetPreparedStatementRequest::SetStatementName
void SetStatementName(const char *value)
Definition: GetPreparedStatementRequest.h:60
Aws::Athena::Model::GetPreparedStatementRequest::SetStatementName
void SetStatementName(const Aws::String &value)
Definition: GetPreparedStatementRequest.h:50
Aws::Athena::Model::GetPreparedStatementRequest::WithStatementName
GetPreparedStatementRequest & WithStatementName(Aws::String &&value)
Definition: GetPreparedStatementRequest.h:70
Aws::Athena::Model::GetPreparedStatementRequest::WithWorkGroup
GetPreparedStatementRequest & WithWorkGroup(const Aws::String &value)
Definition: GetPreparedStatementRequest.h:106