AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CsvOptions.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_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 DynamoDB
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DYNAMODB_API CsvOptions() = default;
37 AWS_DYNAMODB_API CsvOptions(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DYNAMODB_API CsvOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetDelimiter() const { return m_delimiter; }
47 inline bool DelimiterHasBeenSet() const { return m_delimiterHasBeenSet; }
48 template<typename DelimiterT = Aws::String>
49 void SetDelimiter(DelimiterT&& value) { m_delimiterHasBeenSet = true; m_delimiter = std::forward<DelimiterT>(value); }
50 template<typename DelimiterT = Aws::String>
51 CsvOptions& WithDelimiter(DelimiterT&& value) { SetDelimiter(std::forward<DelimiterT>(value)); return *this;}
53
55
61 inline const Aws::Vector<Aws::String>& GetHeaderList() const { return m_headerList; }
62 inline bool HeaderListHasBeenSet() const { return m_headerListHasBeenSet; }
63 template<typename HeaderListT = Aws::Vector<Aws::String>>
64 void SetHeaderList(HeaderListT&& value) { m_headerListHasBeenSet = true; m_headerList = std::forward<HeaderListT>(value); }
65 template<typename HeaderListT = Aws::Vector<Aws::String>>
66 CsvOptions& WithHeaderList(HeaderListT&& value) { SetHeaderList(std::forward<HeaderListT>(value)); return *this;}
67 template<typename HeaderListT = Aws::String>
68 CsvOptions& AddHeaderList(HeaderListT&& value) { m_headerListHasBeenSet = true; m_headerList.emplace_back(std::forward<HeaderListT>(value)); return *this; }
70 private:
71
72 Aws::String m_delimiter;
73 bool m_delimiterHasBeenSet = false;
74
75 Aws::Vector<Aws::String> m_headerList;
76 bool m_headerListHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace DynamoDB
81} // namespace Aws
AWS_DYNAMODB_API CsvOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
CsvOptions & AddHeaderList(HeaderListT &&value)
Definition CsvOptions.h:68
const Aws::Vector< Aws::String > & GetHeaderList() const
Definition CsvOptions.h:61
void SetHeaderList(HeaderListT &&value)
Definition CsvOptions.h:64
CsvOptions & WithDelimiter(DelimiterT &&value)
Definition CsvOptions.h:51
AWS_DYNAMODB_API CsvOptions()=default
const Aws::String & GetDelimiter() const
Definition CsvOptions.h:46
CsvOptions & WithHeaderList(HeaderListT &&value)
Definition CsvOptions.h:66
void SetDelimiter(DelimiterT &&value)
Definition CsvOptions.h:49
AWS_DYNAMODB_API CsvOptions(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