AWS SDK for C++

AWS SDK for C++ Version 1.11.855

Loading...
Searching...
No Matches
RowLevelResultsOptions.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/CatalogTableConfigOptions.h>
9#include <aws/glue/model/ResultTypeEnum.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
30 public:
31 AWS_GLUE_API RowLevelResultsOptions() = default;
35
37
40 inline int GetMaxRowsToWrite() const { return m_maxRowsToWrite; }
41 inline bool MaxRowsToWriteHasBeenSet() const { return m_maxRowsToWriteHasBeenSet; }
42 inline void SetMaxRowsToWrite(int value) {
43 m_maxRowsToWriteHasBeenSet = true;
44 m_maxRowsToWrite = value;
45 }
47 SetMaxRowsToWrite(value);
48 return *this;
49 }
51
53
56 inline ResultTypeEnum GetResultType() const { return m_resultType; }
57 inline bool ResultTypeHasBeenSet() const { return m_resultTypeHasBeenSet; }
58 inline void SetResultType(ResultTypeEnum value) {
59 m_resultTypeHasBeenSet = true;
60 m_resultType = value;
61 }
63 SetResultType(value);
64 return *this;
65 }
67
69
72 inline const CatalogTableConfigOptions& GetCatalogTableConfig() const { return m_catalogTableConfig; }
73 inline bool CatalogTableConfigHasBeenSet() const { return m_catalogTableConfigHasBeenSet; }
74 template <typename CatalogTableConfigT = CatalogTableConfigOptions>
75 void SetCatalogTableConfig(CatalogTableConfigT&& value) {
76 m_catalogTableConfigHasBeenSet = true;
77 m_catalogTableConfig = std::forward<CatalogTableConfigT>(value);
78 }
79 template <typename CatalogTableConfigT = CatalogTableConfigOptions>
80 RowLevelResultsOptions& WithCatalogTableConfig(CatalogTableConfigT&& value) {
81 SetCatalogTableConfig(std::forward<CatalogTableConfigT>(value));
82 return *this;
83 }
85 private:
86 int m_maxRowsToWrite{0};
87
89
90 CatalogTableConfigOptions m_catalogTableConfig;
91 bool m_maxRowsToWriteHasBeenSet = false;
92 bool m_resultTypeHasBeenSet = false;
93 bool m_catalogTableConfigHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Glue
98} // namespace Aws
const CatalogTableConfigOptions & GetCatalogTableConfig() const
AWS_GLUE_API RowLevelResultsOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
RowLevelResultsOptions & WithMaxRowsToWrite(int value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
RowLevelResultsOptions & WithResultType(ResultTypeEnum value)
AWS_GLUE_API RowLevelResultsOptions()=default
RowLevelResultsOptions & WithCatalogTableConfig(CatalogTableConfigT &&value)
void SetCatalogTableConfig(CatalogTableConfigT &&value)
AWS_GLUE_API RowLevelResultsOptions(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue