AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
TestConnectionRequest.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#include <aws/glue/model/TestConnectionInput.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Glue {
16namespace Model {
17
21 public:
22 AWS_GLUE_API TestConnectionRequest() = 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 "TestConnection"; }
29
30 AWS_GLUE_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
40 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
41 template <typename ConnectionNameT = Aws::String>
42 void SetConnectionName(ConnectionNameT&& value) {
43 m_connectionNameHasBeenSet = true;
44 m_connectionName = std::forward<ConnectionNameT>(value);
45 }
46 template <typename ConnectionNameT = Aws::String>
47 TestConnectionRequest& WithConnectionName(ConnectionNameT&& value) {
48 SetConnectionName(std::forward<ConnectionNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
58 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
59 template <typename CatalogIdT = Aws::String>
60 void SetCatalogId(CatalogIdT&& value) {
61 m_catalogIdHasBeenSet = true;
62 m_catalogId = std::forward<CatalogIdT>(value);
63 }
64 template <typename CatalogIdT = Aws::String>
65 TestConnectionRequest& WithCatalogId(CatalogIdT&& value) {
66 SetCatalogId(std::forward<CatalogIdT>(value));
67 return *this;
68 }
70
72
75 inline const TestConnectionInput& GetTestConnectionInput() const { return m_testConnectionInput; }
76 inline bool TestConnectionInputHasBeenSet() const { return m_testConnectionInputHasBeenSet; }
77 template <typename TestConnectionInputT = TestConnectionInput>
78 void SetTestConnectionInput(TestConnectionInputT&& value) {
79 m_testConnectionInputHasBeenSet = true;
80 m_testConnectionInput = std::forward<TestConnectionInputT>(value);
81 }
82 template <typename TestConnectionInputT = TestConnectionInput>
83 TestConnectionRequest& WithTestConnectionInput(TestConnectionInputT&& value) {
84 SetTestConnectionInput(std::forward<TestConnectionInputT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_connectionName;
90 bool m_connectionNameHasBeenSet = false;
91
92 Aws::String m_catalogId;
93 bool m_catalogIdHasBeenSet = false;
94
95 TestConnectionInput m_testConnectionInput;
96 bool m_testConnectionInputHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Glue
101} // namespace Aws
TestConnectionRequest & WithConnectionName(ConnectionNameT &&value)
void SetTestConnectionInput(TestConnectionInputT &&value)
TestConnectionRequest & WithCatalogId(CatalogIdT &&value)
AWS_GLUE_API TestConnectionRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_GLUE_API Aws::String SerializePayload() const override
void SetConnectionName(ConnectionNameT &&value)
TestConnectionRequest & WithTestConnectionInput(TestConnectionInputT &&value)
const Aws::String & GetConnectionName() const
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const TestConnectionInput & GetTestConnectionInput() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String