AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DatasetParameter.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/databrew/GlueDataBrew_EXPORTS.h>
9#include <aws/databrew/model/DatetimeOptions.h>
10#include <aws/databrew/model/FilterExpression.h>
11#include <aws/databrew/model/ParameterType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GlueDataBrew {
23namespace Model {
24
32 public:
33 AWS_GLUEDATABREW_API DatasetParameter() = default;
34 AWS_GLUEDATABREW_API DatasetParameter(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GLUEDATABREW_API DatasetParameter& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 DatasetParameter& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
61 inline ParameterType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(ParameterType value) {
64 m_typeHasBeenSet = true;
65 m_type = value;
66 }
68 SetType(value);
69 return *this;
70 }
72
74
78 inline const DatetimeOptions& GetDatetimeOptions() const { return m_datetimeOptions; }
79 inline bool DatetimeOptionsHasBeenSet() const { return m_datetimeOptionsHasBeenSet; }
80 template <typename DatetimeOptionsT = DatetimeOptions>
81 void SetDatetimeOptions(DatetimeOptionsT&& value) {
82 m_datetimeOptionsHasBeenSet = true;
83 m_datetimeOptions = std::forward<DatetimeOptionsT>(value);
84 }
85 template <typename DatetimeOptionsT = DatetimeOptions>
86 DatasetParameter& WithDatetimeOptions(DatetimeOptionsT&& value) {
87 SetDatetimeOptions(std::forward<DatetimeOptionsT>(value));
88 return *this;
89 }
91
93
97 inline bool GetCreateColumn() const { return m_createColumn; }
98 inline bool CreateColumnHasBeenSet() const { return m_createColumnHasBeenSet; }
99 inline void SetCreateColumn(bool value) {
100 m_createColumnHasBeenSet = true;
101 m_createColumn = value;
102 }
103 inline DatasetParameter& WithCreateColumn(bool value) {
104 SetCreateColumn(value);
105 return *this;
106 }
108
110
114 inline const FilterExpression& GetFilter() const { return m_filter; }
115 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
116 template <typename FilterT = FilterExpression>
117 void SetFilter(FilterT&& value) {
118 m_filterHasBeenSet = true;
119 m_filter = std::forward<FilterT>(value);
120 }
121 template <typename FilterT = FilterExpression>
122 DatasetParameter& WithFilter(FilterT&& value) {
123 SetFilter(std::forward<FilterT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_name;
129
131
132 DatetimeOptions m_datetimeOptions;
133
134 bool m_createColumn{false};
135
136 FilterExpression m_filter;
137 bool m_nameHasBeenSet = false;
138 bool m_typeHasBeenSet = false;
139 bool m_datetimeOptionsHasBeenSet = false;
140 bool m_createColumnHasBeenSet = false;
141 bool m_filterHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace GlueDataBrew
146} // namespace Aws
DatasetParameter & WithName(NameT &&value)
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUEDATABREW_API DatasetParameter(Aws::Utils::Json::JsonView jsonValue)
DatasetParameter & WithDatetimeOptions(DatetimeOptionsT &&value)
AWS_GLUEDATABREW_API DatasetParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUEDATABREW_API DatasetParameter()=default
const DatetimeOptions & GetDatetimeOptions() const
DatasetParameter & WithType(ParameterType value)
DatasetParameter & WithCreateColumn(bool value)
const FilterExpression & GetFilter() const
void SetDatetimeOptions(DatetimeOptionsT &&value)
DatasetParameter & WithFilter(FilterT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue