AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateCsvClassifierRequest.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/model/CsvHeaderOption.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/glue/model/CsvSerdeOption.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 CreateCsvClassifierRequest() = 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 CreateCsvClassifierRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDelimiter() const { return m_delimiter; }
61 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
62 template<typename DelimiterT = Aws::String>
63 void SetDelimiter(DelimiterT&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::forward<DelimiterT>(value); }
64 template<typename DelimiterT = Aws::String>
65 CreateCsvClassifierRequest& WithDelimiter(DelimiterT&& value) { SetDelimiter(std::forward<DelimiterT>(value)); return *this;}
67
69
73 inline const Aws::String& GetQuoteSymbol() const { return m_quoteSymbol; }
74 inline bool QuoteSymbolHasBeenSet() const { return m_quoteSymbolHasBeenSet; }
75 template<typename QuoteSymbolT = Aws::String>
76 void SetQuoteSymbol(QuoteSymbolT&& value) { m_quoteSymbolHasBeenSet = true; m_quoteSymbol = std::forward<QuoteSymbolT>(value); }
77 template<typename QuoteSymbolT = Aws::String>
78 CreateCsvClassifierRequest& WithQuoteSymbol(QuoteSymbolT&& value) { SetQuoteSymbol(std::forward<QuoteSymbolT>(value)); return *this;}
80
82
85 inline CsvHeaderOption GetContainsHeader() const { return m_containsHeader; }
86 inline bool ContainsHeaderHasBeenSet() const { return m_containsHeaderHasBeenSet; }
87 inline void SetContainsHeader(CsvHeaderOption value) { m_containsHeaderHasBeenSet = true; m_containsHeader = value; }
90
92
95 inline const Aws::Vector<Aws::String>& GetHeader() const { return m_header; }
96 inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; }
97 template<typename HeaderT = Aws::Vector<Aws::String>>
98 void SetHeader(HeaderT&& value) { m_headerHasBeenSet = true; m_header = std::forward<HeaderT>(value); }
99 template<typename HeaderT = Aws::Vector<Aws::String>>
100 CreateCsvClassifierRequest& WithHeader(HeaderT&& value) { SetHeader(std::forward<HeaderT>(value)); return *this;}
101 template<typename HeaderT = Aws::String>
102 CreateCsvClassifierRequest& AddHeader(HeaderT&& value) { m_headerHasBeenSet = true; m_header.emplace_back(std::forward<HeaderT>(value)); return *this; }
104
106
110 inline bool GetDisableValueTrimming() const { return m_disableValueTrimming; }
111 inline bool DisableValueTrimmingHasBeenSet() const { return m_disableValueTrimmingHasBeenSet; }
112 inline void SetDisableValueTrimming(bool value) { m_disableValueTrimmingHasBeenSet = true; m_disableValueTrimming = value; }
115
117
120 inline bool GetAllowSingleColumn() const { return m_allowSingleColumn; }
121 inline bool AllowSingleColumnHasBeenSet() const { return m_allowSingleColumnHasBeenSet; }
122 inline void SetAllowSingleColumn(bool value) { m_allowSingleColumnHasBeenSet = true; m_allowSingleColumn = value; }
123 inline CreateCsvClassifierRequest& WithAllowSingleColumn(bool value) { SetAllowSingleColumn(value); return *this;}
125
127
130 inline bool GetCustomDatatypeConfigured() const { return m_customDatatypeConfigured; }
131 inline bool CustomDatatypeConfiguredHasBeenSet() const { return m_customDatatypeConfiguredHasBeenSet; }
132 inline void SetCustomDatatypeConfigured(bool value) { m_customDatatypeConfiguredHasBeenSet = true; m_customDatatypeConfigured = value; }
135
137
140 inline const Aws::Vector<Aws::String>& GetCustomDatatypes() const { return m_customDatatypes; }
141 inline bool CustomDatatypesHasBeenSet() const { return m_customDatatypesHasBeenSet; }
142 template<typename CustomDatatypesT = Aws::Vector<Aws::String>>
143 void SetCustomDatatypes(CustomDatatypesT&& value) { m_customDatatypesHasBeenSet = true; m_customDatatypes = std::forward<CustomDatatypesT>(value); }
144 template<typename CustomDatatypesT = Aws::Vector<Aws::String>>
145 CreateCsvClassifierRequest& WithCustomDatatypes(CustomDatatypesT&& value) { SetCustomDatatypes(std::forward<CustomDatatypesT>(value)); return *this;}
146 template<typename CustomDatatypesT = Aws::String>
147 CreateCsvClassifierRequest& AddCustomDatatypes(CustomDatatypesT&& value) { m_customDatatypesHasBeenSet = true; m_customDatatypes.emplace_back(std::forward<CustomDatatypesT>(value)); return *this; }
149
151
157 inline CsvSerdeOption GetSerde() const { return m_serde; }
158 inline bool SerdeHasBeenSet() const { return m_serdeHasBeenSet; }
159 inline void SetSerde(CsvSerdeOption value) { m_serdeHasBeenSet = true; m_serde = value; }
160 inline CreateCsvClassifierRequest& WithSerde(CsvSerdeOption value) { SetSerde(value); return *this;}
162 private:
163
164 Aws::String m_name;
165 bool m_nameHasBeenSet = false;
166
167 Aws::String m_delimiter;
168 bool m_delimiterHasBeenSet = false;
169
170 Aws::String m_quoteSymbol;
171 bool m_quoteSymbolHasBeenSet = false;
172
174 bool m_containsHeaderHasBeenSet = false;
175
177 bool m_headerHasBeenSet = false;
178
179 bool m_disableValueTrimming{false};
180 bool m_disableValueTrimmingHasBeenSet = false;
181
182 bool m_allowSingleColumn{false};
183 bool m_allowSingleColumnHasBeenSet = false;
184
185 bool m_customDatatypeConfigured{false};
186 bool m_customDatatypeConfiguredHasBeenSet = false;
187
188 Aws::Vector<Aws::String> m_customDatatypes;
189 bool m_customDatatypesHasBeenSet = false;
190
192 bool m_serdeHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace Glue
197} // namespace Aws
CreateCsvClassifierRequest & WithCustomDatatypeConfigured(bool value)
CreateCsvClassifierRequest & WithDelimiter(DelimiterT &&value)
CreateCsvClassifierRequest & WithAllowSingleColumn(bool value)
const Aws::Vector< Aws::String > & GetCustomDatatypes() const
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
CreateCsvClassifierRequest & WithQuoteSymbol(QuoteSymbolT &&value)
CreateCsvClassifierRequest & WithDisableValueTrimming(bool value)
CreateCsvClassifierRequest & WithCustomDatatypes(CustomDatatypesT &&value)
CreateCsvClassifierRequest & AddCustomDatatypes(CustomDatatypesT &&value)
const Aws::Vector< Aws::String > & GetHeader() const
AWS_GLUE_API CreateCsvClassifierRequest()=default
CreateCsvClassifierRequest & WithContainsHeader(CsvHeaderOption value)
AWS_GLUE_API CreateCsvClassifierRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateCsvClassifierRequest & WithSerde(CsvSerdeOption value)
CreateCsvClassifierRequest & WithHeader(HeaderT &&value)
AWS_GLUE_API CreateCsvClassifierRequest(Aws::Utils::Json::JsonView jsonValue)
CreateCsvClassifierRequest & AddHeader(HeaderT &&value)
CreateCsvClassifierRequest & WithName(NameT &&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