AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CsvClassifier.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/DateTime.h>
10#include <aws/glue/model/CsvHeaderOption.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/glue/model/CsvSerdeOption.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 CsvClassifier();
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline CsvClassifier& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline CsvClassifier& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline CsvClassifier& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
64 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
65 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
66 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
67 inline CsvClassifier& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
68 inline CsvClassifier& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetLastUpdated() const{ return m_lastUpdated; }
76 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
77 inline void SetLastUpdated(const Aws::Utils::DateTime& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = value; }
78 inline void SetLastUpdated(Aws::Utils::DateTime&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::move(value); }
79 inline CsvClassifier& WithLastUpdated(const Aws::Utils::DateTime& value) { SetLastUpdated(value); return *this;}
80 inline CsvClassifier& WithLastUpdated(Aws::Utils::DateTime&& value) { SetLastUpdated(std::move(value)); return *this;}
82
84
87 inline long long GetVersion() const{ return m_version; }
88 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
89 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
90 inline CsvClassifier& WithVersion(long long value) { SetVersion(value); return *this;}
92
94
97 inline const Aws::String& GetDelimiter() const{ return m_delimiter; }
98 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
99 inline void SetDelimiter(const Aws::String& value) { m_delimiterHasBeenSet = true; m_delimiter = value; }
100 inline void SetDelimiter(Aws::String&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::move(value); }
101 inline void SetDelimiter(const char* value) { m_delimiterHasBeenSet = true; m_delimiter.assign(value); }
102 inline CsvClassifier& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;}
103 inline CsvClassifier& WithDelimiter(Aws::String&& value) { SetDelimiter(std::move(value)); return *this;}
104 inline CsvClassifier& WithDelimiter(const char* value) { SetDelimiter(value); return *this;}
106
108
112 inline const Aws::String& GetQuoteSymbol() const{ return m_quoteSymbol; }
113 inline bool QuoteSymbolHasBeenSet() const { return m_quoteSymbolHasBeenSet; }
114 inline void SetQuoteSymbol(const Aws::String& value) { m_quoteSymbolHasBeenSet = true; m_quoteSymbol = value; }
115 inline void SetQuoteSymbol(Aws::String&& value) { m_quoteSymbolHasBeenSet = true; m_quoteSymbol = std::move(value); }
116 inline void SetQuoteSymbol(const char* value) { m_quoteSymbolHasBeenSet = true; m_quoteSymbol.assign(value); }
117 inline CsvClassifier& WithQuoteSymbol(const Aws::String& value) { SetQuoteSymbol(value); return *this;}
118 inline CsvClassifier& WithQuoteSymbol(Aws::String&& value) { SetQuoteSymbol(std::move(value)); return *this;}
119 inline CsvClassifier& WithQuoteSymbol(const char* value) { SetQuoteSymbol(value); return *this;}
121
123
126 inline const CsvHeaderOption& GetContainsHeader() const{ return m_containsHeader; }
127 inline bool ContainsHeaderHasBeenSet() const { return m_containsHeaderHasBeenSet; }
128 inline void SetContainsHeader(const CsvHeaderOption& value) { m_containsHeaderHasBeenSet = true; m_containsHeader = value; }
129 inline void SetContainsHeader(CsvHeaderOption&& value) { m_containsHeaderHasBeenSet = true; m_containsHeader = std::move(value); }
130 inline CsvClassifier& WithContainsHeader(const CsvHeaderOption& value) { SetContainsHeader(value); return *this;}
131 inline CsvClassifier& WithContainsHeader(CsvHeaderOption&& value) { SetContainsHeader(std::move(value)); return *this;}
133
135
138 inline const Aws::Vector<Aws::String>& GetHeader() const{ return m_header; }
139 inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; }
140 inline void SetHeader(const Aws::Vector<Aws::String>& value) { m_headerHasBeenSet = true; m_header = value; }
141 inline void SetHeader(Aws::Vector<Aws::String>&& value) { m_headerHasBeenSet = true; m_header = std::move(value); }
142 inline CsvClassifier& WithHeader(const Aws::Vector<Aws::String>& value) { SetHeader(value); return *this;}
143 inline CsvClassifier& WithHeader(Aws::Vector<Aws::String>&& value) { SetHeader(std::move(value)); return *this;}
144 inline CsvClassifier& AddHeader(const Aws::String& value) { m_headerHasBeenSet = true; m_header.push_back(value); return *this; }
145 inline CsvClassifier& AddHeader(Aws::String&& value) { m_headerHasBeenSet = true; m_header.push_back(std::move(value)); return *this; }
146 inline CsvClassifier& AddHeader(const char* value) { m_headerHasBeenSet = true; m_header.push_back(value); return *this; }
148
150
154 inline bool GetDisableValueTrimming() const{ return m_disableValueTrimming; }
155 inline bool DisableValueTrimmingHasBeenSet() const { return m_disableValueTrimmingHasBeenSet; }
156 inline void SetDisableValueTrimming(bool value) { m_disableValueTrimmingHasBeenSet = true; m_disableValueTrimming = value; }
157 inline CsvClassifier& WithDisableValueTrimming(bool value) { SetDisableValueTrimming(value); return *this;}
159
161
164 inline bool GetAllowSingleColumn() const{ return m_allowSingleColumn; }
165 inline bool AllowSingleColumnHasBeenSet() const { return m_allowSingleColumnHasBeenSet; }
166 inline void SetAllowSingleColumn(bool value) { m_allowSingleColumnHasBeenSet = true; m_allowSingleColumn = value; }
167 inline CsvClassifier& WithAllowSingleColumn(bool value) { SetAllowSingleColumn(value); return *this;}
169
171
174 inline bool GetCustomDatatypeConfigured() const{ return m_customDatatypeConfigured; }
175 inline bool CustomDatatypeConfiguredHasBeenSet() const { return m_customDatatypeConfiguredHasBeenSet; }
176 inline void SetCustomDatatypeConfigured(bool value) { m_customDatatypeConfiguredHasBeenSet = true; m_customDatatypeConfigured = value; }
177 inline CsvClassifier& WithCustomDatatypeConfigured(bool value) { SetCustomDatatypeConfigured(value); return *this;}
179
181
185 inline const Aws::Vector<Aws::String>& GetCustomDatatypes() const{ return m_customDatatypes; }
186 inline bool CustomDatatypesHasBeenSet() const { return m_customDatatypesHasBeenSet; }
187 inline void SetCustomDatatypes(const Aws::Vector<Aws::String>& value) { m_customDatatypesHasBeenSet = true; m_customDatatypes = value; }
188 inline void SetCustomDatatypes(Aws::Vector<Aws::String>&& value) { m_customDatatypesHasBeenSet = true; m_customDatatypes = std::move(value); }
190 inline CsvClassifier& WithCustomDatatypes(Aws::Vector<Aws::String>&& value) { SetCustomDatatypes(std::move(value)); return *this;}
191 inline CsvClassifier& AddCustomDatatypes(const Aws::String& value) { m_customDatatypesHasBeenSet = true; m_customDatatypes.push_back(value); return *this; }
192 inline CsvClassifier& AddCustomDatatypes(Aws::String&& value) { m_customDatatypesHasBeenSet = true; m_customDatatypes.push_back(std::move(value)); return *this; }
193 inline CsvClassifier& AddCustomDatatypes(const char* value) { m_customDatatypesHasBeenSet = true; m_customDatatypes.push_back(value); return *this; }
195
197
203 inline const CsvSerdeOption& GetSerde() const{ return m_serde; }
204 inline bool SerdeHasBeenSet() const { return m_serdeHasBeenSet; }
205 inline void SetSerde(const CsvSerdeOption& value) { m_serdeHasBeenSet = true; m_serde = value; }
206 inline void SetSerde(CsvSerdeOption&& value) { m_serdeHasBeenSet = true; m_serde = std::move(value); }
207 inline CsvClassifier& WithSerde(const CsvSerdeOption& value) { SetSerde(value); return *this;}
208 inline CsvClassifier& WithSerde(CsvSerdeOption&& value) { SetSerde(std::move(value)); return *this;}
210 private:
211
212 Aws::String m_name;
213 bool m_nameHasBeenSet = false;
214
215 Aws::Utils::DateTime m_creationTime;
216 bool m_creationTimeHasBeenSet = false;
217
218 Aws::Utils::DateTime m_lastUpdated;
219 bool m_lastUpdatedHasBeenSet = false;
220
221 long long m_version;
222 bool m_versionHasBeenSet = false;
223
224 Aws::String m_delimiter;
225 bool m_delimiterHasBeenSet = false;
226
227 Aws::String m_quoteSymbol;
228 bool m_quoteSymbolHasBeenSet = false;
229
230 CsvHeaderOption m_containsHeader;
231 bool m_containsHeaderHasBeenSet = false;
232
234 bool m_headerHasBeenSet = false;
235
236 bool m_disableValueTrimming;
237 bool m_disableValueTrimmingHasBeenSet = false;
238
239 bool m_allowSingleColumn;
240 bool m_allowSingleColumnHasBeenSet = false;
241
242 bool m_customDatatypeConfigured;
243 bool m_customDatatypeConfiguredHasBeenSet = false;
244
245 Aws::Vector<Aws::String> m_customDatatypes;
246 bool m_customDatatypesHasBeenSet = false;
247
248 CsvSerdeOption m_serde;
249 bool m_serdeHasBeenSet = false;
250 };
251
252} // namespace Model
253} // namespace Glue
254} // namespace Aws
void SetDelimiter(const Aws::String &value)
void SetContainsHeader(CsvHeaderOption &&value)
const Aws::String & GetDelimiter() const
AWS_GLUE_API CsvClassifier(Aws::Utils::Json::JsonView jsonValue)
void SetDisableValueTrimming(bool value)
CsvClassifier & AddCustomDatatypes(Aws::String &&value)
CsvClassifier & WithSerde(CsvSerdeOption &&value)
CsvClassifier & AddCustomDatatypes(const char *value)
AWS_GLUE_API CsvClassifier & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetQuoteSymbol(const char *value)
CsvClassifier & WithHeader(const Aws::Vector< Aws::String > &value)
CsvClassifier & WithCustomDatatypes(const Aws::Vector< Aws::String > &value)
void SetCustomDatatypes(Aws::Vector< Aws::String > &&value)
CsvClassifier & WithQuoteSymbol(const char *value)
const Aws::Utils::DateTime & GetLastUpdated() const
CsvClassifier & AddCustomDatatypes(const Aws::String &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetAllowSingleColumn(bool value)
CsvClassifier & WithContainsHeader(const CsvHeaderOption &value)
void SetQuoteSymbol(Aws::String &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVersion(long long value)
const CsvHeaderOption & GetContainsHeader() const
CsvClassifier & WithName(const Aws::String &value)
CsvClassifier & WithDelimiter(const Aws::String &value)
CsvClassifier & WithHeader(Aws::Vector< Aws::String > &&value)
CsvClassifier & WithName(Aws::String &&value)
const Aws::String & GetQuoteSymbol() const
void SetName(const Aws::String &value)
CsvClassifier & WithCustomDatatypeConfigured(bool value)
const Aws::Utils::DateTime & GetCreationTime() const
CsvClassifier & WithDisableValueTrimming(bool value)
CsvClassifier & WithLastUpdated(Aws::Utils::DateTime &&value)
CsvClassifier & AddHeader(const char *value)
void SetCreationTime(const Aws::Utils::DateTime &value)
CsvClassifier & WithCustomDatatypes(Aws::Vector< Aws::String > &&value)
void SetCustomDatatypeConfigured(bool value)
void SetDelimiter(Aws::String &&value)
void SetQuoteSymbol(const Aws::String &value)
void SetLastUpdated(Aws::Utils::DateTime &&value)
CsvClassifier & WithAllowSingleColumn(bool value)
void SetSerde(CsvSerdeOption &&value)
void SetSerde(const CsvSerdeOption &value)
CsvClassifier & WithQuoteSymbol(Aws::String &&value)
CsvClassifier & AddHeader(Aws::String &&value)
CsvClassifier & WithSerde(const CsvSerdeOption &value)
const Aws::Vector< Aws::String > & GetHeader() const
bool CustomDatatypeConfiguredHasBeenSet() const
CsvClassifier & WithVersion(long long value)
CsvClassifier & WithContainsHeader(CsvHeaderOption &&value)
CsvClassifier & WithCreationTime(const Aws::Utils::DateTime &value)
void SetDelimiter(const char *value)
void SetCustomDatatypes(const Aws::Vector< Aws::String > &value)
CsvClassifier & WithCreationTime(Aws::Utils::DateTime &&value)
CsvClassifier & AddHeader(const Aws::String &value)
void SetHeader(Aws::Vector< Aws::String > &&value)
CsvClassifier & WithDelimiter(const char *value)
const Aws::String & GetName() const
CsvClassifier & WithDelimiter(Aws::String &&value)
CsvClassifier & WithLastUpdated(const Aws::Utils::DateTime &value)
void SetName(Aws::String &&value)
void SetName(const char *value)
CsvClassifier & WithName(const char *value)
void SetLastUpdated(const Aws::Utils::DateTime &value)
const Aws::Vector< Aws::String > & GetCustomDatatypes() const
CsvClassifier & WithQuoteSymbol(const Aws::String &value)
void SetHeader(const Aws::Vector< Aws::String > &value)
void SetContainsHeader(const CsvHeaderOption &value)
const CsvSerdeOption & GetSerde() 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