AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
47 inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
48 inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
49 inline CreateConnectionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
50 inline CreateConnectionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
51 inline CreateConnectionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
53
55
58 inline const ConnectionInput& GetConnectionInput() const{ return m_connectionInput; }
59 inline bool ConnectionInputHasBeenSet() const { return m_connectionInputHasBeenSet; }
60 inline void SetConnectionInput(const ConnectionInput& value) { m_connectionInputHasBeenSet = true; m_connectionInput = value; }
61 inline void SetConnectionInput(ConnectionInput&& value) { m_connectionInputHasBeenSet = true; m_connectionInput = std::move(value); }
63 inline CreateConnectionRequest& WithConnectionInput(ConnectionInput&& value) { SetConnectionInput(std::move(value)); return *this;}
65
67
70 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
71 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
72 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
73 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
74 inline CreateConnectionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
75 inline CreateConnectionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
76 inline CreateConnectionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
77 inline CreateConnectionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
78 inline CreateConnectionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
79 inline CreateConnectionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
80 inline CreateConnectionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
81 inline CreateConnectionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
82 inline CreateConnectionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
84 private:
85
86 Aws::String m_catalogId;
87 bool m_catalogIdHasBeenSet = false;
88
89 ConnectionInput m_connectionInput;
90 bool m_connectionInputHasBeenSet = false;
91
93 bool m_tagsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Glue
98} // namespace Aws
const ConnectionInput & GetConnectionInput() const
CreateConnectionRequest & WithCatalogId(const char *value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateConnectionRequest & WithConnectionInput(ConnectionInput &&value)
CreateConnectionRequest & WithCatalogId(Aws::String &&value)
CreateConnectionRequest & WithCatalogId(const Aws::String &value)
void SetConnectionInput(const ConnectionInput &value)
AWS_GLUE_API Aws::String SerializePayload() const override
CreateConnectionRequest & AddTags(Aws::String &&key, const char *value)
CreateConnectionRequest & WithConnectionInput(const ConnectionInput &value)
CreateConnectionRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateConnectionRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateConnectionRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateConnectionRequest & AddTags(const char *key, const char *value)
CreateConnectionRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateConnectionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateConnectionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateConnectionRequest & AddTags(const char *key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
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