AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CSV.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchLogs
23{
24namespace Model
25{
26
36 class CSV
37 {
38 public:
39 AWS_CLOUDWATCHLOGS_API CSV() = default;
40 AWS_CLOUDWATCHLOGS_API CSV(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDWATCHLOGS_API CSV& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetQuoteCharacter() const { return m_quoteCharacter; }
51 inline bool QuoteCharacterHasBeenSet() const { return m_quoteCharacterHasBeenSet; }
52 template<typename QuoteCharacterT = Aws::String>
53 void SetQuoteCharacter(QuoteCharacterT&& value) { m_quoteCharacterHasBeenSet = true; m_quoteCharacter = std::forward<QuoteCharacterT>(value); }
54 template<typename QuoteCharacterT = Aws::String>
55 CSV& WithQuoteCharacter(QuoteCharacterT&& value) { SetQuoteCharacter(std::forward<QuoteCharacterT>(value)); return *this;}
57
59
64 inline const Aws::String& GetDelimiter() const { return m_delimiter; }
65 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
66 template<typename DelimiterT = Aws::String>
67 void SetDelimiter(DelimiterT&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::forward<DelimiterT>(value); }
68 template<typename DelimiterT = Aws::String>
69 CSV& WithDelimiter(DelimiterT&& value) { SetDelimiter(std::forward<DelimiterT>(value)); return *this;}
71
73
78 inline const Aws::Vector<Aws::String>& GetColumns() const { return m_columns; }
79 inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; }
80 template<typename ColumnsT = Aws::Vector<Aws::String>>
81 void SetColumns(ColumnsT&& value) { m_columnsHasBeenSet = true; m_columns = std::forward<ColumnsT>(value); }
82 template<typename ColumnsT = Aws::Vector<Aws::String>>
83 CSV& WithColumns(ColumnsT&& value) { SetColumns(std::forward<ColumnsT>(value)); return *this;}
84 template<typename ColumnsT = Aws::String>
85 CSV& AddColumns(ColumnsT&& value) { m_columnsHasBeenSet = true; m_columns.emplace_back(std::forward<ColumnsT>(value)); return *this; }
87
89
93 inline const Aws::String& GetSource() const { return m_source; }
94 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
95 template<typename SourceT = Aws::String>
96 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
97 template<typename SourceT = Aws::String>
98 CSV& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
100 private:
101
102 Aws::String m_quoteCharacter;
103 bool m_quoteCharacterHasBeenSet = false;
104
105 Aws::String m_delimiter;
106 bool m_delimiterHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_columns;
109 bool m_columnsHasBeenSet = false;
110
111 Aws::String m_source;
112 bool m_sourceHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CloudWatchLogs
117} // namespace Aws
const Aws::String & GetDelimiter() const
Definition CSV.h:64
bool QuoteCharacterHasBeenSet() const
Definition CSV.h:51
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetColumns(ColumnsT &&value)
Definition CSV.h:81
bool SourceHasBeenSet() const
Definition CSV.h:94
CSV & WithQuoteCharacter(QuoteCharacterT &&value)
Definition CSV.h:55
bool DelimiterHasBeenSet() const
Definition CSV.h:65
CSV & WithDelimiter(DelimiterT &&value)
Definition CSV.h:69
AWS_CLOUDWATCHLOGS_API CSV & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetQuoteCharacter() const
Definition CSV.h:50
CSV & WithColumns(ColumnsT &&value)
Definition CSV.h:83
bool ColumnsHasBeenSet() const
Definition CSV.h:79
void SetSource(SourceT &&value)
Definition CSV.h:96
void SetQuoteCharacter(QuoteCharacterT &&value)
Definition CSV.h:53
void SetDelimiter(DelimiterT &&value)
Definition CSV.h:67
const Aws::String & GetSource() const
Definition CSV.h:93
CSV & WithSource(SourceT &&value)
Definition CSV.h:98
CSV & AddColumns(ColumnsT &&value)
Definition CSV.h:85
const Aws::Vector< Aws::String > & GetColumns() const
Definition CSV.h:78
AWS_CLOUDWATCHLOGS_API CSV()=default
AWS_CLOUDWATCHLOGS_API CSV(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