AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
CancelStatementRequest.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 CancelStatementRequest() = 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 "CancelStatement"; }
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>
46 SetSessionId(std::forward<SessionIdT>(value));
47 return *this;
48 }
50
52
55 inline int GetId() const { return m_id; }
56 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
57 inline void SetId(int value) {
58 m_idHasBeenSet = true;
59 m_id = value;
60 }
61 inline CancelStatementRequest& WithId(int value) {
62 SetId(value);
63 return *this;
64 }
66
68
71 inline const Aws::String& GetRequestOrigin() const { return m_requestOrigin; }
72 inline bool RequestOriginHasBeenSet() const { return m_requestOriginHasBeenSet; }
73 template <typename RequestOriginT = Aws::String>
74 void SetRequestOrigin(RequestOriginT&& value) {
75 m_requestOriginHasBeenSet = true;
76 m_requestOrigin = std::forward<RequestOriginT>(value);
77 }
78 template <typename RequestOriginT = Aws::String>
79 CancelStatementRequest& WithRequestOrigin(RequestOriginT&& value) {
80 SetRequestOrigin(std::forward<RequestOriginT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_sessionId;
86 bool m_sessionIdHasBeenSet = false;
87
88 int m_id{0};
89 bool m_idHasBeenSet = false;
90
91 Aws::String m_requestOrigin;
92 bool m_requestOriginHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace Glue
97} // namespace Aws
AWS_GLUE_API CancelStatementRequest()=default
CancelStatementRequest & WithId(int value)
AWS_GLUE_API Aws::String SerializePayload() const override
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CancelStatementRequest & WithSessionId(SessionIdT &&value)
virtual const char * GetServiceRequestName() const override
CancelStatementRequest & WithRequestOrigin(RequestOriginT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String