AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace S3 {
20namespace Model {
21
29 public:
30 AWS_S3_API OutputSerialization() = default;
33
34 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
40 inline const CSVOutput& GetCSV() const { return m_cSV; }
41 inline bool CSVHasBeenSet() const { return m_cSVHasBeenSet; }
42 template <typename CSVT = CSVOutput>
43 void SetCSV(CSVT&& value) {
44 m_cSVHasBeenSet = true;
45 m_cSV = std::forward<CSVT>(value);
46 }
47 template <typename CSVT = CSVOutput>
49 SetCSV(std::forward<CSVT>(value));
50 return *this;
51 }
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) {
62 m_jSONHasBeenSet = true;
63 m_jSON = std::forward<JSONT>(value);
64 }
65 template <typename JSONT = JSONOutput>
66 OutputSerialization& WithJSON(JSONT&& value) {
67 SetJSON(std::forward<JSONT>(value));
68 return *this;
69 }
71 private:
72 CSVOutput m_cSV;
73
74 JSONOutput m_jSON;
75 bool m_cSVHasBeenSet = false;
76 bool m_jSONHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace S3
81} // 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