AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RunStatementRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/glue/Glue_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Glue {
15namespace Model {
16
20 public:
21 AWS_GLUE_API RunStatementRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "RunStatement"; }
28
29 AWS_GLUE_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetSessionId() const { return m_sessionId; }
38 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
39 template <typename SessionIdT = Aws::String>
40 void SetSessionId(SessionIdT&& value) {
41 m_sessionIdHasBeenSet = true;
42 m_sessionId = std::forward<SessionIdT>(value);
43 }
44 template <typename SessionIdT = Aws::String>
45 RunStatementRequest& WithSessionId(SessionIdT&& value) {
46 SetSessionId(std::forward<SessionIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetCode() const { return m_code; }
56 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
57 template <typename CodeT = Aws::String>
58 void SetCode(CodeT&& value) {
59 m_codeHasBeenSet = true;
60 m_code = std::forward<CodeT>(value);
61 }
62 template <typename CodeT = Aws::String>
63 RunStatementRequest& WithCode(CodeT&& value) {
64 SetCode(std::forward<CodeT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetRequestOrigin() const { return m_requestOrigin; }
74 inline bool RequestOriginHasBeenSet() const { return m_requestOriginHasBeenSet; }
75 template <typename RequestOriginT = Aws::String>
76 void SetRequestOrigin(RequestOriginT&& value) {
77 m_requestOriginHasBeenSet = true;
78 m_requestOrigin = std::forward<RequestOriginT>(value);
79 }
80 template <typename RequestOriginT = Aws::String>
81 RunStatementRequest& WithRequestOrigin(RequestOriginT&& value) {
82 SetRequestOrigin(std::forward<RequestOriginT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_sessionId;
88
89 Aws::String m_code;
90
91 Aws::String m_requestOrigin;
92 bool m_sessionIdHasBeenSet = false;
93 bool m_codeHasBeenSet = false;
94 bool m_requestOriginHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Glue
99} // namespace Aws
AWS_GLUE_API Aws::String SerializePayload() const override
RunStatementRequest & WithSessionId(SessionIdT &&value)
virtual const char * GetServiceRequestName() const override
void SetRequestOrigin(RequestOriginT &&value)
AWS_GLUE_API RunStatementRequest()=default
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetSessionId() const
RunStatementRequest & WithRequestOrigin(RequestOriginT &&value)
const Aws::String & GetRequestOrigin() const
RunStatementRequest & WithCode(CodeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String