AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TestConnectionRequest.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/model/TestConnectionInput.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Glue
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_GLUE_API TestConnectionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "TestConnection"; }
32
33 AWS_GLUE_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
44 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
45 template<typename ConnectionNameT = Aws::String>
46 void SetConnectionName(ConnectionNameT&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::forward<ConnectionNameT>(value); }
47 template<typename ConnectionNameT = Aws::String>
48 TestConnectionRequest& WithConnectionName(ConnectionNameT&& value) { SetConnectionName(std::forward<ConnectionNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
56 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
57 template<typename CatalogIdT = Aws::String>
58 void SetCatalogId(CatalogIdT&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::forward<CatalogIdT>(value); }
59 template<typename CatalogIdT = Aws::String>
60 TestConnectionRequest& WithCatalogId(CatalogIdT&& value) { SetCatalogId(std::forward<CatalogIdT>(value)); return *this;}
62
64
67 inline const TestConnectionInput& GetTestConnectionInput() const { return m_testConnectionInput; }
68 inline bool TestConnectionInputHasBeenSet() const { return m_testConnectionInputHasBeenSet; }
69 template<typename TestConnectionInputT = TestConnectionInput>
70 void SetTestConnectionInput(TestConnectionInputT&& value) { m_testConnectionInputHasBeenSet = true; m_testConnectionInput = std::forward<TestConnectionInputT>(value); }
71 template<typename TestConnectionInputT = TestConnectionInput>
72 TestConnectionRequest& WithTestConnectionInput(TestConnectionInputT&& value) { SetTestConnectionInput(std::forward<TestConnectionInputT>(value)); return *this;}
74 private:
75
76 Aws::String m_connectionName;
77 bool m_connectionNameHasBeenSet = false;
78
79 Aws::String m_catalogId;
80 bool m_catalogIdHasBeenSet = false;
81
82 TestConnectionInput m_testConnectionInput;
83 bool m_testConnectionInputHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Glue
88} // 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