AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
InputSerialization.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/CSVInput.h>
9#include <aws/s3/model/CompressionType.h>
10#include <aws/s3/model/JSONInput.h>
11#include <aws/s3/model/ParquetInput.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3 {
22namespace Model {
23
31 public:
32 AWS_S3_API InputSerialization() = default;
33 AWS_S3_API InputSerialization(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
37
39
42 inline const CSVInput& GetCSV() const { return m_cSV; }
43 inline bool CSVHasBeenSet() const { return m_cSVHasBeenSet; }
44 template <typename CSVT = CSVInput>
45 void SetCSV(CSVT&& value) {
46 m_cSVHasBeenSet = true;
47 m_cSV = std::forward<CSVT>(value);
48 }
49 template <typename CSVT = CSVInput>
50 InputSerialization& WithCSV(CSVT&& value) {
51 SetCSV(std::forward<CSVT>(value));
52 return *this;
53 }
55
57
61 inline CompressionType GetCompressionType() const { return m_compressionType; }
62 inline bool CompressionTypeHasBeenSet() const { return m_compressionTypeHasBeenSet; }
64 m_compressionTypeHasBeenSet = true;
65 m_compressionType = value;
66 }
68 SetCompressionType(value);
69 return *this;
70 }
72
74
77 inline const JSONInput& GetJSON() const { return m_jSON; }
78 inline bool JSONHasBeenSet() const { return m_jSONHasBeenSet; }
79 template <typename JSONT = JSONInput>
80 void SetJSON(JSONT&& value) {
81 m_jSONHasBeenSet = true;
82 m_jSON = std::forward<JSONT>(value);
83 }
84 template <typename JSONT = JSONInput>
85 InputSerialization& WithJSON(JSONT&& value) {
86 SetJSON(std::forward<JSONT>(value));
87 return *this;
88 }
90
92
95 inline const ParquetInput& GetParquet() const { return m_parquet; }
96 inline bool ParquetHasBeenSet() const { return m_parquetHasBeenSet; }
97 template <typename ParquetT = ParquetInput>
98 void SetParquet(ParquetT&& value) {
99 m_parquetHasBeenSet = true;
100 m_parquet = std::forward<ParquetT>(value);
101 }
102 template <typename ParquetT = ParquetInput>
103 InputSerialization& WithParquet(ParquetT&& value) {
104 SetParquet(std::forward<ParquetT>(value));
105 return *this;
106 }
108 private:
109 CSVInput m_cSV;
110 bool m_cSVHasBeenSet = false;
111
112 CompressionType m_compressionType{CompressionType::NOT_SET};
113 bool m_compressionTypeHasBeenSet = false;
114
115 JSONInput m_jSON;
116 bool m_jSONHasBeenSet = false;
117
118 ParquetInput m_parquet;
119 bool m_parquetHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace S3
124} // namespace Aws
AWS_S3_API InputSerialization()=default
const JSONInput & GetJSON() const
AWS_S3_API InputSerialization & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const ParquetInput & GetParquet() const
InputSerialization & WithCSV(CSVT &&value)
InputSerialization & WithCompressionType(CompressionType value)
InputSerialization & WithJSON(JSONT &&value)
void SetCompressionType(CompressionType value)
CompressionType GetCompressionType() const
InputSerialization & WithParquet(ParquetT &&value)
AWS_S3_API InputSerialization(const Aws::Utils::Xml::XmlNode &xmlNode)