AWS SDK for C++  1.9.20
AWS SDK for C++
CreateDataCatalogRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <aws/athena/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Athena
19 {
20 namespace Model
21 {
22 
26  {
27  public:
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::String SerializePayload() const override;
37 
39 
40 
46  inline const Aws::String& GetName() const{ return m_name; }
47 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
60  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 
67  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 
74  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
75 
81  inline CreateDataCatalogRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
82 
88  inline CreateDataCatalogRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
89 
95  inline CreateDataCatalogRequest& WithName(const char* value) { SetName(value); return *this;}
96 
97 
106  inline const DataCatalogType& GetType() const{ return m_type; }
107 
116  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
117 
126  inline void SetType(const DataCatalogType& value) { m_typeHasBeenSet = true; m_type = value; }
127 
136  inline void SetType(DataCatalogType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
137 
146  inline CreateDataCatalogRequest& WithType(const DataCatalogType& value) { SetType(value); return *this;}
147 
156  inline CreateDataCatalogRequest& WithType(DataCatalogType&& value) { SetType(std::move(value)); return *this;}
157 
158 
162  inline const Aws::String& GetDescription() const{ return m_description; }
163 
167  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
168 
172  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
173 
177  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
178 
182  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
183 
187  inline CreateDataCatalogRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
188 
192  inline CreateDataCatalogRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
193 
197  inline CreateDataCatalogRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
198 
199 
218  inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
219 
238  inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
239 
258  inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
259 
278  inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
279 
298  inline CreateDataCatalogRequest& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
299 
318  inline CreateDataCatalogRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
319 
338  inline CreateDataCatalogRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
339 
358  inline CreateDataCatalogRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
359 
378  inline CreateDataCatalogRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
379 
398  inline CreateDataCatalogRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
399 
418  inline CreateDataCatalogRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
419 
438  inline CreateDataCatalogRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
439 
458  inline CreateDataCatalogRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
459 
460 
465  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
466 
471  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
472 
477  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
478 
483  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
484 
489  inline CreateDataCatalogRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
490 
495  inline CreateDataCatalogRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
496 
501  inline CreateDataCatalogRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
502 
507  inline CreateDataCatalogRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
508 
509  private:
510 
511  Aws::String m_name;
512  bool m_nameHasBeenSet;
513 
514  DataCatalogType m_type;
515  bool m_typeHasBeenSet;
516 
517  Aws::String m_description;
518  bool m_descriptionHasBeenSet;
519 
521  bool m_parametersHasBeenSet;
522 
523  Aws::Vector<Tag> m_tags;
524  bool m_tagsHasBeenSet;
525  };
526 
527 } // namespace Model
528 } // namespace Athena
529 } // namespace Aws
Aws::Athena::Model::CreateDataCatalogRequest::ParametersHasBeenSet
bool ParametersHasBeenSet() const
Definition: CreateDataCatalogRequest.h:238
Tag.h
Aws::Athena::Model::CreateDataCatalogRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDataCatalogRequest.h:471
Aws::Athena::Model::CreateDataCatalogRequest::WithName
CreateDataCatalogRequest & WithName(const Aws::String &value)
Definition: CreateDataCatalogRequest.h:81
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Athena::Model::CreateDataCatalogRequest::AddParameters
CreateDataCatalogRequest & AddParameters(const Aws::String &key, Aws::String &&value)
Definition: CreateDataCatalogRequest.h:378
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::CreateDataCatalogRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateDataCatalogRequest.h:182
Aws::Athena::Model::CreateDataCatalogRequest::WithDescription
CreateDataCatalogRequest & WithDescription(const Aws::String &value)
Definition: CreateDataCatalogRequest.h:187
Aws::Athena::Model::CreateDataCatalogRequest::WithType
CreateDataCatalogRequest & WithType(DataCatalogType &&value)
Definition: CreateDataCatalogRequest.h:156
Aws::Athena::AthenaRequest
Definition: AthenaRequest.h:17
Aws::Athena::Model::CreateDataCatalogRequest
Definition: CreateDataCatalogRequest.h:26
Aws::Athena::Model::CreateDataCatalogRequest::AddTags
CreateDataCatalogRequest & AddTags(const Tag &value)
Definition: CreateDataCatalogRequest.h:501
Aws::Athena::Model::CreateDataCatalogRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateDataCatalogRequest.h:116
DataCatalogType.h
Aws::Athena::Model::CreateDataCatalogRequest::WithType
CreateDataCatalogRequest & WithType(const DataCatalogType &value)
Definition: CreateDataCatalogRequest.h:146
Aws::Athena::Model::CreateDataCatalogRequest::AddParameters
CreateDataCatalogRequest & AddParameters(const char *key, const char *value)
Definition: CreateDataCatalogRequest.h:458
Aws::Athena::Model::CreateDataCatalogRequest::AddParameters
CreateDataCatalogRequest & AddParameters(Aws::String &&key, const char *value)
Definition: CreateDataCatalogRequest.h:438
Aws::Athena::Model::CreateDataCatalogRequest::AddParameters
CreateDataCatalogRequest & AddParameters(Aws::String &&key, const Aws::String &value)
Definition: CreateDataCatalogRequest.h:358
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Athena::Model::CreateDataCatalogRequest::WithName
CreateDataCatalogRequest & WithName(Aws::String &&value)
Definition: CreateDataCatalogRequest.h:88
Aws::Athena::Model::CreateDataCatalogRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateDataCatalogRequest.h:177
Aws::Athena::Model::CreateDataCatalogRequest::SetName
void SetName(const char *value)
Definition: CreateDataCatalogRequest.h:74
Aws::Athena::Model::CreateDataCatalogRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateDataCatalogRequest.h:167
AWSVector.h
Aws::Athena::Model::CreateDataCatalogRequest::AddParameters
CreateDataCatalogRequest & AddParameters(Aws::String &&key, Aws::String &&value)
Definition: CreateDataCatalogRequest.h:398
Aws::Athena::Model::CreateDataCatalogRequest::WithTags
CreateDataCatalogRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDataCatalogRequest.h:495
Aws::Athena::Model::CreateDataCatalogRequest::GetType
const DataCatalogType & GetType() const
Definition: CreateDataCatalogRequest.h:106
Aws::Athena::Model::CreateDataCatalogRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDataCatalogRequest.h:34
Aws::Athena::Model::CreateDataCatalogRequest::SetType
void SetType(const DataCatalogType &value)
Definition: CreateDataCatalogRequest.h:126
Aws::Athena::Model::CreateDataCatalogRequest::WithParameters
CreateDataCatalogRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateDataCatalogRequest.h:298
Aws::Athena::Model::CreateDataCatalogRequest::AddParameters
CreateDataCatalogRequest & AddParameters(const Aws::String &key, const Aws::String &value)
Definition: CreateDataCatalogRequest.h:338
Aws::Athena::Model::CreateDataCatalogRequest::WithParameters
CreateDataCatalogRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateDataCatalogRequest.h:318
Aws::Athena::Model::CreateDataCatalogRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDataCatalogRequest.h:477
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::CreateDataCatalogRequest::WithDescription
CreateDataCatalogRequest & WithDescription(Aws::String &&value)
Definition: CreateDataCatalogRequest.h:192
Aws::Athena::Model::CreateDataCatalogRequest::GetParameters
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition: CreateDataCatalogRequest.h:218
Aws::Athena::Model::CreateDataCatalogRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Athena::Model::CreateDataCatalogRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Athena::Model::CreateDataCatalogRequest::CreateDataCatalogRequest
CreateDataCatalogRequest()
Aws::Athena::Model::CreateDataCatalogRequest::GetName
const Aws::String & GetName() const
Definition: CreateDataCatalogRequest.h:46
Aws::Athena::Model::CreateDataCatalogRequest::SetParameters
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateDataCatalogRequest.h:278
Aws::Athena::Model::CreateDataCatalogRequest::WithDescription
CreateDataCatalogRequest & WithDescription(const char *value)
Definition: CreateDataCatalogRequest.h:197
Aws::Athena::Model::Tag
Definition: Tag.h:44
Aws::Athena::Model::CreateDataCatalogRequest::SetParameters
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateDataCatalogRequest.h:258
Aws::Athena::Model::CreateDataCatalogRequest::WithTags
CreateDataCatalogRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDataCatalogRequest.h:489
Aws::Athena::Model::CreateDataCatalogRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDataCatalogRequest.h:465
Aws::Athena::Model::CreateDataCatalogRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateDataCatalogRequest.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::CreateDataCatalogRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateDataCatalogRequest.h:67
Aws::Athena::Model::CreateDataCatalogRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateDataCatalogRequest.h:60
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::CreateDataCatalogRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDataCatalogRequest.h:483
Aws::Athena::Model::CreateDataCatalogRequest::WithName
CreateDataCatalogRequest & WithName(const char *value)
Definition: CreateDataCatalogRequest.h:95
Aws::Athena::Model::CreateDataCatalogRequest::AddTags
CreateDataCatalogRequest & AddTags(Tag &&value)
Definition: CreateDataCatalogRequest.h:507
Aws::Athena::Model::CreateDataCatalogRequest::SetType
void SetType(DataCatalogType &&value)
Definition: CreateDataCatalogRequest.h:136
Aws::Athena::Model::CreateDataCatalogRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateDataCatalogRequest.h:172
AthenaRequest.h
Aws::Athena::Model::CreateDataCatalogRequest::AddParameters
CreateDataCatalogRequest & AddParameters(const char *key, Aws::String &&value)
Definition: CreateDataCatalogRequest.h:418
Aws::Athena::Model::DataCatalogType
DataCatalogType
Definition: DataCatalogType.h:17
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::Athena::Model::CreateDataCatalogRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateDataCatalogRequest.h:162