1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/athena/Athena_EXPORTS.h> 8 #include <aws/athena/AthenaRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Athena 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_ATHENA_API GetDatabaseRequest : public AthenaRequest 22 { 23 public: 24 GetDatabaseRequest(); 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. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "GetDatabase"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>The name of the data catalog that contains the database to return.</p> 39 */ GetCatalogName()40 inline const Aws::String& GetCatalogName() const{ return m_catalogName; } 41 42 /** 43 * <p>The name of the data catalog that contains the database to return.</p> 44 */ CatalogNameHasBeenSet()45 inline bool CatalogNameHasBeenSet() const { return m_catalogNameHasBeenSet; } 46 47 /** 48 * <p>The name of the data catalog that contains the database to return.</p> 49 */ SetCatalogName(const Aws::String & value)50 inline void SetCatalogName(const Aws::String& value) { m_catalogNameHasBeenSet = true; m_catalogName = value; } 51 52 /** 53 * <p>The name of the data catalog that contains the database to return.</p> 54 */ SetCatalogName(Aws::String && value)55 inline void SetCatalogName(Aws::String&& value) { m_catalogNameHasBeenSet = true; m_catalogName = std::move(value); } 56 57 /** 58 * <p>The name of the data catalog that contains the database to return.</p> 59 */ SetCatalogName(const char * value)60 inline void SetCatalogName(const char* value) { m_catalogNameHasBeenSet = true; m_catalogName.assign(value); } 61 62 /** 63 * <p>The name of the data catalog that contains the database to return.</p> 64 */ WithCatalogName(const Aws::String & value)65 inline GetDatabaseRequest& WithCatalogName(const Aws::String& value) { SetCatalogName(value); return *this;} 66 67 /** 68 * <p>The name of the data catalog that contains the database to return.</p> 69 */ WithCatalogName(Aws::String && value)70 inline GetDatabaseRequest& WithCatalogName(Aws::String&& value) { SetCatalogName(std::move(value)); return *this;} 71 72 /** 73 * <p>The name of the data catalog that contains the database to return.</p> 74 */ WithCatalogName(const char * value)75 inline GetDatabaseRequest& WithCatalogName(const char* value) { SetCatalogName(value); return *this;} 76 77 78 /** 79 * <p>The name of the database to return.</p> 80 */ GetDatabaseName()81 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; } 82 83 /** 84 * <p>The name of the database to return.</p> 85 */ DatabaseNameHasBeenSet()86 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; } 87 88 /** 89 * <p>The name of the database to return.</p> 90 */ SetDatabaseName(const Aws::String & value)91 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; } 92 93 /** 94 * <p>The name of the database to return.</p> 95 */ SetDatabaseName(Aws::String && value)96 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); } 97 98 /** 99 * <p>The name of the database to return.</p> 100 */ SetDatabaseName(const char * value)101 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); } 102 103 /** 104 * <p>The name of the database to return.</p> 105 */ WithDatabaseName(const Aws::String & value)106 inline GetDatabaseRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;} 107 108 /** 109 * <p>The name of the database to return.</p> 110 */ WithDatabaseName(Aws::String && value)111 inline GetDatabaseRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;} 112 113 /** 114 * <p>The name of the database to return.</p> 115 */ WithDatabaseName(const char * value)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 130