AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDatabaseRequest.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/model/DatabaseInput.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Glue
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GLUE_API CreateDatabaseRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDatabase"; }
33
34 AWS_GLUE_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
45 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
46 inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
47 inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
48 inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
49 inline CreateDatabaseRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
50 inline CreateDatabaseRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
51 inline CreateDatabaseRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
53
55
58 inline const DatabaseInput& GetDatabaseInput() const{ return m_databaseInput; }
59 inline bool DatabaseInputHasBeenSet() const { return m_databaseInputHasBeenSet; }
60 inline void SetDatabaseInput(const DatabaseInput& value) { m_databaseInputHasBeenSet = true; m_databaseInput = value; }
61 inline void SetDatabaseInput(DatabaseInput&& value) { m_databaseInputHasBeenSet = true; m_databaseInput = std::move(value); }
62 inline CreateDatabaseRequest& WithDatabaseInput(const DatabaseInput& value) { SetDatabaseInput(value); return *this;}
63 inline CreateDatabaseRequest& WithDatabaseInput(DatabaseInput&& value) { SetDatabaseInput(std::move(value)); return *this;}
65
67
70 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
71 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
72 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
73 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
74 inline CreateDatabaseRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
75 inline CreateDatabaseRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
76 inline CreateDatabaseRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
77 inline CreateDatabaseRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
78 inline CreateDatabaseRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
79 inline CreateDatabaseRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
80 inline CreateDatabaseRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
81 inline CreateDatabaseRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
82 inline CreateDatabaseRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
84 private:
85
86 Aws::String m_catalogId;
87 bool m_catalogIdHasBeenSet = false;
88
89 DatabaseInput m_databaseInput;
90 bool m_databaseInputHasBeenSet = false;
91
93 bool m_tagsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Glue
98} // namespace Aws
CreateDatabaseRequest & AddTags(const char *key, const char *value)
CreateDatabaseRequest & WithDatabaseInput(const DatabaseInput &value)
CreateDatabaseRequest & AddTags(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetDatabaseInput(const DatabaseInput &value)
CreateDatabaseRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateDatabaseRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDatabaseRequest & WithCatalogId(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetCatalogId(const Aws::String &value)
CreateDatabaseRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateDatabaseRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateDatabaseRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateDatabaseRequest & AddTags(const char *key, Aws::String &&value)
CreateDatabaseRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateDatabaseRequest & WithCatalogId(Aws::String &&value)
const DatabaseInput & GetDatabaseInput() const
CreateDatabaseRequest & WithDatabaseInput(DatabaseInput &&value)
CreateDatabaseRequest & WithCatalogId(const Aws::String &value)
AWS_GLUE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
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