AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline CreateDataCatalogRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline CreateDataCatalogRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline CreateDataCatalogRequest& WithName(const char* value) { SetName(value); return *this;}
57
59
64 inline const DataCatalogType& GetType() const{ return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 inline void SetType(const DataCatalogType& value) { m_typeHasBeenSet = true; m_type = value; }
67 inline void SetType(DataCatalogType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
68 inline CreateDataCatalogRequest& WithType(const DataCatalogType& value) { SetType(value); return *this;}
69 inline CreateDataCatalogRequest& WithType(DataCatalogType&& value) { SetType(std::move(value)); return *this;}
71
73
76 inline const Aws::String& GetDescription() const{ return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
79 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
80 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
81 inline CreateDataCatalogRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
82 inline CreateDataCatalogRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
83 inline CreateDataCatalogRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
85
87
111 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
112 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
113 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
114 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
117 inline CreateDataCatalogRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
118 inline CreateDataCatalogRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
119 inline CreateDataCatalogRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
120 inline CreateDataCatalogRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
121 inline CreateDataCatalogRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
122 inline CreateDataCatalogRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
123 inline CreateDataCatalogRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
125
127
131 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
134 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
135 inline CreateDataCatalogRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
136 inline CreateDataCatalogRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
137 inline CreateDataCatalogRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
138 inline CreateDataCatalogRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
140 private:
141
142 Aws::String m_name;
143 bool m_nameHasBeenSet = false;
144
145 DataCatalogType m_type;
146 bool m_typeHasBeenSet = false;
147
148 Aws::String m_description;
149 bool m_descriptionHasBeenSet = false;
150
152 bool m_parametersHasBeenSet = false;
153
154 Aws::Vector<Tag> m_tags;
155 bool m_tagsHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace Athena
160} // namespace Aws
CreateDataCatalogRequest & WithDescription(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateDataCatalogRequest & WithType(DataCatalogType &&value)
CreateDataCatalogRequest & AddParameters(const char *key, Aws::String &&value)
AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ATHENA_API Aws::String SerializePayload() const override
CreateDataCatalogRequest & AddParameters(Aws::String &&key, const Aws::String &value)
CreateDataCatalogRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
CreateDataCatalogRequest & WithDescription(const Aws::String &value)
CreateDataCatalogRequest & AddTags(Tag &&value)
CreateDataCatalogRequest & WithDescription(const char *value)
CreateDataCatalogRequest & AddParameters(const Aws::String &key, Aws::String &&value)
CreateDataCatalogRequest & WithType(const DataCatalogType &value)
CreateDataCatalogRequest & AddTags(const Tag &value)
CreateDataCatalogRequest & AddParameters(Aws::String &&key, Aws::String &&value)
CreateDataCatalogRequest & AddParameters(const char *key, const char *value)
CreateDataCatalogRequest & AddParameters(Aws::String &&key, const char *value)
CreateDataCatalogRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDataCatalogRequest & WithName(const char *value)
CreateDataCatalogRequest & WithName(Aws::String &&value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
CreateDataCatalogRequest & AddParameters(const Aws::String &key, const Aws::String &value)
CreateDataCatalogRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
CreateDataCatalogRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateDataCatalogRequest & WithName(const 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
std::vector< T, Aws::Allocator< T > > Vector