AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DataCatalogOutput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/databrew/GlueDataBrew_EXPORTS.h>
9#include <aws/databrew/model/DatabaseTableOutputOptions.h>
10#include <aws/databrew/model/S3TableOutputOptions.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GlueDataBrew {
22namespace Model {
23
32 public:
33 AWS_GLUEDATABREW_API DataCatalogOutput() = default;
34 AWS_GLUEDATABREW_API DataCatalogOutput(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GLUEDATABREW_API DataCatalogOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
44 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
45 template <typename CatalogIdT = Aws::String>
46 void SetCatalogId(CatalogIdT&& value) {
47 m_catalogIdHasBeenSet = true;
48 m_catalogId = std::forward<CatalogIdT>(value);
49 }
50 template <typename CatalogIdT = Aws::String>
51 DataCatalogOutput& WithCatalogId(CatalogIdT&& value) {
52 SetCatalogId(std::forward<CatalogIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
62 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
63 template <typename DatabaseNameT = Aws::String>
64 void SetDatabaseName(DatabaseNameT&& value) {
65 m_databaseNameHasBeenSet = true;
66 m_databaseName = std::forward<DatabaseNameT>(value);
67 }
68 template <typename DatabaseNameT = Aws::String>
69 DataCatalogOutput& WithDatabaseName(DatabaseNameT&& value) {
70 SetDatabaseName(std::forward<DatabaseNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetTableName() const { return m_tableName; }
80 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
81 template <typename TableNameT = Aws::String>
82 void SetTableName(TableNameT&& value) {
83 m_tableNameHasBeenSet = true;
84 m_tableName = std::forward<TableNameT>(value);
85 }
86 template <typename TableNameT = Aws::String>
87 DataCatalogOutput& WithTableName(TableNameT&& value) {
88 SetTableName(std::forward<TableNameT>(value));
89 return *this;
90 }
92
94
98 inline const S3TableOutputOptions& GetS3Options() const { return m_s3Options; }
99 inline bool S3OptionsHasBeenSet() const { return m_s3OptionsHasBeenSet; }
100 template <typename S3OptionsT = S3TableOutputOptions>
101 void SetS3Options(S3OptionsT&& value) {
102 m_s3OptionsHasBeenSet = true;
103 m_s3Options = std::forward<S3OptionsT>(value);
104 }
105 template <typename S3OptionsT = S3TableOutputOptions>
106 DataCatalogOutput& WithS3Options(S3OptionsT&& value) {
107 SetS3Options(std::forward<S3OptionsT>(value));
108 return *this;
109 }
111
113
117 inline const DatabaseTableOutputOptions& GetDatabaseOptions() const { return m_databaseOptions; }
118 inline bool DatabaseOptionsHasBeenSet() const { return m_databaseOptionsHasBeenSet; }
119 template <typename DatabaseOptionsT = DatabaseTableOutputOptions>
120 void SetDatabaseOptions(DatabaseOptionsT&& value) {
121 m_databaseOptionsHasBeenSet = true;
122 m_databaseOptions = std::forward<DatabaseOptionsT>(value);
123 }
124 template <typename DatabaseOptionsT = DatabaseTableOutputOptions>
125 DataCatalogOutput& WithDatabaseOptions(DatabaseOptionsT&& value) {
126 SetDatabaseOptions(std::forward<DatabaseOptionsT>(value));
127 return *this;
128 }
130
132
136 inline bool GetOverwrite() const { return m_overwrite; }
137 inline bool OverwriteHasBeenSet() const { return m_overwriteHasBeenSet; }
138 inline void SetOverwrite(bool value) {
139 m_overwriteHasBeenSet = true;
140 m_overwrite = value;
141 }
142 inline DataCatalogOutput& WithOverwrite(bool value) {
143 SetOverwrite(value);
144 return *this;
145 }
147 private:
148 Aws::String m_catalogId;
149
150 Aws::String m_databaseName;
151
152 Aws::String m_tableName;
153
154 S3TableOutputOptions m_s3Options;
155
156 DatabaseTableOutputOptions m_databaseOptions;
157
158 bool m_overwrite{false};
159 bool m_catalogIdHasBeenSet = false;
160 bool m_databaseNameHasBeenSet = false;
161 bool m_tableNameHasBeenSet = false;
162 bool m_s3OptionsHasBeenSet = false;
163 bool m_databaseOptionsHasBeenSet = false;
164 bool m_overwriteHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace GlueDataBrew
169} // namespace Aws
DataCatalogOutput & WithOverwrite(bool value)
DataCatalogOutput & WithDatabaseOptions(DatabaseOptionsT &&value)
DataCatalogOutput & WithS3Options(S3OptionsT &&value)
AWS_GLUEDATABREW_API DataCatalogOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUEDATABREW_API DataCatalogOutput(Aws::Utils::Json::JsonView jsonValue)
DataCatalogOutput & WithDatabaseName(DatabaseNameT &&value)
AWS_GLUEDATABREW_API DataCatalogOutput()=default
const DatabaseTableOutputOptions & GetDatabaseOptions() const
void SetDatabaseOptions(DatabaseOptionsT &&value)
const S3TableOutputOptions & GetS3Options() const
DataCatalogOutput & WithCatalogId(CatalogIdT &&value)
DataCatalogOutput & WithTableName(TableNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue