AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDataCatalogRequest.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/athena/AthenaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/athena/model/DataCatalogType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/athena/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Athena
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_ATHENA_API CreateDataCatalogRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateDataCatalog"; }
35
36 AWS_ATHENA_API Aws::String SerializePayload() const override;
37
39
40
42
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 CreateDataCatalogRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
74 inline DataCatalogType GetType() const { return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 inline void SetType(DataCatalogType value) { m_typeHasBeenSet = true; m_type = value; }
77 inline CreateDataCatalogRequest& WithType(DataCatalogType value) { SetType(value); return *this;}
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template<typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
88 template<typename DescriptionT = Aws::String>
89 CreateDataCatalogRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
91
93
130 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
131 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
132 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
133 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
134 template<typename ParametersT = Aws::Map<Aws::String, Aws::String>>
135 CreateDataCatalogRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
136 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
137 CreateDataCatalogRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
138 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
139 }
141
143
151 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 template<typename TagsT = Aws::Vector<Tag>>
154 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
155 template<typename TagsT = Aws::Vector<Tag>>
156 CreateDataCatalogRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
157 template<typename TagsT = Tag>
158 CreateDataCatalogRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
160 private:
161
162 Aws::String m_name;
163 bool m_nameHasBeenSet = false;
164
166 bool m_typeHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
172 bool m_parametersHasBeenSet = false;
173
174 Aws::Vector<Tag> m_tags;
175 bool m_tagsHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace Athena
180} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ATHENA_API Aws::String SerializePayload() const override
CreateDataCatalogRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
CreateDataCatalogRequest & WithName(NameT &&value)
AWS_ATHENA_API CreateDataCatalogRequest()=default
CreateDataCatalogRequest & AddTags(TagsT &&value)
CreateDataCatalogRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
CreateDataCatalogRequest & WithParameters(ParametersT &&value)
CreateDataCatalogRequest & WithType(DataCatalogType value)
CreateDataCatalogRequest & WithDescription(DescriptionT &&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
std::vector< T, Aws::Allocator< T > > Vector