AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
S3DirectTarget.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/glue/model/DirectSchemaChangePolicy.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GLUE_API S3DirectTarget() = default;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 S3DirectTarget& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetInputs() const { return m_inputs; }
61 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
62 template<typename InputsT = Aws::Vector<Aws::String>>
63 void SetInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs = std::forward<InputsT>(value); }
64 template<typename InputsT = Aws::Vector<Aws::String>>
65 S3DirectTarget& WithInputs(InputsT&& value) { SetInputs(std::forward<InputsT>(value)); return *this;}
66 template<typename InputsT = Aws::String>
67 S3DirectTarget& AddInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs.emplace_back(std::forward<InputsT>(value)); return *this; }
69
71
74 inline const Aws::Vector<Aws::Vector<Aws::String>>& GetPartitionKeys() const { return m_partitionKeys; }
75 inline bool PartitionKeysHasBeenSet() const { return m_partitionKeysHasBeenSet; }
76 template<typename PartitionKeysT = Aws::Vector<Aws::Vector<Aws::String>>>
77 void SetPartitionKeys(PartitionKeysT&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys = std::forward<PartitionKeysT>(value); }
78 template<typename PartitionKeysT = Aws::Vector<Aws::Vector<Aws::String>>>
79 S3DirectTarget& WithPartitionKeys(PartitionKeysT&& value) { SetPartitionKeys(std::forward<PartitionKeysT>(value)); return *this;}
80 template<typename PartitionKeysT = Aws::Vector<Aws::String>>
81 S3DirectTarget& AddPartitionKeys(PartitionKeysT&& value) { m_partitionKeysHasBeenSet = true; m_partitionKeys.emplace_back(std::forward<PartitionKeysT>(value)); return *this; }
83
85
88 inline const Aws::String& GetPath() const { return m_path; }
89 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
90 template<typename PathT = Aws::String>
91 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
92 template<typename PathT = Aws::String>
93 S3DirectTarget& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
95
97
102 inline const Aws::String& GetCompression() const { return m_compression; }
103 inline bool CompressionHasBeenSet() const { return m_compressionHasBeenSet; }
104 template<typename CompressionT = Aws::String>
105 void SetCompression(CompressionT&& value) { m_compressionHasBeenSet = true; m_compression = std::forward<CompressionT>(value); }
106 template<typename CompressionT = Aws::String>
107 S3DirectTarget& WithCompression(CompressionT&& value) { SetCompression(std::forward<CompressionT>(value)); return *this;}
109
111
115 inline const Aws::String& GetNumberTargetPartitions() const { return m_numberTargetPartitions; }
116 inline bool NumberTargetPartitionsHasBeenSet() const { return m_numberTargetPartitionsHasBeenSet; }
117 template<typename NumberTargetPartitionsT = Aws::String>
118 void SetNumberTargetPartitions(NumberTargetPartitionsT&& value) { m_numberTargetPartitionsHasBeenSet = true; m_numberTargetPartitions = std::forward<NumberTargetPartitionsT>(value); }
119 template<typename NumberTargetPartitionsT = Aws::String>
120 S3DirectTarget& WithNumberTargetPartitions(NumberTargetPartitionsT&& value) { SetNumberTargetPartitions(std::forward<NumberTargetPartitionsT>(value)); return *this;}
122
124
127 inline TargetFormat GetFormat() const { return m_format; }
128 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
129 inline void SetFormat(TargetFormat value) { m_formatHasBeenSet = true; m_format = value; }
130 inline S3DirectTarget& WithFormat(TargetFormat value) { SetFormat(value); return *this;}
132
134
137 inline const DirectSchemaChangePolicy& GetSchemaChangePolicy() const { return m_schemaChangePolicy; }
138 inline bool SchemaChangePolicyHasBeenSet() const { return m_schemaChangePolicyHasBeenSet; }
139 template<typename SchemaChangePolicyT = DirectSchemaChangePolicy>
140 void SetSchemaChangePolicy(SchemaChangePolicyT&& value) { m_schemaChangePolicyHasBeenSet = true; m_schemaChangePolicy = std::forward<SchemaChangePolicyT>(value); }
141 template<typename SchemaChangePolicyT = DirectSchemaChangePolicy>
142 S3DirectTarget& WithSchemaChangePolicy(SchemaChangePolicyT&& value) { SetSchemaChangePolicy(std::forward<SchemaChangePolicyT>(value)); return *this;}
144 private:
145
146 Aws::String m_name;
147 bool m_nameHasBeenSet = false;
148
150 bool m_inputsHasBeenSet = false;
151
153 bool m_partitionKeysHasBeenSet = false;
154
155 Aws::String m_path;
156 bool m_pathHasBeenSet = false;
157
158 Aws::String m_compression;
159 bool m_compressionHasBeenSet = false;
160
161 Aws::String m_numberTargetPartitions;
162 bool m_numberTargetPartitionsHasBeenSet = false;
163
165 bool m_formatHasBeenSet = false;
166
167 DirectSchemaChangePolicy m_schemaChangePolicy;
168 bool m_schemaChangePolicyHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace Glue
173} // namespace Aws
S3DirectTarget & AddPartitionKeys(PartitionKeysT &&value)
S3DirectTarget & WithInputs(InputsT &&value)
const Aws::String & GetPath() const
S3DirectTarget & WithFormat(TargetFormat value)
void SetCompression(CompressionT &&value)
void SetFormat(TargetFormat value)
void SetInputs(InputsT &&value)
const Aws::String & GetName() const
AWS_GLUE_API S3DirectTarget()=default
S3DirectTarget & WithCompression(CompressionT &&value)
AWS_GLUE_API S3DirectTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
S3DirectTarget & WithNumberTargetPartitions(NumberTargetPartitionsT &&value)
S3DirectTarget & WithPath(PathT &&value)
S3DirectTarget & WithSchemaChangePolicy(SchemaChangePolicyT &&value)
S3DirectTarget & WithPartitionKeys(PartitionKeysT &&value)
void SetSchemaChangePolicy(SchemaChangePolicyT &&value)
const Aws::String & GetCompression() const
void SetPartitionKeys(PartitionKeysT &&value)
void SetNumberTargetPartitions(NumberTargetPartitionsT &&value)
S3DirectTarget & AddInputs(InputsT &&value)
AWS_GLUE_API S3DirectTarget(Aws::Utils::Json::JsonView jsonValue)
S3DirectTarget & WithName(NameT &&value)
const Aws::String & GetNumberTargetPartitions() const
const DirectSchemaChangePolicy & GetSchemaChangePolicy() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::Vector< Aws::String > > & GetPartitionKeys() const
const Aws::Vector< Aws::String > & GetInputs() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue