AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 const UpdateCatalogBehavior& GetUpdateBehavior() const{ return m_updateBehavior; }
58 inline bool UpdateBehaviorHasBeenSet() const { return m_updateBehaviorHasBeenSet; }
59 inline void SetUpdateBehavior(const UpdateCatalogBehavior& value) { m_updateBehaviorHasBeenSet = true; m_updateBehavior = value; }
60 inline void SetUpdateBehavior(UpdateCatalogBehavior&& value) { m_updateBehaviorHasBeenSet = true; m_updateBehavior = std::move(value); }
62 inline DirectSchemaChangePolicy& WithUpdateBehavior(UpdateCatalogBehavior&& value) { SetUpdateBehavior(std::move(value)); return *this;}
64
66
70 inline const Aws::String& GetTable() const{ return m_table; }
71 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
72 inline void SetTable(const Aws::String& value) { m_tableHasBeenSet = true; m_table = value; }
73 inline void SetTable(Aws::String&& value) { m_tableHasBeenSet = true; m_table = std::move(value); }
74 inline void SetTable(const char* value) { m_tableHasBeenSet = true; m_table.assign(value); }
75 inline DirectSchemaChangePolicy& WithTable(const Aws::String& value) { SetTable(value); return *this;}
76 inline DirectSchemaChangePolicy& WithTable(Aws::String&& value) { SetTable(std::move(value)); return *this;}
77 inline DirectSchemaChangePolicy& WithTable(const char* value) { SetTable(value); return *this;}
79
81
84 inline const Aws::String& GetDatabase() const{ return m_database; }
85 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
86 inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; }
87 inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
88 inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); }
89 inline DirectSchemaChangePolicy& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
90 inline DirectSchemaChangePolicy& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
91 inline DirectSchemaChangePolicy& WithDatabase(const char* value) { SetDatabase(value); return *this;}
93 private:
94
95 bool m_enableUpdateCatalog;
96 bool m_enableUpdateCatalogHasBeenSet = false;
97
98 UpdateCatalogBehavior m_updateBehavior;
99 bool m_updateBehaviorHasBeenSet = false;
100
101 Aws::String m_table;
102 bool m_tableHasBeenSet = false;
103
104 Aws::String m_database;
105 bool m_databaseHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Glue
110} // namespace Aws
AWS_GLUE_API DirectSchemaChangePolicy(Aws::Utils::Json::JsonView jsonValue)
DirectSchemaChangePolicy & WithDatabase(const char *value)
DirectSchemaChangePolicy & WithDatabase(Aws::String &&value)
void SetUpdateBehavior(const UpdateCatalogBehavior &value)
DirectSchemaChangePolicy & WithTable(const char *value)
DirectSchemaChangePolicy & WithUpdateBehavior(UpdateCatalogBehavior &&value)
DirectSchemaChangePolicy & WithUpdateBehavior(const UpdateCatalogBehavior &value)
DirectSchemaChangePolicy & WithEnableUpdateCatalog(bool value)
void SetUpdateBehavior(UpdateCatalogBehavior &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const UpdateCatalogBehavior & GetUpdateBehavior() const
DirectSchemaChangePolicy & WithDatabase(const Aws::String &value)
DirectSchemaChangePolicy & WithTable(Aws::String &&value)
DirectSchemaChangePolicy & WithTable(const Aws::String &value)
AWS_GLUE_API DirectSchemaChangePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue