AWS SDK for C++  1.9.108
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 
103  inline const DataCatalogType& GetType() const{ return m_type; }
104 
110  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
111 
117  inline void SetType(const DataCatalogType& value) { m_typeHasBeenSet = true; m_type = value; }
118 
124  inline void SetType(DataCatalogType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
125 
131  inline CreateDataCatalogRequest& WithType(const DataCatalogType& value) { SetType(value); return *this;}
132 
138  inline CreateDataCatalogRequest& WithType(DataCatalogType&& value) { SetType(std::move(value)); return *this;}
139 
140 
144  inline const Aws::String& GetDescription() const{ return m_description; }
145 
149  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
150 
154  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
155 
159  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
160 
164  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
165 
169  inline CreateDataCatalogRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
170 
174  inline CreateDataCatalogRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
175 
179  inline CreateDataCatalogRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
180 
181 
210  inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
211 
240  inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
241 
270  inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
271 
300  inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
301 
330  inline CreateDataCatalogRequest& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
331 
360  inline CreateDataCatalogRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
361 
390  inline CreateDataCatalogRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
391 
420  inline CreateDataCatalogRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
421 
450  inline CreateDataCatalogRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
451 
480  inline CreateDataCatalogRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
481 
510  inline CreateDataCatalogRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
511 
540  inline CreateDataCatalogRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
541 
570  inline CreateDataCatalogRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
571 
572 
577  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
578 
583  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
584 
589  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
590 
595  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
596 
601  inline CreateDataCatalogRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
602 
607  inline CreateDataCatalogRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
608 
613  inline CreateDataCatalogRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
614 
619  inline CreateDataCatalogRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
620 
621  private:
622 
623  Aws::String m_name;
624  bool m_nameHasBeenSet;
625 
626  DataCatalogType m_type;
627  bool m_typeHasBeenSet;
628 
629  Aws::String m_description;
630  bool m_descriptionHasBeenSet;
631 
633  bool m_parametersHasBeenSet;
634 
635  Aws::Vector<Tag> m_tags;
636  bool m_tagsHasBeenSet;
637  };
638 
639 } // namespace Model
640 } // namespace Athena
641 } // namespace Aws
Aws::Athena::Model::CreateDataCatalogRequest::ParametersHasBeenSet
bool ParametersHasBeenSet() const
Definition: CreateDataCatalogRequest.h:240
Tag.h
Aws::Athena::Model::CreateDataCatalogRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDataCatalogRequest.h:583
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:450
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:164
Aws::Athena::Model::CreateDataCatalogRequest::WithDescription
CreateDataCatalogRequest & WithDescription(const Aws::String &value)
Definition: CreateDataCatalogRequest.h:169
Aws::Athena::Model::CreateDataCatalogRequest::WithType
CreateDataCatalogRequest & WithType(DataCatalogType &&value)
Definition: CreateDataCatalogRequest.h:138
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:613
Aws::Athena::Model::CreateDataCatalogRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateDataCatalogRequest.h:110
DataCatalogType.h
Aws::Athena::Model::CreateDataCatalogRequest::WithType
CreateDataCatalogRequest & WithType(const DataCatalogType &value)
Definition: CreateDataCatalogRequest.h:131
Aws::Athena::Model::CreateDataCatalogRequest::AddParameters
CreateDataCatalogRequest & AddParameters(const char *key, const char *value)
Definition: CreateDataCatalogRequest.h:570
Aws::Athena::Model::CreateDataCatalogRequest::AddParameters
CreateDataCatalogRequest & AddParameters(Aws::String &&key, const char *value)
Definition: CreateDataCatalogRequest.h:540
Aws::Athena::Model::CreateDataCatalogRequest::AddParameters
CreateDataCatalogRequest & AddParameters(Aws::String &&key, const Aws::String &value)
Definition: CreateDataCatalogRequest.h:420
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:159
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:149
AWSVector.h
Aws::Athena::Model::CreateDataCatalogRequest::AddParameters
CreateDataCatalogRequest & AddParameters(Aws::String &&key, Aws::String &&value)
Definition: CreateDataCatalogRequest.h:480
Aws::Athena::Model::CreateDataCatalogRequest::WithTags
CreateDataCatalogRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDataCatalogRequest.h:607
Aws::Athena::Model::CreateDataCatalogRequest::GetType
const DataCatalogType & GetType() const
Definition: CreateDataCatalogRequest.h:103
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:117
Aws::Athena::Model::CreateDataCatalogRequest::WithParameters
CreateDataCatalogRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateDataCatalogRequest.h:330
Aws::Athena::Model::CreateDataCatalogRequest::AddParameters
CreateDataCatalogRequest & AddParameters(const Aws::String &key, const Aws::String &value)
Definition: CreateDataCatalogRequest.h:390
Aws::Athena::Model::CreateDataCatalogRequest::WithParameters
CreateDataCatalogRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateDataCatalogRequest.h:360
Aws::Athena::Model::CreateDataCatalogRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDataCatalogRequest.h:589
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::CreateDataCatalogRequest::WithDescription
CreateDataCatalogRequest & WithDescription(Aws::String &&value)
Definition: CreateDataCatalogRequest.h:174
Aws::Athena::Model::CreateDataCatalogRequest::GetParameters
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition: CreateDataCatalogRequest.h:210
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:300
Aws::Athena::Model::CreateDataCatalogRequest::WithDescription
CreateDataCatalogRequest & WithDescription(const char *value)
Definition: CreateDataCatalogRequest.h:179
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:270
Aws::Athena::Model::CreateDataCatalogRequest::WithTags
CreateDataCatalogRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDataCatalogRequest.h:601
Aws::Athena::Model::CreateDataCatalogRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDataCatalogRequest.h:577
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:595
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:619
Aws::Athena::Model::CreateDataCatalogRequest::SetType
void SetType(DataCatalogType &&value)
Definition: CreateDataCatalogRequest.h:124
Aws::Athena::Model::CreateDataCatalogRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateDataCatalogRequest.h:154
AthenaRequest.h
Aws::Athena::Model::CreateDataCatalogRequest::AddParameters
CreateDataCatalogRequest & AddParameters(const char *key, Aws::String &&value)
Definition: CreateDataCatalogRequest.h:510
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:144