AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DirectSchemaChangePolicy.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/UpdateCatalogBehavior.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GLUE_API DirectSchemaChangePolicy() = default;
40
41
43
47 inline bool GetEnableUpdateCatalog() const { return m_enableUpdateCatalog; }
48 inline bool EnableUpdateCatalogHasBeenSet() const { return m_enableUpdateCatalogHasBeenSet; }
49 inline void SetEnableUpdateCatalog(bool value) { m_enableUpdateCatalogHasBeenSet = true; m_enableUpdateCatalog = value; }
50 inline DirectSchemaChangePolicy& WithEnableUpdateCatalog(bool value) { SetEnableUpdateCatalog(value); return *this;}
52
54
57 inline UpdateCatalogBehavior GetUpdateBehavior() const { return m_updateBehavior; }
58 inline bool UpdateBehaviorHasBeenSet() const { return m_updateBehaviorHasBeenSet; }
59 inline void SetUpdateBehavior(UpdateCatalogBehavior value) { m_updateBehaviorHasBeenSet = true; m_updateBehavior = value; }
62
64
68 inline const Aws::String& GetTable() const { return m_table; }
69 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
70 template<typename TableT = Aws::String>
71 void SetTable(TableT&& value) { m_tableHasBeenSet = true; m_table = std::forward<TableT>(value); }
72 template<typename TableT = Aws::String>
73 DirectSchemaChangePolicy& WithTable(TableT&& value) { SetTable(std::forward<TableT>(value)); return *this;}
75
77
80 inline const Aws::String& GetDatabase() const { return m_database; }
81 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
82 template<typename DatabaseT = Aws::String>
83 void SetDatabase(DatabaseT&& value) { m_databaseHasBeenSet = true; m_database = std::forward<DatabaseT>(value); }
84 template<typename DatabaseT = Aws::String>
85 DirectSchemaChangePolicy& WithDatabase(DatabaseT&& value) { SetDatabase(std::forward<DatabaseT>(value)); return *this;}
87 private:
88
89 bool m_enableUpdateCatalog{false};
90 bool m_enableUpdateCatalogHasBeenSet = false;
91
93 bool m_updateBehaviorHasBeenSet = false;
94
95 Aws::String m_table;
96 bool m_tableHasBeenSet = false;
97
98 Aws::String m_database;
99 bool m_databaseHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Glue
104} // namespace Aws
AWS_GLUE_API DirectSchemaChangePolicy(Aws::Utils::Json::JsonView jsonValue)
DirectSchemaChangePolicy & WithUpdateBehavior(UpdateCatalogBehavior value)
DirectSchemaChangePolicy & WithEnableUpdateCatalog(bool value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUpdateBehavior(UpdateCatalogBehavior value)
DirectSchemaChangePolicy & WithTable(TableT &&value)
AWS_GLUE_API DirectSchemaChangePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
DirectSchemaChangePolicy & WithDatabase(DatabaseT &&value)
AWS_GLUE_API DirectSchemaChangePolicy()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue