AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DataCatalogSummary.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/athena/model/ConnectionType.h>
9#include <aws/athena/model/DataCatalogStatus.h>
10#include <aws/athena/model/DataCatalogType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Athena {
23namespace Model {
24
32 public:
33 AWS_ATHENA_API DataCatalogSummary() = default;
36 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline const Aws::String& GetCatalogName() const { return m_catalogName; }
46 inline bool CatalogNameHasBeenSet() const { return m_catalogNameHasBeenSet; }
47 template <typename CatalogNameT = Aws::String>
48 void SetCatalogName(CatalogNameT&& value) {
49 m_catalogNameHasBeenSet = true;
50 m_catalogName = std::forward<CatalogNameT>(value);
51 }
52 template <typename CatalogNameT = Aws::String>
53 DataCatalogSummary& WithCatalogName(CatalogNameT&& value) {
54 SetCatalogName(std::forward<CatalogNameT>(value));
55 return *this;
56 }
58
60
63 inline DataCatalogType GetType() const { return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(DataCatalogType value) {
66 m_typeHasBeenSet = true;
67 m_type = value;
68 }
70 SetType(value);
71 return *this;
72 }
74
76
97 inline DataCatalogStatus GetStatus() const { return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 inline void SetStatus(DataCatalogStatus value) {
100 m_statusHasBeenSet = true;
101 m_status = value;
102 }
104 SetStatus(value);
105 return *this;
106 }
108
110
117 inline ConnectionType GetConnectionType() const { return m_connectionType; }
118 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
120 m_connectionTypeHasBeenSet = true;
121 m_connectionType = value;
122 }
124 SetConnectionType(value);
125 return *this;
126 }
128
130
133 inline const Aws::String& GetError() const { return m_error; }
134 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
135 template <typename ErrorT = Aws::String>
136 void SetError(ErrorT&& value) {
137 m_errorHasBeenSet = true;
138 m_error = std::forward<ErrorT>(value);
139 }
140 template <typename ErrorT = Aws::String>
141 DataCatalogSummary& WithError(ErrorT&& value) {
142 SetError(std::forward<ErrorT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_catalogName;
148
150
152
153 ConnectionType m_connectionType{ConnectionType::NOT_SET};
154
155 Aws::String m_error;
156 bool m_catalogNameHasBeenSet = false;
157 bool m_typeHasBeenSet = false;
158 bool m_statusHasBeenSet = false;
159 bool m_connectionTypeHasBeenSet = false;
160 bool m_errorHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace Athena
165} // namespace Aws
DataCatalogSummary & WithConnectionType(ConnectionType value)
DataCatalogSummary & WithCatalogName(CatalogNameT &&value)
DataCatalogSummary & WithStatus(DataCatalogStatus value)
const Aws::String & GetCatalogName() const
void SetCatalogName(CatalogNameT &&value)
AWS_ATHENA_API DataCatalogSummary()=default
AWS_ATHENA_API DataCatalogSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConnectionType(ConnectionType value)
void SetStatus(DataCatalogStatus value)
AWS_ATHENA_API DataCatalogSummary(Aws::Utils::Json::JsonView jsonValue)
DataCatalogSummary & WithType(DataCatalogType value)
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
DataCatalogSummary & WithError(ErrorT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue