AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ExecuteSqlRequest.h
1
6#pragma once
7#include <aws/context/ContextRequest.h>
8#include <aws/context/Context_EXPORTS.h>
9#include <aws/context/model/SqlDataQuery.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Context {
16namespace Model {
17
21 public:
22 AWS_CONTEXT_API ExecuteSqlRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ExecuteSql"; }
29
30 AWS_CONTEXT_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetAgentContextId() const { return m_agentContextId; }
39 inline bool AgentContextIdHasBeenSet() const { return m_agentContextIdHasBeenSet; }
40 template <typename AgentContextIdT = Aws::String>
41 void SetAgentContextId(AgentContextIdT&& value) {
42 m_agentContextIdHasBeenSet = true;
43 m_agentContextId = std::forward<AgentContextIdT>(value);
44 }
45 template <typename AgentContextIdT = Aws::String>
46 ExecuteSqlRequest& WithAgentContextId(AgentContextIdT&& value) {
47 SetAgentContextId(std::forward<AgentContextIdT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetConnectionId() const { return m_connectionId; }
59 inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; }
60 template <typename ConnectionIdT = Aws::String>
61 void SetConnectionId(ConnectionIdT&& value) {
62 m_connectionIdHasBeenSet = true;
63 m_connectionId = std::forward<ConnectionIdT>(value);
64 }
65 template <typename ConnectionIdT = Aws::String>
66 ExecuteSqlRequest& WithConnectionId(ConnectionIdT&& value) {
67 SetConnectionId(std::forward<ConnectionIdT>(value));
68 return *this;
69 }
71
73
77 inline const SqlDataQuery& GetQuery() const { return m_query; }
78 inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
79 template <typename QueryT = SqlDataQuery>
80 void SetQuery(QueryT&& value) {
81 m_queryHasBeenSet = true;
82 m_query = std::forward<QueryT>(value);
83 }
84 template <typename QueryT = SqlDataQuery>
85 ExecuteSqlRequest& WithQuery(QueryT&& value) {
86 SetQuery(std::forward<QueryT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_agentContextId;
92
93 Aws::String m_connectionId;
94
95 SqlDataQuery m_query;
96 bool m_agentContextIdHasBeenSet = false;
97 bool m_connectionIdHasBeenSet = false;
98 bool m_queryHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Context
103} // namespace Aws
const Aws::String & GetAgentContextId() const
void SetAgentContextId(AgentContextIdT &&value)
ExecuteSqlRequest & WithAgentContextId(AgentContextIdT &&value)
ExecuteSqlRequest & WithConnectionId(ConnectionIdT &&value)
virtual const char * GetServiceRequestName() const override
void SetConnectionId(ConnectionIdT &&value)
const Aws::String & GetConnectionId() const
AWS_CONTEXT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const SqlDataQuery & GetQuery() const
AWS_CONTEXT_API ExecuteSqlRequest()=default
AWS_CONTEXT_API Aws::String SerializePayload() const override
ExecuteSqlRequest & WithQuery(QueryT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String