AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CsvFormatDescriptor.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/lookoutmetrics/model/CSVFileCompression.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LookoutMetrics
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LOOKOUTMETRICS_API CsvFormatDescriptor() = default;
38 AWS_LOOKOUTMETRICS_API CsvFormatDescriptor(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOOKOUTMETRICS_API CsvFormatDescriptor& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline CSVFileCompression GetFileCompression() const { return m_fileCompression; }
48 inline bool FileCompressionHasBeenSet() const { return m_fileCompressionHasBeenSet; }
49 inline void SetFileCompression(CSVFileCompression value) { m_fileCompressionHasBeenSet = true; m_fileCompression = value; }
52
54
57 inline const Aws::String& GetCharset() const { return m_charset; }
58 inline bool CharsetHasBeenSet() const { return m_charsetHasBeenSet; }
59 template<typename CharsetT = Aws::String>
60 void SetCharset(CharsetT&& value) { m_charsetHasBeenSet = true; m_charset = std::forward<CharsetT>(value); }
61 template<typename CharsetT = Aws::String>
62 CsvFormatDescriptor& WithCharset(CharsetT&& value) { SetCharset(std::forward<CharsetT>(value)); return *this;}
64
66
69 inline bool GetContainsHeader() const { return m_containsHeader; }
70 inline bool ContainsHeaderHasBeenSet() const { return m_containsHeaderHasBeenSet; }
71 inline void SetContainsHeader(bool value) { m_containsHeaderHasBeenSet = true; m_containsHeader = value; }
72 inline CsvFormatDescriptor& WithContainsHeader(bool value) { SetContainsHeader(value); return *this;}
74
76
79 inline const Aws::String& GetDelimiter() const { return m_delimiter; }
80 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
81 template<typename DelimiterT = Aws::String>
82 void SetDelimiter(DelimiterT&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::forward<DelimiterT>(value); }
83 template<typename DelimiterT = Aws::String>
84 CsvFormatDescriptor& WithDelimiter(DelimiterT&& value) { SetDelimiter(std::forward<DelimiterT>(value)); return *this;}
86
88
91 inline const Aws::Vector<Aws::String>& GetHeaderList() const { return m_headerList; }
92 inline bool HeaderListHasBeenSet() const { return m_headerListHasBeenSet; }
93 template<typename HeaderListT = Aws::Vector<Aws::String>>
94 void SetHeaderList(HeaderListT&& value) { m_headerListHasBeenSet = true; m_headerList = std::forward<HeaderListT>(value); }
95 template<typename HeaderListT = Aws::Vector<Aws::String>>
96 CsvFormatDescriptor& WithHeaderList(HeaderListT&& value) { SetHeaderList(std::forward<HeaderListT>(value)); return *this;}
97 template<typename HeaderListT = Aws::String>
98 CsvFormatDescriptor& AddHeaderList(HeaderListT&& value) { m_headerListHasBeenSet = true; m_headerList.emplace_back(std::forward<HeaderListT>(value)); return *this; }
100
102
105 inline const Aws::String& GetQuoteSymbol() const { return m_quoteSymbol; }
106 inline bool QuoteSymbolHasBeenSet() const { return m_quoteSymbolHasBeenSet; }
107 template<typename QuoteSymbolT = Aws::String>
108 void SetQuoteSymbol(QuoteSymbolT&& value) { m_quoteSymbolHasBeenSet = true; m_quoteSymbol = std::forward<QuoteSymbolT>(value); }
109 template<typename QuoteSymbolT = Aws::String>
110 CsvFormatDescriptor& WithQuoteSymbol(QuoteSymbolT&& value) { SetQuoteSymbol(std::forward<QuoteSymbolT>(value)); return *this;}
112 private:
113
115 bool m_fileCompressionHasBeenSet = false;
116
117 Aws::String m_charset;
118 bool m_charsetHasBeenSet = false;
119
120 bool m_containsHeader{false};
121 bool m_containsHeaderHasBeenSet = false;
122
123 Aws::String m_delimiter;
124 bool m_delimiterHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_headerList;
127 bool m_headerListHasBeenSet = false;
128
129 Aws::String m_quoteSymbol;
130 bool m_quoteSymbolHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace LookoutMetrics
135} // namespace Aws
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetHeaderList() const
CsvFormatDescriptor & WithDelimiter(DelimiterT &&value)
CsvFormatDescriptor & WithFileCompression(CSVFileCompression value)
CsvFormatDescriptor & AddHeaderList(HeaderListT &&value)
AWS_LOOKOUTMETRICS_API CsvFormatDescriptor()=default
CsvFormatDescriptor & WithCharset(CharsetT &&value)
CsvFormatDescriptor & WithHeaderList(HeaderListT &&value)
CsvFormatDescriptor & WithContainsHeader(bool value)
AWS_LOOKOUTMETRICS_API CsvFormatDescriptor & operator=(Aws::Utils::Json::JsonView jsonValue)
CsvFormatDescriptor & WithQuoteSymbol(QuoteSymbolT &&value)
AWS_LOOKOUTMETRICS_API CsvFormatDescriptor(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue