AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
AggregateOperation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/AggFunction.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
31 public:
32 AWS_GLUE_API AggregateOperation() = default;
36
38
42 inline const Aws::Vector<Aws::String>& GetColumn() const { return m_column; }
43 inline bool ColumnHasBeenSet() const { return m_columnHasBeenSet; }
44 template <typename ColumnT = Aws::Vector<Aws::String>>
45 void SetColumn(ColumnT&& value) {
46 m_columnHasBeenSet = true;
47 m_column = std::forward<ColumnT>(value);
48 }
49 template <typename ColumnT = Aws::Vector<Aws::String>>
50 AggregateOperation& WithColumn(ColumnT&& value) {
51 SetColumn(std::forward<ColumnT>(value));
52 return *this;
53 }
54 template <typename ColumnT = Aws::String>
55 AggregateOperation& AddColumn(ColumnT&& value) {
56 m_columnHasBeenSet = true;
57 m_column.emplace_back(std::forward<ColumnT>(value));
58 return *this;
59 }
61
63
68 inline AggFunction GetAggFunc() const { return m_aggFunc; }
69 inline bool AggFuncHasBeenSet() const { return m_aggFuncHasBeenSet; }
70 inline void SetAggFunc(AggFunction value) {
71 m_aggFuncHasBeenSet = true;
72 m_aggFunc = value;
73 }
75 SetAggFunc(value);
76 return *this;
77 }
79 private:
81
83 bool m_columnHasBeenSet = false;
84 bool m_aggFuncHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace Glue
89} // namespace Aws
const Aws::Vector< Aws::String > & GetColumn() const
AWS_GLUE_API AggregateOperation(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API AggregateOperation()=default
AggregateOperation & AddColumn(ColumnT &&value)
AggregateOperation & WithAggFunc(AggFunction value)
AggregateOperation & WithColumn(ColumnT &&value)
AWS_GLUE_API AggregateOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue