AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
S3IcebergDirectTarget.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/TargetFormat.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/glue/model/DirectSchemaChangePolicy.h>
13#include <aws/glue/model/IcebergTargetCompressionType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Glue
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_GLUE_API S3IcebergDirectTarget() = default;
44
45
47
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 S3IcebergDirectTarget& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
58
60
64 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
65 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
66 template<typename InputsT = Aws::Vector<Aws::String>>
67 void SetInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs = std::forward<InputsT>(value); }
68 template<typename InputsT = Aws::Vector<Aws::String>>
69 S3IcebergDirectTarget& WithInputs(InputsT&& value) { SetInputs(std::forward<InputsT>(value)); return *this;}
70 template<typename InputsT = Aws::String>
71 S3IcebergDirectTarget& AddInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs.emplace_back(std::forward<InputsT>(value)); return *this; }
73
75
78 inline const Aws::Vector<Aws::Vector<Aws::String>>& GetPartitionKeys() const { return m_partitionKeys; }
79 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
80 template<typename PartitionKeysT = Aws::Vector<Aws::Vector<Aws::String>>>
81 void SetPartitionKeys(PartitionKeysT&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::forward<PartitionKeysT>(value); }
82 template<typename PartitionKeysT = Aws::Vector<Aws::Vector<Aws::String>>>
83 S3IcebergDirectTarget& WithPartitionKeys(PartitionKeysT&& value) { SetPartitionKeys(std::forward<PartitionKeysT>(value)); return *this;}
84 template<typename PartitionKeysT = Aws::Vector<Aws::String>>
85 S3IcebergDirectTarget& AddPartitionKeys(PartitionKeysT&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.emplace_back(std::forward<PartitionKeysT>(value)); return *this; }
87
89
92 inline const Aws::String& GetPath() const { return m_path; }
93 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
94 template<typename PathT = Aws::String>
95 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
96 template<typename PathT = Aws::String>
97 S3IcebergDirectTarget& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
99
101
105 inline TargetFormat GetFormat() const { return m_format; }
106 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
107 inline void SetFormat(TargetFormat value) { m_formatHasBeenSet = true; m_format = value; }
108 inline S3IcebergDirectTarget& WithFormat(TargetFormat value) { SetFormat(value); return *this;}
110
112
116 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalOptions() const { return m_additionalOptions; }
117 inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; }
118 template<typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
119 void SetAdditionalOptions(AdditionalOptionsT&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions = std::forward<AdditionalOptionsT>(value); }
120 template<typename AdditionalOptionsT = Aws::Map<Aws::String, Aws::String>>
121 S3IcebergDirectTarget& WithAdditionalOptions(AdditionalOptionsT&& value) { SetAdditionalOptions(std::forward<AdditionalOptionsT>(value)); return *this;}
122 template<typename AdditionalOptionsKeyT = Aws::String, typename AdditionalOptionsValueT = Aws::String>
123 S3IcebergDirectTarget& AddAdditionalOptions(AdditionalOptionsKeyT&& key, AdditionalOptionsValueT&& value) {
124 m_additionalOptionsHasBeenSet = true; m_additionalOptions.emplace(std::forward<AdditionalOptionsKeyT>(key), std::forward<AdditionalOptionsValueT>(value)); return *this;
125 }
127
129
133 inline const DirectSchemaChangePolicy& GetSchemaChangePolicy() const { return m_schemaChangePolicy; }
134 inline bool SchemaChangePolicyHasBeenSet() const { return m_schemaChangePolicyHasBeenSet; }
135 template<typename SchemaChangePolicyT = DirectSchemaChangePolicy>
136 void SetSchemaChangePolicy(SchemaChangePolicyT&& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = std::forward<SchemaChangePolicyT>(value); }
137 template<typename SchemaChangePolicyT = DirectSchemaChangePolicy>
138 S3IcebergDirectTarget& WithSchemaChangePolicy(SchemaChangePolicyT&& value) { SetSchemaChangePolicy(std::forward<SchemaChangePolicyT>(value)); return *this;}
140
142
145 inline IcebergTargetCompressionType GetCompression() const { return m_compression; }
146 inline bool CompressionHasBeenSet() const { return m_compressionHasBeenSet; }
147 inline void SetCompression(IcebergTargetCompressionType value) { m_compressionHasBeenSet = true; m_compression = value; }
150
152
156 inline const Aws::String& GetNumberTargetPartitions() const { return m_numberTargetPartitions; }
157 inline bool NumberTargetPartitionsHasBeenSet() const { return m_numberTargetPartitionsHasBeenSet; }
158 template<typename NumberTargetPartitionsT = Aws::String>
159 void SetNumberTargetPartitions(NumberTargetPartitionsT&& value) { m_numberTargetPartitionsHasBeenSet = true; m_numberTargetPartitions = std::forward<NumberTargetPartitionsT>(value); }
160 template<typename NumberTargetPartitionsT = Aws::String>
161 S3IcebergDirectTarget& WithNumberTargetPartitions(NumberTargetPartitionsT&& value) { SetNumberTargetPartitions(std::forward<NumberTargetPartitionsT>(value)); return *this;}
163 private:
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
169 bool m_inputsHasBeenSet = false;
170
172 bool m_partitionKeysHasBeenSet = false;
173
174 Aws::String m_path;
175 bool m_pathHasBeenSet = false;
176
178 bool m_formatHasBeenSet = false;
179
180 Aws::Map<Aws::String, Aws::String> m_additionalOptions;
181 bool m_additionalOptionsHasBeenSet = false;
182
183 DirectSchemaChangePolicy m_schemaChangePolicy;
184 bool m_schemaChangePolicyHasBeenSet = false;
185
187 bool m_compressionHasBeenSet = false;
188
189 Aws::String m_numberTargetPartitions;
190 bool m_numberTargetPartitionsHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace Glue
195} // namespace Aws
S3IcebergDirectTarget & AddAdditionalOptions(AdditionalOptionsKeyT &&key, AdditionalOptionsValueT &&value)
void SetNumberTargetPartitions(NumberTargetPartitionsT &&value)
const Aws::String & GetNumberTargetPartitions() const
S3IcebergDirectTarget & WithCompression(IcebergTargetCompressionType value)
S3IcebergDirectTarget & WithAdditionalOptions(AdditionalOptionsT &&value)
const Aws::Vector< Aws::Vector< Aws::String > > & GetPartitionKeys() const
S3IcebergDirectTarget & AddInputs(InputsT &&value)
void SetSchemaChangePolicy(SchemaChangePolicyT &&value)
S3IcebergDirectTarget & WithInputs(InputsT &&value)
S3IcebergDirectTarget & WithSchemaChangePolicy(SchemaChangePolicyT &&value)
void SetPartitionKeys(PartitionKeysT &&value)
S3IcebergDirectTarget & WithNumberTargetPartitions(NumberTargetPartitionsT &&value)
AWS_GLUE_API S3IcebergDirectTarget()=default
const DirectSchemaChangePolicy & GetSchemaChangePolicy() const
S3IcebergDirectTarget & WithPartitionKeys(PartitionKeysT &&value)
const Aws::Vector< Aws::String > & GetInputs() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
S3IcebergDirectTarget & WithPath(PathT &&value)
AWS_GLUE_API S3IcebergDirectTarget(Aws::Utils::Json::JsonView jsonValue)
IcebergTargetCompressionType GetCompression() const
S3IcebergDirectTarget & AddPartitionKeys(PartitionKeysT &&value)
AWS_GLUE_API S3IcebergDirectTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
S3IcebergDirectTarget & WithFormat(TargetFormat value)
void SetCompression(IcebergTargetCompressionType value)
void SetAdditionalOptions(AdditionalOptionsT &&value)
S3IcebergDirectTarget & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalOptions() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue