AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CSV.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudWatchLogs {
21namespace Model {
22
32class CSV {
33 public:
34 AWS_CLOUDWATCHLOGS_API CSV() = default;
35 AWS_CLOUDWATCHLOGS_API CSV(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDWATCHLOGS_API CSV& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetQuoteCharacter() const { return m_quoteCharacter; }
45 inline bool QuoteCharacterHasBeenSet() const { return m_quoteCharacterHasBeenSet; }
46 template <typename QuoteCharacterT = Aws::String>
47 void SetQuoteCharacter(QuoteCharacterT&& value) {
48 m_quoteCharacterHasBeenSet = true;
49 m_quoteCharacter = std::forward<QuoteCharacterT>(value);
50 }
51 template <typename QuoteCharacterT = Aws::String>
52 CSV& WithQuoteCharacter(QuoteCharacterT&& value) {
53 SetQuoteCharacter(std::forward<QuoteCharacterT>(value));
54 return *this;
55 }
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) {
68 m_delimiterHasBeenSet = true;
69 m_delimiter = std::forward<DelimiterT>(value);
70 }
71 template <typename DelimiterT = Aws::String>
72 CSV& WithDelimiter(DelimiterT&& value) {
73 SetDelimiter(std::forward<DelimiterT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::Vector<Aws::String>& GetColumns() const { return m_columns; }
85 inline bool ColumnsHasBeenSet() const { return m_columnsHasBeenSet; }
86 template <typename ColumnsT = Aws::Vector<Aws::String>>
87 void SetColumns(ColumnsT&& value) {
88 m_columnsHasBeenSet = true;
89 m_columns = std::forward<ColumnsT>(value);
90 }
91 template <typename ColumnsT = Aws::Vector<Aws::String>>
92 CSV& WithColumns(ColumnsT&& value) {
93 SetColumns(std::forward<ColumnsT>(value));
94 return *this;
95 }
96 template <typename ColumnsT = Aws::String>
97 CSV& AddColumns(ColumnsT&& value) {
98 m_columnsHasBeenSet = true;
99 m_columns.emplace_back(std::forward<ColumnsT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetSource() const { return m_source; }
110 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
111 template <typename SourceT = Aws::String>
112 void SetSource(SourceT&& value) {
113 m_sourceHasBeenSet = true;
114 m_source = std::forward<SourceT>(value);
115 }
116 template <typename SourceT = Aws::String>
117 CSV& WithSource(SourceT&& value) {
118 SetSource(std::forward<SourceT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_quoteCharacter;
124
125 Aws::String m_delimiter;
126
127 Aws::Vector<Aws::String> m_columns;
128
129 Aws::String m_source;
130 bool m_quoteCharacterHasBeenSet = false;
131 bool m_delimiterHasBeenSet = false;
132 bool m_columnsHasBeenSet = false;
133 bool m_sourceHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace CloudWatchLogs
138} // namespace Aws
const Aws::String & GetDelimiter() const
Definition CSV.h:64
bool QuoteCharacterHasBeenSet() const
Definition CSV.h:45
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetColumns(ColumnsT &&value)
Definition CSV.h:87
bool SourceHasBeenSet() const
Definition CSV.h:110
CSV & WithQuoteCharacter(QuoteCharacterT &&value)
Definition CSV.h:52
bool DelimiterHasBeenSet() const
Definition CSV.h:65
CSV & WithDelimiter(DelimiterT &&value)
Definition CSV.h:72
AWS_CLOUDWATCHLOGS_API CSV & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetQuoteCharacter() const
Definition CSV.h:44
CSV & WithColumns(ColumnsT &&value)
Definition CSV.h:92
bool ColumnsHasBeenSet() const
Definition CSV.h:85
void SetSource(SourceT &&value)
Definition CSV.h:112
void SetQuoteCharacter(QuoteCharacterT &&value)
Definition CSV.h:47
void SetDelimiter(DelimiterT &&value)
Definition CSV.h:67
const Aws::String & GetSource() const
Definition CSV.h:109
CSV & WithSource(SourceT &&value)
Definition CSV.h:117
CSV & AddColumns(ColumnsT &&value)
Definition CSV.h:97
const Aws::Vector< Aws::String > & GetColumns() const
Definition CSV.h:84
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