AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3CatalogTarget.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 S3CatalogTarget();
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 S3CatalogTarget& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline S3CatalogTarget& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline S3CatalogTarget& 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 S3CatalogTarget& WithInputs(const Aws::Vector<Aws::String>& value) { SetInputs(value); return *this;}
66 inline S3CatalogTarget& WithInputs(Aws::Vector<Aws::String>&& value) { SetInputs(std::move(value)); return *this;}
67 inline S3CatalogTarget& AddInputs(const Aws::String& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
68 inline S3CatalogTarget& AddInputs(Aws::String&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; }
69 inline S3CatalogTarget& 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); }
81 inline S3CatalogTarget& WithPartitionKeys(Aws::Vector<Aws::Vector<Aws::String>>&& value) { SetPartitionKeys(std::move(value)); return *this;}
82 inline S3CatalogTarget& AddPartitionKeys(const Aws::Vector<Aws::String>& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.push_back(value); return *this; }
83 inline S3CatalogTarget& 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 S3CatalogTarget& WithTable(const Aws::String& value) { SetTable(value); return *this;}
96 inline S3CatalogTarget& WithTable(Aws::String&& value) { SetTable(std::move(value)); return *this;}
97 inline S3CatalogTarget& 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 S3CatalogTarget& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
110 inline S3CatalogTarget& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
111 inline S3CatalogTarget& 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
S3CatalogTarget & WithInputs(Aws::Vector< Aws::String > &&value)
void SetTable(const char *value)
S3CatalogTarget & WithTable(const Aws::String &value)
void SetDatabase(const Aws::String &value)
void SetSchemaChangePolicy(const CatalogSchemaChangePolicy &value)
void SetName(const Aws::String &value)
const CatalogSchemaChangePolicy & GetSchemaChangePolicy() const
const Aws::Vector< Aws::String > & GetInputs() const
S3CatalogTarget & AddPartitionKeys(const Aws::Vector< Aws::String > &value)
S3CatalogTarget & WithSchemaChangePolicy(CatalogSchemaChangePolicy &&value)
void SetInputs(const Aws::Vector< Aws::String > &value)
AWS_GLUE_API S3CatalogTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDatabase(const char *value)
S3CatalogTarget & WithName(const char *value)
const Aws::Vector< Aws::Vector< Aws::String > > & GetPartitionKeys() const
S3CatalogTarget & AddInputs(const char *value)
void SetTable(const Aws::String &value)
void SetPartitionKeys(Aws::Vector< Aws::Vector< Aws::String > > &&value)
S3CatalogTarget & WithDatabase(const char *value)
S3CatalogTarget & WithPartitionKeys(Aws::Vector< Aws::Vector< Aws::String > > &&value)
void SetTable(Aws::String &&value)
S3CatalogTarget & AddInputs(const Aws::String &value)
S3CatalogTarget & WithDatabase(Aws::String &&value)
void SetName(const char *value)
void SetSchemaChangePolicy(CatalogSchemaChangePolicy &&value)
S3CatalogTarget & WithInputs(const Aws::Vector< Aws::String > &value)
S3CatalogTarget & AddPartitionKeys(Aws::Vector< Aws::String > &&value)
S3CatalogTarget & WithDatabase(const Aws::String &value)
S3CatalogTarget & WithName(Aws::String &&value)
const Aws::String & GetName() const
S3CatalogTarget & AddInputs(Aws::String &&value)
const Aws::String & GetTable() const
S3CatalogTarget & WithTable(Aws::String &&value)
void SetDatabase(Aws::String &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
S3CatalogTarget & WithTable(const char *value)
void SetName(Aws::String &&value)
S3CatalogTarget & WithName(const Aws::String &value)
S3CatalogTarget & WithPartitionKeys(const Aws::Vector< Aws::Vector< Aws::String > > &value)
void SetInputs(Aws::Vector< Aws::String > &&value)
S3CatalogTarget & WithSchemaChangePolicy(const CatalogSchemaChangePolicy &value)
AWS_GLUE_API S3CatalogTarget(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDatabase() const
void SetPartitionKeys(const Aws::Vector< Aws::Vector< 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