AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GovernedCatalogTarget.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/model/CatalogSchemaChangePolicy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GLUE_API GovernedCatalogTarget();
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline GovernedCatalogTarget& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline GovernedCatalogTarget& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline GovernedCatalogTarget& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetInputs() const{ return m_inputs; }
62 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
63 inline void SetInputs(const Aws::Vector<Aws::String>& value) { m_inputsHasBeenSet = true; m_inputs = value; }
64 inline void SetInputs(Aws::Vector<Aws::String>&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); }
65 inline GovernedCatalogTarget& WithInputs(const Aws::Vector<Aws::String>& value) { SetInputs(value); return *this;}
66 inline GovernedCatalogTarget& WithInputs(Aws::Vector<Aws::String>&& value) { SetInputs(std::move(value)); return *this;}
67 inline GovernedCatalogTarget& AddInputs(const Aws::String& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
68 inline GovernedCatalogTarget& AddInputs(Aws::String&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; }
69 inline GovernedCatalogTarget& AddInputs(const char* value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
71
73
76 inline const Aws::Vector<Aws::Vector<Aws::String>>& GetPartitionKeys() const{ return m_partitionKeys; }
77 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
78 inline void SetPartitionKeys(const Aws::Vector<Aws::Vector<Aws::String>>& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = value; }
79 inline void SetPartitionKeys(Aws::Vector<Aws::Vector<Aws::String>>&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::move(value); }
82 inline GovernedCatalogTarget& AddPartitionKeys(const Aws::Vector<Aws::String>& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(value); return *this; }
83 inline GovernedCatalogTarget& AddPartitionKeys(Aws::Vector<Aws::String>&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(std::move(value)); return *this; }
85
87
90 inline const Aws::String& GetTable() const{ return m_table; }
91 inline bool TableHasBeenSet() const { return m_tableHasBeenSet; }
92 inline void SetTable(const Aws::String& value) { m_tableHasBeenSet = true; m_table = value; }
93 inline void SetTable(Aws::String&& value) { m_tableHasBeenSet = true; m_table = std::move(value); }
94 inline void SetTable(const char* value) { m_tableHasBeenSet = true; m_table.assign(value); }
95 inline GovernedCatalogTarget& WithTable(const Aws::String& value) { SetTable(value); return *this;}
96 inline GovernedCatalogTarget& WithTable(Aws::String&& value) { SetTable(std::move(value)); return *this;}
97 inline GovernedCatalogTarget& WithTable(const char* value) { SetTable(value); return *this;}
99
101
104 inline const Aws::String& GetDatabase() const{ return m_database; }
105 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
106 inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; }
107 inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
108 inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); }
109 inline GovernedCatalogTarget& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
110 inline GovernedCatalogTarget& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
111 inline GovernedCatalogTarget& WithDatabase(const char* value) { SetDatabase(value); return *this;}
113
115
118 inline const CatalogSchemaChangePolicy& GetSchemaChangePolicy() const{ return m_schemaChangePolicy; }
119 inline bool SchemaChangePolicyHasBeenSet() const { return m_schemaChangePolicyHasBeenSet; }
120 inline void SetSchemaChangePolicy(const CatalogSchemaChangePolicy& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = value; }
121 inline void SetSchemaChangePolicy(CatalogSchemaChangePolicy&& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = std::move(value); }
125 private:
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
131 bool m_inputsHasBeenSet = false;
132
134 bool m_partitionKeysHasBeenSet = false;
135
136 Aws::String m_table;
137 bool m_tableHasBeenSet = false;
138
139 Aws::String m_database;
140 bool m_databaseHasBeenSet = false;
141
142 CatalogSchemaChangePolicy m_schemaChangePolicy;
143 bool m_schemaChangePolicyHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace Glue
148} // namespace Aws
GovernedCatalogTarget & WithPartitionKeys(Aws::Vector< Aws::Vector< Aws::String > > &&value)
GovernedCatalogTarget & WithName(const Aws::String &value)
AWS_GLUE_API GovernedCatalogTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
GovernedCatalogTarget & WithTable(const Aws::String &value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
GovernedCatalogTarget & WithInputs(const Aws::Vector< Aws::String > &value)
GovernedCatalogTarget & AddPartitionKeys(Aws::Vector< Aws::String > &&value)
GovernedCatalogTarget & WithDatabase(Aws::String &&value)
GovernedCatalogTarget & AddInputs(const Aws::String &value)
void SetTable(const Aws::String &value)
GovernedCatalogTarget & WithPartitionKeys(const Aws::Vector< Aws::Vector< Aws::String > > &value)
GovernedCatalogTarget & WithSchemaChangePolicy(CatalogSchemaChangePolicy &&value)
void SetSchemaChangePolicy(CatalogSchemaChangePolicy &&value)
GovernedCatalogTarget & AddPartitionKeys(const Aws::Vector< Aws::String > &value)
GovernedCatalogTarget & WithTable(Aws::String &&value)
GovernedCatalogTarget & WithInputs(Aws::Vector< Aws::String > &&value)
GovernedCatalogTarget & AddInputs(const char *value)
void SetPartitionKeys(const Aws::Vector< Aws::Vector< Aws::String > > &value)
const Aws::Vector< Aws::String > & GetInputs() const
GovernedCatalogTarget & WithDatabase(const Aws::String &value)
GovernedCatalogTarget & WithName(Aws::String &&value)
GovernedCatalogTarget & WithTable(const char *value)
void SetDatabase(const Aws::String &value)
GovernedCatalogTarget & WithName(const char *value)
void SetInputs(const Aws::Vector< Aws::String > &value)
void SetSchemaChangePolicy(const CatalogSchemaChangePolicy &value)
void SetInputs(Aws::Vector< Aws::String > &&value)
void SetPartitionKeys(Aws::Vector< Aws::Vector< Aws::String > > &&value)
GovernedCatalogTarget & WithDatabase(const char *value)
GovernedCatalogTarget & WithSchemaChangePolicy(const CatalogSchemaChangePolicy &value)
const CatalogSchemaChangePolicy & GetSchemaChangePolicy() const
const Aws::Vector< Aws::Vector< Aws::String > > & GetPartitionKeys() const
AWS_GLUE_API GovernedCatalogTarget(Aws::Utils::Json::JsonView jsonValue)
GovernedCatalogTarget & AddInputs(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue