AWS SDK for C++  1.8.71
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 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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 
201  inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
202 
222  inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
223 
243  inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
244 
264  inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
265 
285  inline CreateDataCatalogRequest& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
286 
306  inline CreateDataCatalogRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
307 
327  inline CreateDataCatalogRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
328 
348  inline CreateDataCatalogRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
349 
369  inline CreateDataCatalogRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
370 
390  inline CreateDataCatalogRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
391 
411  inline CreateDataCatalogRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
412 
432  inline CreateDataCatalogRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
433 
453  inline CreateDataCatalogRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
454 
455 
460  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
461 
466  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
467 
472  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
473 
478  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
479 
484  inline CreateDataCatalogRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
485 
490  inline CreateDataCatalogRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
491 
496  inline CreateDataCatalogRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
497 
502  inline CreateDataCatalogRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
503 
504  private:
505 
506  Aws::String m_name;
507  bool m_nameHasBeenSet;
508 
509  DataCatalogType m_type;
510  bool m_typeHasBeenSet;
511 
512  Aws::String m_description;
513  bool m_descriptionHasBeenSet;
514 
516  bool m_parametersHasBeenSet;
517 
518  Aws::Vector<Tag> m_tags;
519  bool m_tagsHasBeenSet;
520  };
521 
522 } // namespace Model
523 } // namespace Athena
524 } // namespace Aws
CreateDataCatalogRequest & WithName(const char *value)
CreateDataCatalogRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
CreateDataCatalogRequest & WithName(const Aws::String &value)
CreateDataCatalogRequest & AddTags(const Tag &value)
CreateDataCatalogRequest & AddParameters(Aws::String &&key, const char *value)
#define AWS_ATHENA_API
void SetTags(const Aws::Vector< Tag > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
CreateDataCatalogRequest & AddParameters(const Aws::String &key, Aws::String &&value)
CreateDataCatalogRequest & AddParameters(const Aws::String &key, const Aws::String &value)
CreateDataCatalogRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDataCatalogRequest & WithType(DataCatalogType &&value)
CreateDataCatalogRequest & WithDescription(Aws::String &&value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
CreateDataCatalogRequest & AddTags(Tag &&value)
CreateDataCatalogRequest & WithName(Aws::String &&value)
CreateDataCatalogRequest & AddParameters(const char *key, const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateDataCatalogRequest & WithDescription(const Aws::String &value)
CreateDataCatalogRequest & AddParameters(const char *key, Aws::String &&value)
CreateDataCatalogRequest & WithDescription(const char *value)
CreateDataCatalogRequest & AddParameters(Aws::String &&key, const Aws::String &value)
CreateDataCatalogRequest & AddParameters(Aws::String &&key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateDataCatalogRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDataCatalogRequest & WithType(const DataCatalogType &value)
CreateDataCatalogRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)