AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateConnectionRequest.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/ConnectionInput.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Glue
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GLUE_API CreateConnectionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateConnection"; }
33
34 AWS_GLUE_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
45 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
46 template<typename CatalogIdT = Aws::String>
47 void SetCatalogId(CatalogIdT&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::forward<CatalogIdT>(value); }
48 template<typename CatalogIdT = Aws::String>
49 CreateConnectionRequest& WithCatalogId(CatalogIdT&& value) { SetCatalogId(std::forward<CatalogIdT>(value)); return *this;}
51
53
56 inline const ConnectionInput& GetConnectionInput() const { return m_connectionInput; }
57 inline bool ConnectionInputHasBeenSet() const { return m_connectionInputHasBeenSet; }
58 template<typename ConnectionInputT = ConnectionInput>
59 void SetConnectionInput(ConnectionInputT&& value) { m_connectionInputHasBeenSet = true; m_connectionInput = std::forward<ConnectionInputT>(value); }
60 template<typename ConnectionInputT = ConnectionInput>
61 CreateConnectionRequest& WithConnectionInput(ConnectionInputT&& value) { SetConnectionInput(std::forward<ConnectionInputT>(value)); return *this;}
63
65
68 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
69 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
70 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
71 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
72 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
73 CreateConnectionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
74 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
75 CreateConnectionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
76 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
77 }
79 private:
80
81 Aws::String m_catalogId;
82 bool m_catalogIdHasBeenSet = false;
83
84 ConnectionInput m_connectionInput;
85 bool m_connectionInputHasBeenSet = false;
86
88 bool m_tagsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Glue
93} // namespace Aws
const ConnectionInput & GetConnectionInput() const
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateConnectionRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateConnectionRequest & WithCatalogId(CatalogIdT &&value)
AWS_GLUE_API CreateConnectionRequest()=default
AWS_GLUE_API Aws::String SerializePayload() const override
CreateConnectionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateConnectionRequest & WithConnectionInput(ConnectionInputT &&value)
void SetConnectionInput(ConnectionInputT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String