AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
InputSerialization.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace S3
24{
25namespace Model
26{
27
35 {
36 public:
40
42
43
47 inline const CSVInput& GetCSV() const{ return m_cSV; }
48
52 inline bool CSVHasBeenSet() const { return m_cSVHasBeenSet; }
53
57 inline void SetCSV(const CSVInput& value) { m_cSVHasBeenSet = true; m_cSV = value; }
58
62 inline void SetCSV(CSVInput&& value) { m_cSVHasBeenSet = true; m_cSV = std::move(value); }
63
67 inline InputSerialization& WithCSV(const CSVInput& value) { SetCSV(value); return *this;}
68
72 inline InputSerialization& WithCSV(CSVInput&& value) { SetCSV(std::move(value)); return *this;}
73
74
79 inline const CompressionType& GetCompressionType() const{ return m_compressionType; }
80
85 inline bool CompressionTypeHasBeenSet() const { return m_compressionTypeHasBeenSet; }
86
91 inline void SetCompressionType(const CompressionType& value) { m_compressionTypeHasBeenSet = true; m_compressionType = value; }
92
97 inline void SetCompressionType(CompressionType&& value) { m_compressionTypeHasBeenSet = true; m_compressionType = std::move(value); }
98
103 inline InputSerialization& WithCompressionType(const CompressionType& value) { SetCompressionType(value); return *this;}
104
109 inline InputSerialization& WithCompressionType(CompressionType&& value) { SetCompressionType(std::move(value)); return *this;}
110
111
115 inline const JSONInput& GetJSON() const{ return m_jSON; }
116
120 inline bool JSONHasBeenSet() const { return m_jSONHasBeenSet; }
121
125 inline void SetJSON(const JSONInput& value) { m_jSONHasBeenSet = true; m_jSON = value; }
126
130 inline void SetJSON(JSONInput&& value) { m_jSONHasBeenSet = true; m_jSON = std::move(value); }
131
135 inline InputSerialization& WithJSON(const JSONInput& value) { SetJSON(value); return *this;}
136
140 inline InputSerialization& WithJSON(JSONInput&& value) { SetJSON(std::move(value)); return *this;}
141
142
146 inline const ParquetInput& GetParquet() const{ return m_parquet; }
147
151 inline bool ParquetHasBeenSet() const { return m_parquetHasBeenSet; }
152
156 inline void SetParquet(const ParquetInput& value) { m_parquetHasBeenSet = true; m_parquet = value; }
157
161 inline void SetParquet(ParquetInput&& value) { m_parquetHasBeenSet = true; m_parquet = std::move(value); }
162
166 inline InputSerialization& WithParquet(const ParquetInput& value) { SetParquet(value); return *this;}
167
171 inline InputSerialization& WithParquet(ParquetInput&& value) { SetParquet(std::move(value)); return *this;}
172
173 private:
174
175 CSVInput m_cSV;
176 bool m_cSVHasBeenSet = false;
177
178 CompressionType m_compressionType;
179 bool m_compressionTypeHasBeenSet = false;
180
181 JSONInput m_jSON;
182 bool m_jSONHasBeenSet = false;
183
184 ParquetInput m_parquet;
185 bool m_parquetHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace S3
190} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
const JSONInput & GetJSON() const
InputSerialization & WithCompressionType(const CompressionType &value)
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
void SetCompressionType(const CompressionType &value)
InputSerialization & WithCompressionType(CompressionType &&value)
InputSerialization & WithParquet(ParquetInput &&value)
InputSerialization & WithCSV(const CSVInput &value)
void SetParquet(ParquetInput &&value)
const CompressionType & GetCompressionType() const
InputSerialization & WithParquet(const ParquetInput &value)
InputSerialization & WithJSON(JSONInput &&value)
void SetCompressionType(CompressionType &&value)
InputSerialization & WithJSON(const JSONInput &value)
void SetParquet(const ParquetInput &value)
void SetJSON(const JSONInput &value)
InputSerialization & WithCSV(CSVInput &&value)
void SetCSV(const CSVInput &value)
AWS_S3_API InputSerialization(const Aws::Utils::Xml::XmlNode &xmlNode)