AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Database.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Athena {
21namespace Model {
22
29class Database {
30 public:
31 AWS_ATHENA_API Database() = default;
32 AWS_ATHENA_API Database(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ATHENA_API Database& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 Database& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 Database& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const { return m_parameters; }
77 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
78 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
79 void SetParameters(ParametersT&& value) {
80 m_parametersHasBeenSet = true;
81 m_parameters = std::forward<ParametersT>(value);
82 }
83 template <typename ParametersT = Aws::Map<Aws::String, Aws::String>>
84 Database& WithParameters(ParametersT&& value) {
85 SetParameters(std::forward<ParametersT>(value));
86 return *this;
87 }
88 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::String>
89 Database& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
90 m_parametersHasBeenSet = true;
91 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_name;
97
98 Aws::String m_description;
99
101 bool m_nameHasBeenSet = false;
102 bool m_descriptionHasBeenSet = false;
103 bool m_parametersHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Athena
108} // namespace Aws
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition Database.h:76
AWS_ATHENA_API Database & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ParametersHasBeenSet() const
Definition Database.h:77
AWS_ATHENA_API Database(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition Database.h:43
bool NameHasBeenSet() const
Definition Database.h:41
Database & WithDescription(DescriptionT &&value)
Definition Database.h:66
void SetDescription(DescriptionT &&value)
Definition Database.h:61
const Aws::String & GetDescription() const
Definition Database.h:58
Database & WithName(NameT &&value)
Definition Database.h:48
Database & WithParameters(ParametersT &&value)
Definition Database.h:84
void SetParameters(ParametersT &&value)
Definition Database.h:79
AWS_ATHENA_API Database()=default
bool DescriptionHasBeenSet() const
Definition Database.h:59
Database & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition Database.h:89
const Aws::String & GetName() const
Definition Database.h:40
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
Aws::Utils::Json::JsonValue JsonValue