AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OutputSerialization.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/CSVOutput.h>
9#include <aws/s3/model/JSONOutput.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_S3_API OutputSerialization() = default;
38
39 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline const CSVOutput& GetCSV() const { return m_cSV; }
47 inline bool CSVHasBeenSet() const { return m_cSVHasBeenSet; }
48 template<typename CSVT = CSVOutput>
49 void SetCSV(CSVT&& value) { m_cSVHasBeenSet = true; m_cSV = std::forward<CSVT>(value); }
50 template<typename CSVT = CSVOutput>
51 OutputSerialization& WithCSV(CSVT&& value) { SetCSV(std::forward<CSVT>(value)); return *this;}
53
55
58 inline const JSONOutput& GetJSON() const { return m_jSON; }
59 inline bool JSONHasBeenSet() const { return m_jSONHasBeenSet; }
60 template<typename JSONT = JSONOutput>
61 void SetJSON(JSONT&& value) { m_jSONHasBeenSet = true; m_jSON = std::forward<JSONT>(value); }
62 template<typename JSONT = JSONOutput>
63 OutputSerialization& WithJSON(JSONT&& value) { SetJSON(std::forward<JSONT>(value)); return *this;}
65 private:
66
67 CSVOutput m_cSV;
68 bool m_cSVHasBeenSet = false;
69
70 JSONOutput m_jSON;
71 bool m_jSONHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace S3
76} // namespace Aws
AWS_S3_API OutputSerialization(const Aws::Utils::Xml::XmlNode &xmlNode)
OutputSerialization & WithJSON(JSONT &&value)
AWS_S3_API OutputSerialization & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API OutputSerialization()=default
OutputSerialization & WithCSV(CSVT &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const