AWS SDK for C++  1.9.16
AWS SDK for C++
GetDatabaseRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Athena
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetDatabase"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetCatalogName() const{ return m_catalogName; }
41 
45  inline bool CatalogNameHasBeenSet() const { return m_catalogNameHasBeenSet; }
46 
50  inline void SetCatalogName(const Aws::String& value) { m_catalogNameHasBeenSet = true; m_catalogName = value; }
51 
55  inline void SetCatalogName(Aws::String&& value) { m_catalogNameHasBeenSet = true; m_catalogName = std::move(value); }
56 
60  inline void SetCatalogName(const char* value) { m_catalogNameHasBeenSet = true; m_catalogName.assign(value); }
61 
65  inline GetDatabaseRequest& WithCatalogName(const Aws::String& value) { SetCatalogName(value); return *this;}
66 
70  inline GetDatabaseRequest& WithCatalogName(Aws::String&& value) { SetCatalogName(std::move(value)); return *this;}
71 
75  inline GetDatabaseRequest& WithCatalogName(const char* value) { SetCatalogName(value); return *this;}
76 
77 
81  inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
82 
86  inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
87 
91  inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
92 
96  inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
97 
101  inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
102 
106  inline GetDatabaseRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
107 
111  inline GetDatabaseRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
112 
116  inline GetDatabaseRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
117 
118  private:
119 
120  Aws::String m_catalogName;
121  bool m_catalogNameHasBeenSet;
122 
123  Aws::String m_databaseName;
124  bool m_databaseNameHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace Athena
129 } // namespace Aws
Aws::Athena::Model::GetDatabaseRequest::WithDatabaseName
GetDatabaseRequest & WithDatabaseName(const Aws::String &value)
Definition: GetDatabaseRequest.h:106
Aws::Athena::Model::GetDatabaseRequest::SetDatabaseName
void SetDatabaseName(const Aws::String &value)
Definition: GetDatabaseRequest.h:91
Aws::Athena::Model::GetDatabaseRequest::SetCatalogName
void SetCatalogName(Aws::String &&value)
Definition: GetDatabaseRequest.h:55
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::AthenaRequest
Definition: AthenaRequest.h:17
Aws::Athena::Model::GetDatabaseRequest::WithCatalogName
GetDatabaseRequest & WithCatalogName(const char *value)
Definition: GetDatabaseRequest.h:75
Aws::Athena::Model::GetDatabaseRequest::SetCatalogName
void SetCatalogName(const char *value)
Definition: GetDatabaseRequest.h:60
Aws::Athena::Model::GetDatabaseRequest::WithCatalogName
GetDatabaseRequest & WithCatalogName(const Aws::String &value)
Definition: GetDatabaseRequest.h:65
Aws::Athena::Model::GetDatabaseRequest::SetDatabaseName
void SetDatabaseName(Aws::String &&value)
Definition: GetDatabaseRequest.h:96
Aws::Athena::Model::GetDatabaseRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Athena::Model::GetDatabaseRequest::DatabaseNameHasBeenSet
bool DatabaseNameHasBeenSet() const
Definition: GetDatabaseRequest.h:86
Aws::Athena::Model::GetDatabaseRequest::GetCatalogName
const Aws::String & GetCatalogName() const
Definition: GetDatabaseRequest.h:40
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::GetDatabaseRequest::SetDatabaseName
void SetDatabaseName(const char *value)
Definition: GetDatabaseRequest.h:101
Aws::Athena::Model::GetDatabaseRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Athena::Model::GetDatabaseRequest::SetCatalogName
void SetCatalogName(const Aws::String &value)
Definition: GetDatabaseRequest.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::GetDatabaseRequest::GetDatabaseName
const Aws::String & GetDatabaseName() const
Definition: GetDatabaseRequest.h:81
Aws::Athena::Model::GetDatabaseRequest::WithDatabaseName
GetDatabaseRequest & WithDatabaseName(Aws::String &&value)
Definition: GetDatabaseRequest.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::GetDatabaseRequest::GetDatabaseRequest
GetDatabaseRequest()
AthenaRequest.h
Aws::Athena::Model::GetDatabaseRequest::WithDatabaseName
GetDatabaseRequest & WithDatabaseName(const char *value)
Definition: GetDatabaseRequest.h:116
Aws::Athena::Model::GetDatabaseRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetDatabaseRequest.h:30
Aws::Athena::Model::GetDatabaseRequest::WithCatalogName
GetDatabaseRequest & WithCatalogName(Aws::String &&value)
Definition: GetDatabaseRequest.h:70
Aws::Athena::Model::GetDatabaseRequest
Definition: GetDatabaseRequest.h:22
Aws::Athena::Model::GetDatabaseRequest::CatalogNameHasBeenSet
bool CatalogNameHasBeenSet() const
Definition: GetDatabaseRequest.h:45