AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
OutputSerialization.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.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:
38
40
41
45 inline const CSVOutput& GetCSV() const{ return m_cSV; }
46
50 inline bool CSVHasBeenSet() const { return m_cSVHasBeenSet; }
51
55 inline void SetCSV(const CSVOutput& value) { m_cSVHasBeenSet = true; m_cSV = value; }
56
60 inline void SetCSV(CSVOutput&& value) { m_cSVHasBeenSet = true; m_cSV = std::move(value); }
61
65 inline OutputSerialization& WithCSV(const CSVOutput& value) { SetCSV(value); return *this;}
66
70 inline OutputSerialization& WithCSV(CSVOutput&& value) { SetCSV(std::move(value)); return *this;}
71
72
76 inline const JSONOutput& GetJSON() const{ return m_jSON; }
77
81 inline bool JSONHasBeenSet() const { return m_jSONHasBeenSet; }
82
86 inline void SetJSON(const JSONOutput& value) { m_jSONHasBeenSet = true; m_jSON = value; }
87
91 inline void SetJSON(JSONOutput&& value) { m_jSONHasBeenSet = true; m_jSON = std::move(value); }
92
96 inline OutputSerialization& WithJSON(const JSONOutput& value) { SetJSON(value); return *this;}
97
101 inline OutputSerialization& WithJSON(JSONOutput&& value) { SetJSON(std::move(value)); return *this;}
102
103 private:
104
105 CSVOutput m_cSV;
106 bool m_cSVHasBeenSet = false;
107
108 JSONOutput m_jSON;
109 bool m_jSONHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace S3
114} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
AWS_S3_API OutputSerialization(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API OutputSerialization & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
OutputSerialization & WithJSON(JSONOutput &&value)
OutputSerialization & WithJSON(const JSONOutput &value)
const JSONOutput & GetJSON() const
void SetCSV(const CSVOutput &value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
OutputSerialization & WithCSV(CSVOutput &&value)
void SetJSON(const JSONOutput &value)
OutputSerialization & WithCSV(const CSVOutput &value)