AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
S3GlueParquetTarget.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/ParquetCompressionType.h>
11#include <aws/glue/model/DirectSchemaChangePolicy.h>
12#include <aws/glue/model/AutoDataQuality.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Glue
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_GLUE_API S3GlueParquetTarget() = default;
43
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 S3GlueParquetTarget& WithName(NameT&& value) { SetName(std::forward<NameT>(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 template<typename InputsT = Aws::Vector<Aws::String>>
64 void SetInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs = std::forward<InputsT>(value); }
65 template<typename InputsT = Aws::Vector<Aws::String>>
66 S3GlueParquetTarget& WithInputs(InputsT&& value) { SetInputs(std::forward<InputsT>(value)); return *this;}
67 template<typename InputsT = Aws::String>
68 S3GlueParquetTarget& AddInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs.emplace_back(std::forward<InputsT>(value)); return *this; }
70
72
75 inline const Aws::Vector<Aws::Vector<Aws::String>>& GetPartitionKeys() const { return m_partitionKeys; }
76 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
77 template<typename PartitionKeysT = Aws::Vector<Aws::Vector<Aws::String>>>
78 void SetPartitionKeys(PartitionKeysT&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::forward<PartitionKeysT>(value); }
79 template<typename PartitionKeysT = Aws::Vector<Aws::Vector<Aws::String>>>
80 S3GlueParquetTarget& WithPartitionKeys(PartitionKeysT&& value) { SetPartitionKeys(std::forward<PartitionKeysT>(value)); return *this;}
81 template<typename PartitionKeysT = Aws::Vector<Aws::String>>
82 S3GlueParquetTarget& AddPartitionKeys(PartitionKeysT&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.emplace_back(std::forward<PartitionKeysT>(value)); return *this; }
84
86
89 inline const Aws::String& GetPath() const { return m_path; }
90 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
91 template<typename PathT = Aws::String>
92 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
93 template<typename PathT = Aws::String>
94 S3GlueParquetTarget& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
96
98
103 inline ParquetCompressionType GetCompression() const { return m_compression; }
104 inline bool CompressionHasBeenSet() const { return m_compressionHasBeenSet; }
105 inline void SetCompression(ParquetCompressionType value) { m_compressionHasBeenSet = true; m_compression = value; }
108
110
114 inline const Aws::String& GetNumberTargetPartitions() const { return m_numberTargetPartitions; }
115 inline bool NumberTargetPartitionsHasBeenSet() const { return m_numberTargetPartitionsHasBeenSet; }
116 template<typename NumberTargetPartitionsT = Aws::String>
117 void SetNumberTargetPartitions(NumberTargetPartitionsT&& value) { m_numberTargetPartitionsHasBeenSet = true; m_numberTargetPartitions = std::forward<NumberTargetPartitionsT>(value); }
118 template<typename NumberTargetPartitionsT = Aws::String>
119 S3GlueParquetTarget& WithNumberTargetPartitions(NumberTargetPartitionsT&& value) { SetNumberTargetPartitions(std::forward<NumberTargetPartitionsT>(value)); return *this;}
121
123
126 inline const DirectSchemaChangePolicy& GetSchemaChangePolicy() const { return m_schemaChangePolicy; }
127 inline bool SchemaChangePolicyHasBeenSet() const { return m_schemaChangePolicyHasBeenSet; }
128 template<typename SchemaChangePolicyT = DirectSchemaChangePolicy>
129 void SetSchemaChangePolicy(SchemaChangePolicyT&& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = std::forward<SchemaChangePolicyT>(value); }
130 template<typename SchemaChangePolicyT = DirectSchemaChangePolicy>
131 S3GlueParquetTarget& WithSchemaChangePolicy(SchemaChangePolicyT&& value) { SetSchemaChangePolicy(std::forward<SchemaChangePolicyT>(value)); return *this;}
133
135
140 inline const AutoDataQuality& GetAutoDataQuality() const { return m_autoDataQuality; }
141 inline bool AutoDataQualityHasBeenSet() const { return m_autoDataQualityHasBeenSet; }
142 template<typename AutoDataQualityT = AutoDataQuality>
143 void SetAutoDataQuality(AutoDataQualityT&& value) { m_autoDataQualityHasBeenSet = true; m_autoDataQuality = std::forward<AutoDataQualityT>(value); }
144 template<typename AutoDataQualityT = AutoDataQuality>
145 S3GlueParquetTarget& WithAutoDataQuality(AutoDataQualityT&& value) { SetAutoDataQuality(std::forward<AutoDataQualityT>(value)); return *this;}
147 private:
148
149 Aws::String m_name;
150 bool m_nameHasBeenSet = false;
151
153 bool m_inputsHasBeenSet = false;
154
156 bool m_partitionKeysHasBeenSet = false;
157
158 Aws::String m_path;
159 bool m_pathHasBeenSet = false;
160
162 bool m_compressionHasBeenSet = false;
163
164 Aws::String m_numberTargetPartitions;
165 bool m_numberTargetPartitionsHasBeenSet = false;
166
167 DirectSchemaChangePolicy m_schemaChangePolicy;
168 bool m_schemaChangePolicyHasBeenSet = false;
169
170 AutoDataQuality m_autoDataQuality;
171 bool m_autoDataQualityHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace Glue
176} // namespace Aws
AWS_GLUE_API S3GlueParquetTarget(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetNumberTargetPartitions() const
void SetCompression(ParquetCompressionType value)
void SetPartitionKeys(PartitionKeysT &&value)
void SetAutoDataQuality(AutoDataQualityT &&value)
void SetNumberTargetPartitions(NumberTargetPartitionsT &&value)
AWS_GLUE_API S3GlueParquetTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::Vector< Aws::String > > & GetPartitionKeys() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
S3GlueParquetTarget & WithName(NameT &&value)
S3GlueParquetTarget & WithPath(PathT &&value)
void SetSchemaChangePolicy(SchemaChangePolicyT &&value)
S3GlueParquetTarget & WithPartitionKeys(PartitionKeysT &&value)
const AutoDataQuality & GetAutoDataQuality() const
S3GlueParquetTarget & WithInputs(InputsT &&value)
S3GlueParquetTarget & AddInputs(InputsT &&value)
S3GlueParquetTarget & WithNumberTargetPartitions(NumberTargetPartitionsT &&value)
S3GlueParquetTarget & AddPartitionKeys(PartitionKeysT &&value)
S3GlueParquetTarget & WithSchemaChangePolicy(SchemaChangePolicyT &&value)
S3GlueParquetTarget & WithAutoDataQuality(AutoDataQualityT &&value)
const Aws::Vector< Aws::String > & GetInputs() const
ParquetCompressionType GetCompression() const
AWS_GLUE_API S3GlueParquetTarget()=default
const DirectSchemaChangePolicy & GetSchemaChangePolicy() const
S3GlueParquetTarget & WithCompression(ParquetCompressionType 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