AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateCatalogRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/GlueRequest.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/CatalogInput.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Glue {
17namespace Model {
18
22 public:
23 AWS_GLUE_API CreateCatalogRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateCatalog"; }
30
31 AWS_GLUE_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
58 inline const CatalogInput& GetCatalogInput() const { return m_catalogInput; }
59 inline bool CatalogInputHasBeenSet() const { return m_catalogInputHasBeenSet; }
60 template <typename CatalogInputT = CatalogInput>
61 void SetCatalogInput(CatalogInputT&& value) {
62 m_catalogInputHasBeenSet = true;
63 m_catalogInput = std::forward<CatalogInputT>(value);
64 }
65 template <typename CatalogInputT = CatalogInput>
66 CreateCatalogRequest& WithCatalogInput(CatalogInputT&& value) {
67 SetCatalogInput(std::forward<CatalogInputT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
79 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
80 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
81 void SetTags(TagsT&& value) {
82 m_tagsHasBeenSet = true;
83 m_tags = std::forward<TagsT>(value);
84 }
85 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
87 SetTags(std::forward<TagsT>(value));
88 return *this;
89 }
90 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
91 CreateCatalogRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
92 m_tagsHasBeenSet = true;
93 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_name;
99
100 CatalogInput m_catalogInput;
101
103 bool m_nameHasBeenSet = false;
104 bool m_catalogInputHasBeenSet = false;
105 bool m_tagsHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace Glue
110} // namespace Aws
CreateCatalogRequest & WithTags(TagsT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_GLUE_API CreateCatalogRequest()=default
void SetCatalogInput(CatalogInputT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const CatalogInput & GetCatalogInput() const
CreateCatalogRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateCatalogRequest & WithName(NameT &&value)
CreateCatalogRequest & WithCatalogInput(CatalogInputT &&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