AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DirectSchemaChangePolicy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/UpdateCatalogBehavior.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
30 public:
31 AWS_GLUE_API DirectSchemaChangePolicy() = default;
35
37
41 inline bool GetEnableUpdateCatalog() const { return m_enableUpdateCatalog; }
42 inline bool EnableUpdateCatalogHasBeenSet() const { return m_enableUpdateCatalogHasBeenSet; }
43 inline void SetEnableUpdateCatalog(bool value) {
44 m_enableUpdateCatalogHasBeenSet = true;
45 m_enableUpdateCatalog = value;
46 }
49 return *this;
50 }
52
54
57 inline UpdateCatalogBehavior GetUpdateBehavior() const { return m_updateBehavior; }
58 inline bool UpdateBehaviorHasBeenSet() const { return m_updateBehaviorHasBeenSet; }
60 m_updateBehaviorHasBeenSet = true;
61 m_updateBehavior = value;
62 }
64 SetUpdateBehavior(value);
65 return *this;
66 }
68
70
74 inline const Aws::String& GetTable() const { return m_table; }
75 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
76 template <typename TableT = Aws::String>
77 void SetTable(TableT&& value) {
78 m_tableHasBeenSet = true;
79 m_table = std::forward<TableT>(value);
80 }
81 template <typename TableT = Aws::String>
83 SetTable(std::forward<TableT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDatabase() const { return m_database; }
93 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
94 template <typename DatabaseT = Aws::String>
95 void SetDatabase(DatabaseT&& value) {
96 m_databaseHasBeenSet = true;
97 m_database = std::forward<DatabaseT>(value);
98 }
99 template <typename DatabaseT = Aws::String>
101 SetDatabase(std::forward<DatabaseT>(value));
102 return *this;
103 }
105 private:
106 bool m_enableUpdateCatalog{false};
107
109
110 Aws::String m_table;
111
112 Aws::String m_database;
113 bool m_enableUpdateCatalogHasBeenSet = false;
114 bool m_updateBehaviorHasBeenSet = false;
115 bool m_tableHasBeenSet = false;
116 bool m_databaseHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace Glue
121} // 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