AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
FormatOptions.h
1
6#pragma once
7#include <aws/databrew/GlueDataBrew_EXPORTS.h>
8#include <aws/databrew/model/JsonOptions.h>
9#include <aws/databrew/model/ExcelOptions.h>
10#include <aws/databrew/model/CsvOptions.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GlueDataBrew
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GLUEDATABREW_API FormatOptions() = default;
38 AWS_GLUEDATABREW_API FormatOptions(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GLUEDATABREW_API FormatOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const JsonOptions& GetJson() const { return m_json; }
48 inline bool JsonHasBeenSet() const { return m_jsonHasBeenSet; }
49 template<typename JsonT = JsonOptions>
50 void SetJson(JsonT&& value) { m_jsonHasBeenSet = true; m_json = std::forward<JsonT>(value); }
51 template<typename JsonT = JsonOptions>
52 FormatOptions& WithJson(JsonT&& value) { SetJson(std::forward<JsonT>(value)); return *this;}
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) { m_excelHasBeenSet = true; m_excel = std::forward<ExcelT>(value); }
63 template<typename ExcelT = ExcelOptions>
64 FormatOptions& WithExcel(ExcelT&& value) { SetExcel(std::forward<ExcelT>(value)); return *this;}
66
68
71 inline const CsvOptions& GetCsv() const { return m_csv; }
72 inline bool CsvHasBeenSet() const { return m_csvHasBeenSet; }
73 template<typename CsvT = CsvOptions>
74 void SetCsv(CsvT&& value) { m_csvHasBeenSet = true; m_csv = std::forward<CsvT>(value); }
75 template<typename CsvT = CsvOptions>
76 FormatOptions& WithCsv(CsvT&& value) { SetCsv(std::forward<CsvT>(value)); return *this;}
78 private:
79
80 JsonOptions m_json;
81 bool m_jsonHasBeenSet = false;
82
83 ExcelOptions m_excel;
84 bool m_excelHasBeenSet = false;
85
86 CsvOptions m_csv;
87 bool m_csvHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace GlueDataBrew
92} // 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