AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#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:
37 AWS_S3_API InputSerialization() = default;
38 AWS_S3_API InputSerialization(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
48 inline const CSVInput& GetCSV() const { return m_cSV; }
49 inline bool CSVHasBeenSet() const { return m_cSVHasBeenSet; }
50 template<typename CSVT = CSVInput>
51 void SetCSV(CSVT&& value) { m_cSVHasBeenSet = true; m_cSV = std::forward<CSVT>(value); }
52 template<typename CSVT = CSVInput>
53 InputSerialization& WithCSV(CSVT&& value) { SetCSV(std::forward<CSVT>(value)); return *this;}
55
57
61 inline CompressionType GetCompressionType() const { return m_compressionType; }
62 inline bool CompressionTypeHasBeenSet() const { return m_compressionTypeHasBeenSet; }
63 inline void SetCompressionType(CompressionType value) { m_compressionTypeHasBeenSet = true; m_compressionType = value; }
66
68
71 inline const JSONInput& GetJSON() const { return m_jSON; }
72 inline bool JSONHasBeenSet() const { return m_jSONHasBeenSet; }
73 template<typename JSONT = JSONInput>
74 void SetJSON(JSONT&& value) { m_jSONHasBeenSet = true; m_jSON = std::forward<JSONT>(value); }
75 template<typename JSONT = JSONInput>
76 InputSerialization& WithJSON(JSONT&& value) { SetJSON(std::forward<JSONT>(value)); return *this;}
78
80
83 inline const ParquetInput& GetParquet() const { return m_parquet; }
84 inline bool ParquetHasBeenSet() const { return m_parquetHasBeenSet; }
85 template<typename ParquetT = ParquetInput>
86 void SetParquet(ParquetT&& value) { m_parquetHasBeenSet = true; m_parquet = std::forward<ParquetT>(value); }
87 template<typename ParquetT = ParquetInput>
88 InputSerialization& WithParquet(ParquetT&& value) { SetParquet(std::forward<ParquetT>(value)); return *this;}
90 private:
91
92 CSVInput m_cSV;
93 bool m_cSVHasBeenSet = false;
94
96 bool m_compressionTypeHasBeenSet = false;
97
98 JSONInput m_jSON;
99 bool m_jSONHasBeenSet = false;
100
101 ParquetInput m_parquet;
102 bool m_parquetHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace S3
107} // 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)