AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
FormatOptions.h
1
6#pragma once
7#include <aws/databrew/GlueDataBrew_EXPORTS.h>
8#include <aws/databrew/model/CsvOptions.h>
9#include <aws/databrew/model/ExcelOptions.h>
10#include <aws/databrew/model/JsonOptions.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GlueDataBrew {
22namespace Model {
23
31 public:
32 AWS_GLUEDATABREW_API FormatOptions() = default;
33 AWS_GLUEDATABREW_API FormatOptions(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GLUEDATABREW_API FormatOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const JsonOptions& GetJson() const { return m_json; }
42 inline bool JsonHasBeenSet() const { return m_jsonHasBeenSet; }
43 template <typename JsonT = JsonOptions>
44 void SetJson(JsonT&& value) {
45 m_jsonHasBeenSet = true;
46 m_json = std::forward<JsonT>(value);
47 }
48 template <typename JsonT = JsonOptions>
49 FormatOptions& WithJson(JsonT&& value) {
50 SetJson(std::forward<JsonT>(value));
51 return *this;
52 }
54
56
59 inline const ExcelOptions& GetExcel() const { return m_excel; }
60 inline bool ExcelHasBeenSet() const { return m_excelHasBeenSet; }
61 template <typename ExcelT = ExcelOptions>
62 void SetExcel(ExcelT&& value) {
63 m_excelHasBeenSet = true;
64 m_excel = std::forward<ExcelT>(value);
65 }
66 template <typename ExcelT = ExcelOptions>
67 FormatOptions& WithExcel(ExcelT&& value) {
68 SetExcel(std::forward<ExcelT>(value));
69 return *this;
70 }
72
74
77 inline const CsvOptions& GetCsv() const { return m_csv; }
78 inline bool CsvHasBeenSet() const { return m_csvHasBeenSet; }
79 template <typename CsvT = CsvOptions>
80 void SetCsv(CsvT&& value) {
81 m_csvHasBeenSet = true;
82 m_csv = std::forward<CsvT>(value);
83 }
84 template <typename CsvT = CsvOptions>
85 FormatOptions& WithCsv(CsvT&& value) {
86 SetCsv(std::forward<CsvT>(value));
87 return *this;
88 }
90 private:
91 JsonOptions m_json;
92
93 ExcelOptions m_excel;
94
95 CsvOptions m_csv;
96 bool m_jsonHasBeenSet = false;
97 bool m_excelHasBeenSet = false;
98 bool m_csvHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace GlueDataBrew
103} // namespace Aws
FormatOptions & WithExcel(ExcelT &&value)
FormatOptions & WithJson(JsonT &&value)
const CsvOptions & GetCsv() const
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUEDATABREW_API FormatOptions(Aws::Utils::Json::JsonView jsonValue)
FormatOptions & WithCsv(CsvT &&value)
AWS_GLUEDATABREW_API FormatOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
const ExcelOptions & GetExcel() const
AWS_GLUEDATABREW_API FormatOptions()=default
const JsonOptions & GetJson() const
Aws::Utils::Json::JsonValue JsonValue