AWS SDK for C++  1.9.40
AWS SDK for C++
UpdateDatabaseRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/glue/GlueRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Glue
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateDatabase"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
43 
48  inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
49 
54  inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
55 
60  inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
61 
66  inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
67 
72  inline UpdateDatabaseRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
73 
78  inline UpdateDatabaseRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
79 
84  inline UpdateDatabaseRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
85 
86 
91  inline const Aws::String& GetName() const{ return m_name; }
92 
97  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 
103  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
104 
109  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
110 
115  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
116 
121  inline UpdateDatabaseRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
122 
127  inline UpdateDatabaseRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
128 
133  inline UpdateDatabaseRequest& WithName(const char* value) { SetName(value); return *this;}
134 
135 
140  inline const DatabaseInput& GetDatabaseInput() const{ return m_databaseInput; }
141 
146  inline bool DatabaseInputHasBeenSet() const { return m_databaseInputHasBeenSet; }
147 
152  inline void SetDatabaseInput(const DatabaseInput& value) { m_databaseInputHasBeenSet = true; m_databaseInput = value; }
153 
158  inline void SetDatabaseInput(DatabaseInput&& value) { m_databaseInputHasBeenSet = true; m_databaseInput = std::move(value); }
159 
164  inline UpdateDatabaseRequest& WithDatabaseInput(const DatabaseInput& value) { SetDatabaseInput(value); return *this;}
165 
170  inline UpdateDatabaseRequest& WithDatabaseInput(DatabaseInput&& value) { SetDatabaseInput(std::move(value)); return *this;}
171 
172  private:
173 
174  Aws::String m_catalogId;
175  bool m_catalogIdHasBeenSet;
176 
177  Aws::String m_name;
178  bool m_nameHasBeenSet;
179 
180  DatabaseInput m_databaseInput;
181  bool m_databaseInputHasBeenSet;
182  };
183 
184 } // namespace Model
185 } // namespace Glue
186 } // namespace Aws
Aws::Glue::Model::UpdateDatabaseRequest::DatabaseInputHasBeenSet
bool DatabaseInputHasBeenSet() const
Definition: UpdateDatabaseRequest.h:146
Aws::Glue::Model::UpdateDatabaseRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateDatabaseRequest.h:109
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Glue::Model::UpdateDatabaseRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDatabaseRequest.h:31
DatabaseInput.h
Aws::Glue::Model::UpdateDatabaseRequest::GetCatalogId
const Aws::String & GetCatalogId() const
Definition: UpdateDatabaseRequest.h:42
Glue_EXPORTS.h
Aws::Glue::Model::DatabaseInput
Definition: DatabaseInput.h:37
Aws::Glue::Model::UpdateDatabaseRequest::SetCatalogId
void SetCatalogId(Aws::String &&value)
Definition: UpdateDatabaseRequest.h:60
Aws::Glue::Model::UpdateDatabaseRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Glue::Model::UpdateDatabaseRequest::GetName
const Aws::String & GetName() const
Definition: UpdateDatabaseRequest.h:91
Aws::Glue::Model::UpdateDatabaseRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Glue::Model::UpdateDatabaseRequest::WithDatabaseInput
UpdateDatabaseRequest & WithDatabaseInput(const DatabaseInput &value)
Definition: UpdateDatabaseRequest.h:164
Aws::Glue::Model::UpdateDatabaseRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateDatabaseRequest.h:97
Aws::Glue::Model::UpdateDatabaseRequest::SetName
void SetName(const char *value)
Definition: UpdateDatabaseRequest.h:115
Aws::Glue::Model::UpdateDatabaseRequest
Definition: UpdateDatabaseRequest.h:23
Aws::Glue::Model::UpdateDatabaseRequest::WithCatalogId
UpdateDatabaseRequest & WithCatalogId(Aws::String &&value)
Definition: UpdateDatabaseRequest.h:78
Aws::Glue::Model::UpdateDatabaseRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateDatabaseRequest.h:103
Aws::Glue::Model::UpdateDatabaseRequest::WithCatalogId
UpdateDatabaseRequest & WithCatalogId(const Aws::String &value)
Definition: UpdateDatabaseRequest.h:72
AWS_GLUE_API
#define AWS_GLUE_API
Definition: Glue_EXPORTS.h:28
Aws::Glue::Model::UpdateDatabaseRequest::WithName
UpdateDatabaseRequest & WithName(const Aws::String &value)
Definition: UpdateDatabaseRequest.h:121
Aws::Glue::Model::UpdateDatabaseRequest::WithCatalogId
UpdateDatabaseRequest & WithCatalogId(const char *value)
Definition: UpdateDatabaseRequest.h:84
Aws::Glue::Model::UpdateDatabaseRequest::GetDatabaseInput
const DatabaseInput & GetDatabaseInput() const
Definition: UpdateDatabaseRequest.h:140
Aws::Glue::Model::UpdateDatabaseRequest::UpdateDatabaseRequest
UpdateDatabaseRequest()
Aws::Glue::Model::UpdateDatabaseRequest::SetCatalogId
void SetCatalogId(const Aws::String &value)
Definition: UpdateDatabaseRequest.h:54
AWSString.h
Aws::Glue::Model::UpdateDatabaseRequest::CatalogIdHasBeenSet
bool CatalogIdHasBeenSet() const
Definition: UpdateDatabaseRequest.h:48
Aws::Glue::GlueRequest
Definition: GlueRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glue::Model::UpdateDatabaseRequest::SetCatalogId
void SetCatalogId(const char *value)
Definition: UpdateDatabaseRequest.h:66
Aws::Glue::Model::UpdateDatabaseRequest::WithName
UpdateDatabaseRequest & WithName(const char *value)
Definition: UpdateDatabaseRequest.h:133
Aws::Glue::Model::UpdateDatabaseRequest::WithDatabaseInput
UpdateDatabaseRequest & WithDatabaseInput(DatabaseInput &&value)
Definition: UpdateDatabaseRequest.h:170
Aws::Glue::Model::UpdateDatabaseRequest::WithName
UpdateDatabaseRequest & WithName(Aws::String &&value)
Definition: UpdateDatabaseRequest.h:127
Aws::Glue::Model::UpdateDatabaseRequest::SetDatabaseInput
void SetDatabaseInput(const DatabaseInput &value)
Definition: UpdateDatabaseRequest.h:152
GlueRequest.h
Aws::Glue::Model::UpdateDatabaseRequest::SetDatabaseInput
void SetDatabaseInput(DatabaseInput &&value)
Definition: UpdateDatabaseRequest.h:158